]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ipv6: shrink struct ipcm6_cookie
authorEric Dumazet <edumazet@google.com>
Mon, 15 Nov 2021 19:02:36 +0000 (11:02 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Nov 2021 13:10:34 +0000 (13:10 +0000)
gso_size can be moved after tclass, to use an existing hole.
(8 bytes saved on 64bit arches)

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ipv6.h

index c19bf51ded1d026e795a3f9ae0ff3be766fc174e..53ac7707ca70af513aef32389afd681bff3082f3 100644 (file)
@@ -345,9 +345,9 @@ struct ipcm6_cookie {
        struct sockcm_cookie sockc;
        __s16 hlimit;
        __s16 tclass;
+       __u16 gso_size;
        __s8  dontfrag;
        struct ipv6_txoptions *opt;
-       __u16 gso_size;
 };
 
 static inline void ipcm6_init(struct ipcm6_cookie *ipc6)