c037fc8732
Only set the vlanonly bit if vlan_nonvlan is clear. Also, allow the VLAN table to be cleared when vlanonly is set. Clearing the VLAN table when vlanonly is set will stop all traffic since it requires all frames to have a VLAN tag, and that tag to be in the zero-length table. This is still a valid use case though, and has been seen in the wild. Fixes: 36735a932ca7 ("net/bnxt: support set VF QOS and MAC anti spoof") Signed-off-by: Stephen Hurd <stephen.hurd@broadcom.com> Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>