mbox series

[net-next,0/9] tcp: receive path optimizations

Message ID 20211021162253.333616-1-eric.dumazet@gmail.com (mailing list archive)
Headers show
Series tcp: receive path optimizations | expand

Message

Eric Dumazet Oct. 21, 2021, 4:22 p.m. UTC
From: Eric Dumazet <edumazet@google.com>

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.

Eric Dumazet (9):
  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
  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       | 11 +++++++----
 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, 72 insertions(+), 35 deletions(-)

Comments

Soheil Hassas Yeganeh Oct. 21, 2021, 5:01 p.m. UTC | #1
On Thu, Oct 21, 2021 at 12:23 PM Eric Dumazet <eric.dumazet@gmail.com> wrote:
>
> From: Eric Dumazet <edumazet@google.com>
>
> 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.
>
> Eric Dumazet (9):
>   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
>   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

Acked-by: Soheil Hassas Yeganeh <soheil@google.com>

Very nice patch series!  The IP_MINTTL patch is an excellent find. I
wonder how many more of these we have. Thank you, Eric!

>  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       | 11 +++++++----
>  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, 72 insertions(+), 35 deletions(-)
>
> --
> 2.33.0.1079.g6e70778dc9-goog
>