[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <BL0PR11MB352156D03068E6736193BDE08FD4A@BL0PR11MB3521.namprd11.prod.outlook.com>
Date: Thu, 19 Oct 2023 10:17:54 +0000
From: "Romanowski, Rafal" <rafal.romanowski@...el.com>
To: Michal Swiatkowski <michal.swiatkowski@...ux.intel.com>,
"intel-wired-lan@...ts.osuosl.org" <intel-wired-lan@...ts.osuosl.org>
CC: "netdev@...r.kernel.org" <netdev@...r.kernel.org>, "Fijalkowski, Maciej"
<maciej.fijalkowski@...el.com>, "Kitszel, Przemyslaw"
<przemyslaw.kitszel@...el.com>
Subject: RE: [Intel-wired-lan] [PATCH iwl-next v2 3/4] ice: set MSI-X vector
count on VF
> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces@...osl.org> On Behalf Of
> Michal Swiatkowski
> Sent: Monday, September 18, 2023 8:24 AM
> To: intel-wired-lan@...ts.osuosl.org
> Cc: netdev@...r.kernel.org; Michal Swiatkowski
> <michal.swiatkowski@...ux.intel.com>; Fijalkowski, Maciej
> <maciej.fijalkowski@...el.com>; Kitszel, Przemyslaw
> <przemyslaw.kitszel@...el.com>
> Subject: [Intel-wired-lan] [PATCH iwl-next v2 3/4] ice: set MSI-X vector count
> on VF
>
> Implement ops needed to set MSI-X vector count on VF.
>
> sriov_get_vf_total_msix() should return total number of MSI-X that can be
> used by the VFs. Return the value set by devlink resources API (pf-
> >req_msix.vf).
>
> sriov_set_msix_vec_count() will set number of MSI-X on particular VF.
> Disable VF register mapping, rebuild VSI with new MSI-X and queues values
> and enable new VF register mapping.
>
> For best performance set number of queues equal to number of MSI-X.
>
> Signed-off-by: Michal Swiatkowski <michal.swiatkowski@...ux.intel.com>
> Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@...el.com>
> ---
> drivers/net/ethernet/intel/ice/ice_main.c | 2 +
> drivers/net/ethernet/intel/ice/ice_sriov.c | 69 ++++++++++++++++++++++
> drivers/net/ethernet/intel/ice/ice_sriov.h | 13 ++++
> 3 files changed, 84 insertions(+)
>
> diff --git a/drivers/net/ethernet/intel/ice/ice_main.c
> b/drivers/net/ethernet/intel/ice/ice_main.c
> index 38adffbe0edf..c301ab1d6610 100644
> --- a/drivers/net/ethernet/intel/ice/ice_main.c
> +++ b/drivers/net/ethernet/intel/ice/ice_main.c
> @@ -5655,6 +5655,8 @@ static struct pci_driver ice_driver = { #endif /*
> CONFIG_PM */
> .shutdown = ice_shutdown,
> .sriov_configure = ice_sriov_configure,
> + .sriov_get_vf_total_msix = ice_sriov_get_vf_total_msix,
> + .sriov_set_msix_vec_count = ice_sriov_set_msix_vec_count,
> .err_handler = &ice_pci_err_handler
> };
>
> diff --git a/drivers/net/ethernet/intel/ice/ice_sriov.c
> b/drivers/net/ethernet/intel/ice/ice_sriov.c
> index 49adb0b05817..679bf63fd17a 100644
> --- a/drivers/net/ethernet/intel/ice/ice_sriov.c
> +++ b/drivers/net/ethernet/intel/ice/ice_sriov.c
Tested-by: Rafal Romanowski <rafal.romanowski@...el.com>
Powered by blists - more mailing lists