git: 8c69a5dc60b3 - main - if_bnxt: Fix interrupt storm on Thor2

From: Sumit Saxena <ssaxena_at_FreeBSD.org>
Date: Fri, 09 Oct 2026 10:12:36 UTC
The branch main has been updated by ssaxena:

URL: https://cgit.FreeBSD.org/src/commit/?id=8c69a5dc60b3630a4c5bca0bda714f791324afad

commit 8c69a5dc60b3630a4c5bca0bda714f791324afad
Author:     Sreekanth Reddy <sreekanth.reddy@broadcom.com>
AuthorDate: 2026-07-29 11:28:35 +0000
Commit:     Sumit Saxena <ssaxena@FreeBSD.org>
CommitDate: 2026-10-09 08:24:43 +0000

    if_bnxt: Fix interrupt storm on Thor2
    
    An interrupt storm was observed on Thor2 because the Rx CQ consumer
    index was always one less than it should be. Correct the Rx CQ
    consumer index to fix the storm.
    
    Reported by:    gallatin
    Reviewed by:    gallatin
    MFC after:      2 weeks
    Sponsored by:   Broadcom Inc.
    Differential Revision:  https://reviews.freebsd.org/D58602
---
 sys/dev/bnxt/bnxt_en/if_bnxt.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sys/dev/bnxt/bnxt_en/if_bnxt.c b/sys/dev/bnxt/bnxt_en/if_bnxt.c
index 79773ca6e427..dcfb7e61f0ca 100644
--- a/sys/dev/bnxt/bnxt_en/if_bnxt.c
+++ b/sys/dev/bnxt/bnxt_en/if_bnxt.c
@@ -1679,8 +1679,7 @@ bnxt_thor2_db_rx_cq(void *db_ptr, bool enable_irq)
 	uint32_t cons = cpr->raw_cons;
 	uint32_t toggle = 0;
 
-	if (cons == UINT32_MAX)
-		cons = 0;
+	cons++;
 
 	if (enable_irq == true)
 		toggle = cpr->toggle;