skge: add GRO support

- napi_gro_flush() is exported from net/core/dev.c, to avoid
  an irq_save/irq_restore in the packet receive path.
- use napi_gro_receive() instead of netif_receive_skb()
- use napi_gro_flush() before calling __napi_complete()
- turn on NETIF_F_GRO by default
- Tested on a Marvell 88E8001 Gigabit NIC

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Eric Dumazet
2010-08-31 18:25:32 +00:00
committed by David S. Miller
parent aed5029ead
commit 86cac58b71
3 changed files with 6 additions and 3 deletions

View File

@ -3063,7 +3063,7 @@ out:
return netif_receive_skb(skb);
}
static void napi_gro_flush(struct napi_struct *napi)
inline void napi_gro_flush(struct napi_struct *napi)
{
struct sk_buff *skb, *next;
@ -3076,6 +3076,7 @@ static void napi_gro_flush(struct napi_struct *napi)
napi->gro_count = 0;
napi->gro_list = NULL;
}
EXPORT_SYMBOL(napi_gro_flush);
enum gro_result dev_gro_receive(struct napi_struct *napi, struct sk_buff *skb)
{