mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 10:04:04 +02:00
tcp: increase LINUX_MIB_BEYOND_WINDOW for SKB_DROP_REASON_TCP_OVERWINDOW
Since commit 9ca48d616e ("tcp: do not accept packets beyond
window"), the path leading to SKB_DROP_REASON_TCP_OVERWINDOW in
tcp_data_queue() is probably dead. However, it can be reached now when
tcp_max_receive_window() is larger than tcp_receive_window(). In that
case, increment LINUX_MIB_BEYOND_WINDOW as done in tcp_sequence().
Signed-off-by: Simon Baatz <gmbnomis@gmail.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20260309-tcp_rfc7323_retract_wnd_rfc-v3-3-4c7f96b1ec69@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
81714374a2
commit
e2b9c52a2b
|
|
@ -5678,6 +5678,7 @@ static void tcp_data_queue(struct sock *sk, struct sk_buff *skb)
|
|||
if (!before(TCP_SKB_CB(skb)->seq,
|
||||
tp->rcv_nxt + tcp_receive_window(tp))) {
|
||||
reason = SKB_DROP_REASON_TCP_OVERWINDOW;
|
||||
NET_INC_STATS(sock_net(sk), LINUX_MIB_BEYOND_WINDOW);
|
||||
goto out_of_window;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user