diff options
| author | Mateusz Pacuszka <[email protected]> | 2025-02-14 08:50:35 +0000 |
|---|---|---|
| committer | Tony Nguyen <[email protected]> | 2025-04-11 16:32:31 +0000 |
| commit | a808691df39b52cd9db861b118e88e18b63e2299 (patch) | |
| tree | b9591e06181c0919ca51788e9dd9c9896eea1fd1 /drivers/net/ethernet/intel/ice/ice_lib.c | |
| parent | net: stmmac: stm32: simplify clock handling (diff) | |
| download | kernel-a808691df39b52cd9db861b118e88e18b63e2299.tar.gz kernel-a808691df39b52cd9db861b118e88e18b63e2299.zip | |
ice: fix check for existing switch rule
In case the rule already exists and another VSI wants to subscribe to it
new VSI list is being created and both VSIs are moved to it.
Currently, the check for already existing VSI with the same rule is done
based on fdw_id.hw_vsi_id, which applies only to LOOKUP_RX flag.
Change it to vsi_handle. This is software VSI ID, but it can be applied
here, because vsi_map itself is also based on it.
Additionally change return status in case the VSI already exists in the
VSI map to "Already exists". Such case should be handled by the caller.
Signed-off-by: Mateusz Pacuszka <[email protected]>
Reviewed-by: Przemek Kitszel <[email protected]>
Reviewed-by: Michal Swiatkowski <[email protected]>
Signed-off-by: Larysa Zaremba <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Tested-by: Rafal Romanowski <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_lib.c')
0 files changed, 0 insertions, 0 deletions
