Browse Source

ramips: use netif_receive_skb instead of napi_gro_receive when rx csum offload is unavailable

Signed-off-by: Felix Fietkau <[email protected]>

SVN-Revision: 43810
Felix Fietkau 11 years ago
parent
commit
51b1f0ca5c

+ 4 - 1
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;