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/s390 | |
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/s390')
-rw-r--r-- | drivers/s390/net/qeth_l2_main.c | 6 | ||||
-rw-r--r-- | drivers/s390/net/qeth_l3_main.c | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/drivers/s390/net/qeth_l2_main.c b/drivers/s390/net/qeth_l2_main.c index 90ddd823605c..e68f79b38556 100644 --- a/drivers/s390/net/qeth_l2_main.c +++ b/drivers/s390/net/qeth_l2_main.c | |||
@@ -302,7 +302,8 @@ static void qeth_l2_process_vlans(struct qeth_card *card) | |||
302 | spin_unlock_bh(&card->vlanlock); | 302 | spin_unlock_bh(&card->vlanlock); |
303 | } | 303 | } |
304 | 304 | ||
305 | static int qeth_l2_vlan_rx_add_vid(struct net_device *dev, unsigned short vid) | 305 | static int qeth_l2_vlan_rx_add_vid(struct net_device *dev, |
306 | __be16 proto, u16 vid) | ||
306 | { | 307 | { |
307 | struct qeth_card *card = dev->ml_priv; | 308 | struct qeth_card *card = dev->ml_priv; |
308 | struct qeth_vlan_vid *id; | 309 | struct qeth_vlan_vid *id; |
@@ -331,7 +332,8 @@ static int qeth_l2_vlan_rx_add_vid(struct net_device *dev, unsigned short vid) | |||
331 | return 0; | 332 | return 0; |
332 | } | 333 | } |
333 | 334 | ||
334 | static int qeth_l2_vlan_rx_kill_vid(struct net_device *dev, unsigned short vid) | 335 | static int qeth_l2_vlan_rx_kill_vid(struct net_device *dev, |
336 | __be16 proto, u16 vid) | ||
335 | { | 337 | { |
336 | struct qeth_vlan_vid *id, *tmpid = NULL; | 338 | struct qeth_vlan_vid *id, *tmpid = NULL; |
337 | struct qeth_card *card = dev->ml_priv; | 339 | struct qeth_card *card = dev->ml_priv; |
diff --git a/drivers/s390/net/qeth_l3_main.c b/drivers/s390/net/qeth_l3_main.c index 04261bc08f20..642686846a14 100644 --- a/drivers/s390/net/qeth_l3_main.c +++ b/drivers/s390/net/qeth_l3_main.c | |||
@@ -1824,7 +1824,8 @@ static void qeth_l3_free_vlan_addresses(struct qeth_card *card, | |||
1824 | rcu_read_unlock(); | 1824 | rcu_read_unlock(); |
1825 | } | 1825 | } |
1826 | 1826 | ||
1827 | static int qeth_l3_vlan_rx_add_vid(struct net_device *dev, unsigned short vid) | 1827 | static int qeth_l3_vlan_rx_add_vid(struct net_device *dev, |
1828 | __be16 proto, u16 vid) | ||
1828 | { | 1829 | { |
1829 | struct qeth_card *card = dev->ml_priv; | 1830 | struct qeth_card *card = dev->ml_priv; |
1830 | 1831 | ||
@@ -1832,7 +1833,8 @@ static int qeth_l3_vlan_rx_add_vid(struct net_device *dev, unsigned short vid) | |||
1832 | return 0; | 1833 | return 0; |
1833 | } | 1834 | } |
1834 | 1835 | ||
1835 | static int qeth_l3_vlan_rx_kill_vid(struct net_device *dev, unsigned short vid) | 1836 | static int qeth_l3_vlan_rx_kill_vid(struct net_device *dev, |
1837 | __be16 proto, u16 vid) | ||
1836 | { | 1838 | { |
1837 | struct qeth_card *card = dev->ml_priv; | 1839 | struct qeth_card *card = dev->ml_priv; |
1838 | unsigned long flags; | 1840 | unsigned long flags; |