Skip to content

ipv6: tcp: no longer rebuild fl6 at each transmit

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 Latest7 patches 7 repliesApplied 7/7

Patches in v1 All 7 applied

#Subject and filesSizeRepliesApplied
1/7ipv6: add daddr/final storage in struct ipv6_pinfoinclude/linux/ipv6.h+4 -01 replyApplied
2/7ipv6: use np->final in inet6_sk_rebuild_header()net/ipv6/af_inet6.c+2 -21 replyApplied
3/7ipv6: use inet->cork.fl.u.ip6 and np->final in ip6_datagram_dst_update()net/ipv6/datagram.c+11 -101 replyApplied
4/7ipv6: inet6_csk_xmit() and inet6_csk_update_pmtu() use inet->cork.fl.u.ip6net/ipv6/inet6_connection_sock.c+11 -91 replyApplied
5/7tcp: populate inet->cork.fl.u.ip6 in tcp_v6_connect()net/ipv6/tcp_ipv6.c+24 -231 replyApplied
6/7tcp: populate inet->cork.fl.u.ip6 in tcp_v6_syn_recv_sock()include/net/inet6_connection_sock.h net/ipv6/inet6_connection_sock.c net/ipv6/tcp_ipv6.c+17 -151 replyApplied
7/7tcp: inet6_csk_xmit() optimizationnet/ipv6/inet6_connection_sock.c+15 -151 replyApplied

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchKuniyuki Iwashima
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7R-b

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/7] ipv6: tcp: no longer rebuild fl6 at each transmit

TCP v6 spends a good amount of time rebuilding a fresh fl6 at each transmit in inet6_csk_xmit()/inet6_csk_route_socket().

TCP v4 caches the information in inet->cork.fl.u.ip4 instead.

This series changes TCP v6 to behave the same, saving cpu cycles and reducing cache line misses and stack use.

Eric Dumazet (7):
ipv6: add daddr/final storage in struct ipv6_pinfo
ipv6: use np->final in inet6_sk_rebuild_header()
ipv6: use inet->cork.fl.u.ip6 and np->final in
ip6_datagram_dst_update()
ipv6: inet6_csk_xmit() and inet6_csk_update_pmtu() use

    inet->cork.fl.u.ip6

tcp: populate inet->cork.fl.u.ip6 in tcp_v6_connect()
tcp: populate inet->cork.fl.u.ip6 in tcp_v6_syn_recv_sock()
tcp: inet6_csk_xmit() optimization

 include/linux/ipv6.h                |  4 ++
 include/net/inet6_connection_sock.h |  4 +-
 net/ipv6/af_inet6.c                 |  4 +-
 net/ipv6/datagram.c                 | 21 +++++-----
 net/ipv6/inet6_connection_sock.c    | 57 +++++++++++++------------
 net/ipv6/tcp_ipv6.c                 | 64 ++++++++++++++---------------
 6 files changed, 82 insertions(+), 72 deletions(-)
Signature · 1 line
2.53.0.rc2.204.g2597b5adb4-goog