]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2766ca8c5a061a06f9da1500455cf416dfad4c45
tree145f2f5206b47c3e1234aebc8208c6f872aa3e72
parent929b79e284d458006d28f10203371cb9748270e4
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