From: Ajit Khaparde Date: Tue, 31 Oct 2017 14:45:57 +0000 (-0500) Subject: net/bnxt: fix VLAN spoof configuration X-Git-Tag: spdx-start~974 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=81f1d2395749e76c3de286b4333cd28728370083;p=dpdk.git net/bnxt: fix VLAN spoof configuration We are not programming the vlan_spoof setting currently owing to an unnecessary check. This patch fixes that. Fixes: 36735a932ca7 ("net/bnxt: support set VF QOS and MAC anti spoof") Cc: stable@dpdk.org Signed-off-by: Ajit Khaparde --- diff --git a/drivers/net/bnxt/rte_pmd_bnxt.c b/drivers/net/bnxt/rte_pmd_bnxt.c index 8b67ad7ff6..a313407429 100644 --- a/drivers/net/bnxt/rte_pmd_bnxt.c +++ b/drivers/net/bnxt/rte_pmd_bnxt.c @@ -322,9 +322,6 @@ int rte_pmd_bnxt_set_vf_vlan_anti_spoof(uint16_t port, uint16_t vf, uint8_t on) if (vf >= dev_info.max_vfs) return -EINVAL; - if (on == bp->pf.vf_info[vf].vlan_spoof_en) - return 0; - rc = bnxt_hwrm_func_cfg_vf_set_vlan_anti_spoof(bp, vf, on); if (!rc) { bp->pf.vf_info[vf].vlan_spoof_en = on;