net/mlx5e: TC, Allocate post meter ft per rule
authorRoi Dayan <roid@nvidia.com>
Tue, 22 Feb 2022 14:30:35 +0000 (16:30 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 28 Jul 2022 20:55:26 +0000 (13:55 -0700)
commite5b1db27410e5d625a49b57db133f0551e01dd56
tree55a2c9367e8060738c573d39d9f22dc9afb03b86
parent8920d92b8be61c8a209ac21769028bbefdc17a4f
net/mlx5e: TC, Allocate post meter ft per rule

To support a TC police action notexceed counter and supporting
actions other than drop/pipe there is a need to create separate ft
and rules per rule and not to use a common one created on eswitch init.

Signed-off-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Jianbo Liu <jianbol@nvidia.com>
Reviewed-by: Oz Shlomo <ozsh@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc/meter.c
drivers/net/ethernet/mellanox/mlx5/core/en/tc/meter.h
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c