]> 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)
commit8d946e0964ce6a78e1f1a4ff71593c101413b142
tree90d44ca4c801dda9defeae6f7f9820e42b2c3306
parent87c57fc3693677c70f8990b5bfb064ccbaac7e87
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