diff options
author | Michael Chan <michael.chan@broadcom.com> | 2023-11-21 00:44:04 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-11-22 02:32:49 +0100 |
commit | f94471f3ce74a5fbe2dc5d9687748d9127174eca (patch) | |
tree | 9c7c4cbd58ccc26ee41738850eb98c2cef9170a4 /drivers/net/ethernet/atheros/ag71xx.c | |
parent | bnxt_en: Modify RX ring indexing logic. (diff) | |
download | linux-f94471f3ce74a5fbe2dc5d9687748d9127174eca.tar.xz linux-f94471f3ce74a5fbe2dc5d9687748d9127174eca.zip |
bnxt_en: Modify the NAPI logic for the new P7 chips
Modify the NAPI logic for the new doorbell mechanism on P7 chips.
These changes are compatible with the current P5 chips.
In the current logic, bnxt_poll_p5() services 1 or more CQs for each
MSIX. Each MSIX has an associated NQ and each NQ has 1 or more
associated CQs. If any CQ reaches NAPI budget, we'll stay in polling
mode and will unconditionally check and service all CQs until we exit
polling. We always re-arm all CQs when we exit polling.
To be compatible with the new Toggle bit mechanism in P7 chips, we need
to modify the logic so that we service and re-arm the CQ only if we
receive an NQE notification for work for that CQ. We add a new
had_nqe_notify bit to the cp_ring_info structure and it gets set when we
see the NQE notification for that CQ anytime during polling. We'll
service and re-arm only the CQs with the had_nqe_notify bits set.
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Link: https://lore.kernel.org/r/20231120234405.194542-13-michael.chan@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/atheros/ag71xx.c')
0 files changed, 0 insertions, 0 deletions