Skip to content

tcp: receive path optimizations

Eric Dumazet netdev 2 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest10 patches 0 repliesApplied 10/10
  2. v19 patches 1 replySuperseded

Patches in v2 All 10 applied

#Subject and filesSizeRepliesApplied
1/10tcp: move inet->rx_dst_ifindex to sk->sk_rx_dst_ifindexinclude/net/inet_sock.h include/net/sock.h net/ipv4/tcp_ipv4.c +1 more+10 -80 repliesApplied
2/10ipv6: move inet6_sk(sk)->rx_dst_cookie to sk->sk_rx_dst_cookieinclude/linux/ipv6.h include/net/sock.h net/ipv6/tcp_ipv6.c +1 more+7 -60 repliesApplied
3/10net: avoid dirtying sk->sk_napi_idinclude/net/busy_poll.h+2 -10 repliesApplied
4/10net: avoid dirtying sk->sk_rx_queue_mappinginclude/net/sock.h+2 -40 repliesApplied
5/10net: annotate accesses to sk->sk_rx_queue_mappinginclude/net/sock.h+7 -30 repliesApplied
6/10ipv6: annotate data races around np->min_hopcountnet/ipv6/ipv6_sockglue.c net/ipv6/tcp_ipv6.c+8 -30 repliesApplied
7/10ipv6: guard IPV6_MINHOPCOUNT with a static keyinclude/net/ipv6.h net/ipv6/ipv6_sockglue.c net/ipv6/tcp_ipv6.c+20 -80 repliesApplied
8/10ipv4: annotate data races arount inet->min_ttlnet/ipv4/ip_sockglue.c net/ipv4/tcp_ipv4.c+9 -30 repliesApplied
9/10ipv4: guard IP_MINTTL with a static keyinclude/net/ip.h net/ipv4/ip_sockglue.c net/ipv4/tcp_ipv4.c+20 -80 repliesApplied
10/10ipv6/tcp: small drop monitor changesnet/ipv6/tcp_ipv6.c+2 -20 repliesApplied

Reviews trailers per patch

9 of 10 patches have a Reviewed-by or Acked-by.

PatchSoheil Hassas Yeganeh
1/10A-b
2/10A-b
3/10A-b
4/10A-b
5/10
6/10A-b
7/10A-b
8/10A-b
9/10A-b
10/10A-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 00/10] tcp: receive path optimizations

From: Eric Dumazet <[email protected]>

This series aims to reduce cache line misses in RX path.

I am still working on better cache locality in tcp_sock but this will wait few more weeks.

v2: Resent because v1 seems to have been lost.

    Added Soheil Acked-by, and added "net: annotate accesses to sk->sk_rx_queue_mapping"

Eric Dumazet (10):
tcp: move inet->rx_dst_ifindex to sk->sk_rx_dst_ifindex
ipv6: move inet6_sk(sk)->rx_dst_cookie to sk->sk_rx_dst_cookie
net: avoid dirtying sk->sk_napi_id
net: avoid dirtying sk->sk_rx_queue_mapping
net: annotate accesses to sk->sk_rx_queue_mapping
ipv6: annotate data races around np->min_hopcount
ipv6: guard IPV6_MINHOPCOUNT with a static key
ipv4: annotate data races arount inet->min_ttl
ipv4: guard IP_MINTTL with a static key
ipv6/tcp: small drop monitor changes

 include/linux/ipv6.h     |  1 -
 include/net/busy_poll.h  |  3 ++-
 include/net/inet_sock.h  |  3 +--
 include/net/ip.h         |  2 ++
 include/net/ipv6.h       |  1 +
 include/net/sock.h       | 21 ++++++++++++++-------
 net/ipv4/ip_sockglue.c   | 11 ++++++++++-
 net/ipv4/tcp_ipv4.c      | 25 ++++++++++++++++---------
 net/ipv6/ipv6_sockglue.c | 11 ++++++++++-
 net/ipv6/tcp_ipv6.c      | 35 +++++++++++++++++++++--------------
 net/ipv6/udp.c           |  4 ++--
 11 files changed, 79 insertions(+), 38 deletions(-)
Signature · 1 line
2.33.0.1079.g6e70778dc9-goog