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 5533A48922 for ; Mon, 13 Oct 2025 09:00:35 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5D2F940684; Mon, 13 Oct 2025 09:00:34 +0200 (CEST) Received: from mx0a-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id C9BF7402CB; Mon, 13 Oct 2025 09:00:32 +0200 (CEST) Received: from pps.filterd (m0431384.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 59CNSNgK000545; Mon, 13 Oct 2025 00:00:32 -0700 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=e 6/Y9WghJqywPHKmgZl47FYYkNd0nnB526fyiy0M/yA=; b=Z/qOusKAWLHGTGnKM qNERcfTAvsxeb25ag3XWmxh6DcAKrE2xrZgoPr0P3cuVz/JI+SesR06srS1ob4g9 mJdx2PwcI1ZKZjmPM/6EGVSRLS3rUJfimEZfi23jn9YkdHT4sTInO7WOea0n24SB trnUr316VvXoAoyy8kqVfHU2Is8HEDr8s64J4qBo+RYe7JOi3TTqn1vVoqx8qmt+ ACp1hxKXiz3hAfcJ5ScpKcnlyzBLex9hy3XSUVInoL5Pae0WjrPEHRD+i87F1M00 sQryY96igNUG4XXKeo+fWAMubyWgX1dEznKgqvTvfeIrZ00vrZIkXNw77dV60vRf 4CCiQ== Received: from dc5-exch05.marvell.com ([199.233.59.128]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 49rp1jrmkm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 13 Oct 2025 00:00:31 -0700 (PDT) Received: from DC5-EXCH05.marvell.com (10.69.176.209) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.25; Mon, 13 Oct 2025 00:00:41 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server id 15.2.1544.25 via Frontend Transport; Mon, 13 Oct 2025 00:00:41 -0700 Received: from hyd1588t430.caveonetworks.com (unknown [10.29.52.204]) by maili.marvell.com (Postfix) with ESMTP id 88E153F70C1; Mon, 13 Oct 2025 00:00:28 -0700 (PDT) From: Nithin Dabilpuram To: Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao , Harman Kalra CC: , , Subject: [PATCH v2 12/19] common/cnxk: fix max number of SQB bufs in clean up Date: Mon, 13 Oct 2025 12:29:42 +0530 Message-ID: <20251013065949.200414-12-ndabilpuram@marvell.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20251013065949.200414-1-ndabilpuram@marvell.com> References: <20250901073036.1381560-1-ndabilpuram@marvell.com> <20251013065949.200414-1-ndabilpuram@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: I_ZfNNGjMP-uNQzmPj0ELXjvIbSKdLX0 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMDEyMDEyNSBTYWx0ZWRfX0DcfArTQtNKp xZ6BjcfdbxjieQL+jUpUfCQCLVyT5vKhRYQMWuBW4zyG8jxqd8eHKwVC9Q1FxCpBEDdyHzSOhMt KOmfy70fK0JeQerMwa7N+7qiyw/2REcIs5TzEj9YRpm/pA49VdcTqB52dEq8TRFlX4CRjQHAT62 HS8QedUoJdDurHlrWvPwqZ6+cYk1Nl4qukGm2su1D5TU8FqT2dnKI30xB3yzW9vz/JhIaO03/dn DQN1yvmmIjcrxKHLS+WIbzVXrnduB4xzrWnlZMkJ3voFhVrYRc2l78454aqEe8dyv3/wmgw5+Va CqceiWP9re5LTCuM0pefbz/gD/AlSEGwfmQykYdANDe2AvdmO/cC6FwNb8Rw/92t1+S6RuNi6jX tG+56vfCFwyCSBoFp9YxCzoMLwf1UA== X-Authority-Analysis: v=2.4 cv=Utdu9uwB c=1 sm=1 tr=0 ts=68eca38f cx=c_pps a=rEv8fa4AjpPjGxpoe8rlIQ==:117 a=rEv8fa4AjpPjGxpoe8rlIQ==:17 a=x6icFKpwvdMA:10 a=M5GUcnROAAAA:8 a=8rWy6zfcAAAA:8 a=3m7XhV8NHwqQqn6gr2kA:9 a=OBjm3rFKGHvpk9ecZwUJ:22 a=YjdVzJdQTyZRADMV7wFX:22 X-Proofpoint-GUID: I_ZfNNGjMP-uNQzmPj0ELXjvIbSKdLX0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1117,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-10-13_03,2025-10-06_01,2025-03-28_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 356367624f..8737728dd5 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