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:
@@ -1546,7 +1546,7 @@ static int ehea_init_port_res(struct ehea_port *port, struct ehea_port_res *pr,
|
||||
|
||||
kfree(init_attr);
|
||||
|
||||
netif_napi_add(pr->port->netdev, &pr->napi, ehea_poll, 64);
|
||||
netif_napi_add(pr->port->netdev, &pr->napi, ehea_poll);
|
||||
|
||||
ret = 0;
|
||||
goto out;
|
||||
|
||||
@@ -1262,7 +1262,7 @@ static int init_napi(struct ibmvnic_adapter *adapter)
|
||||
for (i = 0; i < adapter->req_rx_queues; i++) {
|
||||
netdev_dbg(adapter->netdev, "Adding napi[%d]\n", i);
|
||||
netif_napi_add(adapter->netdev, &adapter->napi[i],
|
||||
ibmvnic_poll, NAPI_POLL_WEIGHT);
|
||||
ibmvnic_poll);
|
||||
}
|
||||
|
||||
adapter->num_active_rx_napi = adapter->req_rx_queues;
|
||||
|
||||
Reference in New Issue
Block a user