From patchwork Thu Nov 30 07:58:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geetha sowjanya X-Patchwork-Id: 171765 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp220665vqy; Wed, 29 Nov 2023 23:59:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IEhpsjZ6v9MskjrdEK+X/0ltX5i37mFNs0XQtZ4brOecMgotK0gmeMcZ3s1xNtuVT4Wre6K X-Received: by 2002:a05:6a20:7f98:b0:189:baaa:23e7 with SMTP id d24-20020a056a207f9800b00189baaa23e7mr28870814pzj.40.1701331147515; Wed, 29 Nov 2023 23:59:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701331147; cv=none; d=google.com; s=arc-20160816; b=Kab7JmM+Tgn1DWqwkqnKtoXVXvcSsq0EdXKVydHXt6vNlW/qXE2MHXeXaNPuY3Jl2h 3DfJc4+Lj45FeUwohqMN01LiavixFnkhaOuF52kU3Cn21hG1tX0V1QsKSDpUI0FF3TK6 EzWAZ5S463E5Lknq9WHqNXcaGFfJcd8RdTxhUXkxBD0f65mZfzjxCba2RehgoB4OG4CC ogkRoPL4+hZq9ZwX+6smrNx9HWSobePofkNypTHt5R533YygBVjWUQSpFH1HasAiYxjp 1W0kbkH6c59VbunXWXjtB/G053e35T+gAyZ7GT1I6Og+/5/hzFbhc+HXvPecSeP2RxYO 3H5Q== 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=w6KvSFjmYmnKUl+4DYgSmLN/LV4utOciJLD5bCbmYHo=; fh=HY0X0m8t22/vAHj95xREoxWh6Roau2zCUUWQKPKPfT8=; b=XRZKH8uE4OkrixN1Shcknu3NJH0V8BpM6wS69szxBNJhB824PYW1oPAVdUrVNmoTNX cFx9JOVvSZfv1CI5YKnh8J1WquB93KWBpGbcr59DJ54jSq8CKspjrV1csfm9T3zHmMaK 2gHFkOuEo+1s6n1FtJrkzvmihSox4Of5AmFrLSJTs4+ZAOUJx0ZWNYFVmNWkZRhUIlRq 11s8Udx6VCAhQKr5IXDTcldYJFd6K9JstVauWPwLkZQjILZa1w9Zs0BRTlOuZ0qyHYeC 7YOGLRbdcWJLdSS9pCHiCt8Dz98ylbKfkUvga6SO4UlXEv79Q2Mo6YZQ2MHy4bOlvP8X 6b9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=DNrz249x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id x28-20020a634a1c000000b00585a5e9a965si776868pga.161.2023.11.29.23.59.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 23:59:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=DNrz249x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 705F2804EE66; Wed, 29 Nov 2023 23:59:01 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344731AbjK3H6d (ORCPT + 99 others); Thu, 30 Nov 2023 02:58:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344719AbjK3H6c (ORCPT ); Thu, 30 Nov 2023 02:58:32 -0500 Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E8A2A3; Wed, 29 Nov 2023 23:58:38 -0800 (PST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AU7NER1027662; Wed, 29 Nov 2023 23:58:33 -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=w6KvSFjmYmnKUl+4DYgSmLN/LV4utOciJLD5bCbmYHo=; b=DNrz249xa/pVTvuee6x20b9dhBYF1pl8BZ37/eVURo/CkzpAVQz6PIen6KC2nsWO+c6A pyQH1NkqEa97Ey5mCBNGwb5FkDOEL16xFLjITGy/GnACHvCdS82xXvcigq8JSkGI0QEC fCStx7G9XBimv6ILNZC6hnZFp8arHahEmdchaRJh8jTb4pzitNHLwhhayQrc4jlvkbyq jsR9g8NV4DH45A2sC3PL+Ctp0cxoE+HuIa8GY0o+V1sad0A4q74Z83rxdxX+dzhtgPeB 9a3045GTqCJmI9h0d5yd626Gsaa9MsZ9797XKnnGG3gmG7czHkFCwdwGGFubcmWe85rj oA== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3upc1v2hyu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 29 Nov 2023 23:58:33 -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, 29 Nov 2023 23:58:31 -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, 29 Nov 2023 23:58:31 -0800 Received: from hyd1soter3.marvell.com (unknown [10.29.37.12]) by maili.marvell.com (Postfix) with ESMTP id 0EA6E3F7044; Wed, 29 Nov 2023 23:58:27 -0800 (PST) From: Geetha sowjanya To: , CC: , , , , , , , , , Subject: [net v3 PATCH 2/5] octeontx2-af: Fix mcs sa cam entries size Date: Thu, 30 Nov 2023 13:28:15 +0530 Message-ID: <20231130075818.18401-3-gakula@marvell.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231130075818.18401-1-gakula@marvell.com> References: <20231130075818.18401-1-gakula@marvell.com> MIME-Version: 1.0 X-Proofpoint-GUID: oQNxiL4JNiyNpS35ro75VEZcBEh7VomU X-Proofpoint-ORIG-GUID: oQNxiL4JNiyNpS35ro75VEZcBEh7VomU X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-30_05,2023-11-29_01,2023-05-22_02 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email 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 (groat.vger.email [0.0.0.0]); Wed, 29 Nov 2023 23:59:01 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783975009330119380 X-GMAIL-MSGID: 1783975009330119380 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 Reviewed-by: Wojciech Drewek Reviewed-by: Simon Horman --- 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]; };