tipc: make tipc broadcast link support net namespace
authorYing Xue <ying.xue@windriver.com>
Fri, 9 Jan 2015 07:27:07 +0000 (15:27 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Jan 2015 21:24:33 +0000 (16:24 -0500)
commit1da465683a93142488a54a9038155f23d6349441
tree95ccbeb4302d4b18fe0e12bfbb2b6b819ad84614
parent7f9f95d9d9bcdf253c4149a157b096958013eceb
tipc: make tipc broadcast link support net namespace

TIPC broadcast link is statically established and its relevant states
are maintained with the global variables: "bcbearer", "bclink" and
"bcl". Allowing different namespace to own different broadcast link
instances, these variables must be moved to tipc_net structure and
broadcast link instances would be allocated and initialized when
namespace is created.

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>
12 files changed:
net/tipc/addr.c
net/tipc/addr.h
net/tipc/bcast.c
net/tipc/bcast.h
net/tipc/bearer.c
net/tipc/bearer.h
net/tipc/core.h
net/tipc/link.c
net/tipc/msg.h
net/tipc/name_table.c
net/tipc/net.c
net/tipc/node.c