]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: TC, Destroy nic flow counter if exists
authorRoi Dayan <roid@nvidia.com>
Mon, 1 Nov 2021 16:02:00 +0000 (18:02 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 17 Nov 2021 04:31:49 +0000 (20:31 -0800)
commit204488c989cba2515081f584658c19931c467676
tree90d44ca4c801dda9defeae6f7f9820e42b2c3306
parent40608a303daa53ea64428cc1eaa54da2ac6daf47
net/mlx5e: TC, Destroy nic flow counter if exists

Counter is only added if counter flag exists.
So check the counter fag exists for deleting the counter.
This is the same as in add/del fdb flow.

Signed-off-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Vlad Buslov <vladbu@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c