]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
macvlan: fix the problem when mac address changes for passthru mode
authordingtianhong <dingtianhong@huawei.com>
Fri, 30 May 2014 06:32:49 +0000 (14:32 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Jun 2014 22:57:34 +0000 (15:57 -0700)
commite289fd28176b78de7e54bf6c8e2b558afefaf6df
treeadccd7d6821425bdb7aae3662b0444161bc9b885
parentd7ec858413612ebb53c539541d6a0c7927db0bcd
macvlan: fix the problem when mac address changes for passthru mode

The macvlan dev should always have the same mac address like lowerdev
when in the passthru mode, change the mac address alone will break the
work mechanism, so when the lowerdev or macvlan mac address changes,
we should propagate the changes to another dev.

v1->v2: Allow macvlan dev to change mac address for passthru mode and propagate to
lowerdev.

v2->v3: Don't set the mac address to the lower dev's unicast address for
passthru mode when mac address changes.

Signed-off-by: Ding Tianhong <dingtianhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvlan.c