net: struct napi_struct fields reordering
authorEric Dumazet <edumazet@google.com>
Wed, 26 Sep 2012 07:07:47 +0000 (07:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Sep 2012 23:29:35 +0000 (19:29 -0400)
Remove two holes on 64bit arches, and put dev_list at the end of
napi_struct since its not used in fast path.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h

index 6c131f0..dd320bb 100644 (file)
@@ -338,18 +338,16 @@ struct napi_struct {
 
        unsigned long           state;
        int                     weight;
+       unsigned int            gro_count;
        int                     (*poll)(struct napi_struct *, int);
 #ifdef CONFIG_NETPOLL
        spinlock_t              poll_lock;
        int                     poll_owner;
 #endif
-
-       unsigned int            gro_count;
-
        struct net_device       *dev;
-       struct list_head        dev_list;
        struct sk_buff          *gro_list;
        struct sk_buff          *skb;
+       struct list_head        dev_list;
 };
 
 enum {