> -----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 8/8] ice: count representor stats
>
> Removing control plane VSI result in no information about slow-path
> statistic. In current solution statistics need to be counted in driver.
>
> Patch is based on similar implementation done by Simon Horman in nfp:
> commit eadfa4c3be99 ("nfp: add stats and xmit helpers for representors")
>
> Add const modifier to netdev parameter in ice_netdev_to_repr(). It isn't (and
> shouldn't be) modified in the function.
>
> Reviewed-by: Marcin Szycik <[email protected]>
> Signed-off-by: Michal Swiatkowski <[email protected]>
> ---
> drivers/net/ethernet/intel/ice/ice_eswitch.c | 7 +-
> drivers/net/ethernet/intel/ice/ice_repr.c | 103 +++++++++++++-----
> drivers/net/ethernet/intel/ice/ice_repr.h | 16 ++-
> drivers/net/ethernet/intel/ice/ice_txrx_lib.c | 3 +
> 4 files changed, 99 insertions(+), 30 deletions(-)
>
Tested-by: Sujai Buvaneswaran <[email protected]>