mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
d6301d3dd1
commit
4ae5544f9a
2 changed files with 10 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue