]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: add skb_set_owner_edemux() helper
authorEric Dumazet <edumazet@google.com>
Thu, 10 Oct 2024 17:48:15 +0000 (17:48 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Oct 2024 00:39:36 +0000 (17:39 -0700)
commit5ced52fa8f0dc23adb067f7b8a009a5ee051efb7
treef9c567b91223fee5b5af62f82d8fa5846600a996
parentbc43a3c83cad46a27d6e3bf869acdd926bbe79ad
net: add skb_set_owner_edemux() helper

This can be used to attach a socket to an skb,
taking a reference on sk->sk_refcnt.

This helper might be a NOP if sk->sk_refcnt is zero.

Use it from tcp_make_synack().

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Brian Vazquez <brianvv@google.com>
Link: https://patch.msgid.link/20241010174817.1543642-4-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/sock.h
net/core/sock.c
net/ipv4/tcp_output.c