mirror of https://github.com/hak5/openwrt-owl.git
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: 43810owl
parent
baa3a38ac6
commit
51b1f0ca5c
|
@ -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 New Issue