Skip to content

Commit

Permalink
ipv6: reorder struct inet6_ifaddr to remove padding on 64 bit builds
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Richard Kennedy authored and David S. Miller committed Mar 21, 2009
1 parent 29ded5f commit 04ec5cf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/net/if_inet6.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ struct inet6_ifaddr

__u32 valid_lft;
__u32 prefered_lft;
unsigned long cstamp; /* created timestamp */
unsigned long tstamp; /* updated timestamp */
atomic_t refcnt;
spinlock_t lock;

Expand All @@ -49,6 +47,9 @@ struct inet6_ifaddr

__u16 scope;

unsigned long cstamp; /* created timestamp */
unsigned long tstamp; /* updated timestamp */

struct timer_list timer;

struct inet6_dev *idev;
Expand Down

0 comments on commit 04ec5cf

Please sign in to comment.