]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: E-Switch, Fix double allocation of acl flow counter
authorMoshe Shemesh <moshe@nvidia.com>
Thu, 23 Sep 2021 14:57:47 +0000 (17:57 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 30 Sep 2021 21:07:55 +0000 (14:07 -0700)
commite8de8e8534aec7b1b06eb0b9a424075d441aa67e
tree1563c690c53f899e7a05fdd7b747e0fcd9130255
parent8f91e7fda75cb7c02cfafc69b8d66966aef884fe
net/mlx5: E-Switch, Fix double allocation of acl flow counter

Flow counter is allocated in eswitch legacy acl setting functions
without checking if already allocated by previous setting. Add a check
to avoid such double allocation.

Fixes: 8fdf6e9420de ("net/mlx5: E-Switch, Refactor eswitch ingress acl codes")
Fixes: f4a321e905f9 ("net/mlx5: E-Switch, Refactor eswitch egress acl codes")
Signed-off-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c