i40e: Remove unused function i40e_vsi_lookup
The function is not used so there is no need to carry it forward. I have plans to add a slightly different function that can be inlined to handle the same kind of functionality. Change-ID: Ie2dfcb189dc75e5fbc156bac23003e3b4210ae0f Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
7ed3573223
commit
dc7621205a
|
@ -728,8 +728,6 @@ int i40e_sync_vsi_filters(struct i40e_vsi *vsi);
|
||||||
struct i40e_vsi *i40e_vsi_setup(struct i40e_pf *pf, u8 type,
|
struct i40e_vsi *i40e_vsi_setup(struct i40e_pf *pf, u8 type,
|
||||||
u16 uplink, u32 param1);
|
u16 uplink, u32 param1);
|
||||||
int i40e_vsi_release(struct i40e_vsi *vsi);
|
int i40e_vsi_release(struct i40e_vsi *vsi);
|
||||||
struct i40e_vsi *i40e_vsi_lookup(struct i40e_pf *pf, enum i40e_vsi_type type,
|
|
||||||
struct i40e_vsi *start_vsi);
|
|
||||||
#ifdef I40E_FCOE
|
#ifdef I40E_FCOE
|
||||||
void i40e_vsi_setup_queue_map(struct i40e_vsi *vsi,
|
void i40e_vsi_setup_queue_map(struct i40e_vsi *vsi,
|
||||||
struct i40e_vsi_context *ctxt,
|
struct i40e_vsi_context *ctxt,
|
||||||
|
|
|
@ -405,37 +405,6 @@ int i40e_vf_client_capable(struct i40e_pf *pf, u32 vf_id,
|
||||||
return capable;
|
return capable;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* i40e_vsi_lookup - finds a matching VSI from the PF list starting at start_vsi
|
|
||||||
* @pf: board private structure
|
|
||||||
* @type: vsi type
|
|
||||||
* @start_vsi: a VSI pointer from where to start the search
|
|
||||||
*
|
|
||||||
* Returns non NULL on success or NULL for failure
|
|
||||||
**/
|
|
||||||
struct i40e_vsi *i40e_vsi_lookup(struct i40e_pf *pf,
|
|
||||||
enum i40e_vsi_type type,
|
|
||||||
struct i40e_vsi *start_vsi)
|
|
||||||
{
|
|
||||||
struct i40e_vsi *vsi;
|
|
||||||
int i = 0;
|
|
||||||
|
|
||||||
if (start_vsi) {
|
|
||||||
for (i = 0; i < pf->num_alloc_vsi; i++) {
|
|
||||||
vsi = pf->vsi[i];
|
|
||||||
if (vsi == start_vsi)
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
for (; i < pf->num_alloc_vsi; i++) {
|
|
||||||
vsi = pf->vsi[i];
|
|
||||||
if (vsi && vsi->type == type)
|
|
||||||
return vsi;
|
|
||||||
}
|
|
||||||
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* i40e_client_add_instance - add a client instance struct to the instance list
|
* i40e_client_add_instance - add a client instance struct to the instance list
|
||||||
* @pf: pointer to the board struct
|
* @pf: pointer to the board struct
|
||||||
|
|
Loading…
Reference in a new issue