]> 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)
commit335cca95145030515c0376869d5fd7a495b73a70
treeae61966b3e5ea3845959a2e506c2cd6390081091
parente224b28248643f4013ed912f7e5cf24b0d4be654
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