Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp621682pxb; Thu, 12 Nov 2020 11:59:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJzMlolevSC6FnWvmY7An6WaY4By2b3TK+0mcSOPFPwmal/CkKBkwaPz+Cmt3+ot2uGXxF+g X-Received: by 2002:aa7:c948:: with SMTP id h8mr1500319edt.171.1605211152384; Thu, 12 Nov 2020 11:59:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605211152; cv=none; d=google.com; s=arc-20160816; b=F4Sbjm3Ao88myzsA5gRD0IKDqTGmWR42u27Ui6YLCx5jWp6M4DiIPv/XSyE5O7Vi40 9bLocvT3sJjWc8RnXJAM9PqtnnKcQ8NDQpU+Q3vxdwSTYq6Yws536OD0/FyT6bLcSEX8 BcxJh+ANKfv37DkPfhKVkQWBaR3Lt+wDNxFdaNjGhlVWo3pLQebTxYF+0C/5LEYwF9Vh Oof6vmcUlA21Jso3yZ8td78eA4tm7zpmGs6Joqg+HmebZyLOM5l5umMvGsQQxl8JRgU7 viuLfSaI7zQFQBLHbwSypJ117YxVOXv0TFesT+fgz9JPb+1ma8aZxlAhP09akaT251ag w9nw== 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=+l5TOsQoOitdjrsgjtZR3/fE2B5U1IDjvvP/ca5F3JY=; b=j0olfeODhyFii8s3bv2N0/dcElhonLwvtAmtvuYgw38KmnCyEO5ygXeqSucUcd/J5B FnwVZpDA6YIDP1zXtD3XjAr3kR07l7QTFt3lOLx7jZ4jAQ5ufye/d6sfLvF/7CAfGTQn MoeVELMdCGkTU9FT/Q7KrsF/xbkzWi5B7imw0tyjAgVaYuWXMWqFrHPpWmqj/pWBAeEG EoxNWXYx4zM+WESg+Le1Nrv12GFqQuwrL6ZjgQS44lEiyGhBmMDrNC7zQZUH3NOjL7CT XhOch/cqKPwvnzQ7jOAdY8swa6csFfpaHM/BdO1n2pgxYjLtynvTvVku1xp0CfGOKGTk 37Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iLDos9Nr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ss9si4753821ejb.404.2020.11.12.11.58.48; Thu, 12 Nov 2020 11:59:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iLDos9Nr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726854AbgKLT5T (ORCPT + 99 others); Thu, 12 Nov 2020 14:57:19 -0500 Received: from mail.kernel.org ([198.145.29.99]:45012 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726702AbgKLT5T (ORCPT ); Thu, 12 Nov 2020 14:57:19 -0500 Received: from lt-jalone-7480.mtl.com (c-24-6-56-119.hsd1.ca.comcast.net [24.6.56.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0B69720791; Thu, 12 Nov 2020 19:57:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605211038; bh=3J3WDBu9OtjNNtA9foG7njMe/qOCfV8e26e1rfWIZek=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=iLDos9NrfFEbpF7KWp/0tZgEQc+G6Pa4EJag53FXT0bQnO5AVh5Np5NVOED50dd6v 6xsAeoBHmCL0Gec4Sg7BRsz+FD5hTGBDpxq08SSlp7l8PjIrGAKseTaTCZgnRZbJje 5lFh+ri2A9ZtQPO1RxDd458D02UFymtgA+1apYYo= Message-ID: <87ee2a8c0353feebdca50d2ea999ddd965d000fd.camel@kernel.org> Subject: Re: [PATCH v3 net-next 01/13] octeontx2-af: Modify default KEX profile to extract TX packet fields From: Saeed Mahameed To: Naveen Mamindlapalli , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: kuba@kernel.org, davem@davemloft.net, sgoutham@marvell.com, lcherian@marvell.com, gakula@marvell.com, jerinj@marvell.com, sbhatta@marvell.com, hkelam@marvell.com Date: Thu, 12 Nov 2020 11:57:16 -0800 In-Reply-To: <20201111071404.29620-2-naveenm@marvell.com> References: <20201111071404.29620-1-naveenm@marvell.com> <20201111071404.29620-2-naveenm@marvell.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-1.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2020-11-11 at 12:43 +0530, Naveen Mamindlapalli wrote: > From: Stanislaw Kardach > > The current default Key Extraction(KEX) profile can only use RX > packet fields while generating the MCAM search key. The profile > can't be used for matching TX packet fields. This patch modifies > the default KEX profile to add support for extracting TX packet > fields into MCAM search key. Enabled Tx KPU packet parsing by > configuring TX PKIND in tx_parse_cfg. > > Also modified the default KEX profile to extract VLAN TCI from > the LB_PTR and exact byte offset of VLAN header. The NPC KPU > parser was modified to point LB_PTR to the starting byte offset > of VLAN header which points to the tpid field. > > Signed-off-by: Stanislaw Kardach > Signed-off-by: Sunil Goutham > Signed-off-by: Naveen Mamindlapalli > Reviewed-by: Saeed Mahameed