tipc: reduce code dependency between binding table and node layer
The file name_distr.c currently contains three functions, named_cluster_distribute(), tipc_publ_subcscribe() and tipc_publ_unsubscribe() that all directly access fields in struct tipc_node. We want to eliminate such dependencies, so we move those functions to the file node.c and rename them to tipc_node_broadcast(), tipc_node_subscribe() and tipc_node_unsubscribe() respectively. Reviewed-by:Ying Xue <ying.xue@windriver.com> Signed-off-by:
Jon Maloy <jon.maloy@ericsson.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- net/tipc/core.h 5 additions, 0 deletionsnet/tipc/core.h
- net/tipc/name_distr.c 3 additions, 64 deletionsnet/tipc/name_distr.c
- net/tipc/name_distr.h 0 additions, 1 deletionnet/tipc/name_distr.h
- net/tipc/name_table.c 3 additions, 2 deletionsnet/tipc/name_table.c
- net/tipc/node.c 60 additions, 0 deletionsnet/tipc/node.c
- net/tipc/node.h 3 additions, 0 deletionsnet/tipc/node.h
Please register or sign in to comment