From 9d6831bb07f0015f49e571d96f6bd960e2762ea3 Mon Sep 17 00:00:00 2001 From: Joseph Wong Date: Fri, 20 Feb 2026 00:22:08 -0800 Subject: [PATCH] [bnxt] Correct port index usage Use port index value retrieved from the firmware when calling bnxt_hwrm_queue_qportcfg() to retrieve the queue_id. This function is available for all devices. Signed-off-by: Joseph Wong --- src/drivers/net/bnxt/bnxt.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/drivers/net/bnxt/bnxt.c b/src/drivers/net/bnxt/bnxt.c index 703f6e384..9d2996ca4 100644 --- a/src/drivers/net/bnxt/bnxt.c +++ b/src/drivers/net/bnxt/bnxt.c @@ -1481,14 +1481,12 @@ static int bnxt_hwrm_queue_qportcfg ( struct bnxt *bp ) int rc; DBGP ( "%s\n", __func__ ); - if ( ! ( FLAG_TEST ( bp->flags, BNXT_FLAG_IS_CHIP_P5_PLUS ) ) ) - return STATUS_SUCCESS; req = ( struct hwrm_queue_qportcfg_input * ) REQ_DMA_ADDR ( bp ); resp = ( struct hwrm_queue_qportcfg_output * ) RESP_DMA_ADDR ( bp ); hwrm_init ( bp, ( void * )req, ( u16 )HWRM_QUEUE_QPORTCFG, cmd_len ); req->flags = 0; - req->port_id = 0; + req->port_id = bp->port_idx; rc = wait_resp ( bp, bp->hwrm_cmd_timeout, cmd_len, __func__ ); if ( rc ) { DBGP ( "- %s ( ): Failed\n", __func__ );