All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rearrange netdevice structure to save space
@ 2005-03-09 17:26 Stephen Hemminger
  2005-03-09 18:47 ` [PATCH] kill ->accept_fastpath hook Jeff Garzik
  2005-03-11  2:41 ` [PATCH] rearrange netdevice structure to save space David S. Miller
  0 siblings, 2 replies; 5+ messages in thread
From: Stephen Hemminger @ 2005-03-09 17:26 UTC (permalink / raw)
  To: David S. Miller; +Cc: netdev

Trivial reordering of netdevice structure to save four bytes.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>


diff -Nru a/include/linux/netdevice.h b/include/linux/netdevice.h
--- a/include/linux/netdevice.h	2005-03-09 09:04:56 -08:00
+++ b/include/linux/netdevice.h	2005-03-09 09:04:56 -08:00
@@ -328,9 +328,7 @@
 	unsigned short		flags;	/* interface flags (a la BSD)	*/
 	unsigned short		gflags;
         unsigned short          priv_flags; /* Like 'flags' but invisible to userspace. */
-        unsigned short          unused_alignment_fixer; /* Because we need priv_flags,
-                                                         * and we want to be 32-bit aligned.
-                                                         */
+	unsigned short		padded;	/* How much padding added by alloc_netdev() */
 
 	unsigned		mtu;	/* interface MTU value		*/
 	unsigned short		type;	/* interface hardware type	*/
@@ -487,8 +485,6 @@
 
 	/* class/net/name entry */
 	struct class_device	class_dev;
-	/* how much padding had been added by alloc_netdev() */
-	int padded;
 };
 
 #define	NETDEV_ALIGN		32

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

end of thread, other threads:[~2005-03-11  2:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-09 17:26 [PATCH] rearrange netdevice structure to save space Stephen Hemminger
2005-03-09 18:47 ` [PATCH] kill ->accept_fastpath hook Jeff Garzik
2005-03-09 18:55   ` Stephen Hemminger
2005-03-11  2:19   ` David S. Miller
2005-03-11  2:41 ` [PATCH] rearrange netdevice structure to save space David S. Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.