vlan: Propagate MAC address to VLANs
authorMike Manning <mmanning@brocade.com>
Fri, 27 May 2016 16:45:07 +0000 (17:45 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 31 May 2016 18:56:48 +0000 (11:56 -0700)
commit308453aa9156a3b8ee382c0949befb507a32b0c1
tree145f2f5206b47c3e1234aebc8208c6f872aa3e72
parentf2633d2eaaab773ea8b29cea3785cf0f8a8872a5
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>
net/8021q/vlan.c
net/8021q/vlan.h
net/8021q/vlan_dev.c