eth: velocity: remove a copy of the NAPI_POLL_WEIGHT define
authorJakub Kicinski <kuba@kernel.org>
Thu, 28 Apr 2022 21:23:22 +0000 (14:23 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Apr 2022 10:56:42 +0000 (11:56 +0100)
Defining local versions of NAPI_POLL_WEIGHT with the same
values in the drivers just makes refactoring harder.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/via/via-velocity.c
drivers/net/ethernet/via/via-velocity.h

index be2b992f24d99c6500ff0dad5667c4a016fd0206..ff0c102cb5787d1e0dcc06debd2a77e4a5c3c256 100644 (file)
@@ -2846,8 +2846,7 @@ static int velocity_probe(struct device *dev, int irq,
 
        netdev->netdev_ops = &velocity_netdev_ops;
        netdev->ethtool_ops = &velocity_ethtool_ops;
-       netif_napi_add(netdev, &vptr->napi, velocity_poll,
-                                                       VELOCITY_NAPI_WEIGHT);
+       netif_napi_add(netdev, &vptr->napi, velocity_poll, NAPI_POLL_WEIGHT);
 
        netdev->hw_features = NETIF_F_IP_CSUM | NETIF_F_SG |
                           NETIF_F_HW_VLAN_CTAG_TX;
index d3f960cc7c6eb6d1658675b8c95ac868575126b9..c02a9654dce66ca791c93a87e4dd8c9a3e24a9f5 100644 (file)
@@ -23,7 +23,6 @@
 #define VELOCITY_VERSION       "1.15"
 
 #define VELOCITY_IO_SIZE       256
-#define VELOCITY_NAPI_WEIGHT   64
 
 #define PKT_BUF_SZ          1540