aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/igb/igb_main.c
diff options
context:
space:
mode:
authorKurt Kanzenbach <[email protected]>2025-03-19 10:26:41 +0000
committerTony Nguyen <[email protected]>2025-04-29 22:13:43 +0000
commitfc0fb1f116e97012d90bb77a6032972564ed8fd6 (patch)
tree52854ef75476390b531c8605b7dc52550774d7e3 /drivers/net/ethernet/intel/igb/igb_main.c
parentigb: Link queues to NAPI instances (diff)
downloadkernel-fc0fb1f116e97012d90bb77a6032972564ed8fd6.tar.gz
kernel-fc0fb1f116e97012d90bb77a6032972564ed8fd6.zip
igb: Add support for persistent NAPI config
Use netif_napi_add_config() to assign persistent per-NAPI config. This is useful for preserving NAPI settings when changing queue counts or for user space programs using SO_INCOMING_NAPI_ID. Reviewed-by: Joe Damato <[email protected]> Reviewed-by: Aleksandr Loktionov <[email protected]> Tested-by: Rinitha S <[email protected]> (A Contingent worker at Intel) Signed-off-by: Kurt Kanzenbach <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igb/igb_main.c')
-rw-r--r--drivers/net/ethernet/intel/igb/igb_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c
index 0535cc72b11b..d9205573886e 100644
--- a/drivers/net/ethernet/intel/igb/igb_main.c
+++ b/drivers/net/ethernet/intel/igb/igb_main.c
@@ -1197,7 +1197,8 @@ static int igb_alloc_q_vector(struct igb_adapter *adapter,
return -ENOMEM;
/* initialize NAPI */
- netif_napi_add(adapter->netdev, &q_vector->napi, igb_poll);
+ netif_napi_add_config(adapter->netdev, &q_vector->napi, igb_poll,
+ v_idx);
/* tie q_vector and adapter together */
adapter->q_vector[v_idx] = q_vector;