diff options
author | Mike Manning <mmanning@brocade.com> | 2016-05-27 18:45:07 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-05-31 20:56:48 +0200 |
commit | 308453aa9156a3b8ee382c0949befb507a32b0c1 (patch) | |
tree | 145f2f5206b47c3e1234aebc8208c6f872aa3e72 /net/8021q/vlan.h | |
parent | atm: iphase: off by one in rx_pkt() (diff) | |
download | linux-308453aa9156a3b8ee382c0949befb507a32b0c1.tar.xz linux-308453aa9156a3b8ee382c0949befb507a32b0c1.zip |
vlan: Propagate MAC address to VLANs
The MAC address of the physical interface is only copied to the VLAN
when it is first created, resulting in an inconsistency after MAC
address changes of only newly created VLANs having an up-to-date MAC.
The VLANs should continue inheriting the MAC address of the physical
interface until the VLAN MAC address is explicitly set to any value.
This allows IPv6 EUI64 addresses for the VLAN to reflect any changes
to the MAC of the physical interface and thus for DAD to behave as
expected.
Signed-off-by: Mike Manning <mmanning@brocade.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/8021q/vlan.h')
-rw-r--r-- | net/8021q/vlan.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/8021q/vlan.h b/net/8021q/vlan.h index 9d010a09ab98..cc1557978066 100644 --- a/net/8021q/vlan.h +++ b/net/8021q/vlan.h @@ -109,6 +109,8 @@ int vlan_check_real_dev(struct net_device *real_dev, void vlan_setup(struct net_device *dev); int register_vlan_dev(struct net_device *dev); void unregister_vlan_dev(struct net_device *dev, struct list_head *head); +bool vlan_dev_inherit_address(struct net_device *dev, + struct net_device *real_dev); static inline u32 vlan_get_ingress_priority(struct net_device *dev, u16 vlan_tci) |