ramips: reduce napi_weight in the ethernet driver.
authorRosen Penev <rosenp@gmail.com>
Tue, 19 Sep 2017 05:23:01 +0000 (22:23 -0700)
committerJohn Crispin <john@phrozen.org>
Thu, 28 Sep 2017 07:22:02 +0000 (09:22 +0200)
Currently dmsg a weight of 128 which is above the kernel limit of 64. Silence the warning.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
target/linux/ramips/files-4.9/drivers/net/ethernet/mtk/mtk_eth_soc.c

index baa7a198d0df9d4abbc056b13344b487f830144e..a9d2f385a4a64644a180063f7254ea58124b347e 100644 (file)
@@ -1536,7 +1536,7 @@ static int fe_probe(struct platform_device *pdev)
        priv->rx_ring.rx_ring_size = NUM_DMA_DESC;
        INIT_WORK(&priv->pending_work, fe_pending_work);
 
-       napi_weight = 32;
+       napi_weight = 16;
        if (priv->flags & FE_FLAG_NAPI_WEIGHT) {
                napi_weight *= 4;
                priv->tx_ring.tx_ring_size *= 4;