Skip to content

inet: add drop monitor support

Eric Dumazet netdev 2 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 0 repliesApplied 5/5
  2. v15 patches 2 repliesSuperseded

Patches in v2 All 5 applied

#Subject and filesSizeRepliesApplied
1/5net: dropreason: add SKB_CONSUMED reasoninclude/net/dropreason.h net/core/skbuff.c+7 -10 repliesApplied
2/5net: dropreason: propagate drop_reason to skb_release_data()net/core/skbuff.c+12 -120 repliesApplied
3/5net: dropreason: add SKB_DROP_REASON_DUP_FRAGinclude/net/dropreason.h net/ipv4/ip_fragment.c net/ipv6/netfilter/nf_conntrack_reasm.c +1 more+22 -90 repliesApplied
4/5net: dropreason: add SKB_DROP_REASON_FRAG_REASM_TIMEOUTinclude/net/dropreason.h include/net/inet_frag.h include/net/ipv6_frag.h +2 more+24 -80 repliesApplied
5/5net: dropreason: add SKB_DROP_REASON_FRAG_TOO_FARinclude/net/dropreason.h net/ipv4/ip_fragment.c+7 -10 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 net-next 0/5] inet: add drop monitor support

I recently tried to analyse flakes in ip_defrag selftest. This failed miserably.

IPv4 and IPv6 reassembly units are causing false kfree_skb() notifications. It is time to deal with this issue.

First two patches are changing core networking to better deal with eventual skb frag_list chains, in respect of kfree_skb/consume_skb status.

Last three patches are adding three new drop reasons, and make sure skbs that have been reassembled into a large datagram are no longer viewed as dropped ones.

After this, understanding why ip_defrag selftest is flaky is possible using standard drop monitoring tools.

v2: fix kdoc warning (Jakub)

Eric Dumazet (5):
net: dropreason: add SKB_CONSUMED reason
net: dropreason: propagate drop_reason to skb_release_data()
net: dropreason: add SKB_DROP_REASON_DUP_FRAG
net: dropreason: add SKB_DROP_REASON_FRAG_REASM_TIMEOUT
net: dropreason: add SKB_DROP_REASON_FRAG_TOO_FAR

 include/net/dropreason.h                | 14 ++++++++++++
 include/net/inet_frag.h                 |  6 ++++-
 include/net/ipv6_frag.h                 |  3 ++-
 net/core/skbuff.c                       | 30 ++++++++++++++-----------
 net/ipv4/inet_fragment.c                | 14 ++++++++----
 net/ipv4/ip_fragment.c                  | 19 +++++++++++-----
 net/ipv6/netfilter/nf_conntrack_reasm.c |  2 +-
 net/ipv6/reassembly.c                   | 13 +++++++----
 8 files changed, 71 insertions(+), 30 deletions(-)
Signature · 1 line
2.38.1.273.g43a17bfeac-goog