[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <PH0PR11MB50135B3E9EA3E8301FC5C96F96AFA@PH0PR11MB5013.namprd11.prod.outlook.com>
Date: Thu, 9 Nov 2023 10:31:06 +0000
From: "Buvaneswaran, Sujai" <sujai.buvaneswaran@...el.com>
To: Michal Swiatkowski <michal.swiatkowski@...ux.intel.com>,
"intel-wired-lan@...ts.osuosl.org" <intel-wired-lan@...ts.osuosl.org>
CC: "Drewek, Wojciech" <wojciech.drewek@...el.com>, "Szycik, Marcin"
<marcin.szycik@...el.com>, "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"Brandeburg, Jesse" <jesse.brandeburg@...el.com>, "Kitszel, Przemyslaw"
<przemyslaw.kitszel@...el.com>, "Keller, Jacob E" <jacob.e.keller@...el.com>,
"Raczynski, Piotr" <piotr.raczynski@...el.com>
Subject: RE: [Intel-wired-lan] [PATCH iwl-next v1 13/15] ice: add VF
representors one by one
> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces@...osl.org> On Behalf Of
> Michal Swiatkowski
> Sent: Tuesday, October 24, 2023 4:39 PM
> To: intel-wired-lan@...ts.osuosl.org
> Cc: Drewek, Wojciech <wojciech.drewek@...el.com>; Szycik, Marcin
> <marcin.szycik@...el.com>; netdev@...r.kernel.org; Brandeburg, Jesse
> <jesse.brandeburg@...el.com>; Kitszel, Przemyslaw
> <przemyslaw.kitszel@...el.com>; Keller, Jacob E <jacob.e.keller@...el.com>;
> Michal Swiatkowski <michal.swiatkowski@...ux.intel.com>; Raczynski, Piotr
> <piotr.raczynski@...el.com>
> Subject: [Intel-wired-lan] [PATCH iwl-next v1 13/15] ice: add VF representors
> one by one
>
> Implement adding representors one by one. Always set switchdev
> environment when first representor is being added and clear environment
> when last one is being removed.
>
> Basic switchdev configuration remains the same. Code related to creating
> and configuring representor was changed.
>
> Instead of setting whole representors in one function handle only one
> representor in setup function. The same with removing representors.
>
> Stop representors when new one is being added or removed. Stop means,
> disabling napi, stopping traffic and removing slow path rule. It is needed
> because ::q_id will change after remapping, so each representor will need
> new rule.
>
> When representor are stopped rebuild control plane VSI with one more or
> one less queue. One more if new representor is being added, one less if
> representor is being removed.
>
> Bridge port is removed during unregister_netdev() call on PR, so there is no
> need to call it from driver side.
>
> After that do remap new queues to correct vector. At the end start all
> representors (napi enable, start queues, add slow path rule).
>
> Reviewed-by: Piotr Raczynski <piotr.raczynski@...el.com>
> Reviewed-by: Wojciech Drewek <wojciech.drewek@...el.com>
> Signed-off-by: Michal Swiatkowski <michal.swiatkowski@...ux.intel.com>
> ---
> drivers/net/ethernet/intel/ice/ice_eswitch.c | 351 +++++++++++--------
> drivers/net/ethernet/intel/ice/ice_eswitch.h | 13 +-
> drivers/net/ethernet/intel/ice/ice_repr.c | 85 +----
> drivers/net/ethernet/intel/ice/ice_repr.h | 4 +-
> drivers/net/ethernet/intel/ice/ice_sriov.c | 17 +-
> 5 files changed, 228 insertions(+), 242 deletions(-)
>
Tested-by: Sujai Buvaneswaran <sujai.buvaneswaran@...el.com>
Powered by blists - more mailing lists