net: vlan: prepare for 802.1ad support
Make the encapsulation protocol value a property of VLAN devices and change the device lookup functions to take the protocol value into account. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
80d5c3689b
commit
1fd9b1fc31
@@ -3346,7 +3346,7 @@ void qlcnic_restore_indev_addr(struct net_device *netdev, unsigned long event)
|
||||
|
||||
rcu_read_lock();
|
||||
for_each_set_bit(vid, adapter->vlans, VLAN_N_VID) {
|
||||
dev = __vlan_find_dev_deep(netdev, vid);
|
||||
dev = __vlan_find_dev_deep(netdev, htons(ETH_P_8021Q), vid);
|
||||
if (!dev)
|
||||
continue;
|
||||
qlcnic_config_indev_addr(adapter, dev, event);
|
||||
|
Reference in New Issue
Block a user