net/ice/base: fix duplicate flow rules
When a vsi that already exists in the created vsi_list subscribes to the
same filter again, the return value ICE_SUCCESS results in duplicate flow
rules to be stored, which will cause 'flush' and 'destroy' errors.
Fixes: fed0c5ca5f
("net/ice/base: support programming a new switch recipe")
Cc: stable@dpdk.org
Signed-off-by: Yiding Zhou <yidingx.zhou@intel.com>
Tested-by: Ke Xu <ke1.xu@intel.com>
This commit is contained in:
parent
07854386bb
commit
43d30256b2
@ -8786,7 +8786,7 @@ ice_adv_add_update_vsi_list(struct ice_hw *hw,
|
||||
|
||||
/* A rule already exists with the new VSI being added */
|
||||
if (ice_is_bit_set(m_entry->vsi_list_info->vsi_map, vsi_handle))
|
||||
return ICE_SUCCESS;
|
||||
return ICE_ERR_ALREADY_EXISTS;
|
||||
|
||||
/* Update the previously created VSI list set with
|
||||
* the new VSI ID passed in
|
||||
|
Loading…
Reference in New Issue
Block a user