tcp: do not increment BeyondWindow MIB for old seq
authorPaolo Abeni <pabeni@redhat.com>
Mon, 21 Jul 2025 17:20:22 +0000 (19:20 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 23 Jul 2025 01:21:15 +0000 (18:21 -0700)
commitb115c7758802f8d14ba8797e0ba979c47d78f310
treef01f7761091af9c48eeac8295d838ca67c984384
parent972ca7a3bc9a136b15ba698713b056a4900e2634
tcp: do not increment BeyondWindow MIB for old seq

The mentioned MIB is currently incremented even when a packet
with an old sequence number (i.e. a zero window probe) is received,
which is IMHO misleading.

Explicitly restrict such MIB increment at the relevant events.

Fixes: 6c758062c64d ("tcp: add LINUX_MIB_BEYOND_WINDOW")
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Link: https://patch.msgid.link/20d147292eb4b13b6535e0ad6f56be64d9c330d3.1753118029.git.pabeni@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/tcp_input.c