]> git.baikalelectronics.ru Git - kernel.git/commit
Bridge: Always send NETDEV_CHANGEADDR up on br MAC change.
authorAndrei Warkentin <andreiw@motorola.com>
Fri, 5 Aug 2011 11:04:10 +0000 (11:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Aug 2011 04:44:44 +0000 (21:44 -0700)
commit04b8845212002c4fc36a564c8a65b802f28279d7
treef64f94d8765e0a679ad4976dae4e16796e0324cb
parentd19f889fbcdac1c56650cbc4112c9fba184f726d
Bridge: Always send NETDEV_CHANGEADDR up on br MAC change.

This ensures the neighbor entries associated with the bridge
dev are flushed, also invalidating the associated cached L2 headers.

This means we br_add_if/br_del_if ports to implement hand-over and
not wind up with bridge packets going out with stale MAC.

This means we can also change MAC of port device and also not wind
up with bridge packets going out with stale MAC.

This builds on Stephen Hemminger's patch, also handling the br_del_if
case and the port MAC change case.

Cc: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Andrei Warkentin <andreiw@motorola.com>
Acked-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_if.c
net/bridge/br_notify.c