Skip to content

ppp: improve receive path performance

Qingfang Deng linux-ppp lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ppp: convert rlock to rwlock to improve RX concurrencydrivers/net/ppp/ppp_generic.c+8 -65 replies
2/3pppoe: bypass sk_receive_skb for PPPOX_BOUND socketsdrivers/net/ppp/pppoe.c+9 -10 replies
3/3ppp: synchronize netstats updatesdrivers/net/ppp/ppp_generic.c+9 -91 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH net-next 0/3] ppp: improve receive path performance

This patch series improves the performance of the PPPoE receive paths.

Patch 1 converts the ppp->rlock from a spinlock to a read-write lock, allowing concurrent receive-side processing when no state is being modified.

Patch 2 optimizes PPPoE receive performance by bypassing sk_receive_skb() when the socket is in the PPPOX_BOUND state, avoiding unnecessary socket locking and overhead.

Patch 3 synchronizes all updates to net_device->stats using DEV_STATS_INC() to prevent data races now that the receive path may run on multiple CPUs.

Qingfang Deng (3):
ppp: convert rlock to rwlock to improve RX concurrency
pppoe: call ppp_input directly when PPPOX_BOUND
ppp: synchronize netstats updates

 drivers/net/ppp/ppp_generic.c | 32 +++++++++++++++++---------------
 drivers/net/ppp/pppoe.c       | 10 +++++++++-
 2 files changed, 26 insertions(+), 16 deletions(-)
Signature · 1 line
2.43.0