Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2755416pxp; Tue, 22 Mar 2022 05:37:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxz93CNAiRevBzcQOvGEH4+qH3wPliX3U2GE5dtmjBKtZ2HPaRqzDfsdwT3sK11FvxZQWb X-Received: by 2002:a17:902:7d93:b0:14d:d401:f59b with SMTP id a19-20020a1709027d9300b0014dd401f59bmr18304083plm.14.1647952642790; Tue, 22 Mar 2022 05:37:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647952642; cv=none; d=google.com; s=arc-20160816; b=T41KOjE4W7LofqSuFtH8EoKRSZyW+J98lB5Mt0tCn8jwgE88+ejupYSrTwJ9vOtAzD W+/kUZL6z5MTtAFrdxMH2ZCKIFURr4A+t9QQFtFD1KtmX9p0GqH5GUQWG9E3v0aESJyE iJ2DJHd6mvohZtbJMZQ1HmXi/2ZC24zOe4QlILEAHWmJOEDlXjCDYcWVtBu1A54NyQa2 69Swrq6avxayLbzh4n0ufoMyIDIqAjVPFZOe1g/dTEGyx+GTwXUvtNtsnym4KM/b0nkd qOvBQkM63hkY8leZi2YsIwia9YeiqROjrxsd+PhGbu5ShrKTyNJ7np6vSyOpzWTZIUwN lREA== 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=EWmG3jSf1BnvVGbFL8jiO1r4X5cFxx3tAO4xA/Ho7MY=; b=tG89m0Z3QBG7uE4MNlr8SmF4QA3+rkhz+kQHU6YVwmQ8j0U14NAIWAFUnteSP7prh+ vEyjIzwDjumqcIZr61KPgNfih7qsYOWiHfKtGUlnWYJOZKmIGV+7RaEaK3kmk2yykZzC av+70p8okp9YAH0LLhKZFbBaI+M4lwnd89bZNoXEeDAMF0qKNVGCAspk9wM2xKQR+2lG I5uhnYMCJKelgRnIYy36WNsZRr038kU8+HogB1OuS3GYLS1USEhfocvKg3UVWjF5W9Ii IY9krt38NTCLxz+Y3xQe1vqVNIwTuElNS1iyli7+fn9LiiGs2y3HlBvP8DDEft/k3yu2 cXVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=KPSyiagq; 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 m20-20020a17090ade1400b001c680fd1581si2195249pjv.97.2022.03.22.05.37.10; Tue, 22 Mar 2022 05:37:22 -0700 (PDT) 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=fm3 header.b=KPSyiagq; 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 S232817AbiCVKPH (ORCPT + 99 others); Tue, 22 Mar 2022 06:15:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231845AbiCVKPG (ORCPT ); Tue, 22 Mar 2022 06:15:06 -0400 Received: from new4-smtp.messagingengine.com (new4-smtp.messagingengine.com [66.111.4.230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 908F8240A8; Tue, 22 Mar 2022 03:13:39 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.nyi.internal (Postfix) with ESMTP id 790E058024B; Tue, 22 Mar 2022 06:13:36 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Tue, 22 Mar 2022 06:13:36 -0400 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=fm3; bh=EWmG3jSf1BnvVGbFL 8jiO1r4X5cFxx3tAO4xA/Ho7MY=; b=KPSyiagqsFsBkQYpqzhD2qFm8ggdQyyJN 3FTgXIXsOjqqRRxTNNAMRgJFe7I8aY1WusTW6rRgbaMIHRZsmefHFDaqm+daXj1T FKnq8teRsj4SLCst0cz2JF0iu2ic9scxQItw+YwuSkyxiXHgeJrlWpdh0goBjcFE uzhQ+XKv5/+pUWGAx9okR0WgM/khX4akyqj997ZnWqaJS4iBiCUnKg1wbqpVUk/q wImvhSM6IkoBzDMXhXV4McYYlcI9ukLVkNuP+Wava5sd2YgSPy6SxztwuPnwz+JL A9HHlzhTkJRjwtMJKh7seVnozZhqbuYA+upcWq4pm6wwSUlD550RQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudeghedgudduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpefkughoucfu tghhihhmmhgvlhcuoehiughoshgthhesihguohhstghhrdhorhhgqeenucggtffrrghtth gvrhhnpeehhfdthfduueehgfekkefhhedutddvveefteehteekleevgfegteevueelheek ueenucffohhmrghinhepghhithhhuhgsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepihguohhstghhsehiughoshgthhdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 22 Mar 2022 06:13:34 -0400 (EDT) Date: Tue, 22 Mar 2022 12:13:31 +0200 From: Ido Schimmel To: Vladimir Oltean Cc: Jianbo Liu , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-rdma@vger.kernel.org, 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, simon.horman@corigine.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 v3 1/2] net: flow_offload: add tc police action parameters Message-ID: References: <20220224102908.5255-1-jianbol@nvidia.com> <20220224102908.5255-2-jianbol@nvidia.com> <20220315191358.taujzi2kwxlp6iuf@skbuf> <20220317185249.5mff5u2x624pjewv@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW,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, Mar 17, 2022 at 09:37:22PM +0200, Ido Schimmel wrote: > On Thu, Mar 17, 2022 at 08:52:49PM +0200, Vladimir Oltean wrote: > > I'd just like the 'reclassify' action to be propagated in some reasonable > > way to flow offload, considering that at the moment the error is quite cryptic. > > OK, will check next week. Might be best to simply propagate extack to > offload_act_setup() and return a meaningful message in > tcf_police_offload_act_setup(). There are a bunch of other actions whose > callback simply returns '-EOPNOTSUPP' that can benefit from it. # tc filter add dev dummy0 ingress protocol ip flower skip_sw ip_proto icmp action police rate 100Mbit burst 10000 Error: act_police: Offload not supported when conform/exceed action is "reclassify". We have an error talking to the kernel Available here: https://github.com/idosch/linux/commits/tc_extack I plan to submit the patches after net-next reopens.