Commit 9e064308 authored by Jianbo Liu's avatar Jianbo Liu Committed by Saeed Mahameed
Browse files

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: a8d52b02 ("net/mlx5e: TC, Support offloading police action")
Signed-off-by: default avatarJianbo Liu <jianbol@nvidia.com>
Reviewed-by: default avatarMaor Dickman <maord@nvidia.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
parent 08912ea7
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -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;
}