]> www.infradead.org Git - users/hch/misc.git/commitdiff
eth: fbnic: support persistent NAPI config
authorJakub Kicinski <kuba@kernel.org>
Fri, 5 Sep 2025 02:22:54 +0000 (19:22 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 9 Sep 2025 14:03:27 +0000 (16:03 +0200)
No shenanigans in this driver, AFAIU, pass the vector index to NAPI
registration.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Link: https://patch.msgid.link/20250905022254.2635707-1-kuba@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/meta/fbnic/fbnic_txrx.c

index 493f7f4df0134b449a033b8eb99219276bdde773..ac555e045e349027ab115bcea75a23b57a2ae187 100644 (file)
@@ -1621,7 +1621,8 @@ static int fbnic_alloc_napi_vector(struct fbnic_dev *fbd, struct fbnic_net *fbn,
 
        /* Tie napi to netdev */
        fbn->napi[fbnic_napi_idx(nv)] = nv;
-       netif_napi_add_locked(fbn->netdev, &nv->napi, fbnic_poll);
+       netif_napi_add_config_locked(fbn->netdev, &nv->napi, fbnic_poll,
+                                    fbnic_napi_idx(nv));
 
        /* Record IRQ to NAPI struct */
        netif_napi_set_irq_locked(&nv->napi,