net/mlx5e: meter, refactor to allow multiple post meter tables
authorOz Shlomo <ozsh@nvidia.com>
Thu, 1 Dec 2022 12:35:36 +0000 (12:35 +0000)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 9 Dec 2022 00:10:55 +0000 (16:10 -0800)
commitfd6fa761466cef5279a399ca6f21d8f84d5b2332
treeb46578f9d99c66757a5d8a43bfa7d1db8b8cdcc7
parentbe6d5daeaa3bcd6ce414c20c61bd8ae8d38da49a
net/mlx5e: meter, refactor to allow multiple post meter tables

TC police action may configure the maximum packet size to be handled by
the policer, in addition to byte/packet rate.
Currently the post meter table steers the packet according to the meter
aso output.

Refactor the code to allow both metering and range post actions as a
pre-step for adding police mtu offload support.

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