mirror of
https://github.com/ipxe/ipxe.git
synced 2026-05-05 12:26:37 +02: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:
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;
|
||||
|
||||
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 );
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user