]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tcp: return a drop_reason from tcp_add_backlog()
authorEric Dumazet <edumazet@google.com>
Thu, 9 Apr 2026 10:11:47 +0000 (10:11 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sun, 12 Apr 2026 16:07:53 +0000 (09:07 -0700)
commitf5148298b0fe18cc91f07584bd0f75cbace3cece
tree9e985ad0d20e48bdfd8fac2de06adc865bd3c822
parent4431c239a3010c12147d166c409ad6867d08f2f1
tcp: return a drop_reason from tcp_add_backlog()

Part of a stack canary removal from tcp_v{4,6}_rcv().

Return a drop_reason instead of a boolean, so that we no longer
have to pass the address of a local variable.

$ scripts/bloat-o-meter -t vmlinux.old vmlinux.new
add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-37 (-37)
Function                                     old     new   delta
tcp_v6_rcv                                  3133    3129      -4
tcp_v4_rcv                                  3206    3202      -4
tcp_add_backlog                             1281    1252     -29
Total: Before=25567186, After=25567149, chg -0.00%

Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20260409101147.1642967-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/tcp.h
net/ipv4/tcp_ipv4.c
net/ipv6/tcp_ipv6.c