bnxt_en: Implement the new toggle bit doorbell mechanism on P7 chips
authorMichael Chan <michael.chan@broadcom.com>
Fri, 1 Dec 2023 22:39:14 +0000 (14:39 -0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 4 Dec 2023 23:12:47 +0000 (15:12 -0800)
commitd846992e6387fa1f2142952fe94a4bff5ee61d30
tree2e59cddb68fc06482751fd799552c5b0a1d79e12
parentd3c16475dc06641a52251bc9948c1d3002ea4388
bnxt_en: Implement the new toggle bit doorbell mechanism on P7 chips

The new chip family passes the Toggle bits to the driver in the NQE
notification.  The driver now stores this value and sends it back to
hardware when it re-arms the RX and TX CQs.  Together with the earlier
patch that guarantees the driver will only re-arm the CQ at the end of
NAPI polling if it has seen a new NQE, this method allows the hardware
to detect any dropped doorbells.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Link: https://lore.kernel.org/r/20231201223924.26955-6-michael.chan@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h