Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1259909pxx; Tue, 27 Oct 2020 12:04:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzY91Vy1oXJ18wKi0DQFzjrX1GgI+dJIMclbWf1xO8PLzzlNtyga2kCAU49nZKYxJeNJ3yY X-Received: by 2002:a17:907:2084:: with SMTP id pv4mr4050318ejb.315.1603825467985; Tue, 27 Oct 2020 12:04:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603825467; cv=none; d=google.com; s=arc-20160816; b=m+puNzdT+/jbr7EA66YxdLbBjR4MY8UtqoUqoxnT/lIqMhbIVAWxGoqWrbda5Wp4nD s9CxxENBS8m1kHsAS7jwQPqCjS1wI2onj0pxlfq6jPSBEQgRulfrg92PO5vSvXFQE8i2 sI/eiytWsy4FvtNv5AvjPbxYCjNDLOMSR3pzwGhlHGPXSYu5tHw8ROotPk6go8KP48tW R2ewpUqaCx4DOFyzsN7nky6PL+XX/n4kD+p590tC2slGSWFWLedkmrSap00qC8PerAYU JPh9p2xNzzWvWriCN2P33FRu/Qkbr5CkXOahggB+ntF9lsgYKl5i7vQ8Qy5sdmbYPl0P lZ+A== 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:date:subject:cc:to:from :dkim-signature; bh=KqnMbfeWvqjxHgamIVeylFHWTHDc6bQnB73mMNjoFU4=; b=tzCNkzpD+4lX+gd9uf8bUGK2DmCK5MsfbnwLCOhRHKlFXFlFVGP3q/noTft387NWvI X+EoxmeIpWviem5l0U1zSXx4GXzztbZdmrQT4rGQGSksFeympWMlx+spT7OBDBgu47aI /+MpL3G01uTvPPT/jbZeAtjaCkPK5n8D7ERrhtAu1cwisldm8KffkZ0ODTBvFA75vVMP 1uMihDIf0FohYajwjryMx3q2ah7Id9D+4rXW9JjOwD4k8winesv5krIO/MC6XzzG7dmo a5yG/FywXBVRa80chMtQF/i6smsjY3n48B9O4iXanuFhOx8Pd12ckAB/4sufQX67m3TY W/Cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jnCOPluW; 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 ny22si1658886ejb.518.2020.10.27.12.04.05; Tue, 27 Oct 2020 12:04:27 -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=@kernel.org header.s=default header.b=jnCOPluW; 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 S2502002AbgJ0AjJ (ORCPT + 99 others); Mon, 26 Oct 2020 20:39:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:50946 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2409225AbgJZXuy (ORCPT ); Mon, 26 Oct 2020 19:50:54 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EEBB521BE5; Mon, 26 Oct 2020 23:50:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603756253; bh=wgzB2Ulr1JbVEa9ka5s6DW9woEKo9kQUPUo2F6wsdus=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jnCOPluW4VJP40FPhUpxH+k6FYWo4Hvjdb3Jj9rCHnLhLwHwOJ86CfprpwRU08+0d 75WoAa667jUoZLGXnG9DQu8FPuTEzED0Xo1kRn0dBilGp+c2sJmmpgbIitxuIWqAQu J282gZL3WrdFxQGmfM9P1moNPzyP01kIluN1Agx4= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Stanislaw Kardach , Sunil Goutham , "David S . Miller" , Sasha Levin , netdev@vger.kernel.org Subject: [PATCH AUTOSEL 5.9 088/147] octeontx2-af: fix LD CUSTOM LTYPE aliasing Date: Mon, 26 Oct 2020 19:48:06 -0400 Message-Id: <20201026234905.1022767-88-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201026234905.1022767-1-sashal@kernel.org> References: <20201026234905.1022767-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Stanislaw Kardach [ Upstream commit 450f0b978870c384dd81d1176088536555f3170e ] Since LD contains LTYPE definitions tweaked toward efficient NIX_AF_RX_FLOW_KEY_ALG(0..31)_FIELD(0..4) usage, the original location of NPC_LT_LD_CUSTOM0/1 was aliased with MPLS_IN_* definitions. Moving custom frame to value 6 and 7 removes the aliasing at the cost of custom frames being also considered when TCP/UDP RSS algo is configured. However since the goal of CUSTOM frames is to classify them to a separate set of RQs, this cost is acceptable. Signed-off-by: Stanislaw Kardach Acked-by: Sunil Goutham Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/marvell/octeontx2/af/npc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/marvell/octeontx2/af/npc.h b/drivers/net/ethernet/marvell/octeontx2/af/npc.h index 3803af9231c68..c0ff5f70aa431 100644 --- a/drivers/net/ethernet/marvell/octeontx2/af/npc.h +++ b/drivers/net/ethernet/marvell/octeontx2/af/npc.h @@ -77,6 +77,8 @@ enum npc_kpu_ld_ltype { NPC_LT_LD_ICMP, NPC_LT_LD_SCTP, NPC_LT_LD_ICMP6, + NPC_LT_LD_CUSTOM0, + NPC_LT_LD_CUSTOM1, NPC_LT_LD_IGMP = 8, NPC_LT_LD_ESP, NPC_LT_LD_AH, @@ -85,8 +87,6 @@ enum npc_kpu_ld_ltype { NPC_LT_LD_NSH, NPC_LT_LD_TU_MPLS_IN_NSH, NPC_LT_LD_TU_MPLS_IN_IP, - NPC_LT_LD_CUSTOM0 = 0xE, - NPC_LT_LD_CUSTOM1 = 0xF, }; enum npc_kpu_le_ltype { -- 2.25.1