]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: add option to suppress PUBLISH events for pre-existing publications
authorJon Maloy <jon.maloy@ericsson.com>
Mon, 8 Jan 2018 20:03:29 +0000 (21:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Jan 2018 17:35:58 +0000 (12:35 -0500)
commit93b3efa5b57b75000976a8bbd59771b81656bff5
tree587b78587831673462e857101a1249fbf7516f15
parent979a0694969f3ea3bd1938ebdb03fbf1961b7cf4
tipc: add option to suppress PUBLISH events for pre-existing publications

Currently, when a user is subscribing for binding table publications,
he will receive a PUBLISH event for all already existing matching items
in the binding table.

However, a group socket making a subscriptions doesn't need this initial
status update from the binding table, because it has already scanned it
during the join operation. Worse, the multiplicatory effect of issuing
mutual events for dozens or hundreds group members within a short time
frame put a heavy load on the topology server, with the end result that
scale out operations on a big group tend to take much longer than needed.

We now add a new filter option, TIPC_SUB_NO_STATUS, for topology server
subscriptions, so that this initial avalanche of events is suppressed.
This change, along with the previous commit, significantly improves the
range and speed of group scale out operations.

We keep the new option internal for the tipc driver, at least for now.

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