diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-08-31 14:25:32 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-01 13:57:55 -0400 |
commit | 86cac58b71227cc34a3d0e78f19585c0eff49ea3 (patch) | |
tree | e3329c4599474c12f17b0de5b2e8e4ff92233853 /include/linux/netdevice.h | |
parent | aed5029ead26fe47527d9e9f2052cf56b72543f0 (diff) |
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>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index c82220a9f3d5..af05186d5b36 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -1702,6 +1702,7 @@ extern gro_result_t dev_gro_receive(struct napi_struct *napi, | |||
1702 | extern gro_result_t napi_skb_finish(gro_result_t ret, struct sk_buff *skb); | 1702 | extern gro_result_t napi_skb_finish(gro_result_t ret, struct sk_buff *skb); |
1703 | extern gro_result_t napi_gro_receive(struct napi_struct *napi, | 1703 | extern gro_result_t napi_gro_receive(struct napi_struct *napi, |
1704 | struct sk_buff *skb); | 1704 | struct sk_buff *skb); |
1705 | extern void napi_gro_flush(struct napi_struct *napi); | ||
1705 | extern void napi_reuse_skb(struct napi_struct *napi, | 1706 | extern void napi_reuse_skb(struct napi_struct *napi, |
1706 | struct sk_buff *skb); | 1707 | struct sk_buff *skb); |
1707 | extern struct sk_buff * napi_get_frags(struct napi_struct *napi); | 1708 | extern struct sk_buff * napi_get_frags(struct napi_struct *napi); |