udp: small changes on receive path
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
Patches in v1 All 4 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | udp: annotate data-race in __udp_enqueue_schedule_skb()net/ | +6 | 2 replies | Applied |
| 2/4 | udp: relax atomic operation on sk->sk_rmem_allocnet/ | +1 | 0 replies | Applied |
| 3/4 | udp: avoid calling sock_def_readable() if possiblenet/ | +11 | 4 replies | Applied |
| 4/4 | net: add sk_wake_async_rcu() helpercrypto/ include/ net/ +8 more | +21 | 0 replies | Applied |
Reviews trailers per patch
1 of 4 patches has a Reviewed-by or Acked-by.
| Patch | Willem de Bruijn | Paolo Abeni |
|---|---|---|
| 1/4 | ||
| 2/4 | ||
| 3/4 | R-b | A-b |
| 4/4 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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