net: drop the weight argument from netif_napi_add
We tell driver developers to always pass NAPI_POLL_WEIGHT as the weight to netif_napi_add(). This may be confusing to newcomers, drop the weight argument, those who really need to tweak the weight can use netif_napi_add_weight(). Acked-by: Marc Kleine-Budde <mkl@pengutronix.de> # for CAN Link: https://lore.kernel.org/r/20220927132753.750069-1-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
@@ -723,8 +723,7 @@ int xenvif_connect_data(struct xenvif_queue *queue,
|
||||
init_waitqueue_head(&queue->dealloc_wq);
|
||||
atomic_set(&queue->inflight_packets, 0);
|
||||
|
||||
netif_napi_add(queue->vif->dev, &queue->napi, xenvif_poll,
|
||||
NAPI_POLL_WEIGHT);
|
||||
netif_napi_add(queue->vif->dev, &queue->napi, xenvif_poll);
|
||||
|
||||
queue->stalled = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user