Re: [net PATCH 7/9] octeontx2-pf: mcs: Clear stats before freeing resource

From: Leon Romanovsky
Date: Sun Apr 23 2023 - 12:54:16 EST


On Sun, Apr 23, 2023 at 03:24:52PM +0530, Geetha sowjanya wrote:
> From: Subbaraya Sundeep <sbhatta@xxxxxxxxxxx>
>
> When freeing MCS hardware resources like SecY, SC and
> SA the corresponding stats needs to be cleared. Otherwise
> previous stats are shown in newly created macsec interfaces.
>
> Fixes: c54ffc73601c ("octeontx2-pf: mcs: Introduce MACSEC hardware offloading")
> Signed-off-by: Subbaraya Sundeep <sbhatta@xxxxxxxxxxx>
> Signed-off-by: Sunil Goutham <sgoutham@xxxxxxxxxxx>
> Signed-off-by: Geetha sowjanya <gakula@xxxxxxxxxxx>
> ---
> .../net/ethernet/marvell/octeontx2/nic/cn10k_macsec.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>

Thanks,
Reviewed-by: Leon Romanovsky <leonro@xxxxxxxxxx>