tipc: make tipc random value aware of net namespace
authorYing Xue <ying.xue@windriver.com>
Fri, 9 Jan 2015 07:27:12 +0000 (15:27 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Jan 2015 21:24:33 +0000 (16:24 -0500)
commitbafa29e34185fb70496bfd604dc9e4071049f023
treead8c2ab58340a54061d7ddb3735f9bd72ea704b0
parenta62fbccecd62bacb4416fc427239f5b43b25d05e
tipc: make tipc random value aware of net namespace

After namespace is supported, each namespace should own its private
random value. So the global variable representing the random value
must be moved to tipc_net structure.

Signed-off-by: Ying Xue <ying.xue@windriver.com>
Tested-by: Tero Aho <Tero.Aho@coriant.com>
Reviewed-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/core.c
net/tipc/core.h
net/tipc/discover.c
net/tipc/link.c