diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-01-02 21:53:18 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-01-02 21:53:18 +0000 |
commit | 79b56eb3e45d1b019a8deef80b22e015eb65fb09 (patch) | |
tree | 12e1be8c4b9b4dd6cd4fd41a98273c0b96d4c3f7 /target/linux/ramips/files | |
parent | 4a188c1880bf8822194e979a142e446037683170 (diff) | |
download | master-187ad058-79b56eb3e45d1b019a8deef80b22e015eb65fb09.tar.gz master-187ad058-79b56eb3e45d1b019a8deef80b22e015eb65fb09.tar.bz2 master-187ad058-79b56eb3e45d1b019a8deef80b22e015eb65fb09.zip |
ramips: use netif_receive_skb instead of napi_gro_receive when rx csum offload is unavailable
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43810 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/files')
-rw-r--r-- | target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c index 6e9f617708..068366a7c6 100644 --- a/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c +++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c @@ -764,7 +764,10 @@ static int fe_poll_rx(struct napi_struct *napi, int budget, stats->rx_packets++; stats->rx_bytes += pktlen; - napi_gro_receive(napi, skb); + if (skb->ip_summed == CHECKSUM_NONE) + netif_receive_skb(skb); + else + napi_gro_receive(napi, skb); priv->rx_data[idx] = new_data; rxd->rxd1 = (unsigned int) dma_addr; |