netxen: lower NAPI weight
authorMichal Schmidt <mschmidt@redhat.com>
Fri, 23 Aug 2013 13:41:09 +0000 (15:41 +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.

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/qlogic/netxen/netxen_nic.h
drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c

index 3fe09ab2d7c9f368a53188bc7645d212c0d6c53e..32675e16021e8aafd2a5598473cc2ad54dae7668 100644 (file)
@@ -1171,7 +1171,6 @@ typedef struct {
 
 #define NETXEN_DB_MAPSIZE_BYTES        0x1000
 
-#define NETXEN_NETDEV_WEIGHT 128
 #define NETXEN_ADAPTER_UP_MAGIC 777
 #define NETXEN_NIC_PEG_TUNE 0
 
index c401b0b4353d94d543e357c16c184c8771eafe7a..ec4cf7fd4123e1a446dd125b41652bcf05f330bb 100644 (file)
@@ -197,7 +197,7 @@ netxen_napi_add(struct netxen_adapter *adapter, struct net_device *netdev)
        for (ring = 0; ring < adapter->max_sds_rings; ring++) {
                sds_ring = &recv_ctx->sds_rings[ring];
                netif_napi_add(netdev, &sds_ring->napi,
-                               netxen_nic_poll, NETXEN_NETDEV_WEIGHT);
+                               netxen_nic_poll, NAPI_POLL_WEIGHT);
        }
 
        return 0;
This page took 0.02867 seconds and 5 git commands to generate.