diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2009-02-08 18:00:36 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-08 20:22:17 -0800 |
commit | 4ae5544f9a33e4ae306e337f96951eb3ff2df6d9 (patch) | |
tree | 4ca5e02345cb3a680db5ac1016e6e857ccb4a767 /include/linux/netdevice.h | |
parent | d6301d3dd1c287b32132dda15272a50c11e92a14 (diff) |
gro: Remember number of held packets instead of counting every time
This patch prepares for the move of the same_flow checks out of
dev_gro_receive. As such we need to remember the number of held
packets since doing a loop just to count them every time is silly.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 864519e585f..9ee344bc6c1 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -314,6 +314,9 @@ struct napi_struct { 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; |