netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ipv6: reorder struct inet6_ifaddr to remove padding on 64 bit builds
@ 2009-03-19 15:32 Richard Kennedy
  2009-03-21 20:29 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Kennedy @ 2009-03-19 15:32 UTC (permalink / raw)
  To: yoshfuji, pekkas; +Cc: netdev, lkml

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>
----
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
 



diff --git a/include/net/if_inet6.h b/include/net/if_inet6.h
index c8effa4..38b7813 100644
--- a/include/net/if_inet6.h
+++ b/include/net/if_inet6.h
@@ -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;



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ipv6: reorder struct inet6_ifaddr to remove padding on 64 bit builds
  2009-03-19 15:32 [PATCH] ipv6: reorder struct inet6_ifaddr to remove padding on 64 bit builds Richard Kennedy
@ 2009-03-21 20:29 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2009-03-21 20:29 UTC (permalink / raw)
  To: richard; +Cc: yoshfuji, pekkas, netdev, linux-kernel

From: Richard Kennedy <richard@rsk.demon.co.uk>
Date: Thu, 19 Mar 2009 15:32:40 +0000

> 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>

Applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-03-21 20:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-19 15:32 [PATCH] ipv6: reorder struct inet6_ifaddr to remove padding on 64 bit builds Richard Kennedy
2009-03-21 20:29 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).