]> git.baikalelectronics.ru Git - 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)
commit4dcc5e2f757563789ac26051fa787e5199331987
treeadccd7d6821425bdb7aae3662b0444161bc9b885
parent7ba7b8f63fb7b3e5171f9e80d999c53cc93ff842
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