diff options
author | Patrick McHardy <kaber@trash.net> | 2013-04-18 22:04:28 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-04-19 14:45:27 -0400 |
commit | 80d5c3689b886308247da295a228a54df49a44f6 (patch) | |
tree | ce7b1e6898c3f9fea945e67fd06b125dfcc61fe7 /drivers/net/ethernet/qlogic | |
parent | f646968f8f7c624587de729115d802372b9063dd (diff) |
net: vlan: prepare for 802.1ad VLAN filtering offload
Change the rx_{add,kill}_vid callbacks to take a protocol argument in
preparation of 802.1ad support. The protocol argument used so far is
always htons(ETH_P_8021Q).
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic')
-rw-r--r-- | drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c | 8 | ||||
-rw-r--r-- | drivers/net/ethernet/qlogic/qlge/qlge_main.c | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c index 845ba1d1c3c9..e88e01312c67 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c | |||
@@ -86,8 +86,8 @@ static void qlcnic_dev_set_npar_ready(struct qlcnic_adapter *); | |||
86 | static int qlcnicvf_start_firmware(struct qlcnic_adapter *); | 86 | static int qlcnicvf_start_firmware(struct qlcnic_adapter *); |
87 | static void qlcnic_set_netdev_features(struct qlcnic_adapter *, | 87 | static void qlcnic_set_netdev_features(struct qlcnic_adapter *, |
88 | struct qlcnic_esw_func_cfg *); | 88 | struct qlcnic_esw_func_cfg *); |
89 | static int qlcnic_vlan_rx_add(struct net_device *, u16); | 89 | static int qlcnic_vlan_rx_add(struct net_device *, __be16, u16); |
90 | static int qlcnic_vlan_rx_del(struct net_device *, u16); | 90 | static int qlcnic_vlan_rx_del(struct net_device *, __be16, u16); |
91 | 91 | ||
92 | #define QLCNIC_IS_TSO_CAPABLE(adapter) \ | 92 | #define QLCNIC_IS_TSO_CAPABLE(adapter) \ |
93 | ((adapter)->ahw->capabilities & QLCNIC_FW_CAPABILITY_TSO) | 93 | ((adapter)->ahw->capabilities & QLCNIC_FW_CAPABILITY_TSO) |
@@ -902,7 +902,7 @@ void qlcnic_set_vlan_config(struct qlcnic_adapter *adapter, | |||
902 | } | 902 | } |
903 | 903 | ||
904 | static int | 904 | static int |
905 | qlcnic_vlan_rx_add(struct net_device *netdev, u16 vid) | 905 | qlcnic_vlan_rx_add(struct net_device *netdev, __be16 proto, u16 vid) |
906 | { | 906 | { |
907 | struct qlcnic_adapter *adapter = netdev_priv(netdev); | 907 | struct qlcnic_adapter *adapter = netdev_priv(netdev); |
908 | set_bit(vid, adapter->vlans); | 908 | set_bit(vid, adapter->vlans); |
@@ -910,7 +910,7 @@ qlcnic_vlan_rx_add(struct net_device *netdev, u16 vid) | |||
910 | } | 910 | } |
911 | 911 | ||
912 | static int | 912 | static int |
913 | qlcnic_vlan_rx_del(struct net_device *netdev, u16 vid) | 913 | qlcnic_vlan_rx_del(struct net_device *netdev, __be16 proto, u16 vid) |
914 | { | 914 | { |
915 | struct qlcnic_adapter *adapter = netdev_priv(netdev); | 915 | struct qlcnic_adapter *adapter = netdev_priv(netdev); |
916 | 916 | ||
diff --git a/drivers/net/ethernet/qlogic/qlge/qlge_main.c b/drivers/net/ethernet/qlogic/qlge/qlge_main.c index 8e3f43c75665..a9016acc2d6a 100644 --- a/drivers/net/ethernet/qlogic/qlge/qlge_main.c +++ b/drivers/net/ethernet/qlogic/qlge/qlge_main.c | |||
@@ -2326,7 +2326,7 @@ static int __qlge_vlan_rx_add_vid(struct ql_adapter *qdev, u16 vid) | |||
2326 | return err; | 2326 | return err; |
2327 | } | 2327 | } |
2328 | 2328 | ||
2329 | static int qlge_vlan_rx_add_vid(struct net_device *ndev, u16 vid) | 2329 | static int qlge_vlan_rx_add_vid(struct net_device *ndev, __be16 proto, u16 vid) |
2330 | { | 2330 | { |
2331 | struct ql_adapter *qdev = netdev_priv(ndev); | 2331 | struct ql_adapter *qdev = netdev_priv(ndev); |
2332 | int status; | 2332 | int status; |
@@ -2357,7 +2357,7 @@ static int __qlge_vlan_rx_kill_vid(struct ql_adapter *qdev, u16 vid) | |||
2357 | return err; | 2357 | return err; |
2358 | } | 2358 | } |
2359 | 2359 | ||
2360 | static int qlge_vlan_rx_kill_vid(struct net_device *ndev, u16 vid) | 2360 | static int qlge_vlan_rx_kill_vid(struct net_device *ndev, __be16 proto, u16 vid) |
2361 | { | 2361 | { |
2362 | struct ql_adapter *qdev = netdev_priv(ndev); | 2362 | struct ql_adapter *qdev = netdev_priv(ndev); |
2363 | int status; | 2363 | int status; |