]> git.ipfire.org Git - thirdparty/linux.git/commit
tcp: add a drop_reason pointer to tcp_check_req()
authorEric Dumazet <edumazet@google.com>
Sat, 1 Mar 2025 20:14:19 +0000 (20:14 +0000)
committerJakub Kicinski <kuba@kernel.org>
Mon, 3 Mar 2025 23:44:19 +0000 (15:44 -0800)
commite34100c2ecbb79a7d69474eb2f58545bb9926a5f
tree69677885f643f4b332a2ac6d2337fa867a4c12e2
parent3424291dd242c4fe9f5cff236f73beef7b5c4909
tcp: add a drop_reason pointer to tcp_check_req()

We want to add new drop reasons for packets dropped in 3WHS in the
following patches.

tcp_rcv_state_process() has to set reason to TCP_FASTOPEN,
because tcp_check_req() will conditionally overwrite the drop_reason.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Jason Xing <kerneljasonxing@gmail.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://patch.msgid.link/20250301201424.2046477-2-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/tcp.h
net/ipv4/tcp_input.c
net/ipv4/tcp_ipv4.c
net/ipv4/tcp_minisocks.c
net/ipv6/tcp_ipv6.c