From: Felix Fietkau Date: Fri, 2 Jan 2015 21:53:18 +0000 (+0000) Subject: ramips: use netif_receive_skb instead of napi_gro_receive when rx csum offload is... X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=51b1f0ca5cb7b7a98151a9f3818fe0fe2fae4903;p=openwrt%2Fstaging%2Fneocturne.git ramips: use netif_receive_skb instead of napi_gro_receive when rx csum offload is unavailable Signed-off-by: Felix Fietkau SVN-Revision: 43810 --- 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;