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

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43810
This commit is contained in:
Felix Fietkau 2015-01-02 21:53:18 +00:00
parent baa3a38ac6
commit 51b1f0ca5c

View 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;