Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp2856871rwi; Tue, 1 Nov 2022 12:38:09 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5nHFrQvUzBvBpjiWiiuYDr6bmbVUIjt3khSqk+IBmOxCqwyOXfBVdJIDLTEf4o3acFSBFw X-Received: by 2002:a17:902:74c3:b0:182:57fa:b9c4 with SMTP id f3-20020a17090274c300b0018257fab9c4mr21215826plt.104.1667331488801; Tue, 01 Nov 2022 12:38:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667331488; cv=none; d=google.com; s=arc-20160816; b=nJA3FoeJ7LdvR41mkQ/J5lkafRas6ZPPxgdaax/rl0ejKrrW6Ef8IJdXTn5JQkX8RH iz6myCLdgNDBnhbEbtor6ADA7yzGBVGiDq0o1Bu/1zyaRYbOZh+Uf7bMGTTOoeuiket0 4Cs+dQxhj5aJ8FICJQ78UwBXA9Ysn5J4/3wFd65g2VJsg6jBw0I0rf7rLAhrEOxVgjjC hH3NL4vR2AaFbgMXmgfFWMrdVogFSj3yF9PVmqVQhngV23eEcwNZDO/WTq+0mT3CfedE Z6Wg1jpLIutI/e2u1sVeG/Mnb97sWfFt+qMH3SfNivLJitOlQi6kcc1kfKIwUZUF+CqL 9peg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=/YpO2pOgbgFJkJvKApL4poR/xv+1ai2ADNFKdlSpFj0=; b=B1bsAbp/q5KDfO9jJ/fNnvoPHEbHWCVrijWXcGmd5ttueXIitqyvyIh7DYASdqx7it XiNF/CoXvYeUjOC6oAX0XcQ4CM6kgQz/LyWv4zr0nwL2MIMy9VH1q05c0S/jzP9O4bcG h5wEU4dMcINBqkb5FbXtRHS7+Yj9pbttoH7Je9I+lyth+IZY3a41mqdfd1ZZ5dhy/82r PHRI4oH+R3nOhYX/roTRpxfU5m8slrCUf4uOr0Pm9bz7/+lW1/cm+cM1lPRqP1RXCcM5 vUWFFRW0BIY7/Dnu5lFTHe3rS7M5UfR12ZHWVS3PaDkc+RfipWmNrIUlRqyWcDanuI2z zMow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b="QbkGsIo/"; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 26-20020a63165a000000b0046fcec7f27asi7156360pgw.506.2022.11.01.12.37.54; Tue, 01 Nov 2022 12:38:08 -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=@microchip.com header.s=mchp header.b="QbkGsIo/"; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230435AbiKATcd (ORCPT + 97 others); Tue, 1 Nov 2022 15:32:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230261AbiKATc2 (ORCPT ); Tue, 1 Nov 2022 15:32:28 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73A0512A83; Tue, 1 Nov 2022 12:32:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1667331147; x=1698867147; h=message-id:subject:from:to:cc:date:in-reply-to: references:mime-version:content-transfer-encoding; bh=s+EqHyjaeXVSMyI36GDC5bYTToXoWUTH+2Gxwj5l6jA=; b=QbkGsIo/dzqitljQvuLBde2Ir+di/VTgsfXxU9RNLEzIIUtvqZV6DYrZ Kj5Lm7abhVyU8i9KTk4Xh9/xCCGLtzUGAK7sA/DOaKKDW/MCYEHC3Z3sO fMykL2mjhSJEEGLBudqrQ4r1O8bDCAve7H1jKqx/8qW2QdNkcLDPWEoDN Q8SNifXidUcfohYEQKNiCXc8pTloZDitIiuLw3lIddTHu4fQEtgMHHU0q Io5Ka+OArTuhtObPYjB83s4exlioZsdTGC1W+RrtesMJPnph2edj35M32 OL62av+pUjLThWylWeJdvzOmG2cdZcmEYL1fM+F+UdIeVfgHJHggQHuEV A==; X-IronPort-AV: E=Sophos;i="5.95,231,1661842800"; d="scan'208";a="184892260" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 01 Nov 2022 12:32:25 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Tue, 1 Nov 2022 12:32:17 -0700 Received: from den-her-m31857h.microchip.com (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Tue, 1 Nov 2022 12:32:14 -0700 Message-ID: Subject: Re: [PATCH net-next v2 2/5] net: microchip: sparx5: Adding more tc flower keys for the IS2 VCAP From: Steen Hegelund To: Jakub Kicinski CC: Casper Andersson , "David S . Miller" , Eric Dumazet , Paolo Abeni , , Randy Dunlap , Russell King , "Wan Jiabing" , Nathan Huckleberry , , , , Daniel Machon , Horatiu Vultur , Lars Povlsen Date: Tue, 1 Nov 2022 20:32:13 +0100 In-Reply-To: <20221101084925.7d8b7641@kernel.org> References: <20221028144540.3344995-1-steen.hegelund@microchip.com> <20221028144540.3344995-3-steen.hegelund@microchip.com> <20221031103747.uk76tudphqdo6uto@wse-c0155> <51622bfd3fe718139cece38493946c2860ebdf77.camel@microchip.com> <20221031184128.1143d51e@kernel.org> <741b628857168a6844b6c2e0482beb7df9b56520.camel@microchip.com> <20221101084925.7d8b7641@kernel.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS 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 Hi Jacub, Thanks for the comments. On Tue, 2022-11-01 at 08:49 -0700, Jakub Kicinski wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe > > On Tue, 1 Nov 2022 08:31:16 +0100 Steen Hegelund wrote: > > > Previous series in this context means previous revision or something > > > that was already merged? > > > > Casper refers to this series (the first of the VCAP related series) that was merged on Oct 24th: > > > > https://lore.kernel.org/all/20221020130904.1215072-1-steen.hegelund@microchip.com/ > > Alright, looks like this is only in net-next so no risk of breaking > existing users. Yes, this is a new feature. > > That said you should reject filters you can't support with an extack > message set. Also see below. That should also be the case. I just checked that using an unsupported key, action or chain will result in an extack error message. > > > > > tc filter add dev eth3 ingress chain 8000000 prio 10 handle 10 \ > > > > > > How are you using chains? > > > > The chain ids are referring to the VCAP instances and their lookups. There are some more > > details > > about this in the series I referred to above. > > > > The short version is that this allows you to select where in the frame processing flow your rule > > will be inserted (using ingress or egress and the chain id). > > > > > I thought you need to offload FLOW_ACTION_GOTO to get to a chain, > > > and I get no hits on this driver. > > > > I have not yet added the goto action, but one use of that is to chain a filter from one VCAP > > instance/lookup to another. > > > > The goto action will be added in a soon-to-come series. I just wanted to avoid a series getting > > too > > large, but on the other hand each of them should provide functionality that you can use in > > practice. > > The behavior of the offload must be the same as the SW implementation. > It sounds like in your case it very much isn't, as adding rules to > a magic chain in SW, without the goto will result in the rules being > unused. I will add the goto support to my implementation so that it will be consistent with the SW implementation, adding a check to ensure that there is a goto action when HW offloading. BR Steen