]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net_sched: sch_fq: prepare for TIME_WAIT sockets
authorEric Dumazet <edumazet@google.com>
Thu, 10 Oct 2024 17:48:14 +0000 (17:48 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Oct 2024 00:39:36 +0000 (17:39 -0700)
commitbc43a3c83cad46a27d6e3bf869acdd926bbe79ad
tree1d6be7db5eac427b79b700e66340db97b86fb1e5
parent78e2baf3d96edd21c6f26d8afc0e68d02ec2c51c
net_sched: sch_fq: prepare for TIME_WAIT sockets

TCP stack is not attaching skb to TIME_WAIT sockets yet,
but we would like to allow this in the future.

Add sk_listener_or_tw() helper to detect the three states
that FQ needs to take care.

Like NEW_SYN_RECV, TIME_WAIT are not full sockets and
do not contain sk->sk_pacing_status, sk->sk_pacing_rate.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Brian Vazquez <brianvv@google.com>
Link: https://patch.msgid.link/20241010174817.1543642-3-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/sock.h
net/sched/sch_fq.c