Skip to content

Commit ff21a4e

Browse files
Michal Swiatkowskianguy11
authored andcommitted
ice: remove unused control VSI parameter
It isn't used in ice_eswitch_release_reprs(). Probably leftover. Remove it. Commit that has removed usage of ctrl_vsi: commit c1e5da5 ("ice: improve switchdev's slow-path") Reviewed-by: Wojciech Drewek <[email protected]> Reviewed-by: Piotr Raczynski <[email protected]> Reviewed-by: Jacob Keller <[email protected]> Signed-off-by: Michal Swiatkowski <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
1 parent ab5fe17 commit ff21a4e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

drivers/net/ethernet/intel/ice/ice_eswitch.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,9 @@ static void ice_eswitch_remap_rings_to_vectors(struct ice_pf *pf)
189189
/**
190190
* ice_eswitch_release_reprs - clear PR VSIs configuration
191191
* @pf: poiner to PF struct
192-
* @ctrl_vsi: pointer to eswitch control VSI
193192
*/
194193
static void
195-
ice_eswitch_release_reprs(struct ice_pf *pf, struct ice_vsi *ctrl_vsi)
194+
ice_eswitch_release_reprs(struct ice_pf *pf)
196195
{
197196
struct ice_vf *vf;
198197
unsigned int bkt;
@@ -286,7 +285,7 @@ static int ice_eswitch_setup_reprs(struct ice_pf *pf)
286285
return 0;
287286

288287
err:
289-
ice_eswitch_release_reprs(pf, ctrl_vsi);
288+
ice_eswitch_release_reprs(pf);
290289

291290
return -ENODEV;
292291
}
@@ -532,7 +531,7 @@ static void ice_eswitch_disable_switchdev(struct ice_pf *pf)
532531
ice_eswitch_napi_disable(pf);
533532
ice_eswitch_br_offloads_deinit(pf);
534533
ice_eswitch_release_env(pf);
535-
ice_eswitch_release_reprs(pf, ctrl_vsi);
534+
ice_eswitch_release_reprs(pf);
536535
ice_vsi_release(ctrl_vsi);
537536
ice_repr_rem_from_all_vfs(pf);
538537
}

0 commit comments

Comments
 (0)