Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp331412pxb; Thu, 17 Feb 2022 05:14:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJwb3MTSqsXpcl7sdOHE9lE78D+Y8RoGFPDLWsm5aLfyMJAiWUKw8Axxeo9JMIPnpy0IQIOY X-Received: by 2002:a17:906:31c1:b0:6c9:cfb3:4dd3 with SMTP id f1-20020a17090631c100b006c9cfb34dd3mr2306721ejf.392.1645103655944; Thu, 17 Feb 2022 05:14:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645103655; cv=none; d=google.com; s=arc-20160816; b=XcUXKB1E7fCt8jQ0dqxzXvX4YGSuvpIYqEx5uGFo3uAozyLuYma43UEC0Gqgea+WEZ 3Jbar67ONre1ameCa/UfuVQ0c5q1gkqD4xluRlSRI8XHKp2s4ykq48zOlI9MvSMu75Ef Qwy/zKPO4B8FXZ2yHKKclpfraAMS05xR2GJJRVsbjsq5rzEwJDw4RMljwI86xkSHnPws dzNX/DXOBlYXJzdJPVKt7nON+F9lZfWoYMxW1+qZ9ytIPWeqn3EwJYx5a1l6pFJvcHfi JxVDLgPCcC2tzpHHMbtUKdcVqkIYj3YNpyhaX1PIpZvWsusPeCuEguYZKQZal8av785O Ttuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=StCX2Y8GpWpcYeqcyT6SGLw8IqrV08t+NG5xjrAMMOg=; b=RVtRY891cL1GdJDMRRsaLgjYNsoQJg2JEHhV5UQahvZKtWamjuV/paffvfB8Ul/AtC 8cX7beZ+RTpfaHG8md88smP8POlUXV4hkFG7wsPi7Kjgn9wa5pJw5J5tv4zEVjn0XgRI F8XxAJd2/no5S7Ts1UHropqjYakfHT2bvIiCVa2pWR0mte1vnbssTAByx5p5E+d9sF2q Z0T7xVSLJxzHoPSB/tYz9Tj+XjwUl6NaTWXFfmYURY+/0agtJwSwo0AU+7l5u3+ki0ZI 4SIXFcUCmDTVOfxe+RvMz468CF3m3KY7HO8sb5btOx/rqjYlDt+Fy3A16xP5hBWJI+7U OR5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=P0W9UYDD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b88si4435326edf.565.2022.02.17.05.13.51; Thu, 17 Feb 2022 05:14:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=P0W9UYDD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240125AbiBQL5Q (ORCPT + 99 others); Thu, 17 Feb 2022 06:57:16 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:41874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237078AbiBQL5P (ORCPT ); Thu, 17 Feb 2022 06:57:15 -0500 Received: from new1-smtp.messagingengine.com (new1-smtp.messagingengine.com [66.111.4.221]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 397EE151D3E; Thu, 17 Feb 2022 03:56:59 -0800 (PST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailnew.nyi.internal (Postfix) with ESMTP id 3B6395801AB; Thu, 17 Feb 2022 06:56:57 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Thu, 17 Feb 2022 06:56:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=StCX2Y8GpWpcYeqcy T6SGLw8IqrV08t+NG5xjrAMMOg=; b=P0W9UYDDp4O7tzqIka52IOQCVWw63oonP LGW9E3y5isBwtAwenpGZnpE/nBIQpC/7Eh0WcFdrqKKOvIBFHcxvlebLacAN5Ibc zFFaQagnG6nz31DGLDTdSgj7ZqyZdIuwL+w7AZ/VRv8yl0a3a4Iru5IjC3VrlV3M A4ou4b2tmp8e8nkswBl0VleCTPneG5kU6wbgfJgZoYyxVFwoWsQR9accxkC9MxJc VqIskOE+J+ydbmeaELiWH3IfMb70PIiLX3rJj/6TUqkQ3nz5HKV/HnvKRl9TpltR HQlxqSQQJqRAvJSLjz7XAuXQcwpBPxDhxxXuMoYyq1hB5/lO1CyyA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrjeekgdeffecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepkfguohcuufgt hhhimhhmvghluceoihguohhstghhsehiughoshgthhdrohhrgheqnecuggftrfgrthhtvg hrnheptdffkeekfeduffevgeeujeffjefhtefgueeugfevtdeiheduueeukefhudehleet necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepihguoh hstghhsehiughoshgthhdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 17 Feb 2022 06:56:55 -0500 (EST) Date: Thu, 17 Feb 2022 13:56:51 +0200 From: Ido Schimmel To: Simon Horman Cc: Jianbo Liu , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-rdma@vger.kernel.org, olteanv@gmail.com, andrew@lunn.ch, vivien.didelot@gmail.com, f.fainelli@gmail.com, davem@davemloft.net, kuba@kernel.org, rajur@chelsio.com, claudiu.manoil@nxp.com, sgoutham@marvell.com, gakula@marvell.com, sbhatta@marvell.com, hkelam@marvell.com, saeedm@nvidia.com, leon@kernel.org, idosch@nvidia.com, petrm@nvidia.com, alexandre.belloni@bootlin.com, UNGLinuxDriver@microchip.com, jhs@mojatatu.com, xiyou.wangcong@gmail.com, jiri@resnulli.us, baowen.zheng@corigine.com, louis.peens@netronome.com, peng.zhang@corigine.com, oss-drivers@corigine.com, roid@nvidia.com Subject: Re: [PATCH net-next v2 0/2] flow_offload: add tc police parameters Message-ID: References: <20220217082803.3881-1-jianbol@nvidia.com> <20220217113439.GE4665@corigine.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220217113439.GE4665@corigine.com> X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 17, 2022 at 12:34:39PM +0100, Simon Horman wrote: > On Thu, Feb 17, 2022 at 08:28:01AM +0000, Jianbo Liu wrote: > > As a preparation for more advanced police offload in mlx5 (e.g., > > jumping to another chain when bandwidth is not exceeded), extend the > > flow offload API with more tc-police parameters. Adjust existing > > drivers to reject unsupported configurations. > > Hi, > > I have a concern that > a) patch 1 introduces a facility that may break existing drivers; and > b) patch 2 then fixes this > > I'd slightly prefer if the series was rearranged to avoid this problem. Not sure what you mean by the above. Patch #1 extends the flow offload API with tc-police parameters that weren't communicated to drivers until now. Drivers still ignore the new parameters after this patch. It is only in patch #2 that these drivers reject configurations where the parameters are set. Therefore, the only breakage I see is the one that can happen after patch #2: unaware user space that was installing actions that weren't fully reflected to hardware. If we want to be on the safe side, it is possible to remove the errors, but keep the extack messages so that user space is at least somewhat aware.