Skip to content

tcp: rework tcp_v{4,6}_send_check()

Eric Dumazet netdev 2 versions – 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 · linked by author and title

  1. v2 Latest3 patches 4 repliesApplied 3/3
  2. v13 patches 3 repliesSuperseded

Patches in v2 All 3 applied

#Subject and filesSizeRepliesApplied
1/3tcp: inline __tcp_v4_send_check()include/net/tcp.h net/ipv4/tcp_ipv4.c net/ipv4/tcp_output.c+18 -201 replyApplied
2/3tcp: move tcp_v6_send_check() to tcp_output.cinclude/net/tcp.h net/ipv4/tcp_output.c net/ipv6/tcp_ipv6.c+18 -91 replyApplied
3/3tcp: make tcp_v{4,6}_send_check() staticinclude/net/inet_connection_sock.h include/net/tcp.h net/ipv4/tcp_ipv4.c +4 more+4 -172 repliesApplied

Reviews trailers per patch

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

PatchKuniyuki Iwashima
1/3R-b
2/3R-b
3/3R-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 0/3] tcp: rework tcp_v{4,6}_send_check()

tcp_v{4,6}_send_check() are only called from __tcp_transmit_skb()

They currently are in different files (tcp_ipv4.c and tcp_ipv6.c) thus out of line.

This series move them close to their caller so that compiler can inline them.

For all patches in the series:

$ scripts/bloat-o-meter -t vmlinux.0 vmlinux.3
add/remove: 0/2 grow/shrink: 1/3 up/down: 102/-178 (-76)
Function                                     old     new   delta
__tcp_transmit_skb                          3321    3423    +102
tcp_v4_send_check                            136     132      -4
__tcp_v4_send_check                          130     121      -9
mptcp_subflow_init                           777     763     -14
__pfx_tcp_v6_send_check                       16       -     -16
tcp_v6_send_check                            135       -    -135
Total: Before=25143100, After=25143024, chg -0.00%

Eric Dumazet (3):
tcp: inline __tcp_v4_send_check()
tcp: move tcp_v6_send_check() to tcp_output.c
tcp: make tcp_v{4,6}_send_check() static

 include/net/inet_connection_sock.h |  3 +--
 include/net/tcp.h                  | 12 +++++++++---
 net/ipv4/tcp_ipv4.c                | 19 -------------------
 net/ipv4/tcp_output.c              | 27 +++++++++++++++++++++++----
 net/ipv6/tcp_ipv6.c                |  7 -------
 net/mptcp/subflow.c                |  1 -
 net/tls/tls_device_fallback.c      |  3 ---
 7 files changed, 33 insertions(+), 39 deletions(-)
Signature · 1 line
2.53.0.345.g96ddfc5eaa-goog