aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/rb532/patches-4.14/107-use-NAPI_POLL_WEIGHT.patch
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/rb532/patches-4.14/107-use-NAPI_POLL_WEIGHT.patch')
-rw-r--r--target/linux/rb532/patches-4.14/107-use-NAPI_POLL_WEIGHT.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/target/linux/rb532/patches-4.14/107-use-NAPI_POLL_WEIGHT.patch b/target/linux/rb532/patches-4.14/107-use-NAPI_POLL_WEIGHT.patch
new file mode 100644
index 0000000000..d4af90636f
--- /dev/null
+++ b/target/linux/rb532/patches-4.14/107-use-NAPI_POLL_WEIGHT.patch
@@ -0,0 +1,11 @@
+--- a/drivers/net/ethernet/korina.c
++++ b/drivers/net/ethernet/korina.c
+@@ -1082,7 +1082,7 @@ static int korina_probe(struct platform_
+ dev->netdev_ops = &korina_netdev_ops;
+ dev->ethtool_ops = &netdev_ethtool_ops;
+ dev->watchdog_timeo = TX_TIMEOUT;
+- netif_napi_add(dev, &lp->napi, korina_poll, 64);
++ netif_napi_add(dev, &lp->napi, korina_poll, NAPI_POLL_WEIGHT);
+
+ lp->phy_addr = (((lp->rx_irq == 0x2c? 1:0) << 8) | 0x05);
+ lp->mii_if.dev = dev;