From patchwork Mon Nov 27 03:04:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geetha sowjanya X-Patchwork-Id: 169956 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp2820366vqx; Sun, 26 Nov 2023 19:05:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IGAXi7EfxTEYAdYJ4n0OJa9WYQPO9r2nStrxld/Mzbv7sR6g9QplMLmx7Mz1kDjFB5LO2UX X-Received: by 2002:a05:6808:199d:b0:3b8:42ca:5e71 with SMTP id bj29-20020a056808199d00b003b842ca5e71mr13832280oib.47.1701054322978; Sun, 26 Nov 2023 19:05:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701054322; cv=none; d=google.com; s=arc-20160816; b=DF22Ax4k7F4pVOcePiRHYBFIDIPxNceSuRm66JqmAHlFDfr3HUl2V4cndXJo5vXQGB v3Y9dXPAHMknBZtqkhtSJu5DgV17xy8RgD7tK2FI4aekw0ym6Ux36n4FvUeUPugBRrI0 6lKNLyBV27EUMJmyXZfzRayoRmmlXTD7C7E2Y1a2tVja4X1xTzK89DTrnA6RDb3r8wjN rgts6tdKqaqw6crJmzpvm/MmY+13//KpPLPOb8pL85ytceKQ+ymUEtDxzVkXZXo16xFC mq7lsHnsFy0un3n1EZsfuvX2gb5PI+y25jTDQMZu5z1Ok1jBjpiVaVi/kraPeWmRdKru 0JvQ== 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=wPv/fmS7iNNmCH0mdUKjkT6XsNx1nMbXFeqwvq2D6q0=; b=tbIYkx4IpyGHOg/VZqgZk4M81zuG2WVsYBN8PIJHM0TI01QgXmSysbTY9NgwlmydSv KQOBfBdZLhJJF3ranuF+VDQj0EuuR/5Rk04NgiQaBJFs1t83Z9WIiiJbZQOTjoborbJF 2gCNAo6WKM5yZF9/2pLN0y7uZsTc4T2Co7wOpB0+jdr2oc0tYSpeA5vJBhANcYPS2WiT WD+58+T6NEL1OD7Pj5Z3QKOs3OykNyfIAst0S0TvnuyPFiH2OKoo3Zfcbc7bW8gKGtGV KBOZ2sFjtdHiJUPnhRXB0zuBVm20nf6lKPJB2eBhk4dsYMmpAv2so088024ngfQL/hvn N9iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=GwHoFZix; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id s12-20020a65644c000000b005c21538543esi8434555pgv.433.2023.11.26.19.05.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 19:05:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=GwHoFZix; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id B9868806A61F; Sun, 26 Nov 2023 19:05:18 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232033AbjK0DFG (ORCPT + 99 others); Sun, 26 Nov 2023 22:05:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231926AbjK0DFC (ORCPT ); Sun, 26 Nov 2023 22:05:02 -0500 Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89C3712F; Sun, 26 Nov 2023 19:05:08 -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 3AR0QDe5014892; Sun, 26 Nov 2023 19:05:01 -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=GwHoFZixRvwM2Zw4YosZjOciUyCtE+puDCPwGeb0gIjEocZ9oW+xGMv/tdO9KmarayAY 7wbCUAwKkjv4NtqS6pcgKrQSfyi0EsJB5OCKAxouuF88vdBP5laTts45pbGvcr5MTIgd wYmpUjELeToFOJs5Q+7UCUgwG7wJOCnaFf4lJPH2H3RPKyIk6kxqMt6q8hPju66gu8HO LtvhK9U8/G6aFvJeEzHHSRJubl6SFXMmulftwiJZf822N0SmXDovsfc3/bf23/LGE8nH L69nm5VsDMCHBG9VgLFKvOaf85C7RMkHCBKNd4iwGVRqqjwPFvpSXRdS0Q+5dsZcBhPe EQ== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3ukf5x3bk4-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sun, 26 Nov 2023 19:05:01 -0800 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Sun, 26 Nov 2023 19:04:47 -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; Sun, 26 Nov 2023 19:04:47 -0800 Received: from hyd1soter3.marvell.com (unknown [10.29.37.12]) by maili.marvell.com (Postfix) with ESMTP id 687F53F7090; Sun, 26 Nov 2023 19:04:44 -0800 (PST) From: Geetha sowjanya To: , CC: , , , , , , , Subject: [net v2 PATCH 2/5] octeontx2-af: Fix mcs sa cam entries size Date: Mon, 27 Nov 2023 08:34:32 +0530 Message-ID: <20231127030435.17278-3-gakula@marvell.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231127030435.17278-1-gakula@marvell.com> References: <20231127030435.17278-1-gakula@marvell.com> MIME-Version: 1.0 X-Proofpoint-GUID: JYQyFbmy0ZwP2Vo4mwf0Zi-Q68pdVYaY X-Proofpoint-ORIG-GUID: JYQyFbmy0ZwP2Vo4mwf0Zi-Q68pdVYaY 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-26_25,2023-11-22_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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Sun, 26 Nov 2023 19:05:19 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783684737733388383 X-GMAIL-MSGID: 1783684737733388383 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 --- 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]; };