Skip to content

net: lockless skb_attempt_defer_free()

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 Latest3 patches 0 repliesApplied 3/3
  2. v13 patches 7 repliesSuperseded

Patches in v2 All 3 applied

#Subject and filesSizeRepliesApplied
1/3net: make softnet_data.defer_count an atomicinclude/linux/netdevice.h net/core/dev.c net/core/skbuff.c+4 -60 repliesApplied
2/3net: use llist for sd->defer_listinclude/linux/netdevice.h net/core/dev.c net/core/skbuff.c+17 -240 repliesApplied
3/3net: add NUMA awareness to skb_attempt_defer_free()include/linux/netdevice.h include/net/hotdata.h net/core/dev.c +2 more+37 -220 repliesApplied

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchJason XingKuniyuki Iwashima
1/3R-b R-b
2/3R-b R-b
3/3R-b R-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/3] net: lockless skb_attempt_defer_free()

Platforms with many cpus and relatively slow inter connect show a significant spinlock contention in skb_attempt_defer_free().

This series refactors this infrastructure to be NUMA aware, and lockless.

Tested on various platforms, including AMD Zen 2/3/4 and Intel Granite Rapids, showing significant cost reductions under network stress (more than 20 Mpps).

Eric Dumazet (3):
net: make softnet_data.defer_count an atomic
net: use llist for sd->defer_list
net: add NUMA awareness to skb_attempt_defer_free()

 include/linux/netdevice.h |  6 +-----
 include/net/hotdata.h     |  7 +++++++
 net/core/dev.c            | 41 ++++++++++++++++++++++-----------------
 net/core/dev.h            |  2 +-
 net/core/skbuff.c         | 24 +++++++++++------------
 5 files changed, 43 insertions(+), 37 deletions(-)
Signature · 1 line
2.51.0.536.g15c5d4f767-goog