From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DC87EC25B4E for ; Tue, 24 Jan 2023 10:59:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=nP0zJdqX1D0iEYZnfWWHVU9T7pghXOdZ2+AfzYFNOY8=; b=rMe4XLSGg42DfK wF2Trusv4gR+cQqQLNEHgsKi8reiOF499AEqWvgjg0DTOSMuXd8h1zqvzCdy8ruDEOAnAre5p7s8q lJ3icsIMUjgwJDuEMfgXw/atc1clNTZdxkFmltSMSSQWwCOL/TO/68A+cL3QnYo3MGE20fT1/UVe1 XLCwEHQ2YjtaxkUAG4ri9SZmOx107AjABqCCa4t6XPSclCntAsx+GRJSwcyVV4IR7tuPE3BQfggJ4 Z+cldasbYdioy0YI71yMMtWBVNsXTfCGigCVCq/6XNMLyr0xdSPznS4/u64GioHpwkDcJwfo1VKWw k2pAm4pndH+KsgwVgWEg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pKGzz-003Hlx-IQ; Tue, 24 Jan 2023 10:57:55 +0000 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pKGzw-003HkZ-LW for linux-arm-kernel@lists.infradead.org; Tue, 24 Jan 2023 10:57:53 +0000 Received: by mail-wm1-x32f.google.com with SMTP id g10so11125807wmo.1 for ; Tue, 24 Jan 2023 02:57:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=l+iRy96huUwX2AjRH5KAl7czXmDMKHIrTrxrrNsvynA=; b=aOCwvkEPfoRLVBjW+3cFQRXN4J5/Qll7A+x2Mr5eLvdDV4AV54vgZgH3Dzzzxbzkmc gByGVJAPIUjdRtPzwS/Uv6MyfKjuVD3g61lKXfpp410UBlp+6KUflItzfVb2SMI6JV1P ZucTaDFDAw18NVdOguzmR7GDHKwZvBbqx/u1Nq1MCvj5RhghPpD6Qi71zIP6mzAffUzC LsqDLJp3MQgSCi63aznlgALlRiNdfDAlS+BKmelVyarfM3fi5172Iw+5e3G06hkEEU1I dniQrLsXJRq9+fESsGwjaLOZzzf2264h9NCuGZHFjLdTNIBDXZEIZqq8aw6zjY4f/Hhv a8kQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=l+iRy96huUwX2AjRH5KAl7czXmDMKHIrTrxrrNsvynA=; b=pYHuF9X7UD4DUO1PlOXhlRy87bzDoZiUaqidswVNn05rDtsDzXcm+zyPzroeLAg/N2 FTcze8WkbjUVCVL26DQTDI1ouVJqsay4agvozwyZrBxkrhI4Cka2McU76QqpIZgVX23S FkDekveKgk31Rv2iitsRhmkbLwW6sNdjBLn6gaLOB5sQZs4Wix8NaqJzeNoO2Yp0s8kQ 9eryL4GrUl8mgw5q1CpguoD+mJdOf0JcmlRXBfp6zEc7+KTmrSGgxdkvYuPdSIwnWjNZ TAp4es9C9b8La+UeiEZk0PN8mBFRhKKWcrSF8TCHezIrfphhzGp48IQeLDk+FHMGxNC7 bvhg== X-Gm-Message-State: AFqh2koJDrOkGXR2Mc0BX9Z1A/aI+yVLjNsJbokaeRmMUdNUtughCSZ8 yh2ualzNgbQBDXzH74Oa/mg= X-Google-Smtp-Source: AMrXdXu5Lz/MfGUfhZbnIJQqqA72u5WFJMgCe7lhHAOqOSEVdYZdIkX3liGkp8sUr3h/1Z8WciF3Dw== X-Received: by 2002:a05:600c:198a:b0:3d9:cb4c:af5a with SMTP id t10-20020a05600c198a00b003d9cb4caf5amr28500368wmq.33.1674557870628; Tue, 24 Jan 2023 02:57:50 -0800 (PST) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id v1-20020a05600c4d8100b003dc175c09c1sm232010wmp.27.2023.01.24.02.57.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Jan 2023 02:57:50 -0800 (PST) Date: Tue, 24 Jan 2023 13:57:45 +0300 From: Dan Carpenter To: Steen Hegelund Cc: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , UNGLinuxDriver@microchip.com, Randy Dunlap , Casper Andersson , Russell King , Wan Jiabing , Nathan Huckleberry , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Daniel Machon , Horatiu Vultur , Lars Povlsen , Michael Walle Subject: Re: [PATCH net-next v2 0/8] Adding Sparx5 IS0 VCAP support Message-ID: References: <20230124104511.293938-1-steen.hegelund@microchip.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230124104511.293938-1-steen.hegelund@microchip.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230124_025752_744207_8281B4CF X-CRM114-Status: GOOD ( 18.90 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Jan 24, 2023 at 11:45:03AM +0100, Steen Hegelund wrote: > This provides the Ingress Stage 0 (IS0) VCAP (Versatile Content-Aware > Processor) support for the Sparx5 platform. > > The IS0 VCAP (also known in the datasheet as CLM) is a classifier VCAP that > mainly extracts frame information to metadata that follows the frame in the > Sparx5 processing flow all the way to the egress port. > > The IS0 VCAP has 4 lookups and they are accessible with a TC chain id: > > - chain 1000000: IS0 Lookup 0 > - chain 1100000: IS0 Lookup 1 > - chain 1200000: IS0 Lookup 2 > - chain 1300000: IS0 Lookup 3 > - chain 1400000: IS0 Lookup 4 > - chain 1500000: IS0 Lookup 5 > > Each of these lookups have their own port keyset configuration that decides > which keys will be used for matching on which traffic type. > > The IS0 VCAP has these traffic classifications: > > - IPv4 frames > - IPv6 frames > - Unicast MPLS frames (ethertype = 0x8847) > - Multicast MPLS frames (ethertype = 0x8847) > - Other frame types than MPLS, IPv4 and IPv6 > > The IS0 VCAP has an action that allows setting the value of a PAG (Policy > Association Group) key field in the frame metadata, and this can be used > for matching in an IS2 VCAP rule. > > This allow rules in the IS0 VCAP to be linked to rules in the IS2 VCAP. > > The linking is exposed by using the TC "goto chain" action with an offset > from the IS2 chain ids. > > As an example a "goto chain 8000001" will use a PAG value of 1 to chain to > a rule in IS2 Lookup 0. > > Version History: > ================ > v2 Added corrections suggested by Dan Carpenter. Thanks! regards, dan carpenter _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel