net/bnxt: fix VLAN spoof configuration
authorAjit Khaparde <ajit.khaparde@broadcom.com>
Tue, 31 Oct 2017 14:45:57 +0000 (09:45 -0500)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 1 Nov 2017 21:17:06 +0000 (22:17 +0100)
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 <ajit.khaparde@broadcom.com>
drivers/net/bnxt/rte_pmd_bnxt.c

index 8b67ad7..a313407 100644 (file)
@@ -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;