Skip to content

Commit

Permalink
ipv6: shrink struct ipcm6_cookie
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Dumazet authored and xanmod committed Jan 12, 2022
1 parent c6fdfb7 commit 47f7af1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/net/ipv6.h
Expand Up @@ -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)
Expand Down

0 comments on commit 47f7af1

Please sign in to comment.