summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHerbert Xu2009-02-08 19:00:36 +0100
committerDavid S. Miller2009-02-09 05:22:17 +0100
commit4ae5544f9a33e4ae306e337f96951eb3ff2df6d9 (patch)
tree4ca5e02345cb3a680db5ac1016e6e857ccb4a767 /include
parentnet: Increase default NET_SKB_PAD to 32. (diff)
downloadkernel-qcow2-linux-4ae5544f9a33e4ae306e337f96951eb3ff2df6d9.tar.gz
kernel-qcow2-linux-4ae5544f9a33e4ae306e337f96951eb3ff2df6d9.tar.xz
kernel-qcow2-linux-4ae5544f9a33e4ae306e337f96951eb3ff2df6d9.zip
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')
-rw-r--r--include/linux/netdevice.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 864519e585fc..9ee344bc6c13 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;