aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/igbvf
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2013-04-18 22:04:28 -0400
committerDavid S. Miller <davem@davemloft.net>2013-04-19 14:45:27 -0400
commit80d5c3689b886308247da295a228a54df49a44f6 (patch)
treece7b1e6898c3f9fea945e67fd06b125dfcc61fe7 /drivers/net/ethernet/intel/igbvf
parentf646968f8f7c624587de729115d802372b9063dd (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/intel/igbvf')
-rw-r--r--drivers/net/ethernet/intel/igbvf/netdev.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/net/ethernet/intel/igbvf/netdev.c b/drivers/net/ethernet/intel/igbvf/netdev.c
index 33e7b3069fb6..3854fd698b85 100644
--- a/drivers/net/ethernet/intel/igbvf/netdev.c
+++ b/drivers/net/ethernet/intel/igbvf/netdev.c
@@ -1230,7 +1230,8 @@ static void igbvf_set_rlpml(struct igbvf_adapter *adapter)
1230 e1000_rlpml_set_vf(hw, max_frame_size); 1230 e1000_rlpml_set_vf(hw, max_frame_size);
1231} 1231}
1232 1232
1233static int igbvf_vlan_rx_add_vid(struct net_device *netdev, u16 vid) 1233static int igbvf_vlan_rx_add_vid(struct net_device *netdev,
1234 __be16 proto, u16 vid)
1234{ 1235{
1235 struct igbvf_adapter *adapter = netdev_priv(netdev); 1236 struct igbvf_adapter *adapter = netdev_priv(netdev);
1236 struct e1000_hw *hw = &adapter->hw; 1237 struct e1000_hw *hw = &adapter->hw;
@@ -1243,7 +1244,8 @@ static int igbvf_vlan_rx_add_vid(struct net_device *netdev, u16 vid)
1243 return 0; 1244 return 0;
1244} 1245}
1245 1246
1246static int igbvf_vlan_rx_kill_vid(struct net_device *netdev, u16 vid) 1247static int igbvf_vlan_rx_kill_vid(struct net_device *netdev,
1248 __be16 proto, u16 vid)
1247{ 1249{
1248 struct igbvf_adapter *adapter = netdev_priv(netdev); 1250 struct igbvf_adapter *adapter = netdev_priv(netdev);
1249 struct e1000_hw *hw = &adapter->hw; 1251 struct e1000_hw *hw = &adapter->hw;
@@ -1262,7 +1264,7 @@ static void igbvf_restore_vlan(struct igbvf_adapter *adapter)
1262 u16 vid; 1264 u16 vid;
1263 1265
1264 for_each_set_bit(vid, adapter->active_vlans, VLAN_N_VID) 1266 for_each_set_bit(vid, adapter->active_vlans, VLAN_N_VID)
1265 igbvf_vlan_rx_add_vid(adapter->netdev, vid); 1267 igbvf_vlan_rx_add_vid(adapter->netdev, htons(ETH_P_8021Q), vid);
1266} 1268}
1267 1269
1268/** 1270/**