From patchwork Thu Feb 11 14:16:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 381010 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp2123345jah; Thu, 11 Feb 2021 06:30:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJwaXJtuq0F4BC5c707CDS76UTzlnC2yFGxERhmsyQa+IVptJaV2LBBU/xuzkDf01BRD0ij3 X-Received: by 2002:a17:906:880f:: with SMTP id zh15mr8532661ejb.268.1613053818064; Thu, 11 Feb 2021 06:30:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613053818; cv=none; d=google.com; s=arc-20160816; b=pSR4+S5VMF7x5dbmVZDskoIdYmHMm5i/F4MDTIx2q4zpk96Vu3k1Ny3TjVSy4TAMTq 2bMACghG7JWxsi7NgZKa6kVdlM/ydygy/RREmUQ/nAKIILVpjT0BWlLcBIaWFO8V4Dxz UFTel+gDj6icg2SDp0qtw//QLZxMpIAJ3bqTGtOIuBaNlCyPKilk9jjomx5ArP75b76Z vnEhLq4GPHyTGpbAccy0y/+S6Vb1wE56narn2trBTg79xPPNxGNmRiywkuMvSVwwY8Kb SXZ8wVkWFoZBKNI91yjme7h+z/ewL9e+k5zaY0p3sPE26fvhc8LJYDOaTODIJGH7PN4q yR1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from; bh=cl1oA75DhMTbygdZ/E1M6PQIkOecqIYbtHeo1Q6sDM0=; b=igjJr1UPwNV+3NJICJ6v637xWZApbFAHY7Ddvm6Tj3m9qt0MiIczLGw42jp9Khjwcd XBjMPmEwhjxXx4+ILtKaW0tNPy8fGhjN8fzBzpazruw9uw73+W4BxeK1Wz54goXzCAb4 sXBs+rJHJhuwgb0xArbClJHQsGrV7fvvxm34ZaPybYTX3p5RwB/G+AcUWSR03Ku6PbJ4 z4S7La5WDXevb5PtEXjUHoLd6i4AgEaryCBCeKiL+TE9xvNU9CgCP3sGRfgEa4iAt8g5 jXzSFFWIbelN/E45UVt7XgUpzlgIflSr448MINWp7lTrWvlduibkx1dMD/wcTUmosuJ/ Ux4w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from mails.dpdk.org (mails.dpdk.org. [217.70.189.124]) by mx.google.com with ESMTP id o25si4175999edv.3.2021.02.11.06.30.17; Thu, 11 Feb 2021 06:30:18 -0800 (PST) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) client-ip=217.70.189.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 875A71CC5AC; Thu, 11 Feb 2021 15:28:21 +0100 (CET) Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by mails.dpdk.org (Postfix) with ESMTP id 996B71CC566 for ; Thu, 11 Feb 2021 15:28:06 +0100 (CET) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 774BC1A0604; Thu, 11 Feb 2021 15:28:06 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 37EB01A05F5; Thu, 11 Feb 2021 15:28:05 +0100 (CET) Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.133.63]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 8262C402AD; Thu, 11 Feb 2021 15:28:03 +0100 (CET) From: Hemant Agrawal To: dev@dpdk.org, ferruh.yigit@intel.com Date: Thu, 11 Feb 2021 19:46:16 +0530 Message-Id: <20210211141620.12482-17-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210211141620.12482-1-hemant.agrawal@nxp.com> References: <20210120142723.14090-1-hemant.agrawal@nxp.com> <20210211141620.12482-1-hemant.agrawal@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH v2 16/20] net/dpaa: do not release the cgr ranges X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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: Nipun Gupta CGR are automatically freed up in the kernel. As we do not cleanup the queues, if we release the CGR here, kernel reports them in use. So have them freed up in the kernel Signed-off-by: Nipun Gupta --- drivers/net/dpaa/dpaa_ethdev.c | 6 ------ 1 file changed, 6 deletions(-) -- 2.17.1 diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c index c59873dd8a..0996edf9a9 100644 --- a/drivers/net/dpaa/dpaa_ethdev.c +++ b/drivers/net/dpaa/dpaa_ethdev.c @@ -486,9 +486,6 @@ static int dpaa_eth_dev_close(struct rte_eth_dev *dev) if (dpaa_intf->cgr_rx) { for (loop = 0; loop < dpaa_intf->nb_rx_queues; loop++) qman_delete_cgr(&dpaa_intf->cgr_rx[loop]); - - qman_release_cgrid_range(dpaa_intf->cgr_rx[loop].cgrid, - dpaa_intf->nb_rx_queues); } rte_free(dpaa_intf->cgr_rx); @@ -497,9 +494,6 @@ static int dpaa_eth_dev_close(struct rte_eth_dev *dev) if (dpaa_intf->cgr_tx) { for (loop = 0; loop < MAX_DPAA_CORES; loop++) qman_delete_cgr(&dpaa_intf->cgr_tx[loop]); - - qman_release_cgrid_range(dpaa_intf->cgr_tx[loop].cgrid, - MAX_DPAA_CORES); rte_free(dpaa_intf->cgr_tx); dpaa_intf->cgr_tx = NULL; }