Skip to content

RFC net: optimize TX throughput and efficiency

Eric Dumazet netdev syzbot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5net: add add indirect call wrapper in skb_release_head_state()net/core/skbuff.c+3 -14 replies
2/5net/sched: act_mirred: add loop detectioninclude/linux/netdevice_xmit.h net/sched/act_mirred.c+31 -402 replies
3/5Revert "net/sched: Fix mirred deadlock on device recursion"include/net/sch_generic.h net/core/dev.c net/sched/sch_generic.c+0 -90 replies
4/5net: sched: claim one cache line in Qdiscinclude/net/sch_generic.h+7 -110 replies
5/5net: dev_queue_xmit() llist adoptioninclude/net/sch_generic.h net/core/dev.c net/sched/sch_generic.c+52 -429 replies

Reviews trailers per patch

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

PatchToke Høiland-Jørgensen
1/5
2/5
3/5
4/5
5/5R-b

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

Read the v1 thread

Cover letter [PATCH RFC net-next 0/5] net: optimize TX throughput and efficiency

In this series, I replace the busylock spinlock we have in __dev_queue_xmit() and use lockless list (llist) to reduce spinlock contention to the minimum.

Idea is that only one cpu might spin on the qdisc spinlock, while others simply add their skb in the llist.

After this series, we get a 300 % (4x) improvement on heavy TX workloads, sending twice the number of packets per second, for half the cpu cycles.

Eric Dumazet (5):
net: add add indirect call wrapper in skb_release_head_state() net/sched: act_mirred: add loop detection
Revert "net/sched: Fix mirred deadlock on device recursion"
net: sched: claim one cache line in Qdisc
net: dev_queue_xmit() llist adoption

 include/linux/netdevice_xmit.h |  9 +++-
 include/net/sch_generic.h      | 23 ++++-----
 net/core/dev.c                 | 91 ++++++++++++++++++----------------
 net/core/skbuff.c              |  4 +-
 net/sched/act_mirred.c         | 62 +++++++++--------------
 net/sched/sch_generic.c        |  7 ---
 6 files changed, 93 insertions(+), 103 deletions(-)
Signature · 1 line
2.51.0.618.g983fd99d29-goog