]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit953c612e1986bc3bd6d20bf78988ce3a8ea76912
treef4a319ea2214e6fb3f8a12521001bf0b50add3a2
parentb7782879d4bda4cc3e7eafc6b516ec2bb577642c
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