Skip to contentSkip to conversation

ipv6: reorder struct inet6_ifaddr to remove padding on 64 bit builds

PATCH Applied Richard Kennedy 2 participants 2 messages Mar 19, 2009 – Mar 21, 2009

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

----
patch against v2.6.29-rc8

I've compiled & booted with this patch, modules ipv6 & ip6_tables load successfully, but I've not run any other tests.

regards
Richard

include/net/if_inet6.h +3 -2
index c8effa4..38b7813 100644
@@ -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;
 
@@ -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;
maintainer Applied
#1 lore raw

From: Richard Kennedy <[email protected]>
Date: Thu, 19 Mar 2009 15:32:40 +0000

Quoted 6 lines

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.

Applied, thanks.