diff options
author | 2025-02-18 19:36:15 +0100 | |
---|---|---|
committer | 2025-02-19 19:05:28 -0800 | |
commit | 6639498ed85fdb135dfb0dfbcc0f540b2d4ad6a6 (patch) | |
tree | 29f7be013abaf96a77cc353883b69dabd495c649 /net/mptcp/fastopen.c | |
parent | mptcp: move the whole rx path under msk socket lock protection (diff) | |
download | wireguard-linux-6639498ed85fdb135dfb0dfbcc0f540b2d4ad6a6.tar.xz wireguard-linux-6639498ed85fdb135dfb0dfbcc0f540b2d4ad6a6.zip |
mptcp: cleanup mem accounting
After the previous patch, updating sk_forward_memory is cheap and
we can drop a lot of complexity from the MPTCP memory accounting,
removing the custom fwd mem allocations for rmem.
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20250218-net-next-mptcp-rx-path-refactor-v1-4-4a47d90d7998@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/mptcp/fastopen.c')
-rw-r--r-- | net/mptcp/fastopen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mptcp/fastopen.c b/net/mptcp/fastopen.c index f85ad19f3dd6..b9e451197902 100644 --- a/net/mptcp/fastopen.c +++ b/net/mptcp/fastopen.c @@ -50,7 +50,7 @@ void mptcp_fastopen_subflow_synack_set_params(struct mptcp_subflow_context *subf mptcp_data_lock(sk); DEBUG_NET_WARN_ON_ONCE(sock_owned_by_user_nocheck(sk)); - mptcp_set_owner_r(skb, sk); + skb_set_owner_r(skb, sk); __skb_queue_tail(&sk->sk_receive_queue, skb); mptcp_sk(sk)->bytes_received += skb->len; |