Eric Dumazet
fcd3d039fa
tcp: make tcp_v{4,6}_send_check() static
...
tcp_v{4,6}_send_check() are only called from tcp_output.c
and should be made static so that the compiler does not need
to put an out of line copy of them.
Remove (struct inet_connection_sock_af_ops) send_check field
and use instead @net_header_len.
Move @net_header_len close to @queue_xmit for data locality
as both are used in TCP tx fast path.
$ scripts/bloat-o-meter -t vmlinux.2 vmlinux.3
add/remove: 0/2 grow/shrink: 0/3 up/down: 0/-172 (-172)
Function old new delta
__tcp_transmit_skb 3426 3423 -3
tcp_v4_send_check 136 132 -4
mptcp_subflow_init 777 763 -14
__pfx_tcp_v6_send_check 16 - -16
tcp_v6_send_check 135 - -135
Total: Before=25143196, After=25143024, chg -0.00%
Signed-off-by: Eric Dumazet <edumazet@google.com >
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com >
Link: https://patch.msgid.link/20260223100729.3761597-4-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org >
2026-02-24 17:16:09 -08:00
..
2026-02-02 17:49:29 -08:00
2025-11-24 19:49:40 -08:00
2024-02-09 14:12:02 -08:00
2026-01-20 19:44:19 -08:00
2025-03-17 13:56:38 +00:00
2026-01-22 11:52:42 +01:00
2025-11-04 19:10:33 -08:00
2025-09-03 16:58:44 -07:00
2025-12-04 09:54:53 +01:00
2025-08-25 17:53:35 -07:00
2025-08-26 17:34:31 -07:00
2026-01-28 19:33:07 -08:00
2024-10-11 15:35:05 -07:00
2025-08-26 17:34:31 -07:00
2025-12-30 11:07:38 +01:00
2026-01-28 19:33:07 -08:00
2024-04-01 10:49:28 +01:00
2026-01-17 16:00:23 -08:00
2026-01-17 16:00:24 -08:00
2025-11-25 19:20:42 -08:00
2025-04-24 18:20:40 -07:00
2024-03-05 13:30:11 +01:00
2026-02-18 16:46:36 -08:00
2025-02-11 11:26:53 +01:00
2026-01-25 14:45:14 -08:00
2026-02-05 09:23:06 -08:00
2025-11-25 19:28:29 -08:00
2026-01-04 10:58:04 -08:00
2025-10-17 16:08:43 -07:00
2025-10-17 16:08:43 -07:00
2025-02-14 13:09:39 -08:00
2023-10-13 09:58:45 -07:00
2025-12-10 01:15:27 -08:00
2026-01-10 12:06:22 -08:00
2025-10-29 17:05:30 -07:00
2025-08-19 17:54:35 -07:00
2026-02-02 17:49:29 -08:00
2026-02-02 17:49:29 -08:00
2025-09-09 13:03:33 +02:00
2026-01-08 18:02:35 -08:00
2025-07-02 14:32:30 -07:00
2025-07-08 13:28:27 +02:00
2026-01-12 19:11:35 -08:00
2025-11-28 00:00:38 +00:00
2025-01-23 07:08:13 -08:00
2026-02-02 17:49:29 -08:00
2025-10-17 17:14:54 -07:00
2026-01-22 18:28:48 -08:00
2026-01-28 19:33:38 -08:00
2025-08-26 17:34:31 -07:00
2025-09-25 11:00:59 -07:00
2026-02-17 17:11:08 -08:00
2025-09-08 18:06:20 -07:00
2021-05-17 15:29:35 -07:00
2025-08-29 19:29:24 -07:00
2026-01-06 17:02:52 -08:00
2026-01-15 18:02:48 -08:00
2025-09-18 08:47:51 +02:00
2026-02-03 15:13:25 +01:00
2025-09-18 11:26:06 -07:00
2024-05-02 16:26:56 -07:00
2022-04-06 12:05:41 -07:00
2026-01-27 09:11:30 -08:00
2025-08-12 14:05:43 -07:00
2026-02-03 15:13:24 +01:00
2025-01-20 12:26:41 +00:00
2025-03-17 13:54:11 +00:00
2025-03-17 13:56:38 +00:00
2025-08-29 19:29:24 -07:00
2026-02-05 09:23:05 -08:00
2022-04-06 12:05:41 -07:00
2024-08-06 12:16:25 -07:00
2022-04-06 12:05:41 -07:00
2022-04-06 12:05:41 -07:00
2026-02-04 20:37:06 -08:00
2026-02-24 17:16:09 -08:00
2025-10-28 17:52:44 -07:00
2025-10-02 15:17:01 -07:00
2026-02-03 15:13:24 +01:00
2022-04-06 12:05:41 -07:00
2026-02-03 15:13:24 +01:00
2026-02-24 17:16:09 -08:00
2022-12-20 03:13:45 +01:00
2026-01-28 19:31:51 -08:00
2022-04-06 12:05:41 -07:00
2026-01-05 16:43:29 +01:00
2026-02-03 15:13:24 +01:00
2023-01-19 09:26:16 -08:00
2022-04-06 12:05:41 -07:00
2022-04-06 12:05:41 -07:00
2022-04-06 12:05:41 -07:00
2022-04-06 12:05:41 -07:00
2026-02-03 15:13:25 +01:00
2024-02-09 14:12:02 -08:00
2026-01-27 09:11:30 -08:00
2025-08-29 19:29:24 -07:00
2025-07-02 14:22:02 -07:00
2026-01-29 17:28:54 -08:00
2025-11-04 19:10:32 -08:00
2025-09-11 19:09:48 -07:00
2026-01-30 17:18:53 -08:00
2025-07-02 14:22:02 -07:00
2025-07-02 09:19:56 +02:00
2025-07-02 14:32:30 -07:00
2025-08-26 17:34:31 -07:00
2024-10-03 16:21:21 -07:00
2024-02-09 14:12:02 -08:00