Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp358204rwe; Tue, 18 Apr 2023 23:21:43 -0700 (PDT) X-Google-Smtp-Source: AKy350aLnCmJ0AzzBxmesReHjMBRtXaY3x70LCYrnfIGj8tCerEPBDLTdthuEwuL4JjYCamgQLjj X-Received: by 2002:aca:1319:0:b0:38e:7fe:2ca0 with SMTP id e25-20020aca1319000000b0038e07fe2ca0mr2102637oii.55.1681885302906; Tue, 18 Apr 2023 23:21:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681885302; cv=none; d=google.com; s=arc-20160816; b=ctt+WUUOi7YJX4t1tS4rinzLTit9P8JqR8mcOGjc4a0FQQdgdDIyiBqK4uec3+NiPp cpU/4h2GPmRD0JtAlefv7SU7TOLsr4e/QgJGRnfyZsD9mmqHOkjlnhwsBcCXo0WPOh1e a8mjSwJ2getwzX1tUN3ZncoOxW3Ek7Npl/NtYe4J9QjgLeBw/trKZLrrWdKYvsAxiG5s dvj5cPv7YyJ8T5M8SpfO9f5CFjX333GqgPS3zHrMjs0U29HroMYQ+F320DKUZ2c3BICj VKLdu4o+J15EgRUpb/AMSML1xtMW8xWTTD45BSq1a40JxlqD5HMEKaVyFDdoVaHlFOnN i5pw== 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=rtczSxMem+OTMnZlDvgprdqaO1kDDqvW5wHAoU0pV9k=; b=BlYloVsgEImo9gPLLWuxjd0EziaITlGiPo3jCsxfIdgvfJY2vJSSSIStSqPNMX7k9M 04YypdfpIixKz8vip8adwkGIeSqDTZ/TT76WnNOjC58wr0dDzyAbHMTEuFV4Dcm6OFws N6JNNcCZSp6sfYEr+HipNsAeNejLun0+2MW/OmtIxBircH/umS6gQd/tkRNNG2j+cP4I y18/LWCCcDdH2Onxb+h568S/KROf33uWaVddu9MHgVxVXjCZUfWm6ztFik2cf1Jt4tZu 5LBBn7S6P2O5f5clvdjue0VXek7p4XYwUrG3YBi8BdviEt0V3JSlZoRRlNZdzx826mSa bDcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=XBlQWmnL; 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 t9-20020a056870e74900b0017e4312b8c2si14173050oak.68.2023.04.18.23.21.30; Tue, 18 Apr 2023 23:21:42 -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=XBlQWmnL; 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 S231464AbjDSGVK (ORCPT + 99 others); Wed, 19 Apr 2023 02:21:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231975AbjDSGVF (ORCPT ); Wed, 19 Apr 2023 02:21:05 -0400 Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6296F6592; Tue, 18 Apr 2023 23:20:51 -0700 (PDT) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 33J49Y5f013328; Tue, 18 Apr 2023 23:20:43 -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=rtczSxMem+OTMnZlDvgprdqaO1kDDqvW5wHAoU0pV9k=; b=XBlQWmnL1uBBg2tZV3JiCqdO84JyPwmWoTvCzxwFUkpzNgccZY6m30jx4N5mCN7NG/Bx Fbv74Hmkjaup+47Ey3sKxheddJUU9qH1QaSOJphjkamFs+POCdICWwAgj8g7pHhYH0fV oWKsdZRbms1Clm7XjvEwsWhOfVlZhumfKzPlfwm+7KvIgLr+zegFFTuLyKpmKcQy5Emd 3oabhHpyx6ZcLtfHDRFtrN+auiDx8WbHt3ACRiajXdh9G5AlFge0WMyDGVVwvcbGl+1Z cFfIT1SWwj157ePaOKh4O8IlOBJkrmD3X9zD5UEh5yg9H6cp2vSMm3El9KcT+HotvYi6 Vg== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3q2917rjrr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 18 Apr 2023 23:20:43 -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.48; Tue, 18 Apr 2023 23:20:41 -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.48 via Frontend Transport; Tue, 18 Apr 2023 23:20:41 -0700 Received: from hyd1425.marvell.com (unknown [10.29.37.83]) by maili.marvell.com (Postfix) with ESMTP id 9EDC03F7058; Tue, 18 Apr 2023 23:20:36 -0700 (PDT) From: Sai Krishna To: , , , , , , , , , , , , , CC: Ratheesh Kannoth , Sai Krishna Subject: [net PATCH v3 03/10] octeontx2-af: Fix depth of cam and mem table. Date: Wed, 19 Apr 2023 11:50:11 +0530 Message-ID: <20230419062018.286136-4-saikrishnag@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230419062018.286136-1-saikrishnag@marvell.com> References: <20230419062018.286136-1-saikrishnag@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: ZipDD7W97N3RjrMW38FhoeZ-gEoXXrmK X-Proofpoint-ORIG-GUID: ZipDD7W97N3RjrMW38FhoeZ-gEoXXrmK X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-19_02,2023-04-18_01,2023-02-09_01 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 From: Ratheesh Kannoth Depth of CAM and MEM tables were wrongly configured. Fixed the same in NPC module. Fixes: b747923afff8 ("octeontx2-af: Exact match support") Signed-off-by: Ratheesh Kannoth Signed-off-by: Sunil Kovvuri Goutham Signed-off-by: Sai Krishna --- drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c b/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c index 20ebb9c95c73..6597af84aa36 100644 --- a/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c +++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c @@ -1868,9 +1868,9 @@ int rvu_npc_exact_init(struct rvu *rvu) rvu->hw->table = table; /* Read table size, ways and depth */ - table->mem_table.depth = FIELD_GET(GENMASK_ULL(31, 24), npc_const3); table->mem_table.ways = FIELD_GET(GENMASK_ULL(19, 16), npc_const3); - table->cam_table.depth = FIELD_GET(GENMASK_ULL(15, 0), npc_const3); + table->mem_table.depth = FIELD_GET(GENMASK_ULL(15, 0), npc_const3); + table->cam_table.depth = FIELD_GET(GENMASK_ULL(31, 24), npc_const3); dev_dbg(rvu->dev, "%s: NPC exact match 4way_2k table(ways=%d, depth=%d)\n", __func__, table->mem_table.ways, table->cam_table.depth); -- 2.25.1