net: struct napi_struct fields reordering
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>
This commit is contained in:

committed by
David S. Miller

parent
69b08f62e1
commit
404f7c9e11
@@ -338,18 +338,16 @@ struct napi_struct {
|
|||||||
|
|
||||||
unsigned long state;
|
unsigned long state;
|
||||||
int weight;
|
int weight;
|
||||||
|
unsigned int gro_count;
|
||||||
int (*poll)(struct napi_struct *, int);
|
int (*poll)(struct napi_struct *, int);
|
||||||
#ifdef CONFIG_NETPOLL
|
#ifdef CONFIG_NETPOLL
|
||||||
spinlock_t poll_lock;
|
spinlock_t poll_lock;
|
||||||
int poll_owner;
|
int poll_owner;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
unsigned int gro_count;
|
|
||||||
|
|
||||||
struct net_device *dev;
|
struct net_device *dev;
|
||||||
struct list_head dev_list;
|
|
||||||
struct sk_buff *gro_list;
|
struct sk_buff *gro_list;
|
||||||
struct sk_buff *skb;
|
struct sk_buff *skb;
|
||||||
|
struct list_head dev_list;
|
||||||
};
|
};
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
|
Reference in New Issue
Block a user