net/mlx5: Move ACL drop counters life cycle close to ACL lifecycle
authorParav Pandit <parav@mellanox.com>
Mon, 28 Oct 2019 23:35:19 +0000 (23:35 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 1 Nov 2019 21:40:26 +0000 (14:40 -0700)
commitb7752f8341c4fecc4720fbd58f868e114a57fdea
tree92d67c18f7c3469296d23276c4beb70497e4f695
parentf5d0c01d65adba2b898836894d200e85c8a8def3
net/mlx5: Move ACL drop counters life cycle close to ACL lifecycle

It is better to create/destroy ACL related drop counters where the actual
drop rule ACLs are created/destroyed, so that ACL configuration is self
contained for ingress and egress.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Vu Pham <vuhuong@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c