]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
jme: lower NAPI weight
authorMichal Schmidt <mschmidt@redhat.com>
Fri, 23 Aug 2013 13:40:53 +0000 (15:40 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Aug 2013 18:59:27 +0000 (14:59 -0400)
Since commit 82dc3c63 ("net: introduce NAPI_POLL_WEIGHT")
netif_napi_add() produces an error message if a NAPI poll weight
greater than 64 is requested.

jme requests a quarter of the rx ring size as the NAPI weight.
jme's rx ring size is 1 << 9 = 512.

Use the standard NAPI weight.

v2: proper reference to the related commit

Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/jme.c

index 7fbe6abf60542fe483170eb807f6f16f2e563cad..23de82a9da82ff408181759505450adfd439e88d 100644 (file)
@@ -3069,7 +3069,7 @@ jme_init_one(struct pci_dev *pdev,
                jwrite32(jme, JME_APMC, apmc);
        }
 
-       NETIF_NAPI_SET(netdev, &jme->napi, jme_poll, jme->rx_ring_size >> 2)
+       NETIF_NAPI_SET(netdev, &jme->napi, jme_poll, NAPI_POLL_WEIGHT)
 
        spin_lock_init(&jme->phy_lock);
        spin_lock_init(&jme->macaddr_lock);