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)
commit7439d687b79cbbd971c6a170be9aefda4a564be4
tree0c3bf91c5429a40d22f78ec7aaa75e052370fd29
parent724cfd2ee8aa12e933253bb7a8bccb743a6fa6ef
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