tipc: simplify interaction between subscription and topology connection
authorJon Maloy <jon.maloy@ericsson.com>
Thu, 15 Feb 2018 09:40:45 +0000 (10:40 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Feb 2018 20:26:33 +0000 (15:26 -0500)
commit414574a0af36d329f560f542e650cc4a81cc1d69
treef4a319ea2214e6fb3f8a12521001bf0b50add3a2
parentdf79d040dcd7d7e580c50edf40b82e677fe84801
tipc: simplify interaction between subscription and topology connection

The message transmission and reception in the topology server is more
generic than is currently necessary. By basing the funtionality on the
fact that we only send items of type struct tipc_event and always
receive items of struct tipc_subcr we can make several simplifications,
and also get rid of some unnecessary dynamic memory allocations.

Acked-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>
net/tipc/name_table.c
net/tipc/server.c
net/tipc/server.h
net/tipc/subscr.c
net/tipc/subscr.h