Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3399275imw; Thu, 7 Jul 2022 00:45:04 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sVI2GJNOFy7N7Can9IUQJM6uNuj1w+nN1PVN41U49QoNCDAaqOiZmbREYGhY8np/lq3juE X-Received: by 2002:a63:1943:0:b0:411:5e12:4e4f with SMTP id 3-20020a631943000000b004115e124e4fmr37865038pgz.400.1657179903814; Thu, 07 Jul 2022 00:45:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657179903; cv=none; d=google.com; s=arc-20160816; b=ZhG/nOzpo3YsSYkj2bCWJ/0N9m/LNmcFH+tyxm+Vkuyp1cSWXmnxt75Bzm3JAZWjJC lUZ6swG9SFYf5lAYyIYBzX75MW+d6m6j2x/Jr4T1/ig7s4kDrx4xphvPdPq2T8YN/YpN sgcUqerGCpSktIOeBV1KcEEUglz7U1W6kYBKEUt+Q34ucy+wTe7U7ANLmzJtSGZ2CgKj 35som3SVJ0M3Clv+Qh6YvoIbdsoPU9A+Xpk23VzxxwzQE3b3uCl7W9NnmuLy/X3Hvpke AKcLW7AQo0iaoHmqpasClhY8KuaFUWp3gatpw3jBg7P2nVRUXH50LhoFdiZl9+V36JJh fmdw== 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=QuNfcQhY+JPBowd3H/lN1VuqQOCw4DFZgGxLjGNGm9E=; b=RZUqeYIIXq99KH+WptizuRmKsdn8moGKpAJdTlsFwaEe2geQ+fZxVvAbvG/P3H2Ful 6yMKCya1B29hIVdZOxv/xaOrhaUOOOrtq6RUvsdlMSAuEFOQ8oo1hTfHkkFTCci4ll4j CJADa0bT60jyx7WfJSWrO3zAOADus2Dc8KdZyHOIJtTU7rypzeyNHJodea9HgPcGvnkL ntWAWHW0M0+ywTg8+qKVMHoHpeKmmHBu6KeKv4kuOpdKrzxlNO2Vn6BQpHMVrgTArWFP fnl2K3cnTavDBzn9QKfCBxIDxOOEgjI/aIYqVxzUGTKbpfYiiQf3it/n/UvUIS1ndTUU +Cbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b="XV/Ya2rp"; 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=REJECT dis=NONE) header.from=marvell.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j6-20020a170903024600b0016a2221fcadsi36954845plh.509.2022.07.07.00.44.52; Thu, 07 Jul 2022 00:45:03 -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=@marvell.com header.s=pfpt0220 header.b="XV/Ya2rp"; 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=REJECT dis=NONE) header.from=marvell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234919AbiGGHgH (ORCPT + 99 others); Thu, 7 Jul 2022 03:36:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234700AbiGGHfm (ORCPT ); Thu, 7 Jul 2022 03:35:42 -0400 Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 245BD31DED; Thu, 7 Jul 2022 00:35:40 -0700 (PDT) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 266NFQsV008099; Thu, 7 Jul 2022 00:35:29 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=QuNfcQhY+JPBowd3H/lN1VuqQOCw4DFZgGxLjGNGm9E=; b=XV/Ya2rptJV9UU7I/0dDTWKlVHe5jRdCqtufcDHJDAIfAYz4rTnijuUyyehp4D+p1YGx Qw6Rj6uElkfsvYw5vqxqYGx8wVZpLaqov//fJnAqV5Oa+bNTbd2u/T1fL/AG+AdSa1zB JA8on8EqnZRLIIg9grgjJrcrEsv/JGa9RrArS656FqJCsVpHJszdxH6vLoDYyiZftQcX ocmDIyxuNeZvhoG6Va9A1S2bi15bT3/OGnNUaJ0HFSS4t2ZTpcrCr48IxmIMytgpqOTt sNzxR8k+TTki8mSqcWqHaT8O5AYX8hmsFUz3AZHBWcGjt5ZN7WwwkTdw3nMypoJXFxTJ 9A== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3h5kwj1gv4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 07 Jul 2022 00:35:29 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Thu, 7 Jul 2022 00:35:26 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Thu, 7 Jul 2022 00:35:26 -0700 Received: from IPBU-BLR-SERVER1.marvell.com (IPBU-BLR-SERVER1.marvell.com [10.28.8.41]) by maili.marvell.com (Postfix) with ESMTP id 5BA653F7061; Thu, 7 Jul 2022 00:35:24 -0700 (PDT) From: Ratheesh Kannoth To: , CC: , , , , , Ratheesh Kannoth Subject: [net-next PATCH V3 12/12] octeontx2-af: Enable Exact match flag in kex profile Date: Thu, 7 Jul 2022 13:03:53 +0530 Message-ID: <20220707073353.2752279-13-rkannoth@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220707073353.2752279-1-rkannoth@marvell.com> References: <20220707073353.2752279-1-rkannoth@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: 0kFqiA9kOF7vndlvjNAQL5VFVS1InrVc X-Proofpoint-GUID: 0kFqiA9kOF7vndlvjNAQL5VFVS1InrVc X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-07-07_06,2022-06-28_01,2022-06-22_01 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Enabled EXACT match flag in Kex default profile. Since there is no space in key, NPC_PARSE_NIBBLE_ERRCODE is removed Signed-off-by: Ratheesh Kannoth --- drivers/net/ethernet/marvell/octeontx2/af/npc_profile.h | 5 +++-- 1 file changed, 3 insertions(+), 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 4180376fa676..a820bad3abb2 100644 --- a/drivers/net/ethernet/marvell/octeontx2/af/npc_profile.h +++ b/drivers/net/ethernet/marvell/octeontx2/af/npc_profile.h @@ -155,7 +155,7 @@ /* Rx parse key extract nibble enable */ #define NPC_PARSE_NIBBLE_INTF_RX (NPC_PARSE_NIBBLE_CHAN | \ - NPC_PARSE_NIBBLE_ERRCODE | \ + NPC_PARSE_NIBBLE_L2L3_BCAST | \ NPC_PARSE_NIBBLE_LA_LTYPE | \ NPC_PARSE_NIBBLE_LB_LTYPE | \ NPC_PARSE_NIBBLE_LC_LTYPE | \ @@ -15123,7 +15123,8 @@ static struct npc_mcam_kex npc_mkex_default = { .kpu_version = NPC_KPU_PROFILE_VER, .keyx_cfg = { /* nibble: LA..LE (ltype only) + Error code + Channel */ - [NIX_INTF_RX] = ((u64)NPC_MCAM_KEY_X2 << 32) | NPC_PARSE_NIBBLE_INTF_RX, + [NIX_INTF_RX] = ((u64)NPC_MCAM_KEY_X2 << 32) | NPC_PARSE_NIBBLE_INTF_RX | + (u64)NPC_EXACT_NIBBLE_HIT, /* nibble: LA..LE (ltype only) */ [NIX_INTF_TX] = ((u64)NPC_MCAM_KEY_X2 << 32) | NPC_PARSE_NIBBLE_INTF_TX, }, -- 2.25.1