All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] net/bnxt: fix HWRM command failures during VF unload
@ 2017-10-30 16:08 Ajit Khaparde
  2017-10-31  0:49 ` Ferruh Yigit
  0 siblings, 1 reply; 2+ messages in thread
From: Ajit Khaparde @ 2017-10-30 16:08 UTC (permalink / raw)
  To: dev; +Cc: ferruh.yigit

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 <ajit.khaparde@broadcom.com>
---
 drivers/net/bnxt/bnxt_ethdev.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c
index 888d794a1..4e9b5f03f 100644
--- a/drivers/net/bnxt/bnxt_ethdev.c
+++ b/drivers/net/bnxt/bnxt_ethdev.c
@@ -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,
-- 
2.13.5 (Apple Git-94)

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] net/bnxt: fix HWRM command failures during VF unload
  2017-10-30 16:08 [PATCH] net/bnxt: fix HWRM command failures during VF unload Ajit Khaparde
@ 2017-10-31  0:49 ` Ferruh Yigit
  0 siblings, 0 replies; 2+ messages in thread
From: Ferruh Yigit @ 2017-10-31  0:49 UTC (permalink / raw)
  To: Ajit Khaparde, dev

On 10/30/2017 9:08 AM, Ajit Khaparde wrote:
> 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 <ajit.khaparde@broadcom.com>

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-10-31  0:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-30 16:08 [PATCH] net/bnxt: fix HWRM command failures during VF unload Ajit Khaparde
2017-10-31  0:49 ` Ferruh Yigit

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.