Skip to contentSkip to conversation

ice: Fix switchdev environment cleanup

PATCH New Wojciech Drewek 2 participants 2 messages Oct 1, 2021 – Oct 8, 2021

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

PATCH 1/1 ice: Fix switchdev environment cleanup

ice_vsi_release should be called after ice_eswitch_release_reprs because we are referring to the switchdev control VSI in ice_eswitch_release_reprs.

---
 drivers/net/ethernet/intel/ice/ice_eswitch.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/ice/ice_eswitch.c +1 -1
index c417aacd8579..f10d1fe63de4 100644
@@ -443,8 +443,8 @@ static void ice_eswitch_disable_switchdev(struct ice_pf *pf)
 
 	ice_eswitch_napi_disable(pf);
 	ice_eswitch_release_env(pf);
-	ice_vsi_release(ctrl_vsi);
 	ice_eswitch_release_reprs(pf, ctrl_vsi);
+	ice_vsi_release(ctrl_vsi);
 	ice_repr_rem_from_all_vfs(pf);
 }
 
Signature · 1 line
2.31.1
#1 lore raw

PATCH 1/1 ice: Fix switchdev environment cleanup

Quoted 4 lines

-----Original Message-----
From: Intel-wired-lan <[email protected]> On Behalf Of Drewek, Wojciech
Sent: Saturday, October 2, 2021 2:41 AM

To: [email protected]

Quoted 6 lines

Subject: [Intel-wired-lan] [PATCH net-next] ice: Fix switchdev environment cleanup

ice_vsi_release should be called after ice_eswitch_release_reprs because we are referring to the switchdev control VSI in ice_eswitch_release_reprs.

Quoted 7 lines

---
drivers/net/ethernet/intel/ice/ice_eswitch.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)