net/bnxt: fix HWRM command failures during VF unload
PATCH 1/1 net/bnxt: fix HWRM command failures during VF unload
In some cases when a VF driver is unloaded after the PF driver, certain HWRM commands are returned with an error. Instead the PF can tell the FW to permit these commands in order to allow a clean unload.
Signed-off-by Ajit Khaparde <[email protected]>
--- drivers/net/bnxt/bnxt_ethdev.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/net/bnxt/bnxt_ethdev.c +2 -0
@@ -2971,6 +2971,8 @@ bnxt_dev_init(struct rte_eth_dev *eth_dev)ALLOW_FUNC (HWRM_VNIC_RSS_COS_LB_CTX_FREE );ALLOW_FUNC (HWRM_CFA_L2_FILTER_FREE );ALLOW_FUNC (HWRM_STAT_CTX_FREE ); +ALLOW_FUNC (HWRM_PORT_PHY_QCFG ); +ALLOW_FUNC (HWRM_VNIC_TPA_CFG ); rc =bnxt_hwrm_func_driver_register (bp);if (rc) { RTE_LOG(ERR, PMD,
Signature · 1 line
2.13.5 (Apple Git-94)
Ferruh Yigit
AppliedQuoted 5 lines · Ajit Khaparde
In some cases when a VF driver is unloaded after the PF driver, certain HWRM commands are returned with an error. Instead the PF can tell the FW to permit these commands in order to allow a clean unload.
Signed-off-by Ajit Khaparde <[email protected]>
Applied to dpdk-next-net/master, thanks.