r8169: use constant NAPI_POLL_WAIT
We can use generic constant NAPI_POLL_WAIT instead of defining an own constant for the same value. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Родитель
8a67aa868c
Коммит
37621493b8
|
@ -88,7 +88,6 @@ static const int multicast_filter_limit = 32;
|
||||||
#define InterFrameGap 0x03 /* 3 means InterFrameGap = the shortest one */
|
#define InterFrameGap 0x03 /* 3 means InterFrameGap = the shortest one */
|
||||||
|
|
||||||
#define R8169_REGS_SIZE 256
|
#define R8169_REGS_SIZE 256
|
||||||
#define R8169_NAPI_WEIGHT 64
|
|
||||||
#define NUM_TX_DESC 64 /* Number of Tx descriptor registers */
|
#define NUM_TX_DESC 64 /* Number of Tx descriptor registers */
|
||||||
#define NUM_RX_DESC 256U /* Number of Rx descriptor registers */
|
#define NUM_RX_DESC 256U /* Number of Rx descriptor registers */
|
||||||
#define R8169_TX_RING_BYTES (NUM_TX_DESC * sizeof(struct TxDesc))
|
#define R8169_TX_RING_BYTES (NUM_TX_DESC * sizeof(struct TxDesc))
|
||||||
|
@ -8316,7 +8315,7 @@ static int rtl_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
|
||||||
dev->ethtool_ops = &rtl8169_ethtool_ops;
|
dev->ethtool_ops = &rtl8169_ethtool_ops;
|
||||||
dev->watchdog_timeo = RTL8169_TX_TIMEOUT;
|
dev->watchdog_timeo = RTL8169_TX_TIMEOUT;
|
||||||
|
|
||||||
netif_napi_add(dev, &tp->napi, rtl8169_poll, R8169_NAPI_WEIGHT);
|
netif_napi_add(dev, &tp->napi, rtl8169_poll, NAPI_POLL_WEIGHT);
|
||||||
|
|
||||||
/* don't enable SG, IP_CSUM and TSO by default - it might not work
|
/* don't enable SG, IP_CSUM and TSO by default - it might not work
|
||||||
* properly for all devices */
|
* properly for all devices */
|
||||||
|
|
Загрузка…
Ссылка в новой задаче