Skip to content

Commit 04ec5cf

Browse files
Richard Kennedydavem330
authored andcommitted
ipv6: reorder struct inet6_ifaddr to remove padding on 64 bit builds
reorder struct inet6_ifaddr to remove padding on 64 bit builds remove 8 bytes of padding so inet6_ifaddr becomes 192 bytes & fits into a smaller slab. Signed-off-by: Richard Kennedy <richard@rsk.demon.co.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 29ded5f commit 04ec5cf

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎include/net/if_inet6.h‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ struct inet6_ifaddr
3939

4040
__u32 valid_lft;
4141
__u32 prefered_lft;
42-
unsigned long cstamp; /* created timestamp */
43-
unsigned long tstamp; /* updated timestamp */
4442
atomic_t refcnt;
4543
spinlock_t lock;
4644

@@ -49,6 +47,9 @@ struct inet6_ifaddr
4947

5048
__u16 scope;
5149

50+
unsigned long cstamp; /* created timestamp */
51+
unsigned long tstamp; /* updated timestamp */
52+
5253
struct timer_list timer;
5354

5455
struct inet6_dev *idev;

0 commit comments

Comments
 (0)