]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: fix neighbor detection problem after hw address change
authorErik Hugne <erik.hugne@ericsson.com>
Fri, 28 Mar 2014 09:32:08 +0000 (10:32 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Mar 2014 18:46:29 +0000 (14:46 -0400)
commit4f5eba29e0236742f8cd865d33210df5c3b5c206
treeae61966b3e5ea3845959a2e506c2cd6390081091
parent05c1b6ee5f0a1ebb5d63551c9501e08854bfaeca
tipc: fix neighbor detection problem after hw address change

If the hardware address of a underlying netdevice is changed, it is
not enough to simply reset the bearer/links over this device. We
also need to reflect this change in the TIPC bearer and node
discovery structures aswell.

This patch adds the necessary reinitialization of the node disovery
mechanism following a hardware address change so that the correct
originating media address is advertised in the discovery messages.

Signed-off-by: Erik Hugne <erik.hugne@ericsson.com>
Reported-by: Dong Liu <dliu.cn@gmail.com>
Reviewed-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/bearer.c
net/tipc/bearer.h