]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[bnxt] Correct port index usage 1629/head 1631/head
authorJoseph Wong <joseph.wong@broadcom.com>
Fri, 20 Feb 2026 08:22:08 +0000 (00:22 -0800)
committerMichael Brown <mcb30@ipxe.org>
Mon, 23 Feb 2026 12:27:53 +0000 (12:27 +0000)
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 <joseph.wong@broadcom.com>
src/drivers/net/bnxt/bnxt.c

index 703f6e3847f9000a2d2dc6eaedbbd59180b149e5..9d2996ca47f6283a15f54efe33f9282630ce4a6c 100644 (file)
@@ -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__ );