Skip to content

udp: small changes on receive path

Eric Dumazet netdev 1 version 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

  1. v1 Latest4 patches 6 repliesApplied 4/4

Patches in v1 All 4 applied

#Subject and filesSizeRepliesApplied
1/4udp: annotate data-race in __udp_enqueue_schedule_skb()net/ipv4/udp.c+6 -52 repliesApplied
2/4udp: relax atomic operation on sk->sk_rmem_allocnet/ipv4/udp.c+1 -60 repliesApplied
3/4udp: avoid calling sock_def_readable() if possiblenet/ipv4/udp.c+11 -34 repliesApplied
4/4net: add sk_wake_async_rcu() helpercrypto/af_alg.c include/net/sock.h net/atm/common.c +8 more+21 -150 repliesApplied

Reviews trailers per patch

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

PatchWillem de BruijnPaolo Abeni
1/4
2/4
3/4R-b A-b
4/4

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 net-next 0/4] udp: small changes on receive path

This series is based on an observation I made in UDP receive path.

The sock_def_readable() costs are pretty high, especially when epoll is used to generate EPOLLIN events.

First patch annotates races on sk->sk_rcvbuf reads.

Second patch replaces an atomic_add_return()
with a less expensive atomic_add()

Third patch avoids calling sock_def_readable() when possible.

Fourth patch adds sk_wake_async_rcu() to get better inlining and code generation.

Eric Dumazet (4):
udp: annotate data-race in __udp_enqueue_schedule_skb()
udp: relax atomic operation on sk->sk_rmem_alloc
udp: avoid calling sock_def_readable() if possible
net: add sk_wake_async_rcu() helper

 crypto/af_alg.c      |  4 ++--
 include/net/sock.h   |  6 ++++++
 net/atm/common.c     |  2 +-
 net/core/sock.c      |  8 ++++----
 net/dccp/output.c    |  2 +-
 net/ipv4/udp.c       | 32 ++++++++++++++++++--------------
 net/iucv/af_iucv.c   |  2 +-
 net/rxrpc/af_rxrpc.c |  2 +-
 net/sctp/socket.c    |  2 +-
 net/smc/smc_rx.c     |  4 ++--
 net/unix/af_unix.c   |  2 +-
 11 files changed, 38 insertions(+), 28 deletions(-)
Signature · 1 line
2.44.0.396.g6e790dbe36-goog