mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
ramips: use netif_receive_skb instead of napi_gro_receive when rx csum offload is unavailable
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43810 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
4a188c1880
commit
79b56eb3e4
@ -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…
x
Reference in New Issue
Block a user