Skip to contentSkip to conversation

net/bnxt: fix HWRM command failures during VF unload

PATCH Applied Ajit Khaparde 2 participants 2 messages Oct 30, 2017 – Oct 31, 2017 Network drivers

lore
Share & tools
lore
#0 lore raw

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.

---
 drivers/net/bnxt/bnxt_ethdev.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/bnxt/bnxt_ethdev.c +2 -0
index 888d794a1..4e9b5f03f 100644
@@ -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)
Applied
#1 lore raw
Quoted 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.

Applied to dpdk-next-net/master, thanks.