]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[bnxt] Skip unnecessary calls for VFs 1634/head
authorJoseph Wong <joseph.wong@broadcom.com>
Mon, 23 Feb 2026 19:30:40 +0000 (11:30 -0800)
committerMichael Brown <mcb30@ipxe.org>
Tue, 24 Feb 2026 09:58:38 +0000 (09:58 +0000)
Add a check for VFs in HWRM backing store related functions to return
immediately as these function are not needed.

Signed-off-by: Joseph Wong <joseph.wong@broadcom.com>
src/drivers/net/bnxt/bnxt.c

index f79b549682b6ccd7fe2d4e25813fb9c73a3a3174..e49734699a94f8353371f8692368092693df689e 100644 (file)
@@ -1432,7 +1432,7 @@ static int bnxt_hwrm_backing_store_qcfg ( struct bnxt *bp )
        struct hwrm_func_backing_store_qcfg_input *req;
 
        DBGP ( "%s\n", __func__ );
-       if ( ! ( FLAG_TEST ( bp->flags, BNXT_FLAG_IS_CHIP_P5_PLUS ) ) )
+       if ( ! ( FLAG_TEST ( bp->flags, BNXT_FLAG_IS_CHIP_P5_PLUS ) ) || bp->vf )
                return STATUS_SUCCESS;
 
        req = ( struct hwrm_func_backing_store_qcfg_input * ) REQ_DMA_ADDR ( bp );
@@ -1447,7 +1447,7 @@ static int bnxt_hwrm_backing_store_cfg ( struct bnxt *bp )
        struct hwrm_func_backing_store_cfg_input *req;
 
        DBGP ( "%s\n", __func__ );
-       if ( ! ( FLAG_TEST ( bp->flags, BNXT_FLAG_IS_CHIP_P5_PLUS ) ) )
+       if ( ! ( FLAG_TEST ( bp->flags, BNXT_FLAG_IS_CHIP_P5_PLUS ) ) || bp->vf )
                return STATUS_SUCCESS;
 
        req = ( struct hwrm_func_backing_store_cfg_input * ) REQ_DMA_ADDR ( bp );