]> git.hungrycats.org Git - linux/commit
mptcp: implement TCP_NOTSENT_LOWAT support
authorPaolo Abeni <pabeni@redhat.com>
Fri, 1 Mar 2024 17:43:46 +0000 (18:43 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2024 07:49:28 +0000 (09:49 +0200)
commiteae2fa7eff6443cc5da251e6d1d1f3e537accd6b
tree1efb1e47a532fa230896e922b44c7f7d9a552d10
parentdeada0909382a3c79c2c1f14e68347e07b48a408
mptcp: implement TCP_NOTSENT_LOWAT support

[ Upstream commit 29b5e5ef87397963ca38d3eec0d296ad1c979bbc ]

Add support for such socket option storing the user-space provided
value in a new msk field, and using such data to implement the
_mptcp_stream_memory_free() helper, similar to the TCP one.

To avoid adding more indirect calls in the fast path, open-code
a variant of sk_stream_memory_free() in mptcp_sendmsg() and add
direct calls to the mptcp stream memory free helper where possible.

Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/464
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Stable-dep-of: bd11dc4fb969 ("mptcp: fix full TCP keep-alive support")
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mptcp/protocol.c
net/mptcp/protocol.h
net/mptcp/sockopt.c