From: Jianbo Liu Date: Thu, 3 Nov 2022 06:55:45 +0000 (-0700) Subject: net/mlx5e: TC, Fix wrong rejection of packet-per-second policing X-Git-Tag: v6.1-rc5~24^2^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9e06430841363a1d2932d546fdce1cc5edb3c2a0;p=platform%2Fkernel%2Flinux-starfive.git 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 Reviewed-by: Maor Dickman Signed-off-by: Saeed Mahameed --- diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c index dd6fea9..372dfb8 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c @@ -4758,12 +4758,6 @@ int mlx5e_policer_validate(const struct flow_action *action, return -EOPNOTSUPP; } - if (act->police.rate_pkt_ps) { - NL_SET_ERR_MSG_MOD(extack, - "QoS offload not support packets per second"); - return -EOPNOTSUPP; - } - return 0; }