ramips: use netif_receive_skb instead of napi_gro_receive when rx csum offload is...
authorFelix Fietkau <nbd@openwrt.org>
Fri, 2 Jan 2015 21:53:18 +0000 (21:53 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 2 Jan 2015 21:53:18 +0000 (21:53 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43810

target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c

index 6e9f61770852e0b36955ccbb38c39dfcb933497f..068366a7c6946613841dcb631e10a7c04104d8ba 100644 (file)
@@ -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;