mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-25 11:55:37 +00:00
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: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
26450aa7ca
commit
e9c6ec6510
2 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
#define VELOCITY_VERSION "1.15"
|
||||
|
||||
#define VELOCITY_IO_SIZE 256
|
||||
#define VELOCITY_NAPI_WEIGHT 64
|
||||
|
||||
#define PKT_BUF_SZ 1540
|
||||
|
||||
|
|
Loading…
Reference in a new issue