> -----Original Message-----
> From: Intel-wired-lan <[email protected]> On Behalf Of
> Michal Swiatkowski
> Sent: Tuesday, October 24, 2023 4:39 PM
> To: [email protected]
> Cc: Drewek, Wojciech <[email protected]>; Szycik, Marcin
> <[email protected]>; [email protected]; Brandeburg, Jesse
> <[email protected]>; Kitszel, Przemyslaw
> <[email protected]>; Keller, Jacob E <[email protected]>;
> Michal Swiatkowski <[email protected]>; Raczynski, Piotr
> <[email protected]>
> Subject: [Intel-wired-lan] [PATCH iwl-next v1 07/15] ice: remove VF pointer
> reference in eswitch code
>
> Make eswitch code generic by removing VF pointer reference in functions.
> It is needed to support eswitch mode for other type of devices.
>
> Previously queue id used for Rx was based on VF number. Use ::q_id saved in
> port representor instead.
>
> After adding or removing port representor ::q_id value can change. It isn't
> good idea to iterate over representors list using this value.
> Use xa_find starting from the first one instead to get next port representor
> to
> remap.
>
> The number of port representors has to be equal to ::num_rx/tx_q. Warn if it
> isn't true.
>
> Reviewed-by: Przemek Kitszel <[email protected]>
> Reviewed-by: Wojciech Drewek <[email protected]>
> Reviewed-by: Jacob Keller <[email protected]>
> Signed-off-by: Michal Swiatkowski <[email protected]>
> ---
> drivers/net/ethernet/intel/ice/ice_eswitch.c | 39 ++++++++++----------
> drivers/net/ethernet/intel/ice/ice_eswitch.h | 5 ++-
> drivers/net/ethernet/intel/ice/ice_repr.c | 1 +
> drivers/net/ethernet/intel/ice/ice_vf_lib.c | 2 +-
> 4 files changed, 25 insertions(+), 22 deletions(-)
>
Tested-by: Sujai Buvaneswaran <[email protected]>
_______________________________________________
Intel-wired-lan mailing list
[email protected]
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan