Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp131235rdh; Wed, 22 Nov 2023 22:03:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IHJi+HFQIoIEkhl0nlx+JLm3bBXM33oYLpa5qUdPDR3hlvafin49JCxehL74kGGuS5/aSvx X-Received: by 2002:a05:6a20:8e12:b0:186:de1b:663 with SMTP id y18-20020a056a208e1200b00186de1b0663mr6065683pzj.28.1700719435450; Wed, 22 Nov 2023 22:03:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700719435; cv=none; d=google.com; s=arc-20160816; b=iJE3RCuQchusWwwL//caAuunJ+vkk10jJVLA7oayxHYEErns3JY9pO6dlsrbKQSobz S1JsWXrf+oo2OFn+0cqGVPu3NLIag79W6vbbaeGn2PPbmr4VlzBZ9ww+KDaADRkDGqP4 EPkBxXLAZsZ2lF+rvgAikAwsE1+4YPUrrmFZJZzOQZOOE4JnevbvjLuctWGvTYMytQmS kFTxAtG2akq8sbYLx4ReSgLj0MhIU6h03y5+yao7WGwNhNrm+OHELz8n0OS6jbhOlqn2 4hee1D+7I7GULL/hi+CeHmQzN++0M2lACDD58fHeSb1HJiQEwoH9Mjmb/rhLx7l6yYqT 29AA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=cA2CrzkhdXsdPvJ+ZwsbisJGDq0YtoxmmcwR7wtlfsc=; fh=wPv/fmS7iNNmCH0mdUKjkT6XsNx1nMbXFeqwvq2D6q0=; b=lvA/pgvGdH7FUlFDZItfipryk7i3E+N3YQlnhY4Qf6iMTiaW9I70u/IVCWXxbff5oK jkb8UZndvKmgOaeqWwEDAwBNpFKf3cYSlsEVbhNBoxoYYLW6VtgA7l+w8cEqAovBJDY4 av0jP5fVCpM/7Iv4SHP5JFpU/zvDjc3Ap4dvcWK6ee0Ba9DbwWVi9Mcpvj2fLmVjc+Lp C/fXaF5cnG5sipfEAxnUnCtvH1pnI+CMfIX2BTDjCgrA1cqorwwLEsr5PM/dbdko+WW/ BN54Ik3C9YyO0dPwL73+UKpIwyaL62RjPEiCIx9r3kWduM/4t1Po1oyfGLZv4o0y/ksK zHPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=Xq9dsMPV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id q7-20020a63cc47000000b005bdfda8e044si622680pgi.775.2023.11.22.22.03.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 22:03:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=Xq9dsMPV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 2B8E3812F45E; Wed, 22 Nov 2023 22:01:06 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344735AbjKWGAp (ORCPT + 99 others); Thu, 23 Nov 2023 01:00:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344727AbjKWGAn (ORCPT ); Thu, 23 Nov 2023 01:00:43 -0500 Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66C3A1B6; Wed, 22 Nov 2023 22:00:49 -0800 (PST) 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 3AN5YoMb023177; Wed, 22 Nov 2023 22:00:43 -0800 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-type; s=pfpt0220; bh=cA2CrzkhdXsdPvJ+ZwsbisJGDq0YtoxmmcwR7wtlfsc=; b=Xq9dsMPVxVHhKaUa2Ow5CCxcl8YAJumX23ciaxyRQbXFSjskdreSGTSHwW77KTASbHwy h6gXxnEdZ35U8VMGjiZGr5pieqK1Kk8Y75E295TMNQ3k7yaFfSp/T5bqi9UJQV2rbstV nSm8xOo6bvdEJY4WXe3f0o2gz9jHlUJ3euEZmGxzs9taH98p7R6gSOwGmcchEz7YViqp IG7NdFDLY9rm1mJxlu4+ALcggEbjBGjfCTtd4rcwohTKYv1gPHFWUusYvSV1D9TNj3t2 Uig2CQcR9TFOSa9WvNQzio3k7MDQmnHSgeIQXPGSPRGoHqY+wp/0mWDYD+dCvCQ0wxjA Dw== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3uhpxn1xkc-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 22 Nov 2023 22:00:43 -0800 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Wed, 22 Nov 2023 21:59:53 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Wed, 22 Nov 2023 21:59:53 -0800 Received: from hyd1soter3.marvell.com (unknown [10.29.37.12]) by maili.marvell.com (Postfix) with ESMTP id 672793F7067; Wed, 22 Nov 2023 21:59:50 -0800 (PST) From: Geetha sowjanya To: , CC: , , , , , , , Subject: [net PATCH 2/5] octeontx2-af: Fix mcs sa cam entries size Date: Thu, 23 Nov 2023 11:29:38 +0530 Message-ID: <20231123055941.19430-3-gakula@marvell.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231123055941.19430-1-gakula@marvell.com> References: <20231123055941.19430-1-gakula@marvell.com> MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-ORIG-GUID: MHvwRKMcfDa4X0KVXwrWE2qStlhTzdLF X-Proofpoint-GUID: MHvwRKMcfDa4X0KVXwrWE2qStlhTzdLF X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-23_03,2023-11-22_01,2023-05-22_02 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_BLOCKED, SPF_HELO_NONE,SPF_PASS,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 22 Nov 2023 22:01:06 -0800 (PST) On latest silicon versions SA cam entries increased to 256. This patch fixes the datatype of sa_entries in mcs_hw_info struct to u16 to hold 256 entries. Fixes: 080bbd19c9dd ("octeontx2-af: cn10k: mcs: Add mailboxes for port related operations") Signed-off-by: Geetha sowjanya --- drivers/net/ethernet/marvell/octeontx2/af/mbox.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/marvell/octeontx2/af/mbox.h b/drivers/net/ethernet/marvell/octeontx2/af/mbox.h index 6845556581c3..5df42634ceb8 100644 --- a/drivers/net/ethernet/marvell/octeontx2/af/mbox.h +++ b/drivers/net/ethernet/marvell/octeontx2/af/mbox.h @@ -1945,7 +1945,7 @@ struct mcs_hw_info { u8 tcam_entries; /* RX/TX Tcam entries per mcs block */ u8 secy_entries; /* RX/TX SECY entries per mcs block */ u8 sc_entries; /* RX/TX SC CAM entries per mcs block */ - u8 sa_entries; /* PN table entries = SA entries */ + u16 sa_entries; /* PN table entries = SA entries */ u64 rsvd[16]; }; -- 2.25.1