Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3490380pxf; Mon, 29 Mar 2021 03:50:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7SOIUP1RpA4R1kHp0n7tgpzVaEqb39GW9hYC+wkraFAmqcA36lX0JHptd6ZFTTnbJFV7a X-Received: by 2002:a05:6402:3592:: with SMTP id y18mr22605370edc.360.1617015028638; Mon, 29 Mar 2021 03:50:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617015028; cv=none; d=google.com; s=arc-20160816; b=kLheJ7hlLcBic6MlVDh5CVksxp87gfsbMlLmzDqKV90uUQdT6Ow4DsK0ZVahHDwIR4 Ibmxr4Oc+bJA9Byue+OuOpW9qs2W26NoWOUJzya3v6AvLFWjSN35LaDGNCZl6SDTbgya HeFkL8EAorzCC3e2szL0r8zvsG71BGC7Sxyl0Ncsc+xgwahEYv325+yMnzKSwR9HYmMX n1/ICgXkgnnqMCKAwf/y9YEj7rK/o5SBhKMq0fZ6Wir1W4L0CvHbik2Ybq7g3YPj29/5 E4Lug+ZhjLa5vsivhtFzrUjiD3i3puPsLdjdM8Xq7f6fpzf1KXhmTAjqJakMh6zkQ8fk /hlQ== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=uvwojKFL4IUW+CwOvvRgGKOao1jQFhVxrjDZqMCcSW8=; b=wwaR4s2lneiSQJwy2QIlAzyWDKeZVDlUdpG19wXWzst8M2ZdE+LZ2awZeapYQ7V9G2 JObUDJtzYNHTObiga49ra97PPOJB5siN8XqhHYBzTx/OD2darfSY/qKPAho7GwNy727Y 9egef7148YyiuyHsHMHNr3InHFfkH2zxslTYp/DwKHTaasPRfPJsxWMx18KFD/bO/JG8 7K+NnGdkl0ZMnZZy28oOoZe0mpq8ggD5i8RacBVHeimoaKwlUaH45hH8cnMEmDNiU6+K KEZ2/AfhAyN8r3ph+PNWdS5y5NwMQ/GcMYQR5699U9rHVTRv1qH21XqBAGlQhRPVF7rM 42hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=L6GSR4fN; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bx3si13128084edb.594.2021.03.29.03.50.06; Mon, 29 Mar 2021 03:50:28 -0700 (PDT) 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=@linuxfoundation.org header.s=korg header.b=L6GSR4fN; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233870AbhC2Iiq (ORCPT + 99 others); Mon, 29 Mar 2021 04:38:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:39704 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231931AbhC2IXM (ORCPT ); Mon, 29 Mar 2021 04:23:12 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id AE66D61481; Mon, 29 Mar 2021 08:23:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617006192; bh=OoEgKyieZEOOPHEjg6+vLfffIdzxDYZw8poEB6UkF6w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=L6GSR4fNZQmIHMMDZU5LJWNrAbkVj3hwjQV+iMh1VQ7pI7SbUe4nyZckUIpJziOHh JHtdUuUWkfcf+lZcXrNB1B67Kggdcr/ZmLG+1TSKIaGrwiGCs8NUy6UxGKcy61arvo PK0kZ9CB0Mh2atXAQPyudYHMPMzBp3snmHx/vgtc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Subbaraya Sundeep , Hariprasad Kelam , Sunil Kovvuri Goutham , "David S. Miller" , Sasha Levin Subject: [PATCH 5.10 152/221] octeontx2-af: Remove TOS field from MKEX TX Date: Mon, 29 Mar 2021 09:58:03 +0200 Message-Id: <20210329075634.239174669@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210329075629.172032742@linuxfoundation.org> References: <20210329075629.172032742@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Subbaraya Sundeep [ Upstream commit ce86c2a531e2f2995ee55ea527c1f39ba1d95f73 ] The MKEX profile describes what packet fields need to be extracted from the input packet and how to place those packet fields in the output key for MCAM matching. The MKEX profile can be in a way where higher layer packet fields can overwrite lower layer packet fields in output MCAM Key. Hence MKEX profile is always ensured that there are no overlaps between any of the layers. But the commit 42006910b5ea ("octeontx2-af: cleanup KPU config data") introduced TX TOS field which overlaps with DMAC in MCAM key. This led to AF driver returning error when TX rule is installed with DMAC as match criteria since DMAC gets overwritten and cannot be supported. This patch fixes the issue by removing TOS field from MKEX TX profile. Fixes: 42006910b5ea ("octeontx2-af: cleanup KPU config data") Signed-off-by: Subbaraya Sundeep Signed-off-by: Hariprasad Kelam Signed-off-by: Sunil Kovvuri Goutham Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/marvell/octeontx2/af/npc_profile.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/ethernet/marvell/octeontx2/af/npc_profile.h b/drivers/net/ethernet/marvell/octeontx2/af/npc_profile.h index 077efc5007dd..0e4af93be0fb 100644 --- a/drivers/net/ethernet/marvell/octeontx2/af/npc_profile.h +++ b/drivers/net/ethernet/marvell/octeontx2/af/npc_profile.h @@ -13499,8 +13499,6 @@ static const struct npc_mcam_kex npc_mkex_default = { [NPC_LT_LC_IP] = { /* SIP+DIP: 8 bytes, KW2[63:0] */ KEX_LD_CFG(0x07, 0xc, 0x1, 0x0, 0x10), - /* TOS: 1 byte, KW1[63:56] */ - KEX_LD_CFG(0x0, 0x1, 0x1, 0x0, 0xf), }, /* Layer C: IPv6 */ [NPC_LT_LC_IP6] = { -- 2.30.1