]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: guarantee group unicast doesn't bypass group broadcast
authorJon Maloy <jon.maloy@ericsson.com>
Fri, 13 Oct 2017 09:04:30 +0000 (11:04 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Oct 2017 15:46:01 +0000 (08:46 -0700)
commit1d5a2d6c1d8384a75ef441fadf35ac6d9ab060b6
tree6d8d1235da6271bea5506b6564205583a4772305
parent340aa63bffe5496f628801e0fe942aaa333cfdc0
tipc: guarantee group unicast doesn't bypass group broadcast

Group unicast messages don't follow the same path as broadcast messages,
and there is a high risk that unicasts sent from a socket might bypass
previously sent broadcasts from the same socket.

We fix this by letting all unicast messages carry the sequence number of
the next sent broadcast from the same node, but without updating this
number at the receiver. This way, a receiver can check and if necessary
re-order such messages before they are added to the socket receive buffer.

Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Acked-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/group.c
net/tipc/socket.c