Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp2553805rwi; Tue, 1 Nov 2022 08:59:45 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5Gy02Ak3pJiKwpKuefAciHBjTjfxbMhMOHnrdTVE/z7it/EbAL2kHQA+94iZFv7tcMN7gM X-Received: by 2002:a17:907:7286:b0:7a1:ba0:7d7a with SMTP id dt6-20020a170907728600b007a10ba07d7amr19529287ejc.227.1667318384768; Tue, 01 Nov 2022 08:59:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667318384; cv=none; d=google.com; s=arc-20160816; b=SyQUXsTAFp44JKXIDXqhSOMPCiWiQd551YMiI9L5H/fvGgaJYGx9kCCjjiJPETFQ9d hjnEz2ODMwByVy2YxtzE25m8LPXNZo0SHF+si/LKzPk9mqZut5NWN44UVb4XBj4340NR zjzS82VlnGZ0XYzFgqB16YmO5Tsq/Yvp3+QGT75rDW4wInzazFqINa6/9nbLY03oVFAC lokcCQAuCDtk7pWWYJnQdIvCMEksIntVqXFdI0xqlYlGNfrs6dX8kCm0o4Bx3ZRCoxlC 1GbRVI20sqUKDTMWYo4jf9Pfh3rI2f1cErzfaa/LnIXn0Eo2b9PQdhlQgjVAgrdwqwjB QbxA== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=lwMpY07+tSS9Dj+gxnWtuzAK+wW5Ju1F54ZIrb6rYzs=; b=JztxxOtsranC6Por/SDUQC4EQbKru9h4Gy13SBRw6h5mOtq7fwlsrdhApUp7uY219t Ixub2oroAXqoRlZSo5OiwGrpi3bdp63/bR2mCrZeK2nLZerCFLP4+CIcX1LWAo635fTT tn2RqfTo/DTyndNddv0pFpmz5662mgukIDT+17r1z8bzX981gGad1T4qcmYusaE8PEd0 VjbAHmSE/nUF7X4PPow5+Gw+ZWpgIPkOocGkuzL29bicZI0vS1d5YWbAsicCFNe8md3Y rjqlRPUrpgc5ZutuErLAn8l1F+GcyNz8U1rjuAHYdsjY6dm1L3Lu09KAVB1W2+d7d99X wQOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mTqr5cpj; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i22-20020a50d756000000b0046150eb704csi12980620edj.532.2022.11.01.08.59.19; Tue, 01 Nov 2022 08:59:44 -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=@kernel.org header.s=k20201202 header.b=mTqr5cpj; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230002AbiKAPta (ORCPT + 97 others); Tue, 1 Nov 2022 11:49:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229496AbiKAPt3 (ORCPT ); Tue, 1 Nov 2022 11:49:29 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EFAF13E9B; Tue, 1 Nov 2022 08:49:28 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 19FFB61585; Tue, 1 Nov 2022 15:49:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C5398C433C1; Tue, 1 Nov 2022 15:49:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667317767; bh=DfUrWwktIzT3nEPqxzqndsQ774MPvZ61GZ6Ia/dmz0g=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=mTqr5cpjVIBbghNfV8kxdo+cAH20M1mnx1D3hRpQjc2dUKNVjyJh2x5gLuoU6srzA 6TkehApgi8hjBByjFZvXpRAYnV/37M6wWJQaZbbMLaXMhbJWGasY35VYr0NhyGcK2O gGS8665B9MnIx9y5Z/j+qHHgjyGcmYB+twbQ7hvwyl01a7oVfAJlnYVhNyc9Znr89y deGrbWCtmxW1dtQzkBhJxuQzUDf6UUWFG7oCEjUmBEqHWNoeCRD41nFRh+/fAett3l LnQNSC6qNkdzlJ7DrAFWsIJehCiuxifnV4/eBrsvlQVTW7Nr8tL7Fg5ekGfwXqos/r +PtsRTaXpOG5g== Date: Tue, 1 Nov 2022 08:49:25 -0700 From: Jakub Kicinski To: Steen Hegelund Cc: Casper Andersson , "David S . Miller" , Eric Dumazet , Paolo Abeni , , Randy Dunlap , Russell King , "Wan Jiabing" , Nathan Huckleberry , , , , Daniel Machon , Horatiu Vultur , Lars Povlsen Subject: Re: [PATCH net-next v2 2/5] net: microchip: sparx5: Adding more tc flower keys for the IS2 VCAP Message-ID: <20221101084925.7d8b7641@kernel.org> In-Reply-To: <741b628857168a6844b6c2e0482beb7df9b56520.camel@microchip.com> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-8.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,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 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. That said you should reject filters you can't support with an extack message set. Also see below. > > > 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.