From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 94BA148A96 for ; Fri, 7 Nov 2025 11:48:39 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 39F6040A6B; Fri, 7 Nov 2025 11:48:39 +0100 (CET) Received: from mx0a-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 95A904066C; Fri, 7 Nov 2025 11:48:36 +0100 (CET) Received: from pps.filterd (m0431384.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 5A75XDUS1493036; Fri, 7 Nov 2025 02:48:35 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pfpt0220; bh=o ZpHL1hosEFch7o35pa0G5cAWh39txsUfWExcoW8c0M=; b=JxLrJDyeahG5D/QQF fos4BT2yEjGOL4SKvVh5AFiwoTa+oDUtBCmG2vq87SAztP9LDHCNR6iWLq9DR5jT DUnH1k1v2dGwJAKTwPfZ/xw2lWSX4CaMML8uco50O90vQOWhWWGjwTM3UnbbqIyw wTLbfQjUfvGxmwJqgjS1D8VcIN1A+Wkj2sUM+Nabj3uxw0hnKHJTFBgLCYNSLSn3 uRUgK++c5rfayzBJNy80BYb+i0PnJk+dnofdxqIw2KRaSG8kc9+paEmHugj/lpXQ UrCnvSv8jG31/QlOrJcXx82xGThmucWvaLmTGWqug0ZB2jjAh7EOWkENwuhELDrm p6XBQ== Received: from dc6wp-exch02.marvell.com ([4.21.29.225]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 4a9aqkgvru-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 07 Nov 2025 02:48:35 -0800 (PST) Received: from DC6WP-EXCH02.marvell.com (10.76.176.209) by DC6WP-EXCH02.marvell.com (10.76.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.25; Fri, 7 Nov 2025 02:48:34 -0800 Received: from maili.marvell.com (10.69.176.80) by DC6WP-EXCH02.marvell.com (10.76.176.209) with Microsoft SMTP Server id 15.2.1544.25 via Frontend Transport; Fri, 7 Nov 2025 02:48:34 -0800 Received: from hyd1588t430.caveonetworks.com (unknown [10.29.52.204]) by maili.marvell.com (Postfix) with ESMTP id ABC6D3F70C7; Fri, 7 Nov 2025 02:48:26 -0800 (PST) From: Nithin Dabilpuram To: Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao , Harman Kalra CC: , , Subject: [PATCH v4 12/23] common/cnxk: fix max number of SQB bufs in clean up Date: Fri, 7 Nov 2025 16:17:36 +0530 Message-ID: <20251107104747.1131008-12-ndabilpuram@marvell.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20251107104747.1131008-1-ndabilpuram@marvell.com> References: <20250901073036.1381560-1-ndabilpuram@marvell.com> <20251107104747.1131008-1-ndabilpuram@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Authority-Analysis: v=2.4 cv=XvD3+FF9 c=1 sm=1 tr=0 ts=690dce83 cx=c_pps a=gIfcoYsirJbf48DBMSPrZA==:117 a=gIfcoYsirJbf48DBMSPrZA==:17 a=6UeiqGixMTsA:10 a=VkNPw1HP01LnGYTKEx00:22 a=M5GUcnROAAAA:8 a=8rWy6zfcAAAA:8 a=3m7XhV8NHwqQqn6gr2kA:9 a=OBjm3rFKGHvpk9ecZwUJ:22 a=YjdVzJdQTyZRADMV7wFX:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMTA3MDA4NyBTYWx0ZWRfX3XF7LzHBjzK0 Rm7HXN8CD+gtlcfTLI/05ybIwEoHOb67X6QNYVYQygtnWlgWk55YlfRnTT7vCZnTiz4zwNuekYz Y9kOTEptLrSrFsR8xR5OhAdxpMvfG5/8boYIMKYUi3R3SqfydjvWJuWHiskTMTL5keTD5bLBVP7 yc3pDZa54LmwJDBHiFM0osKkJnDq4fVIJIOfw0T0K372NbK+SrmTDOxp9lHFLpX0rB8iD+Hotda 4Jq9GbLrTkwP5nrodUIX/xEPlPWiUwQEtMd3RstBMTRG1uDmg8innjlD12e3vrHSF9GOZ/uVVUM qNZ5nekDb9W55lbL+a7Pihic5mKMT/1JI6hi+ip5Qz4PfhfzY6G1rNtN6dnkMPqGkNPYl4AVtQN 2ozI3/9APDzTYTsKMjNdYXViQAIuHw== X-Proofpoint-ORIG-GUID: 5lpkX-zPWqYwWpoiAGvGaDppvrqBrWig X-Proofpoint-GUID: 5lpkX-zPWqYwWpoiAGvGaDppvrqBrWig X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.100.49 definitions=2025-11-07_02,2025-11-06_01,2025-10-01_01 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org From: Sunil Kumar Kori By default, SQB pool is created with max (512 buffers) + extra threshold buffers and aura limit is set to 512 + thr. But while clean up, aura limit is reset to MAX (512 buffers) only before destroying the pool. Hence while destroying the pool, only 512 buffers are cleaned from aura and extra threshold buffers are left as it is. At later stage if same SQB pool is created then H/W throws error for extra threshold buffers that it is already in pool. Fixes: 780f90e951a5 ("common/cnxk: restore NIX SQB pool limit before destroy") Cc: stable@dpdk.org Signed-off-by: Sunil Kumar Kori --- drivers/common/cnxk/roc_nix_queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/common/cnxk/roc_nix_queue.c b/drivers/common/cnxk/roc_nix_queue.c index e59cd77538..1de6e51c5e 100644 --- a/drivers/common/cnxk/roc_nix_queue.c +++ b/drivers/common/cnxk/roc_nix_queue.c @@ -2057,7 +2057,7 @@ roc_nix_sq_fini(struct roc_nix_sq *sq) /* Restore limit to max SQB count that the pool was created * for aura drain to succeed. */ - roc_npa_aura_limit_modify(sq->aura_handle, NIX_MAX_SQB); + roc_npa_aura_limit_modify(sq->aura_handle, sq->aura_sqb_bufs); rc |= roc_npa_pool_destroy(sq->aura_handle); plt_free(sq->fc); plt_free(sq->sqe_mem); -- 2.34.1