From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 73C63A034F; Wed, 13 May 2020 15:15:21 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 287591D5C6; Wed, 13 May 2020 15:15:11 +0200 (CEST) Received: from FRA01-MR2-obe.outbound.protection.outlook.com (mail-eopbgr90132.outbound.protection.outlook.com [40.107.9.132]) by dpdk.org (Postfix) with ESMTP id 34D091D5C7 for ; Wed, 13 May 2020 15:15:09 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=P5Yc4PgukczudDK+H9OvWbHtYcTTZNSeU4JpAJjj9cFnMxqmJaUsTkNph7pb8oMymbpiHvGGre18boklnPUFYhM36BPSC7CQzWIOIaqfbdxeR3/PBChkk8VBR7z/Y1luJdME+D/sUeE67UjGa7TKGlt2kvsmb0sOsZf9Vnmc4/rjT0jAVmBG50fzm9wDLzsTAovvNuPCHiggYUTMkkEb83YGNjAHtQkYV3omVCeSKi/OrP7ivXxGSr1N9+VIZ8TDUxaBqQbzOnMwyn46PgNCKh/PmgsBjEQrqJ9vVeDwYp160tLfZQyDQWyeS8rgs4S+aP7Q0/+T3L0jw88zweB7dA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KIqauACBXjVcQzPO5hthUq9a2qBVX9oflARYPv7uP5c=; b=RXmpIYm/AYjDVadsdcBXuXOyhG+68+ChwkDnIe3p8zuOlyIc+fDPYgoZ90o1bgKd1djMpt+Cd82B5G8R/QHvIXcJB89mIC8Ydw/68XwkN8QyTRGY1SNP2fNezlXr5jrDDHwWwVf1eDMnKUnDSQhm6ePpmtMr7/7utNTjAqkJSDjpYleEPZMSiOekYVR2AjrbuaEXebtP7Caa0yK1gqiECafrXkazdfiKYyuA41oMf56a2FVtam768RKC4klvAwck4WLQMMZWnJEdlFmOMnDjM8K/5XvMihAZ0D7nPzgqwrXggbE4Zm9bsjDJkQDkBatiO4L2wQxHeOuPVcMKi6BXqQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ekinops.com; dmarc=pass action=none header.from=ekinops.com; dkim=pass header.d=ekinops.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ekinops.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KIqauACBXjVcQzPO5hthUq9a2qBVX9oflARYPv7uP5c=; b=tUEW80ayGsuLBLnoZbzEic3R/hklxby82S+o/BmBFnrJubqcfg04WGUxMktcBk0pKv+nBe25KwgYWE6nTaJrA7HncvKyJda4wBzw11VZQitwn98+Qp329PJZWb1kK1vgQZFy6FPiP4En7Mk2JZPH4GV/cEoVREerw5vY2KjOZy0= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=ekinops.com; Received: from MRXP264MB0325.FRAP264.PROD.OUTLOOK.COM (52.134.49.19) by MRXP264MB0359.FRAP264.PROD.OUTLOOK.COM (52.134.50.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.27; Wed, 13 May 2020 13:15:08 +0000 Received: from MRXP264MB0325.FRAP264.PROD.OUTLOOK.COM ([fe80::41a7:e761:6112:5c08]) by MRXP264MB0325.FRAP264.PROD.OUTLOOK.COM ([fe80::41a7:e761:6112:5c08%7]) with mapi id 15.20.2979.033; Wed, 13 May 2020 13:15:08 +0000 From: Renata Saiakhova To: dev@dpdk.org Cc: Renata Saiakhova Date: Wed, 13 May 2020 15:14:23 +0200 Message-Id: <20200513131425.27817-3-Renata.Saiakhova@ekinops.com> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20200513131425.27817-1-Renata.Saiakhova@ekinops.com> References: <20200513131425.27817-1-Renata.Saiakhova@ekinops.com> Content-Type: text/plain X-ClientProxiedBy: AM0PR06CA0123.eurprd06.prod.outlook.com (2603:10a6:208:ab::28) To MRXP264MB0325.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:22::19) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from renataOAB.oneaccess.intra (91.183.184.98) by AM0PR06CA0123.eurprd06.prod.outlook.com (2603:10a6:208:ab::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.20 via Frontend Transport; Wed, 13 May 2020 13:15:08 +0000 X-Mailer: git-send-email 2.17.2 X-Originating-IP: [91.183.184.98] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d969fba7-f69d-4910-a8f4-08d7f73fa901 X-MS-TrafficTypeDiagnostic: MRXP264MB0359: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:843; X-Forefront-PRVS: 0402872DA1 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GnYweAgjghKhpJPNtYjZJSis9hj0tEA/A7HKiD29DGsdXXi/JgYoGNmaD1CgPUbVZBAuQV8oG/ddiCzpa90R3syVEG76S90WlY98X6lKnhi30UVvdh2NYL2nYeTDvMWHTbbziK9xcrSGUluuHVdpTA0bsXyfR+ZsmltxyRE+4UzyUThDSe/tjRYBzbxq6BTFrw4ZjsdA8nUeYwAVOoFqH895pAdbc0k/q/CmcxiiqsHPViGzFuS8dLnrlF4oh82rCZabDF/Em6GE+a2grQX6MvMZ/VXMkugOj7v4SyW5g+gPNwnqzCPeiHvuS/9JljESqRktKCc0B0ZTUHZeyDSJq4RiL7tYSqo+qOCO7byMOSi5WSFsFv9gEnbLeW2fYf2yFCHUs0uGVMH65PPFrdiT0Sfsd+rS1yt5MifEc0iYlSxx7pJSUTteD5RBMcNUhmvXRRLmSFuVWSz4uyg6ZUUeIy6zpt0bPGUSs3pyRDMfibr/FZ4ceVl0e6Vw/w8kvJtARBX1flf668HgE6TCEpO85g== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MRXP264MB0325.FRAP264.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFTY:; SFS:(346002)(376002)(136003)(366004)(39850400004)(396003)(33430700001)(16526019)(33440700001)(8936002)(6486002)(5660300002)(2616005)(86362001)(956004)(6512007)(107886003)(66476007)(66556008)(316002)(66946007)(4326008)(6506007)(2906002)(26005)(6666004)(36756003)(52116002)(186003)(6916009)(478600001)(8676002)(1076003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: Syku2lhE+3aXQL+Q3Ht5plkHaQZ4TG5jPk4hISjAKNGpkEKy1fX2WBYfer5DydZv7QzZFRVxd4XiSVrfkcx5x0DlhjH+FtgGIZNyEGteaodrYGU5YWeT2FbawXxKGAiZdJ1fB72PXEY8xWd2ETbZEN8DkjP9qgGqu12OHuDoIDfsQ/LsoUkMjgUtpZm57amCBeuv9P7vnvJgqgT0DW1lZspXb6EphsQDa1o6laHSgB6/vQMSB4XiQSlyUU8nwvTK5vZPSbp4REOCJqXvxIRPo77O7Im1H3HS9bW4+cEj0yOUBIGNbU1xUtDD1naZyrv7nXavleZunlHD0+eP+LUM4soOIOm2JEStDjA9SgTZUlglxXgL6f9dp3usTSxSaVvr4ywh/UxdTsf5qSPJI9tMspAJziJ5731yIG1np43tXvhtSv29rCw3qWfAj9ManKGGBYO4bQ81jUCzUTtf95+ReYixjsq14+dsqPJsMsRO2+Ljui1fpwFKDlkS33nfyUpO X-OriginatorOrg: ekinops.com X-MS-Exchange-CrossTenant-Network-Message-Id: d969fba7-f69d-4910-a8f4-08d7f73fa901 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 May 2020 13:15:08.7842 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f57b78a6-c654-4771-a72f-837275f46179 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: p0WgZOLPFpn1MRigokST821i0NN5lQfvy580i43CaGQlKqARtwZ5438wxzq7em/q3tn7MUMfrejZPboA9GG3I/KIb9QVNcmdbO8NLik9xGI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MRXP264MB0359 Subject: [dpdk-dev] [PATCH v3 2/4] drivers/net: Fix in igb and ixgbe HW rings memory 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" Delete memzones for HW rings in igb and ixgbe while freeing queues Signed-off-by: Renata Saiakhova --- drivers/net/e1000/igb_rxtx.c | 2 ++ drivers/net/ixgbe/ixgbe_rxtx.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/drivers/net/e1000/igb_rxtx.c b/drivers/net/e1000/igb_rxtx.c index 684fa4ad8..fe80c0f0d 100644 --- a/drivers/net/e1000/igb_rxtx.c +++ b/drivers/net/e1000/igb_rxtx.c @@ -1884,12 +1884,14 @@ igb_dev_free_queues(struct rte_eth_dev *dev) for (i = 0; i < dev->data->nb_rx_queues; i++) { eth_igb_rx_queue_release(dev->data->rx_queues[i]); dev->data->rx_queues[i] = NULL; + rte_eth_dma_zone_free(dev, "rx_ring", i); } dev->data->nb_rx_queues = 0; for (i = 0; i < dev->data->nb_tx_queues; i++) { eth_igb_tx_queue_release(dev->data->tx_queues[i]); dev->data->tx_queues[i] = NULL; + rte_eth_dma_zone_free(dev, "tx_ring", i); } dev->data->nb_tx_queues = 0; } diff --git a/drivers/net/ixgbe/ixgbe_rxtx.c b/drivers/net/ixgbe/ixgbe_rxtx.c index 2e20e18c7..977ecf513 100644 --- a/drivers/net/ixgbe/ixgbe_rxtx.c +++ b/drivers/net/ixgbe/ixgbe_rxtx.c @@ -3368,12 +3368,14 @@ ixgbe_dev_free_queues(struct rte_eth_dev *dev) for (i = 0; i < dev->data->nb_rx_queues; i++) { ixgbe_dev_rx_queue_release(dev->data->rx_queues[i]); dev->data->rx_queues[i] = NULL; + rte_eth_dma_zone_free(dev, "rx_ring", i); } dev->data->nb_rx_queues = 0; for (i = 0; i < dev->data->nb_tx_queues; i++) { ixgbe_dev_tx_queue_release(dev->data->tx_queues[i]); dev->data->tx_queues[i] = NULL; + rte_eth_dma_zone_free(dev, "tx_ring", i); } dev->data->nb_tx_queues = 0; } -- 2.17.2