net/vmxnet3: fix filtering on promiscuous disabling
authorChas Williams <ciwillia@brocade.com>
Mon, 24 Jul 2017 14:22:42 +0000 (10:22 -0400)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 3 Aug 2017 20:23:49 +0000 (22:23 +0200)
commitc1f7b53c83f37dcaf373b58e281ef16dc804bc14
tree8569ea1e57127df94a1b49fa14104082761ec0fb
parent897f13a1f726cefdc68762da83f9d2225a85c27e
net/vmxnet3: fix filtering on promiscuous disabling

We should only restore shadow_vfta when hw_vlan_filter is active.
Otherwise, we should restore the previous filtering behavior.

Fixes: f003fc383487 ("vmxnet3: enable vlan filtering")
Cc: stable@dpdk.org
Signed-off-by: Chas Williams <ciwillia@brocade.com>
Acked-by: Shrikrishna Khare <skhare@vmware.com>
drivers/net/vmxnet3/vmxnet3_ethdev.c