diff options
author | Anirudh Venkataramanan <anirudh.venkataramanan@intel.com> | 2019-08-08 07:39:33 -0700 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2019-09-05 08:13:40 -0700 |
commit | 208ff75135cd68a42638221626d2af2f8f17a3cb (patch) | |
tree | e3bb5fe2d968269132aa69456a6f9c43b80a1d50 /drivers/net/ethernet/intel/ice/ice_sched.c | |
parent | 34cdcb165b05acfce9b0b6611306ec24740ea91b (diff) | |
download | linux-208ff75135cd68a42638221626d2af2f8f17a3cb.tar.gz linux-208ff75135cd68a42638221626d2af2f8f17a3cb.tar.bz2 linux-208ff75135cd68a42638221626d2af2f8f17a3cb.zip |
ice: Add ice_get_main_vsi to get PF/main VSI
There are multiple places where we currently use ice_find_vsi_by_type
to get the PF (a.k.a. main) VSI. The PF VSI by definition is always
the first element in the pf->vsi array (i.e. pf->vsi[0]). So instead
add and use a new helper function ice_get_main_vsi, which just returns
pf->vsi[0].
Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_sched.c')
0 files changed, 0 insertions, 0 deletions