net/bnxt: fix setting VLAN anti spoof with same value
authorAjit Khaparde <ajit.khaparde@broadcom.com>
Tue, 25 Jul 2017 03:32:23 +0000 (22:32 -0500)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 31 Jul 2017 17:58:41 +0000 (19:58 +0200)
commit980543f754be9d87b93392c8e814ba35b26482e5
tree73f8ee8c6f415c04a24b317c5a3457dae0b6d0a9
parent09192d98ba9f55eac98a165cb3b77ae8f303604d
net/bnxt: fix setting VLAN anti spoof with same value

If the current VLAN anti spoof setting is same as the new value,
the firmware can return an error. Call the HWRM command to update
the new setting if it is different from the current value.

Fixes: 36735a932ca7 ("net/bnxt: support set VF QOS and MAC anti spoof")

Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/rte_pmd_bnxt.c