]> www.infradead.org Git - users/jedix/linux-maple.git/commit
eth: fbnic: store NAPIs in an array instead of the list
authorJakub Kicinski <kuba@kernel.org>
Fri, 20 Dec 2024 02:52:37 +0000 (18:52 -0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 23 Dec 2024 18:35:55 +0000 (10:35 -0800)
commitdb7159c400ffbbf3e0df1f3ef6b847b7b62186a3
treea62afd6948c722d2be4a218dc88521f4740976b8
parentc23a1461bfee0a6f158795a58c768911c49d6cd0
eth: fbnic: store NAPIs in an array instead of the list

We will need an array for storing NAPIs in the upcoming IRQ handler
reuse rework. Replace the current list we have, so that we are able
to reuse it later.

In a few places replace i as the iterator with t when we iterate
over triads, this seems slightly less confusing than having
i, j, k variables.

Link: https://patch.msgid.link/20241220025241.1522781-7-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/meta/fbnic/fbnic_netdev.c
drivers/net/ethernet/meta/fbnic/fbnic_netdev.h
drivers/net/ethernet/meta/fbnic/fbnic_txrx.c
drivers/net/ethernet/meta/fbnic/fbnic_txrx.h