]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: TC, Add missing policer validation
authorRoi Dayan <roid@nvidia.com>
Mon, 1 Aug 2022 15:02:49 +0000 (18:02 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Mon, 22 Aug 2022 19:57:09 +0000 (12:57 -0700)
commite2c5c696b48e56d41b72af4e868249e4a593a1ff
treee80b003be364997bb9c37c497621c95803b467d6
parenta2809af4ef12b3ade90d64147a091c7972b17a47
net/mlx5e: TC, Add missing policer validation

There is a missing policer validation when offloading police action
with tc action api. Add it.

Fixes: 03900dd2b103 ("net/mlx5e: TC, Support tc action api for police")
Signed-off-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Maor Dickman <maord@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/police.c