Commit ff21a4e6 authored by Michal Swiatkowski's avatar Michal Swiatkowski Committed by Tony Nguyen

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 c1e5da5d ("ice: improve switchdev's slow-path")
Reviewed-by: default avatarWojciech Drewek <wojciech.drewek@intel.com>
Reviewed-by: default avatarPiotr Raczynski <piotr.raczynski@intel.com>
Reviewed-by: default avatarJacob Keller <jacob.e.keller@intel.com>
Signed-off-by: default avatarMichal Swiatkowski <michal.swiatkowski@linux.intel.com>
Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
parent ab5fe17c
...@@ -189,10 +189,9 @@ static void ice_eswitch_remap_rings_to_vectors(struct ice_pf *pf) ...@@ -189,10 +189,9 @@ static void ice_eswitch_remap_rings_to_vectors(struct ice_pf *pf)
/** /**
* ice_eswitch_release_reprs - clear PR VSIs configuration * ice_eswitch_release_reprs - clear PR VSIs configuration
* @pf: poiner to PF struct * @pf: poiner to PF struct
* @ctrl_vsi: pointer to eswitch control VSI
*/ */
static void static void
ice_eswitch_release_reprs(struct ice_pf *pf, struct ice_vsi *ctrl_vsi) ice_eswitch_release_reprs(struct ice_pf *pf)
{ {
struct ice_vf *vf; struct ice_vf *vf;
unsigned int bkt; unsigned int bkt;
...@@ -286,7 +285,7 @@ static int ice_eswitch_setup_reprs(struct ice_pf *pf) ...@@ -286,7 +285,7 @@ static int ice_eswitch_setup_reprs(struct ice_pf *pf)
return 0; return 0;
err: err:
ice_eswitch_release_reprs(pf, ctrl_vsi); ice_eswitch_release_reprs(pf);
return -ENODEV; return -ENODEV;
} }
...@@ -532,7 +531,7 @@ static void ice_eswitch_disable_switchdev(struct ice_pf *pf) ...@@ -532,7 +531,7 @@ static void ice_eswitch_disable_switchdev(struct ice_pf *pf)
ice_eswitch_napi_disable(pf); ice_eswitch_napi_disable(pf);
ice_eswitch_br_offloads_deinit(pf); ice_eswitch_br_offloads_deinit(pf);
ice_eswitch_release_env(pf); ice_eswitch_release_env(pf);
ice_eswitch_release_reprs(pf, ctrl_vsi); ice_eswitch_release_reprs(pf);
ice_vsi_release(ctrl_vsi); ice_vsi_release(ctrl_vsi);
ice_repr_rem_from_all_vfs(pf); ice_repr_rem_from_all_vfs(pf);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment