From: Ajit Khaparde Date: Mon, 30 Oct 2017 16:08:08 +0000 (-0500) Subject: net/bnxt: fix HWRM command failures during VF unload X-Git-Tag: spdx-start~982 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=9cea9e567207b46f26ab112f63b6bffbf9a35d68;p=dpdk.git 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 --- diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c index 61801c25d6..e8c7d0e7c3 100644 --- a/drivers/net/bnxt/bnxt_ethdev.c +++ b/drivers/net/bnxt/bnxt_ethdev.c @@ -2971,6 +2971,8 @@ skip_init: 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,