]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: add SK_WMEM_ALLOC_BIAS constant
authorEric Dumazet <edumazet@google.com>
Mon, 13 Oct 2025 15:22:31 +0000 (15:22 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 15 Oct 2025 16:04:21 +0000 (09:04 -0700)
commit6ddb811a579f87b8506344020002d396f814f7c8
tree63816b8df0dfd74585709b6d8f28a0ca8b2a57e8
parent1c51450f1afff1e7419797720df3fbd9ccbf610c
net: add SK_WMEM_ALLOC_BIAS constant

sk->sk_wmem_alloc is initialized to 1, and sk_wmem_alloc_get()
takes care of this initial value.

Add SK_WMEM_ALLOC_BIAS define to not spread this magic value.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Neal Cardwell <ncardwell@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20251013152234.842065-2-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/sock.h
net/atm/common.c
net/core/sock.c