Skip to contentSkip to conversation

net/bnxt: fix vlan spoof configuration

PATCH Applied Ajit Khaparde 2 participants 2 messages Oct 31, 2017 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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")
---
 drivers/net/bnxt/rte_pmd_bnxt.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/net/bnxt/rte_pmd_bnxt.c +0 -3
index 8b67ad7ff..a31340742 100644
@@ -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;
Signature · 1 line
2.13.5 (Apple Git-94)
Applied
#1 lore raw
Quoted 6 lines · Ajit Khaparde

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")

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