]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: constify sk_skb_reason_drop() sock parameter
authorEric Dumazet <edumazet@google.com>
Mon, 11 May 2026 07:23:08 +0000 (07:23 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 13 May 2026 01:31:11 +0000 (18:31 -0700)
commit5c4b709b5fc1929ed3e9d3ef48c089d7df8b8dff
treedfe29d17509953ac30db49fd9dcc3602afa30f1d
parentb588019e85f490696bf19f0747e93f14b1563927
net: constify sk_skb_reason_drop() sock parameter

sk_skb_reason_drop() does not change sock parameter, make it
const so that we can call it from TCP stack without a cast
on a (const) listener socket.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20260511072310.1094859-2-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/skbuff.h
include/trace/events/skb.h
net/core/drop_monitor.c
net/core/skbuff.c