mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00:00
qeth: 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> Acked-by: Alexandra Winter <wintera@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e9c6ec6510
commit
4bb0c7f09a
@ -801,8 +801,6 @@ struct qeth_priv {
|
||||
u32 brport_features;
|
||||
};
|
||||
|
||||
#define QETH_NAPI_WEIGHT NAPI_POLL_WEIGHT
|
||||
|
||||
struct qeth_card {
|
||||
enum qeth_card_states state;
|
||||
spinlock_t lock;
|
||||
|
@ -7100,7 +7100,7 @@ int qeth_open(struct net_device *dev)
|
||||
local_bh_disable();
|
||||
qeth_for_each_output_queue(card, queue, i) {
|
||||
netif_tx_napi_add(dev, &queue->napi, qeth_tx_poll,
|
||||
QETH_NAPI_WEIGHT);
|
||||
NAPI_POLL_WEIGHT);
|
||||
napi_enable(&queue->napi);
|
||||
napi_schedule(&queue->napi);
|
||||
}
|
||||
|
@ -1133,7 +1133,7 @@ static int qeth_l2_setup_netdev(struct qeth_card *card)
|
||||
PAGE_SIZE * (QDIO_MAX_ELEMENTS_PER_BUFFER - 1));
|
||||
}
|
||||
|
||||
netif_napi_add(card->dev, &card->napi, qeth_poll, QETH_NAPI_WEIGHT);
|
||||
netif_napi_add(card->dev, &card->napi, qeth_poll, NAPI_POLL_WEIGHT);
|
||||
return register_netdev(card->dev);
|
||||
}
|
||||
|
||||
|
@ -1910,7 +1910,7 @@ static int qeth_l3_setup_netdev(struct qeth_card *card)
|
||||
netif_set_gso_max_size(card->dev,
|
||||
PAGE_SIZE * (QETH_MAX_BUFFER_ELEMENTS(card) - 1));
|
||||
|
||||
netif_napi_add(card->dev, &card->napi, qeth_poll, QETH_NAPI_WEIGHT);
|
||||
netif_napi_add(card->dev, &card->napi, qeth_poll, NAPI_POLL_WEIGHT);
|
||||
return register_netdev(card->dev);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user