Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A2038C4332F for ; Wed, 9 Nov 2022 18:41:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231370AbiKISl2 (ORCPT ); Wed, 9 Nov 2022 13:41:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231372AbiKISlN (ORCPT ); Wed, 9 Nov 2022 13:41:13 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0DEF15719 for ; Wed, 9 Nov 2022 10:41:07 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 49A7EB81F8F for ; Wed, 9 Nov 2022 18:41:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE114C433D7; Wed, 9 Nov 2022 18:41:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668019264; bh=cJ4O9zUr7RZpt/tIi/YXJFbxs6v4hTnrk23xPcjXV2w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lIhZPaNMpLp/FbBKrs9vUUFNi+IDJioAdDzHT2sIUJ/vmZtB16dWnKxphYsoRX5nE BlejCWY+MMe9NOzjHhoLyskP6/GwGV4v4TogsC5Sj/YVjLv6XdhIoEtjCA1HUQ0C5j eaT/2TGIbB1rE9N6zUJTBCaqEyf6Owvzuy6mCDyVWvi+PxcDp83amkTAmmcwNGuj2W nnBOYUcZdsrwHnu+BHth7wqC0pQvLql0yt+ChlqwOfiz2pautVFIYOw2YCgfBr6L/v Mc/s8iTu5kZ0gNTZTpIJLYwH7PxiR5biBCe0+XkPm1JcICatD6jThCuxpXVpuXeSXo 00oOaVs91gzVQ== From: Saeed Mahameed To: "David S. Miller" , Jakub Kicinski , Paolo Abeni , Eric Dumazet Cc: Saeed Mahameed , netdev@vger.kernel.org, Tariq Toukan , Jianbo Liu , Maor Dickman Subject: [V3 net 08/10] net/mlx5e: TC, Fix wrong rejection of packet-per-second policing Date: Wed, 9 Nov 2022 10:40:48 -0800 Message-Id: <20221109184050.108379-9-saeed@kernel.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221109184050.108379-1-saeed@kernel.org> References: <20221109184050.108379-1-saeed@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Jianbo Liu 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 --- drivers/net/ethernet/mellanox/mlx5/core/en_tc.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c index dd6fea9e9a5b..372dfb89e396 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; } -- 2.38.1