Commit e9c6ec65 authored by Jakub Kicinski's avatar Jakub Kicinski Committed by David S. Miller

eth: velocity: remove a copy of the NAPI_POLL_WEIGHT define

Defining local versions of NAPI_POLL_WEIGHT with the same
values in the drivers just makes refactoring harder.
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 26450aa7
...@@ -2846,8 +2846,7 @@ static int velocity_probe(struct device *dev, int irq, ...@@ -2846,8 +2846,7 @@ static int velocity_probe(struct device *dev, int irq,
netdev->netdev_ops = &velocity_netdev_ops; netdev->netdev_ops = &velocity_netdev_ops;
netdev->ethtool_ops = &velocity_ethtool_ops; netdev->ethtool_ops = &velocity_ethtool_ops;
netif_napi_add(netdev, &vptr->napi, velocity_poll, netif_napi_add(netdev, &vptr->napi, velocity_poll, NAPI_POLL_WEIGHT);
VELOCITY_NAPI_WEIGHT);
netdev->hw_features = NETIF_F_IP_CSUM | NETIF_F_SG | netdev->hw_features = NETIF_F_IP_CSUM | NETIF_F_SG |
NETIF_F_HW_VLAN_CTAG_TX; NETIF_F_HW_VLAN_CTAG_TX;
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#define VELOCITY_VERSION "1.15" #define VELOCITY_VERSION "1.15"
#define VELOCITY_IO_SIZE 256 #define VELOCITY_IO_SIZE 256
#define VELOCITY_NAPI_WEIGHT 64
#define PKT_BUF_SZ 1540 #define PKT_BUF_SZ 1540
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment