gro: Remember number of held packets instead of counting every time
authorHerbert Xu <herbert@gondor.apana.org.au>
Sun, 8 Feb 2009 18:00:36 +0000 (18:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Feb 2009 04:22:17 +0000 (20:22 -0800)
commit4ae5544f9a33e4ae306e337f96951eb3ff2df6d9
tree4ca5e02345cb3a680db5ac1016e6e857ccb4a767
parentd6301d3dd1c287b32132dda15272a50c11e92a14
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>
include/linux/netdevice.h
net/core/dev.c