]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: Add a missing case of TIPC_DIRECT_MSG type
authorHoang Le <hoang.h.le@dektech.com.au>
Thu, 26 Mar 2020 02:50:29 +0000 (09:50 +0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jan 2023 10:42:06 +0000 (11:42 +0100)
commit3f88104b11d1922de6b06c47cc805f07a6318551
tree18698730fe436a967b9d3916c21d38f861538d05
parent6b1a657f1a5f9c2cb35c09f60256006493614b9d
tipc: Add a missing case of TIPC_DIRECT_MSG type

commit e2392ec2c46127665b5b995aaa88dca381dc63d3 upstream.

In the commit 5248c6f8694f
("tipc: improve throughput between nodes in netns"), we're missing a check
to handle TIPC_DIRECT_MSG type, it's still using old sending mechanism for
this message type. So, throughput improvement is not significant as
expected.

Besides that, when sending a large message with that type, we're also
handle wrong receiving queue, it should be enqueued in socket receiving
instead of multicast messages.

Fix this by adding the missing case for TIPC_DIRECT_MSG.

Fixes: 5248c6f8694f ("tipc: improve throughput between nodes in netns")
Reported-by: Tuong Lien <tuong.t.lien@dektech.com.au>
Signed-off-by: Hoang Le <hoang.h.le@dektech.com.au>
Acked-by: Jon Maloy <jmaloy@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/tipc/msg.h
net/tipc/node.c
net/tipc/socket.c