net/i40e: fix VLAN promisc setting
authorWenzhuo Lu <wenzhuo.lu@intel.com>
Sat, 1 Apr 2017 06:15:57 +0000 (14:15 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 4 Apr 2017 17:03:03 +0000 (19:03 +0200)
commit974fd9991a3f8cc329252eba1127381db35beca4
treeabd22733c011942106052daee0e57e681b035665
parent41f0e86033b9cff50e9894737a0a2f978510e2cf
net/i40e: fix VLAN promisc setting

After adding VLAN filter, the VLAN promiscuous mode is
disabled. But there's no chance to enable it.
So add the check after deleting VLAN filter. If there's
no VLAN filter left, enable the VLAN promiscuous mode.

Fixes: 9f0645cd147c ("net/i40e: fix VLAN filter")

Signed-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
drivers/net/i40e/i40e_ethdev.c