]> 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)
commit6beeeb6183e60ef43d3adba1c3162cb701bf9efe
tree1563c690c53f899e7a05fdd7b747e0fcd9130255
parent0218e384d22bbc0581accb0d1d41519b38475c07
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: af0a1f5ceb24 ("net/mlx5: E-Switch, Refactor eswitch ingress acl codes")
Fixes: eeaf89523241 ("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