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:
parent
baa3a38ac6
commit
51b1f0ca5c
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue