ice: Restore fix disabling RX VLAN filtering
authorMarcin Szycik <marcin.szycik@linux.intel.com>
Tue, 7 Nov 2023 13:51:38 +0000 (14:51 +0100)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 5 Dec 2023 18:51:22 +0000 (10:51 -0800)
commit4e7f0087b058cc3cab8f3c32141b51aa5457d298
tree1737373e08500e3ce4a76568be3678560738184e
parentf8e9889f54da6e3146c2cb3f5c206cf1a704f9d3
ice: Restore fix disabling RX VLAN filtering

Fix setting dis_rx_filtering depending on whether port vlan is being
turned on or off. This was originally fixed in commit c793f8ea15e3 ("ice:
Fix disabling Rx VLAN filtering with port VLAN enabled"), but while
refactoring ice_vf_vsi_init_vlan_ops(), the fix has been lost. Restore the
fix along with the original comment from that change.

Also delete duplicate lines in ice_port_vlan_on().

Fixes: 2946204b3fa8 ("ice: implement bridge port vlan")
Reviewed-by: Wojciech Drewek <wojciech.drewek@intel.com>
Signed-off-by: Marcin Szycik <marcin.szycik@linux.intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Tested-by: Rafal Romanowski <rafal.romanowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_vf_vsi_vlan_ops.c