From patchwork Sun Jun 28 23:31:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavan Nikhilesh Bhagavatula X-Patchwork-Id: 72392 X-Patchwork-Delegate: jerinj@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id D451FA0350; Mon, 29 Jun 2020 01:33:25 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id ABA702C2B; Mon, 29 Jun 2020 01:33:24 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 112FA2C01 for ; Mon, 29 Jun 2020 01:33:22 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 05SNPFhr005763 for ; Sun, 28 Jun 2020 16:33:22 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0818; bh=vEInDEAX5yW1Klski9jqhrQjH+ZUf/fBsuPgONNqgas=; b=i5y3pPFYDl1EXvrLa1PPoAR7TQO8ZGoV6vXdfpm+mfIOHwueGKw+VXla1AdpN/OaRQ+9 wwxTKfZmCYHMZDE9ASkJS38TDRPvR1/rA3Qftw3iDbYdJKWTjXrrSDUhN1kYRu6/seG5 dBYZV9WIrb9eC7InY2o/XHW8DytRdTIHnXFHlRRh03NNpfo0QUNeQ9NQYuU/mf+KS8kq 3QV1qV5z+PB3CC6uVUXlFJ+Vuxdu8RwY1RqAM7xteRsopsWRUvd/qHWRrOZKg1PHJ8vB yAFbatr/+MwbABTWX0LP7oGsg83c/DjzeBRI4kSf3JpW3f9uR/QaEEz8FonX9nPX4GwG vw== Received: from sc-exch01.marvell.com ([199.233.58.181]) by mx0a-0016f401.pphosted.com with ESMTP id 31y0wrrk5y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Sun, 28 Jun 2020 16:33:22 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 28 Jun 2020 16:33:21 -0700 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.2 via Frontend Transport; Sun, 28 Jun 2020 16:33:21 -0700 Received: from BG-LT7430.marvell.com (BG-LT7430.marvell.com [10.28.161.240]) by maili.marvell.com (Postfix) with ESMTP id 433213F703F; Sun, 28 Jun 2020 16:33:18 -0700 (PDT) From: To: , Nithin Dabilpuram , "Kiran Kumar K" CC: , Pavan Nikhilesh Date: Mon, 29 Jun 2020 05:01:35 +0530 Message-ID: <20200628233136.2953-1-pbhagavatula@marvell.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216, 18.0.687 definitions=2020-06-28_11:2020-06-26, 2020-06-28 signatures=0 Subject: [dpdk-dev] [PATCH] net/octeontx2: free CQ ring memzone on queue release X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Pavan Nikhilesh Free CQ ring memzone on Rx queue release. This prevents CQ using incorrect memory size when ring size is reconfigured. Signed-off-by: Pavan Nikhilesh Acked-by: Jerin Jacob --- This patch depends on the following patch http://patches.dpdk.org/patch/72035/ drivers/net/octeontx2/otx2_ethdev.c | 1 + 1 file changed, 1 insertion(+) -- 2.17.1 diff --git a/drivers/net/octeontx2/otx2_ethdev.c b/drivers/net/octeontx2/otx2_ethdev.c index 3f3f0a693..a1084bf96 100644 --- a/drivers/net/octeontx2/otx2_ethdev.c +++ b/drivers/net/octeontx2/otx2_ethdev.c @@ -528,6 +528,7 @@ otx2_nix_rx_queue_setup(struct rte_eth_dev *eth_dev, uint16_t rq, if (eth_dev->data->rx_queues[rq] != NULL) { otx2_nix_dbg("Freeing memory prior to re-allocation %d", rq); otx2_nix_rx_queue_release(eth_dev->data->rx_queues[rq]); + rte_eth_dma_zone_free(eth_dev, "cq", rq); eth_dev->data->rx_queues[rq] = NULL; }