From: Eric Dumazet <edumazet@google.com>
To: "David S . Miller" <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>,
Paolo Abeni <pabeni@redhat.com>
Cc: Simon Horman <horms@kernel.org>,
Neal Cardwell <ncardwell@google.com>,
Kuniyuki Iwashima <kuniyu@google.com>,
netdev@vger.kernel.org, eric.dumazet@gmail.com,
Eric Dumazet <edumazet@google.com>
Subject: [PATCH v2 net-next 0/3] tcp: rework tcp_v{4,6}_send_check()
Date: Mon, 23 Feb 2026 10:07:26 +0000 [thread overview]
Message-ID: <20260223100729.3761597-1-edumazet@google.com> (raw)
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(-)
--
2.53.0.345.g96ddfc5eaa-goog
next reply other threads:[~2026-02-23 10:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-23 10:07 Eric Dumazet [this message]
2026-02-23 10:07 ` [PATCH v2 net-next 1/3] tcp: inline __tcp_v4_send_check() Eric Dumazet
2026-02-23 18:50 ` Kuniyuki Iwashima
2026-02-23 10:07 ` [PATCH v2 net-next 2/3] tcp: move tcp_v6_send_check() to tcp_output.c Eric Dumazet
2026-02-23 18:53 ` Kuniyuki Iwashima
2026-02-23 10:07 ` [PATCH v2 net-next 3/3] tcp: make tcp_v{4,6}_send_check() static Eric Dumazet
2026-02-23 18:55 ` Kuniyuki Iwashima
2026-02-25 11:57 ` [PATCH v2 net-next 3/3] tcp: make tcp_v{4,6}_send_check() static: manual merge Matthieu Baerts
2026-02-25 1:50 ` [PATCH v2 net-next 0/3] tcp: rework tcp_v{4,6}_send_check() patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260223100729.3761597-1-edumazet@google.com \
--to=edumazet@google.com \
--cc=davem@davemloft.net \
--cc=eric.dumazet@gmail.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=kuniyu@google.com \
--cc=ncardwell@google.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox