mbox series

[v2,net-next,0/3] tcp: add a new PAWS_ACK drop reason

Message ID 20250113135558.3180360-1-edumazet@google.com (mailing list archive)
Headers show
Series tcp: add a new PAWS_ACK drop reason | expand

Message

Eric Dumazet Jan. 13, 2025, 1:55 p.m. UTC
Current TCP_RFC7323_PAWS drop reason is too generic and can
cause confusion.

One common source for these drops are ACK packets coming too late.

A prior packet with payload already changed tp->rcv_nxt.

Add TCP_RFC7323_PAWS_ACK new drop reason, and do not
generate a DUPACK for such old ACK.

v2:
- Also add matching LINUX_MIB_PAWS_OLD_ACK SNMP counter.
- fix a typo in one changelog.

Eric Dumazet (3):
  tcp: add drop_reason support to tcp_disordered_ack()
  tcp: add TCP_RFC7323_PAWS_ACK drop reason
  tcp: add LINUX_MIB_PAWS_OLD_ACK SNMP counter

 include/net/dropreason-core.h |  6 +++
 include/uapi/linux/snmp.h     |  1 +
 net/ipv4/proc.c               |  1 +
 net/ipv4/tcp_input.c          | 84 +++++++++++++++++++++--------------
 4 files changed, 59 insertions(+), 33 deletions(-)