# RE: \[iwl-next v3 7/8\] ice: do switchdev slow-path Rx using PF VSI

- From: Buvaneswaran, Sujai \<hidden\>
- Date: 2024-03-08 07:30:12 
- List: netdev
- Page: https://ratatoskr.run/netdev/2024/03/11288476
- Thread: https://ratatoskr.run/netdev/2024/03/11287630/t.md

```text
> -----Original Message-----
> From: Michal Swiatkowski <redacted>
> Sent: Friday, March 1, 2024 5:24 PM
> To: <redacted>
> Cc: <redacted>; Szycik, Marcin <redacted>;
> Drewek, Wojciech [ref]; Samudrala, Sridhar
> [ref]; Kitszel, Przemyslaw
> [ref]; horms@kernel.org; Buvaneswaran, Sujai
> [ref]; Michal Swiatkowski
> [ref]; Marcin Szycik
> [ref]
> 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 <redacted>
> Signed-off-by: Michal Swiatkowski <redacted>
> ---
>  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 <redacted>
```
