# RE: \[iwl-next v3 8/8\] ice: count representor stats

- From: Buvaneswaran, Sujai \<hidden\>
- Date: 2024-03-08 07:30:29 
- List: netdev
- Page: https://ratatoskr.run/netdev/2024/03/11288477
- 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 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 <redacted>
> Signed-off-by: Michal Swiatkowski <redacted>
> ---
>  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 <redacted>
```
