]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Add support to modify hardware flow meter parameters
authorJianbo Liu <jianbol@nvidia.com>
Mon, 7 Jun 2021 03:56:05 +0000 (03:56 +0000)
committerSaeed Mahameed <saeedm@nvidia.com>
Sat, 2 Jul 2022 18:58:27 +0000 (11:58 -0700)
commit5131dfeb87105822ac9018442bca315b90375bd9
tree088e2157b4a70c20af940b5887b324a3c1d3224e
parent76534ba8312e757d3278492c460c8e89f2734af3
net/mlx5e: Add support to modify hardware flow meter parameters

The policing rate and burst from user are converted to flow meter
parameters in hardware. These parameters are set or modified by
ACCESS_ASO WQE, add function to support it.

Signed-off-by: Jianbo Liu <jianbol@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Ariel Levkovich <lariel@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/lib/aso.h