> -----Original Message-----
> From: Michal Swiatkowski <[email protected]>
> Sent: Friday, March 1, 2024 5:24 PM
> To: [email protected]
> Cc: [email protected]; Szycik, Marcin <[email protected]>;
> Drewek, Wojciech <[email protected]>; Samudrala, Sridhar
> <[email protected]>; Kitszel, Przemyslaw
> <[email protected]>; [email protected]; Buvaneswaran, Sujai
> <[email protected]>; Michal Swiatkowski
> <[email protected]>; Marcin Szycik
> <[email protected]>
> 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 <[email protected]>
> Signed-off-by: Michal Swiatkowski <[email protected]>
> ---
>  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 <[email protected]>

Reply via email to