From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 97C83611FE DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org A16BE60E19 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Y/3qLhcnDpgVie+eLxjuAHBNMDcHYDgujplKC6nU3hE=; b=JuV7lhQEXUYvR0wNyADUYj8l7a20eqrvykwy60o8um8ZnWSxLXEO4SdYd12PMkQy7Exe98N4+2zFrxQH3dHu+CkBrUH5hcw+EC2+164JGrmiTMQokcHDV+D98B+od+lCrE28kwz1tcLbPRfQMGTk1AmHItKW/uW+dPFIrlrNA+0= Date: Fri, 19 May 2023 16:15:49 +0200 From: Simon Horman Message-ID: References: <20230518113328.1952135-1-idosch@nvidia.com> <20230518113328.1952135-4-idosch@nvidia.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: MIME-Version: 1.0 Subject: Re: [Bridge] [PATCH net-next 3/5] flow_offload: Reject matching on layer 2 miss List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ido Schimmel Cc: taras.chornyi@plvision.eu, petrm@nvidia.com, alexandre.belloni@bootlin.com, jiri@resnulli.us, taspelund@nvidia.com, leon@kernel.org, netdev@vger.kernel.org, razor@blackwall.org, bridge@lists.linux-foundation.org, claudiu.manoil@nxp.com, UNGLinuxDriver@microchip.com, vladimir.oltean@nxp.com, xiyou.wangcong@gmail.com, edumazet@google.com, jhs@mojatatu.com, roopa@nvidia.com, kuba@kernel.org, pabeni@redhat.com, saeedm@nvidia.com, davem@davemloft.net, nbd@nbd.name On Fri, May 19, 2023 at 05:10:58PM +0300, Ido Schimmel wrote: > On Fri, May 19, 2023 at 01:33:00PM +0200, Simon Horman wrote: > > On Thu, May 18, 2023 at 02:33:26PM +0300, Ido Schimmel wrote: > > > Adjust drivers that support the 'FLOW_DISSECTOR_KEY_META' key to reject > > > filters that try to match on the newly added layer 2 miss option. Add an > > > extack message to clearly communicate the failure reason to user space. > > > > Hi Ido, > > > > FLOW_DISSECTOR_KEY_META is also used in the following. > > Perhaps they don't need updating. But perhaps it is worth mentioning why. > > Good point. > > > > > * drivers/net/ethernet/mediatek/mtk_ppe_offload.c > > This driver does not seem to do anything with this key. TBH, I'm not > sure what is the purpose of this hunk: > > if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_META)) { > struct flow_match_meta match; > > flow_rule_match_meta(rule, &match); > } else { > return -EOPNOTSUPP; > } > > Felix, can you comment? > Original patch: > https://lore.kernel.org/netdev/20230518113328.1952135-4-idosch@nvidia.com/ FWIIW, I agree with your analysis here. > > * drivers/net/ethernet/netronome/nfp/flower/conntrack.c > > My understanding is that this code is for netfilter offload (not tc) > which does not use the new bit. Adding a check would therefore be dead > code. I don't mind adding a check or mentioning in the commit message > why I didn't add one. Let me know what you prefer. Let's go with a comment in the commit message. Thanks.