[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <PH0PR11MB50135379D17A84A6D6F9EDCD96272@PH0PR11MB5013.namprd11.prod.outlook.com>
Date: Fri, 8 Mar 2024 07:30:08 +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: "netdev@...r.kernel.org" <netdev@...r.kernel.org>, "Szycik, Marcin"
<marcin.szycik@...el.com>, "Drewek, Wojciech" <wojciech.drewek@...el.com>,
"Samudrala, Sridhar" <sridhar.samudrala@...el.com>, "Kitszel, Przemyslaw"
<przemyslaw.kitszel@...el.com>, "horms@...nel.org" <horms@...nel.org>,
"Marcin Szycik" <marcin.szycik@...ux.intel.com>
Subject: RE: [iwl-next v3 7/8] ice: do switchdev slow-path Rx using PF VSI
> -----Original Message-----
> From: Michal Swiatkowski <michal.swiatkowski@...ux.intel.com>
> Sent: Friday, March 1, 2024 5:24 PM
> To: intel-wired-lan@...ts.osuosl.org
> Cc: netdev@...r.kernel.org; Szycik, Marcin <marcin.szycik@...el.com>;
> Drewek, Wojciech <wojciech.drewek@...el.com>; Samudrala, Sridhar
> <sridhar.samudrala@...el.com>; Kitszel, Przemyslaw
> <przemyslaw.kitszel@...el.com>; horms@...nel.org; Buvaneswaran, Sujai
> <sujai.buvaneswaran@...el.com>; Michal Swiatkowski
> <michal.swiatkowski@...ux.intel.com>; Marcin Szycik
> <marcin.szycik@...ux.intel.com>
> Subject: [iwl-next v3 7/8] ice: do switchdev slow-path Rx using PF VSI
>
> Add an ICE_RX_FLAG_MULTIDEV flag to Rx ring.
>
> If it is set try to find correct port representor. Do it based on src_vsi value
> stored in flex descriptor. Ids of representor pointers stored in xarray are
> equal to corresponding src_vsi value. Thanks to that we can directly get
> correct representor if we have src_vsi value.
>
> Set multidev flag during ring configuration.
>
> If the mode is switchdev, change the ring descriptor to the one that contains
> src_vsi value.
>
> PF netdev should be reconfigured, do it by calling ice_down() and
> ice_up() if the netdev was up before configuring switchdev.
>
> Reviewed-by: Marcin Szycik <marcin.szycik@...ux.intel.com>
> Signed-off-by: Michal Swiatkowski <michal.swiatkowski@...ux.intel.com>
> ---
> drivers/net/ethernet/intel/ice/ice_base.c | 8 +++++
> drivers/net/ethernet/intel/ice/ice_eswitch.c | 36 +++++++++++++++++++
> drivers/net/ethernet/intel/ice/ice_eswitch.h | 9 +++++
> drivers/net/ethernet/intel/ice/ice_txrx.h | 1 +
> drivers/net/ethernet/intel/ice/ice_txrx_lib.c | 8 ++++-
> 5 files changed, 61 insertions(+), 1 deletion(-)
>
Tested-by: Sujai Buvaneswaran <sujai.buvaneswaran@...el.com>
Powered by blists - more mailing lists