Message ID | 20240213140508.10878-2-kerneljasonxing@gmail.com (mailing list archive) |
---|---|
State | Changes Requested |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | introduce dropreasons in tcp receive path | expand |
Context | Check | Description |
---|---|---|
netdev/tree_selection | success | Clearly marked for net-next, async |
netdev/apply | fail | Patch does not apply to net-next |
On 2/13/24 7:05 AM, Jason Xing wrote: > diff --git a/include/net/dropreason-core.h b/include/net/dropreason-core.h > index 065caba42b0b..19ba900eae0e 100644 > --- a/include/net/dropreason-core.h > +++ b/include/net/dropreason-core.h > @@ -31,6 +31,7 @@ > FN(TCP_AOFAILURE) \ > FN(SOCKET_BACKLOG) \ > FN(TCP_FLAGS) \ > + FN(TCP_ABORTONDATA) \ for readability, how about TCP_ABORT_ON_DATA (yes, I know the MIB entry is LINUX_MIB_TCPABORTONDATA; we can improve readability with new changes).
On Tue, Feb 13, 2024 at 11:49 PM David Ahern <dsahern@kernel.org> wrote: > > On 2/13/24 7:05 AM, Jason Xing wrote: > > diff --git a/include/net/dropreason-core.h b/include/net/dropreason-core.h > > index 065caba42b0b..19ba900eae0e 100644 > > --- a/include/net/dropreason-core.h > > +++ b/include/net/dropreason-core.h > > @@ -31,6 +31,7 @@ > > FN(TCP_AOFAILURE) \ > > FN(SOCKET_BACKLOG) \ > > FN(TCP_FLAGS) \ > > + FN(TCP_ABORTONDATA) \ > > for readability, how about TCP_ABORT_ON_DATA (yes, I know the MIB entry > is LINUX_MIB_TCPABORTONDATA; we can improve readability with new changes). Thanks for the review. Will do it :) > >
diff --git a/include/net/dropreason-core.h b/include/net/dropreason-core.h index 065caba42b0b..19ba900eae0e 100644 --- a/include/net/dropreason-core.h +++ b/include/net/dropreason-core.h @@ -31,6 +31,7 @@ FN(TCP_AOFAILURE) \ FN(SOCKET_BACKLOG) \ FN(TCP_FLAGS) \ + FN(TCP_ABORTONDATA) \ FN(TCP_ZEROWINDOW) \ FN(TCP_OLD_DATA) \ FN(TCP_OVERWINDOW) \ @@ -38,6 +39,7 @@ FN(TCP_RFC7323_PAWS) \ FN(TCP_OLD_SEQUENCE) \ FN(TCP_INVALID_SEQUENCE) \ + FN(TCP_INVALID_ACK_SEQUENCE) \ FN(TCP_RESET) \ FN(TCP_INVALID_SYN) \ FN(TCP_CLOSE) \ @@ -207,6 +209,11 @@ enum skb_drop_reason { SKB_DROP_REASON_SOCKET_BACKLOG, /** @SKB_DROP_REASON_TCP_FLAGS: TCP flags invalid */ SKB_DROP_REASON_TCP_FLAGS, + /** + * @SKB_DROP_REASON_TCP_ABORTONDATA: abort on data, corresponding to + * LINUX_MIB_TCPABORTONDATA + */ + SKB_DROP_REASON_TCP_ABORTONDATA, /** * @SKB_DROP_REASON_TCP_ZEROWINDOW: TCP receive window size is zero, * see LINUX_MIB_TCPZEROWINDOWDROP @@ -231,13 +238,19 @@ enum skb_drop_reason { SKB_DROP_REASON_TCP_OFOMERGE, /** * @SKB_DROP_REASON_TCP_RFC7323_PAWS: PAWS check, corresponding to - * LINUX_MIB_PAWSESTABREJECTED + * LINUX_MIB_PAWSESTABREJECTED, LINUX_MIB_PAWSACTIVEREJECTED */ SKB_DROP_REASON_TCP_RFC7323_PAWS, /** @SKB_DROP_REASON_TCP_OLD_SEQUENCE: Old SEQ field (duplicate packet) */ SKB_DROP_REASON_TCP_OLD_SEQUENCE, /** @SKB_DROP_REASON_TCP_INVALID_SEQUENCE: Not acceptable SEQ field */ SKB_DROP_REASON_TCP_INVALID_SEQUENCE, + /** + * @SKB_DROP_REASON_TCP_INVALID_ACK_SEQUENCE: Not acceptable ACK SEQ + * field. because of ack sequence is not in the window between snd_una + * and snd_nxt + */ + SKB_DROP_REASON_TCP_INVALID_ACK_SEQUENCE, /** @SKB_DROP_REASON_TCP_RESET: Invalid RST packet */ SKB_DROP_REASON_TCP_RESET, /**