rb532: add 4.14 support
[openwrt/staging/dedeckeh.git] / target / linux / rb532 / patches-4.14 / 108-korina-use-gro.patch
diff --git a/target/linux/rb532/patches-4.14/108-korina-use-gro.patch b/target/linux/rb532/patches-4.14/108-korina-use-gro.patch
new file mode 100644 (file)
index 0000000..8cbe2a0
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/drivers/net/ethernet/korina.c
++++ b/drivers/net/ethernet/korina.c
+@@ -406,7 +406,7 @@ static int korina_rx(struct net_device *
+               skb->protocol = eth_type_trans(skb, dev);
+               /* Pass the packet to upper layers */
+-              netif_receive_skb(skb);
++              napi_gro_receive(&lp->napi, skb);
+               dev->stats.rx_packets++;
+               dev->stats.rx_bytes += pkt_len;