]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
IPoIB: lower NAPI weight
authorMichal Schmidt <mschmidt@redhat.com>
Wed, 21 Aug 2013 16:50:22 +0000 (18:50 +0200)
committerRoland Dreier <roland@purestorage.com>
Fri, 8 Nov 2013 22:42:50 +0000 (14:42 -0800)
Since commit 82dc3c63c692 ("net: introduce NAPI_POLL_WEIGHT")
netif_napi_add() produces an error message if a NAPI poll weight
greater than 64 is requested.

Use the standard NAPI weight.

Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/ulp/ipoib/ipoib_main.c

index dcb50cef0bda7ff7aaeb5406eff4f882e780954f..d64ed05fb082f6a538b4c774c9f93a54940557ee 100644 (file)
@@ -1350,7 +1350,7 @@ void ipoib_setup(struct net_device *dev)
 
        ipoib_set_ethtool_ops(dev);
 
-       netif_napi_add(dev, &priv->napi, ipoib_poll, 100);
+       netif_napi_add(dev, &priv->napi, ipoib_poll, NAPI_POLL_WEIGHT);
 
        dev->watchdog_timeo      = HZ;