mirror of
https://github.com/ipxe/ipxe
synced 2026-05-14 20:00:42 +03:00
[bnxt] Skip unnecessary calls for VFs
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>
This commit is contained in:
committed by
Michael Brown
parent
9443f7a2a7
commit
a6d393ecc8
@@ -1432,7 +1432,7 @@ static int bnxt_hwrm_backing_store_qcfg ( struct bnxt *bp )
|
|||||||
struct hwrm_func_backing_store_qcfg_input *req;
|
struct hwrm_func_backing_store_qcfg_input *req;
|
||||||
|
|
||||||
DBGP ( "%s\n", __func__ );
|
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;
|
return STATUS_SUCCESS;
|
||||||
|
|
||||||
req = ( struct hwrm_func_backing_store_qcfg_input * ) REQ_DMA_ADDR ( bp );
|
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;
|
struct hwrm_func_backing_store_cfg_input *req;
|
||||||
|
|
||||||
DBGP ( "%s\n", __func__ );
|
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;
|
return STATUS_SUCCESS;
|
||||||
|
|
||||||
req = ( struct hwrm_func_backing_store_cfg_input * ) REQ_DMA_ADDR ( bp );
|
req = ( struct hwrm_func_backing_store_cfg_input * ) REQ_DMA_ADDR ( bp );
|
||||||
|
|||||||
Reference in New Issue
Block a user