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 A39F4A034F; Wed, 13 May 2020 11:17:38 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 62A721D510; Wed, 13 May 2020 11:17:38 +0200 (CEST) Received: from FRA01-PR2-obe.outbound.protection.outlook.com (mail-eopbgr120127.outbound.protection.outlook.com [40.107.12.127]) by dpdk.org (Postfix) with ESMTP id 523C21D44F for ; Wed, 13 May 2020 11:17:37 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aL8AqSZC8weXOPmx0iLqR23RVMXqpNpf4zDKDH4gZM3Bm0Dcr9aldEemtpek3Y13ykX5iU2AODnKoZwj2Uc0IrGAq5sm+1pd85tSegeFTzBc2fjqPuKL+1AuwibVxW/xpxtwxJfcIMX6IRhrNmmHHAAwiL++sMn2BJSenSPrIILDZ+CH5n1U2YLnGlyYHdRPNulZwp/Uk2TJ+sra2Tp39CFMTHqj587LJQxRbzZ+rEHNGxDbZ7tz+bhlMkVpIl8j9dGFAhhqHkSFX8UR3fmWvwewWfy3cX8+B2/SJa+OdlrfauxNRXYBHPhI1vhrSrfZ0x8Vgc6pA5bbyRdy5EsjOQ== 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=QZFsQH5qD+srUpGlUy6PnKZHzS9E/l9Oe7+wDIUTd5D6zZ7M0EGUz4fB2x/PIHyJ5R00XrCvCQWtKCvIJVOWe1c9PiGRh3PoNzwoKUaH92gd64p/3iGbqQPBSCt02PceGPsBB8DElccmI8NqoCLu4bEkhiSQ+vhfUuKwdtLdpydWCYgtQ8pnfLFnAsf8mFkf0q4MXPVkAyTdfnxgIYpjd10G/XuXMMr4lJxKaOS4209tSBZCA/o4/e8yqq+J4BFU2UN444x2MXmOScZsoqFjMhx29obhjc9CyMjXZAf/Us+8ZVJAlXLid+eJ6k3+k23ZI2Z3R2KxCjZtlvGCuJgqqg== 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=S6bQp4FbvtHnnEZeCmT7qCb1KtvrruejgVMn9Q3uYD6sgJxBzNwjThRUMjjg+dVcbJc126m0wHcog2XrXrdBxvMLhfXq2JasIoOIIkBpJV/79uVb/FEES3AFzTW+9bdxUroGWAOSCTMuT1SfGBzYMp9AAQTXrrUKx1czy6hBPDU= Authentication-Results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=ekinops.com; Received: from MRXP264MB0325.FRAP264.PROD.OUTLOOK.COM (52.134.49.19) by MRXP264MB0502.FRAP264.PROD.OUTLOOK.COM (52.134.46.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.33; Wed, 13 May 2020 09:17:36 +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 09:17:36 +0000 From: Renata Saiakhova To: Wei Zhao , Jeff Guo Cc: dev@dpdk.org, Renata Saiakhova Date: Wed, 13 May 2020 11:15:45 +0200 Message-Id: <20200513091547.19658-3-Renata.Saiakhova@ekinops.com> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20200513091547.19658-1-Renata.Saiakhova@ekinops.com> References: <20200513091547.19658-1-Renata.Saiakhova@ekinops.com> Content-Type: text/plain X-ClientProxiedBy: AM4PR05CA0018.eurprd05.prod.outlook.com (2603:10a6:205::31) 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 AM4PR05CA0018.eurprd05.prod.outlook.com (2603:10a6:205::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.30 via Frontend Transport; Wed, 13 May 2020 09:17:36 +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: b3fd3a9e-aa86-4421-2b6e-08d7f71e79eb X-MS-TrafficTypeDiagnostic: MRXP264MB0502: 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: jlQ2AfyAnZAeYGAMW16HKjRzqf+t5TFuw2XfhXd4tfIcZKY4LWFIhM/IBah4GXlauhoWxVICbqW1fYqsHZMxNDqYpGqQHmSdnmBiWjUiPPlWs/eTKhPRj9iSKVCgvlv9SJ9mR/bTxj3KSWEyKLglF6K917NR7hdjzy8fG/MtqFZPgtXIZ/OnQBfE/n4tCc52gECNJLS8pVDp5hxNraTOiGl8zqMVO2WSJRBkIu5UyQgvCJpDK3WhkGgukA0uOxhuCj7tz7yuCzMdByRiSzELhueCKR7MTJzJLPYpmsPRaLHuZ/wnMGdeJaXGGUST9meLSeyMTfH6FVjqjDtEi1gIPi7e/36r8p6HLPo147yW+PBTv8QcuTiRfjwxCnbporNNuO7U4OzTyHgitdeQP5JeLQiayqZVer9nca8tfMKkXX+IYQCxGB4PDcewBVhCwoa/NzAnZGrBe2ANFBgDITwP9r2UNq6qqRm3x/KxQlIMYSUY3DmftG4xIYeVIHol1oUsNKDZ7PUONqfXkoHqLs7RxQ== 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:(39840400004)(396003)(136003)(346002)(366004)(376002)(33430700001)(1076003)(6486002)(107886003)(6512007)(52116002)(6666004)(33440700001)(4326008)(86362001)(5660300002)(478600001)(316002)(8676002)(36756003)(2906002)(956004)(6506007)(110136005)(8936002)(2616005)(66556008)(66476007)(186003)(66946007)(26005)(16526019); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: dDPI9tut6WR7vMvKVkEjZ00U4DV74v+gXnwZEvUVTD+gSsO03H51HL9gGe3XK6S/zn5ArJm8NOvoqFqESmxcb8qzIN/oVyg/au5AEjavaZ2Unb8GGvU6M8cQvII3+kuMKqNqT8I2uTXS4RdxAtPfkgOn/yGgK7vp6VithjpOD/7yGruYB3D65U4g2WAASAUMBSMj4WovX6gZ8c5nKQM0IyenFQOr5QNpgqTNcp270eeJk0WgJCWLyZyo+qiSFRGI9JyCLshRu1fmdkSb15ZD3ceOutzh7pE+GKdBJfaqBZd1NZpKnslx0w9Skdy4o9tpl+Zblosc6RDiMRIs7NXFy3Vz6FRGy9F/YGpeBHsCuNdHftrKgxlFVxVQEmljCt7qBCRk0uJTiDBMSIbw1tMjwDN7NdQ+bUlW37Zd3zSnNze+DJWrrMSWkRaP3nJ1ZzFbgM9LV1wohoNImKY9sMN4ziSPActvFJGi+6gwJ2aArq0= X-OriginatorOrg: ekinops.com X-MS-Exchange-CrossTenant-Network-Message-Id: b3fd3a9e-aa86-4421-2b6e-08d7f71e79eb X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 May 2020 09:17:36.3798 (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: lTQYG7SbBPALN5vUILgSXQiO1/XG34G7J/7gHIkSQ8s+9SRbgJAYeT2XDslBzOsP8fYb2K//6H0f3H/vVFOfMnmyBHSkjw4l1V8vCNn8XJE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MRXP264MB0502 Subject: [dpdk-dev] [PATCH v2 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