]> www.infradead.org Git - users/hch/misc.git/commitdiff
tcp: move mtu_info to remove two 32bit holes
authorEric Dumazet <edumazet@google.com>
Fri, 19 Sep 2025 20:48:55 +0000 (20:48 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 23 Sep 2025 00:55:25 +0000 (17:55 -0700)
This removes 8bytes waste on 64bit builds.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20250919204856.2977245-8-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/tcp.h

index 3f282130c863d07cddd931b85f43afaf44bc7323..20b8c6e21fef36984810541a06fcb7ba8f0c45b1 100644 (file)
@@ -448,6 +448,9 @@ struct tcp_sock {
                                 * the first SYN. */
        u32     undo_marker;    /* snd_una upon a new recovery episode. */
        int     undo_retrans;   /* number of undoable retransmissions. */
+       u32     mtu_info; /* We received an ICMP_FRAG_NEEDED / ICMPV6_PKT_TOOBIG
+                          * while socket was owned by user.
+                          */
        u64     bytes_retrans;  /* RFC4898 tcpEStatsPerfOctetsRetrans
                                 * Total data bytes retransmitted
                                 */
@@ -494,9 +497,6 @@ struct tcp_sock {
                u32               probe_seq_end;
        } mtu_probe;
        u32     plb_rehash;     /* PLB-triggered rehash attempts */
-       u32     mtu_info; /* We received an ICMP_FRAG_NEEDED / ICMPV6_PKT_TOOBIG
-                          * while socket was owned by user.
-                          */
 #if IS_ENABLED(CONFIG_MPTCP)
        bool    is_mptcp;
 #endif