public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] tcp: rework tcp_v{4,6}_send_check()
@ 2026-02-03 14:40 Eric Dumazet
  2026-02-03 14:40 ` [PATCH net-next 1/3] tcp: inline __tcp_v4_send_check() Eric Dumazet
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Eric Dumazet @ 2026-02-03 14:40 UTC (permalink / raw)
  To: David S . Miller, Jakub Kicinski, Paolo Abeni
  Cc: Simon Horman, Neal Cardwell, Kuniyuki Iwashima, netdev,
	eric.dumazet, Eric Dumazet

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.

We save ~200 bytes of text with this series.

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              | 28 ++++++++++++++++++++++++----
 net/ipv6/tcp_ipv6.c                |  7 -------
 net/mptcp/subflow.c                |  1 -
 net/tls/tls_device_fallback.c      |  3 ---
 7 files changed, 34 insertions(+), 39 deletions(-)

-- 
2.53.0.rc1.225.gd81095ad13-goog


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-02-10 14:09 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-03 14:40 [PATCH net-next 0/3] tcp: rework tcp_v{4,6}_send_check() Eric Dumazet
2026-02-03 14:40 ` [PATCH net-next 1/3] tcp: inline __tcp_v4_send_check() Eric Dumazet
2026-02-03 14:40 ` [PATCH net-next 2/3] tcp: move tcp_v6_send_check() to tcp_output.c Eric Dumazet
2026-02-09  5:10   ` kernel test robot
2026-02-03 14:40 ` [PATCH net-next 3/3] tcp: make tcp_v{4,6}_send_check() static Eric Dumazet
2026-02-03 17:26   ` Jakub Kicinski
2026-02-03 18:18     ` Eric Dumazet
2026-02-10 14:09       ` Eric Dumazet
2026-02-03 19:55   ` kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox