From: Venkat Duvvuru Date: Thu, 2 Jul 2020 23:28:27 +0000 (-0700) Subject: net/bnxt: enable port MAC qcfg command for trusted VF X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=073a695eadb2718d1bd38a34bd38216d655e8f8c;p=dpdk.git net/bnxt: enable port MAC qcfg command for trusted VF Issue HWRM_PORT_MAC_QCFG command on trusted vf to fetch the port count. Signed-off-by: Venkat Duvvuru Reviewed-by: Somnath Kotur Reviewed-by: Ajit Khaparde --- diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c index 2605ef039d..6ade32d1b2 100644 --- a/drivers/net/bnxt/bnxt_hwrm.c +++ b/drivers/net/bnxt/bnxt_hwrm.c @@ -3194,14 +3194,14 @@ int bnxt_hwrm_port_mac_qcfg(struct bnxt *bp) bp->port_svif = BNXT_SVIF_INVALID; - if (!BNXT_PF(bp)) + if (BNXT_VF(bp) && !BNXT_VF_IS_TRUSTED(bp)) return 0; HWRM_PREP(&req, HWRM_PORT_MAC_QCFG, BNXT_USE_CHIMP_MB); rc = bnxt_hwrm_send_message(bp, &req, sizeof(req), BNXT_USE_CHIMP_MB); - HWRM_CHECK_RESULT(); + HWRM_CHECK_RESULT_SILENT(); port_svif_info = rte_le_to_cpu_16(resp->port_svif_info); if (port_svif_info &