From mboxrd@z Thu Jan 1 00:00:00 1970 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 125E3C433FE for ; Thu, 3 Nov 2022 06:56:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229693AbiKCG4h (ORCPT ); Thu, 3 Nov 2022 02:56:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230006AbiKCG4R (ORCPT ); Thu, 3 Nov 2022 02:56:17 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C2B811821 for ; Wed, 2 Nov 2022 23:56:16 -0700 (PDT) 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 18D97B82675 for ; Thu, 3 Nov 2022 06:56:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A4103C433D6; Thu, 3 Nov 2022 06:56:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667458573; bh=cJ4O9zUr7RZpt/tIi/YXJFbxs6v4hTnrk23xPcjXV2w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=u8Tdp6JrHytNRpkv4UBOxm+tqCAYo64R1fkzSd5+SeCZmypS8rBWN9eR9W0qjEa27 yK+EFZA7oSbu9OeLzly/NQP9Q7b/ZBNu6zF6FQ58NnjtQSS2U9fyvKJnTZoof5y7CS URn6gwfwJiX39wEWgGpqmb5AazXmdudhtiYqnlU7rBCVflooTJM/OTAFLeGbvYglj9 0OcjvCmG/7j6bYkylXM/OeVrM77lAlrK0+J/yiY96orz+ExkyTMDQi4K2NSnMouQ/P eBLtZLV4IoQNf7gHJaB4uqSTd67is0TmJbZOgU9KA8nBMUZjMr2dFoc42TiqZ/Alwi /TO47x917l07g== 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: [net 09/11] net/mlx5e: TC, Fix wrong rejection of packet-per-second policing Date: Wed, 2 Nov 2022 23:55:45 -0700 Message-Id: <20221103065547.181550-10-saeed@kernel.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221103065547.181550-1-saeed@kernel.org> References: <20221103065547.181550-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