]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tcp: remove unused hash_size from struct tcp_out_options
authorKeita Morisaki <kmta1236@gmail.com>
Sat, 7 Mar 2026 05:16:19 +0000 (14:16 +0900)
committerJakub Kicinski <kuba@kernel.org>
Tue, 10 Mar 2026 01:49:38 +0000 (18:49 -0700)
commit8ca8eb05767395cd2fd0db12e052ca0bc5d1597c
treecdb35e6c247bb9dde45878af41bfa4014749c59d
parent2ed4b46b4fc77749cb0f8dd31a01441b82c8dbaa
tcp: remove unused hash_size from struct tcp_out_options

hash_size is declared but never read. The MD5 path always uses a
fixed size of 16, and the TCP-AO path uses tcp_ao_maclen().

This closes a 7-byte hole and reduces the struct size from 96 to
88 bytes.

Suggested-by: Jakub Sitnicki <jakub@cloudflare.com>
Signed-off-by: Keita Morisaki <kmta1236@gmail.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20260307051619.51685-1-kmta1236@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/tcp_output.c