Message ID | 20230524111259.1323415-3-bigeasy@linutronix.de (mailing list archive) |
---|---|
State | RFC |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | net: Add sysfs files for threaded NAPI. | expand |
diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c index 58872a4c25401..e7e662bf965ab 100644 --- a/drivers/net/ethernet/intel/igb/igb_main.c +++ b/drivers/net/ethernet/intel/igb/igb_main.c @@ -1214,6 +1214,8 @@ static int igb_alloc_q_vector(struct igb_adapter *adapter, /* initialize NAPI */ netif_napi_add(adapter->netdev, &q_vector->napi, igb_poll); + netif_napi_add_hints(&q_vector->napi, q_vector->name, + adapter->msix_entries[v_idx + 1].vector); /* tie q_vector and adapter together */ adapter->q_vector[v_idx] = q_vector;
This works only with MSIX in this version. The +1 to v_idx is because the first vector is used for a generic interrupt (igb_msix_other) and the NAPI interrupts/ vectors follow after that one. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> --- drivers/net/ethernet/intel/igb/igb_main.c | 2 ++ 1 file changed, 2 insertions(+)