[Intel-wired-lan] [net-next PATCH v2 09/11] ice: factor VF variables to separate structure
Jankowski, Konrad0
konrad0.jankowski at intel.com
Fri Feb 25 16:24:16 UTC 2022
> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
> Jacob Keller
> Sent: Wednesday, February 16, 2022 10:38 PM
> To: Intel Wired LAN <intel-wired-lan at lists.osuosl.org>
> Subject: [Intel-wired-lan] [net-next PATCH v2 09/11] ice: factor VF variables
> to separate structure
>
> We maintain a number of values for VFs within the ice_pf structure. This
> includes the VF table, the number of allocated VFs, the maximum number of
> supported SR-IOV VFs, the number of queue pairs per VF, the number of
> MSI-X vectors per VF, and a bitmap of the VFs with detected MDD events.
>
> We're about to add a few more variables to this list. Clean this up first by
> extracting these members out into a new ice_vfs structure defined in
> ice_virtchnl_pf.h
>
> Signed-off-by: Jacob Keller <jacob.e.keller at intel.com>
> ---
> drivers/net/ethernet/intel/ice/ice.h | 10 +-
> drivers/net/ethernet/intel/ice/ice_eswitch.c | 20 +++-
> drivers/net/ethernet/intel/ice/ice_ethtool.c | 2 +-
> drivers/net/ethernet/intel/ice/ice_lib.c | 8 +-
> drivers/net/ethernet/intel/ice/ice_main.c | 2 +-
> .../net/ethernet/intel/ice/ice_virtchnl_pf.c | 94 ++++++++++---------
> .../net/ethernet/intel/ice/ice_virtchnl_pf.h | 15 ++-
> 7 files changed, 83 insertions(+), 68 deletions(-)
>
> diff --git a/drivers/net/ethernet/intel/ice/ice.h
> b/drivers/net/ethernet/intel/ice/ice.h
> index 9041b4428af0..571396eac77c 100644
> --- a/drivers/net/ethernet/intel/ice/ice.h
> +++ b/drivers/net/ethernet/intel/ice/ice.h
> @@ -543,15 +543,7 @@ struct ice_pf {
Tested-by: Konrad Jankowski <konrad0.jankowski at intel.com>
More information about the Intel-wired-lan
mailing list