OSDN Git Service

net/mlx5e: TC, Fix wrong rejection of packet-per-second policing
authorJianbo Liu <jianbol@nvidia.com>
Thu, 3 Nov 2022 06:55:45 +0000 (23:55 -0700)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 9 Nov 2022 18:30:43 +0000 (10:30 -0800)
commit9e06430841363a1d2932d546fdce1cc5edb3c2a0
tree443a2ce1ec49833469c4e6b2d2cbf3120b7b14ef
parent08912ea799cd2a43b8999457e316967fe4e2f327
net/mlx5e: TC, Fix wrong rejection of packet-per-second policing

In the bellow commit, we added support for PPS policing without
removing the check which block offload of such cases.
Fix it by removing this check.

Fixes: a8d52b024d6d ("net/mlx5e: TC, Support offloading police action")
Signed-off-by: Jianbo Liu <jianbol@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.c