net/mlx5e: Check police action rate for matchall filter
authorJianbo Liu <jianbol@nvidia.com>
Tue, 5 Sep 2023 03:48:20 +0000 (03:48 +0000)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 20 Sep 2023 06:33:08 +0000 (23:33 -0700)
commit4291ab7112ea5a1c72d05707e8e1521845887699
tree942f5c218df5b74e9ecd5dd8734e500c9e00e421
parent8d88e198dcaf700e33c2a4c796af9434652c56e7
net/mlx5e: Check police action rate for matchall filter

As matchall filter uses TSAR (Transmit Scheduling Arbiter) for rate
limit, the rate of police action should not be over the port's max
link speed, or the maximum aggregated speed of both ports if LAG is
configured.

Signed-off-by: Jianbo Liu <jianbol@nvidia.com>
Reviewed-by: Parav Pandit <parav@nvidia.com>
Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c