]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: change sk_filter_reason() to return the reason by value
authorEric Dumazet <edumazet@google.com>
Thu, 9 Apr 2026 14:56:22 +0000 (14:56 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sun, 12 Apr 2026 21:30:25 +0000 (14:30 -0700)
commitc78bcbd51976f123909e5c2baf8cebb699453c2f
treec692db5a1fec53a26fc186187714a00322c0e2be
parent734ea7e324ad1cee2a21f909f756b5e2d903a224
net: change sk_filter_reason() to return the reason by value

sk_filter_trim_cap will soon return the reason by value,
do the same for sk_filter_reason().

$ scripts/bloat-o-meter -t vmlinux.old vmlinux.new
add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-21 (-21)
Function                                     old     new   delta
sock_queue_rcv_skb_reason                    128     126      -2
tun_net_xmit                                1146    1127     -19
Total: Before=29722661, After=29722640, chg -0.00%

Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20260409145625.2306224-4-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/tun.c
include/linux/filter.h
net/core/sock.c