diff options
| author | Michal Swiatkowski <[email protected]> | 2024-03-01 11:54:12 +0000 |
|---|---|---|
| committer | Tony Nguyen <[email protected]> | 2024-03-25 20:08:05 +0000 |
| commit | 6235cb6e5b0de0717a1055740f6fd83a28531193 (patch) | |
| tree | d4ec25e9f9922089aef0f8413b9b8ca310b85f71 /drivers/net/ethernet/intel/ice/ice_repr.c | |
| parent | ice: remove switchdev control plane VSI (diff) | |
| download | kernel-6235cb6e5b0de0717a1055740f6fd83a28531193.tar.gz kernel-6235cb6e5b0de0717a1055740f6fd83a28531193.zip | |
ice: change repr::id values
Instead of getting repr::id from xa_alloc() value, set it to the
src_vsi::num_vsi value. It is unique for each PR.
Reviewed-by: Przemek Kitszel <[email protected]>
Reviewed-by: Marcin Szycik <[email protected]>
Signed-off-by: Michal Swiatkowski <[email protected]>
Tested-by: Sujai Buvaneswaran <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_repr.c')
| -rw-r--r-- | drivers/net/ethernet/intel/ice/ice_repr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_repr.c b/drivers/net/ethernet/intel/ice/ice_repr.c index a5c24da31b88..b4fb74271811 100644 --- a/drivers/net/ethernet/intel/ice/ice_repr.c +++ b/drivers/net/ethernet/intel/ice/ice_repr.c @@ -345,6 +345,7 @@ ice_repr_add(struct ice_pf *pf, struct ice_vsi *src_vsi, const u8 *parent_mac) } repr->src_vsi = src_vsi; + repr->id = src_vsi->vsi_num; np = netdev_priv(repr->netdev); np->repr = repr; |
