tcp: shrink inet_connection_sock icsk_mtup enabled and probe_size
authorNeal Cardwell <ncardwell@google.com>
Fri, 29 Jan 2021 18:54:38 +0000 (13:54 -0500)
committerJakub Kicinski <kuba@kernel.org>
Sat, 30 Jan 2021 06:48:30 +0000 (22:48 -0800)
commit14e8e0f6008865d823a8184a276702a6c3cbef3d
treeb57ca7d1794d3e344c5c6fba4254fb17793eb9c2
parent4e146def5855bea30ab14d2a27c13be90b7cd2d1
tcp: shrink inet_connection_sock icsk_mtup enabled and probe_size

This commit shrinks inet_connection_sock by 4 bytes, by shrinking
icsk_mtup.enabled from 32 bits to 1 bit, and shrinking
icsk_mtup.probe_size from s32 to an unsuigned 31 bit field.

This is to save space to compensate for the recent introduction of a
new u32 in inet_connection_sock, icsk_probes_tstamp, in the recent bug
fix commit 9d9b1ee0b2d1 ("tcp: fix TCP_USER_TIMEOUT with zero window").

This should not change functionality, since icsk_mtup.enabled is only
ever set to 0 or 1, and icsk_mtup.probe_size can only be either 0
or a positive MTU value returned by tcp_mss_to_mtu()

Signed-off-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20210129185438.1813237-1-ncardwell.kernel@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/inet_connection_sock.h