Skip to content

inet: frags: fully use RCU

Eric Dumazet netdev 2 versions – Applied

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 1 replyApplied 4/4
  2. v14 patches 1 replySuperseded

Patches in v2 All 4 applied

#Subject and filesSizeRepliesApplied
1/4inet: frags: add inet_frag_putn() helperinclude/net/inet_frag.h include/net/ipv6_frag.h net/ieee802154/6lowpan/reassembly.c +4 more+14 -120 repliesApplied
2/4ipv4: frags: remove ipq_put()net/ipv4/ip_fragment.c+4 -110 repliesApplied
3/4inet: frags: change inet_frag_kill() to defer refcount updatesinclude/net/inet_frag.h include/net/ipv6_frag.h net/ieee802154/6lowpan/reassembly.c +4 more+53 -490 repliesApplied
4/4inet: frags: save a pair of atomic operations in reassemblynet/ieee802154/6lowpan/reassembly.c net/ipv4/inet_fragment.c net/ipv4/ip_fragment.c +2 more+24 -181 replyApplied

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchJacob Keller
1/4
2/4
3/4
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 net-next 0/4] inet: frags: fully use RCU

While inet reassembly uses RCU, it is acquiring/releasing a refcount on struct inet_frag_queue in fast path, for no good reason.

This was mentioned in one patch changelog seven years ago :/

This series is removing these refcount changes, by extending RCU sections.

v2: fix a compile error in net/ieee802154/6lowpan/reassembly.c (kbot)

Eric Dumazet (4):
inet: frags: add inet_frag_putn() helper
ipv4: frags: remove ipq_put()
inet: frags: change inet_frag_kill() to defer refcount updates
inet: frags: save a pair of atomic operations in reassembly

 include/net/inet_frag.h                 |  6 ++--
 include/net/ipv6_frag.h                 |  5 +--
 net/ieee802154/6lowpan/reassembly.c     | 27 ++++++++------
 net/ipv4/inet_fragment.c                | 31 ++++++++--------
 net/ipv4/ip_fragment.c                  | 48 ++++++++++---------------
 net/ipv6/netfilter/nf_conntrack_reasm.c | 27 ++++++++------
 net/ipv6/reassembly.c                   | 29 +++++++--------
 7 files changed, 89 insertions(+), 84 deletions(-)
Signature · 1 line
2.49.0.rc0.332.g42c0ae87b1-goog