aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_lib.c
diff options
context:
space:
mode:
authorBrett Creeley <[email protected]>2019-11-08 14:23:24 +0000
committerJeff Kirsher <[email protected]>2019-11-22 21:15:08 +0000
commit1bc7a4ab85ba0d874b193f2812a5e14e1ec6e9af (patch)
treebe4e5fd72bf8ee0f620baa4c5da19d5e8fd57f43 /drivers/net/ethernet/intel/ice/ice_lib.c
parentice: Fix setting coalesce to handle DCB configuration (diff)
downloadkernel-1bc7a4ab85ba0d874b193f2812a5e14e1ec6e9af.tar.gz
kernel-1bc7a4ab85ba0d874b193f2812a5e14e1ec6e9af.zip
ice: Refactor removal of VLAN promiscuous rules
Currently ice_clear_vsi_promisc() detects if the VLAN ID sent is not 0 and sets the recipe_id to ICE_SW_LKUP_PROMISC_VLAN in that case and ICE_SW_LKUP_PROMISC if the VLAN_ID is 0. However this doesn't allow VLAN 0 promiscuous rules to be removed, but they can be added. Fix this by checking if the promisc_mask contains ICE_PROMISC_VLAN_RX or ICE_PROMISC_VLAN_TX. This change was made to match what is being done for ice_set_vsi_promisc(). Signed-off-by: Brett Creeley <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_lib.c')
0 files changed, 0 insertions, 0 deletions