tipc: fix regression bug where node events are not being generated
authorErik Hugne <erik.hugne@ericsson.com>
Thu, 3 Apr 2014 06:28:01 +0000 (08:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Apr 2014 20:03:57 +0000 (16:03 -0400)
commita5e7ac5ce134d8f72f59631011fafa7bbf7ca174
tree97f653270c3466043626174702ec2352a79d406f
parentd9bd6461681c78fbe18087c20b4bb47845cd5564
tipc: fix regression bug where node events are not being generated

Commit 5902385a2440a55f005b266c93e0bb9398e5a62b ("tipc: obsolete
the remote management feature") introduces a regression where node
topology events are not being generated because the publication
that triggers this: {0, <z.c.n>, <z.c.n>} is no longer available.
This will break applications that rely on node events to discover
when nodes join/leave a cluster.

We fix this by advertising the node publication when TIPC enters
networking mode, and withdraws it upon shutdown.

Signed-off-by: Erik Hugne <erik.hugne@ericsson.com>
Reviewed-by: Jon Maloy <jon.maloy@ericsson.com>
Reviewed-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/net.c