]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: avoid a few atomic ops in the rx path
authorPaolo Abeni <pabeni@redhat.com>
Fri, 27 Nov 2020 10:10:26 +0000 (11:10 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 1 Dec 2020 01:55:23 +0000 (17:55 -0800)
commit0cb4c50bc85505d790871475b57d446ec55a9c05
tree0c3bf91c5429a40d22f78ec7aaa75e052370fd29
parent34b5fd1b9a92566cf181fd0cbaa93640c3969ffa
mptcp: avoid a few atomic ops in the rx path

Extending the data_lock scope in mptcp_incoming_option
we can use that to protect both snd_una and wnd_end.
In the typical case, we will have a single atomic op instead of 2

Acked-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/mptcp_diag.c
net/mptcp/options.c
net/mptcp/protocol.c
net/mptcp/protocol.h