mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-25 06:53:21 +02:00
cns3xxx: add a small optimization for rx offload
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33500 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
9097df315e
commit
42b2ad0d3b
@ -0,0 +1,27 @@
|
|||||||
|
--- a/drivers/net/ethernet/cavium/cns3xxx_eth.c
|
||||||
|
+++ b/drivers/net/ethernet/cavium/cns3xxx_eth.c
|
||||||
|
@@ -653,17 +653,17 @@ static int eth_poll(struct napi_struct *
|
||||||
|
case 6:
|
||||||
|
case 13:
|
||||||
|
case 14:
|
||||||
|
- if (desc->l4f)
|
||||||
|
+ if (!desc->l4f) {
|
||||||
|
+ skb->ip_summed = CHECKSUM_UNNECESSARY;
|
||||||
|
+ napi_gro_receive(napi, skb);
|
||||||
|
break;
|
||||||
|
-
|
||||||
|
- skb->ip_summed = CHECKSUM_UNNECESSARY;
|
||||||
|
- break;
|
||||||
|
+ }
|
||||||
|
+ /* fall through */
|
||||||
|
default:
|
||||||
|
- break;
|
||||||
|
+ netif_receive_skb(skb);
|
||||||
|
+ break;
|
||||||
|
}
|
||||||
|
|
||||||
|
- napi_gro_receive(napi, skb);
|
||||||
|
-
|
||||||
|
sw->frag_first = NULL;
|
||||||
|
sw->frag_last = NULL;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user