Skip to content

Commit

Permalink
net/ice/base: ignore promiscuous already exist
Browse files Browse the repository at this point in the history
[ upstream commit 6883487 ]

Ignore ERR_ALREADY_EXISTS error when setting promiscuous mode.
This fix is needed because the driver could set promiscuous mode
when it still has not cleared properly.
Promiscuous mode could be set only once, so setting it second
time will be rejected.

Fixes: 60ff6f5 ("net/ice/base: consolidate VF promiscuous mode")

Signed-off-by: Grzegorz Siwik <grzegorz.siwik@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Qiming Yang <qiming.yang@intel.com>
  • Loading branch information
qzhan16 authored and kevintraynor committed Oct 11, 2022
1 parent da3be8c commit 65e2ff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ice/base/ice_switch.c
Original file line number Diff line number Diff line change
Expand Up @@ -6231,7 +6231,7 @@ _ice_set_vlan_vsi_promisc(struct ice_hw *hw, u16 vsi_handle, u8 promisc_mask,
status = _ice_set_vsi_promisc(hw, vsi_handle,
promisc_mask, vlan_id,
lport, sw);
if (status)
if (status && status != ICE_ERR_ALREADY_EXISTS)
break;
}

Expand Down

0 comments on commit 65e2ff5

Please sign in to comment.