diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-09-21 00:13:12 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-09-21 00:13:12 +0000 |
commit | 19d64c1668670954ed3b8f34e3d746a35e804df2 (patch) | |
tree | 875af113ce6776ab26abac13049be4224a2d0ddf /target/linux/cns3xxx/patches-3.3 | |
parent | 341e4ab8ddf4b9f98a34cd43b1547c63232cb6c2 (diff) | |
download | upstream-19d64c1668670954ed3b8f34e3d746a35e804df2.tar.gz upstream-19d64c1668670954ed3b8f34e3d746a35e804df2.tar.bz2 upstream-19d64c1668670954ed3b8f34e3d746a35e804df2.zip |
cns3xxx: add a small optimization for rx offload
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33500 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/cns3xxx/patches-3.3')
-rw-r--r-- | target/linux/cns3xxx/patches-3.3/420-ethernet_optimize_rx_offload.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/target/linux/cns3xxx/patches-3.3/420-ethernet_optimize_rx_offload.patch b/target/linux/cns3xxx/patches-3.3/420-ethernet_optimize_rx_offload.patch new file mode 100644 index 0000000000..67929ef895 --- /dev/null +++ b/target/linux/cns3xxx/patches-3.3/420-ethernet_optimize_rx_offload.patch @@ -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; + } |