* [PATCH net-next] tcp: shrink inet_connection_sock icsk_mtup enabled and probe_size
@ 2021-01-29 18:54 Neal Cardwell
2021-01-30 7:40 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Neal Cardwell @ 2021-01-29 18:54 UTC (permalink / raw)
To: David Miller; +Cc: netdev, Neal Cardwell, Eric Dumazet
From: Neal Cardwell <ncardwell@google.com>
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>
---
include/net/inet_connection_sock.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/net/inet_connection_sock.h b/include/net/inet_connection_sock.h
index c11f80f328f1..10a625760de9 100644
--- a/include/net/inet_connection_sock.h
+++ b/include/net/inet_connection_sock.h
@@ -120,14 +120,14 @@ struct inet_connection_sock {
__u16 rcv_mss; /* MSS used for delayed ACK decisions */
} icsk_ack;
struct {
- int enabled;
-
/* Range of MTUs to search */
int search_high;
int search_low;
/* Information on the current probe. */
- int probe_size;
+ u32 probe_size:31,
+ /* Is the MTUP feature enabled for this connection? */
+ enabled:1;
u32 probe_timestamp;
} icsk_mtup;
--
2.30.0.365.g02bc693789-goog
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] tcp: shrink inet_connection_sock icsk_mtup enabled and probe_size
2021-01-29 18:54 [PATCH net-next] tcp: shrink inet_connection_sock icsk_mtup enabled and probe_size Neal Cardwell
@ 2021-01-30 7:40 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-01-30 7:40 UTC (permalink / raw)
To: Neal Cardwell; +Cc: davem, netdev, ncardwell, edumazet
Hello:
This patch was applied to netdev/net-next.git (refs/heads/master):
On Fri, 29 Jan 2021 13:54:38 -0500 you wrote:
> From: Neal Cardwell <ncardwell@google.com>
>
> 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").
>
> [...]
Here is the summary with links:
- [net-next] tcp: shrink inet_connection_sock icsk_mtup enabled and probe_size
https://git.kernel.org/netdev/net-next/c/14e8e0f60088
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-01-30 9:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-29 18:54 [PATCH net-next] tcp: shrink inet_connection_sock icsk_mtup enabled and probe_size Neal Cardwell
2021-01-30 7:40 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).