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)
commit972fe492e847c7ed9679a4b4aa79f9fe06b9ae7b
tree90d44ca4c801dda9defeae6f7f9820e42b2c3306
parent0164a9bd9d63c56925cf0aae2731730778fae3f6
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