From b0593363c25a2f0258feaa87d829fa08360b54f2 Mon Sep 17 00:00:00 2001 From: Randy Schacher Date: Mon, 30 Apr 2018 18:06:16 -0700 Subject: [PATCH] net/bnxt: clear HWRM sniffer list for PFs Clear HWRM sniffer list for DPDK PFs so that VFs on DPDK PFs initialize successfully. DPDK PF driver does not handle HWRM commands from VFs. Signed-off-by: Randy Schacher Signed-off-by: Scott Branden Reviewed-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_hwrm.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c index d3c50e4901..5b9840d4fe 100644 --- a/drivers/net/bnxt/bnxt_hwrm.c +++ b/drivers/net/bnxt/bnxt_hwrm.c @@ -611,6 +611,15 @@ int bnxt_hwrm_func_driver_register(struct bnxt *bp) memcpy(req.vf_req_fwd, bp->pf.vf_req_fwd, RTE_MIN(sizeof(req.vf_req_fwd), sizeof(bp->pf.vf_req_fwd))); + + /* + * PF can sniff HWRM API issued by VF. This can be set up by + * linux driver and inherited by the DPDK PF driver. Clear + * this HWRM sniffer list in FW because DPDK PF driver does + * not support this. + */ + req.flags = + rte_cpu_to_le_32(HWRM_FUNC_DRV_RGTR_INPUT_FLAGS_FWD_NONE_MODE); } req.async_event_fwd[0] |= -- 2.20.1