Skip to contentSkip to conversation

ice: update representor after SF VSI config

PATCH New Michal Swiatkowski 1 participant 1 message Jun 27, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ice: update representor after SF VSI config

VSI for subfunction is only allocated when port representor is created. The VSI id isn't correct at this state. Update the representor with correct VSI id after the VSI is configured.

---
It should be squashed with:
8a469e1a1cf9 ("ice: create port representor for SF")

---
 drivers/net/ethernet/intel/ice/ice_sf_eth.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/ethernet/intel/ice/ice_sf_eth.c +2 -0
index 73bb9c5d273d..abd74f30dabc 100644
@@ -125,6 +125,8 @@ static int ice_sf_dev_probe(struct auxiliary_device *adev,
 	}
 	vsi->sf = dyn_port;
 
+	ice_eswitch_update_repr(&dyn_port->repr_id, vsi);
+
 	err = ice_devlink_create_sf_dev_port(sf_dev);
 	if (err) {
 		dev_err(dev, "Cannot add ice virtual devlink port for subfunction");
Signature · 1 line
2.42.0