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 B4E71A034F; Wed, 13 May 2020 11:17:56 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 167B21D523; Wed, 13 May 2020 11:17:47 +0200 (CEST) Received: from FRA01-PR2-obe.outbound.protection.outlook.com (mail-eopbgr120112.outbound.protection.outlook.com [40.107.12.112]) by dpdk.org (Postfix) with ESMTP id 9C1001D515 for ; Wed, 13 May 2020 11:17:45 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MCqG0Nk6ykSn1W95YDTktdeMO/ABte9qzQ/qVnoPMwSM1V3qmQORN8NQAEtCySbkjKLhrZe5048AVQ19zSTOHHQjjD2+r6FRuEQRDpDB4X/VC/WIcwRv6QWaYV2LLa/6t00RlVZl6isU/Q1z/GClKwaFzmpL9R0FuZ90tGBmxHvD8S4AHRAOI3xO7vIwiNkUC8FsYMIwfSgeiDBSL1NuNhqtiXUUcmcEiArcNqVCCxmCMwcBYMGye7H80oOivy9CQDT6dsLa5xF1EUSwcBuNAfwghN2q2FbDd2wka8ox0JRRfIl9Sz6RBm1+Hf0BC6cAIA2LyudBQBiPvRboJcWexg== 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=uT+RBp/et0SvPYd9CdFJlj1DiIE2JJlsSp0o60lL2i4=; b=eeEBKEVgUkM0iDBGgBZnYWKYr51wxcm3XJTh43/yo35JwC4lfrR4Ej1ra3qYzWgB/Q/mEXLOZqWwMR+/r7pIy6kyKIOSPdxFK5PpSyc72vpPHRV8axxFJuv7wSX7P4E66h/N+Z+jkc6lXhW3xpNQ2bnuLNPDJ/Xnm4Q0BSehMUoyam+U4UTdA5SjoV7G71MX2Dao6aFo3eZfiJbDH2zi21KuNQj5GpUw5egGdD9BvK18DbTOtTbLcbi58RiZyDKpa+7/FUUzd6VevGHiXkxw44R+TlIeE/PIzjNsnl5BY5/ZY8TSoaMPx5OFkTooR4RTfxaX6Pid9I6GAdvkuSTddg== 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=uT+RBp/et0SvPYd9CdFJlj1DiIE2JJlsSp0o60lL2i4=; b=KVzY+lEXX2ncDJKxUzmRZycVNP+hGsUhJKrmvHTHiMGhnmJ6gV7uxlSRGpmlLkPh63xKpJf3StHFtCjpI2uQr3SKQgmqrH4/PJ9SQmJgYj5XEouBI5pWpYjIqEoXoDGjR4qYA7KbxDfeYDNt2e/1QVmUSC9pK40m4uyOnaW4pls= 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 MRXP264MB0774.FRAP264.PROD.OUTLOOK.COM (52.134.43.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.30; Wed, 13 May 2020 09:17:45 +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:45 +0000 From: Renata Saiakhova To: Wei Zhao , Jeff Guo , Qiming Yang , Wenzhuo Lu Cc: dev@dpdk.org, Renata Saiakhova Date: Wed, 13 May 2020 11:15:47 +0200 Message-Id: <20200513091547.19658-5-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:44 +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: b45443ec-5825-4f89-3a33-08d7f71e7f1a X-MS-TrafficTypeDiagnostic: MRXP264MB0774: 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: Z3Rd62x97+w8/eCyaD/jnL92LkhFVmt54+xvFvQMX7XQ+D+OslVFpG2woc7KSyGdZCbMe9RR7IHyORbFvsJMtmKuokmzYWGA9pX4GaKKXH4fP3ColyztcXu+yOSm6xy+qc4FKOiJBGhCMBp8ornDrxtlahYOKkdMhJEiJiGYUkqr2xcsZxe5+oZ2cyywkiUi+3azAl6NEKK+ZDQRNFy7KbxQmNiIyT+ZXTSYe7vf+JKV5iwHLinQNKf3PX4x8IYQZgp/MUsVMNqqQXcT+73lFm9ZJPEmzyW+FvvO+xPfZta8pSZ21au9nLfKkO6SZuFiVbht6jtlW/y/bVfmYCErY+2AcWOnPiWbpLMRiPvlcdm1VyuqMnCkf2J4r0cArDWynopd/bxUmLYpJ/X/aKvL7CPaBTksNQKSIIcYFQmz8JAppemIjt3ZV/g4WzU6x4wMTO86mF/E+SuW60YrZ2DvI0a8VEF7CaCoQEdc87QTn24C6xH4oMB4s7bpE+exPpdXBfu7RUKYhWfwwtiGte6rBg== 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:(396003)(39840400004)(376002)(136003)(366004)(346002)(33430700001)(6506007)(52116002)(26005)(86362001)(478600001)(316002)(16526019)(110136005)(6512007)(4326008)(186003)(1076003)(8676002)(66556008)(107886003)(33440700001)(5660300002)(66476007)(2906002)(2616005)(66946007)(36756003)(8936002)(6486002)(956004); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: aWnczApRxt62cACEkT3OMoug2922SZjsptpkZk9vPPsdMbpPGGYrUBACGVb761fP/cdPmHi1B8Ys2I8iitVkfuzJJZX+NiIcBRrSSsnn5anwg4vQlUPk8q1SgVUuXKI0xhIXxT/HtGurKDtn3o57zvnLt8hc/TXnPc3DEag9IxI8s8K/gWN5zV5/K+CJnadLSvH9daQpaMs6g7P1gdXAzn5NX+s/tQOAZMz4RJr3q9y9oFjxbxfR8v9x9RqpPebfNj4sMkjkERFGOyT2uPXGh9uln1FrfZ9YMEzbG95d+nFe5YSVHltK0zbepWGrosRdwa1RulXUelAiULAkOPzrYhZfnkmXMv338df6rbZV7LYo1Sk/ELVyNeyeO6HYMTM3k6HjaStNs1F3RCW0oNnqTuAqbyth7HOK25h4lUlGjPZZ6JSkux9SHKZS9tFr668x+Jzx+lyb5NlmUi+5FIQHlMaTARSjm8Sgyqou9j8wVyc= X-OriginatorOrg: ekinops.com X-MS-Exchange-CrossTenant-Network-Message-Id: b45443ec-5825-4f89-3a33-08d7f71e7f1a X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 May 2020 09:17:45.0858 (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: GQMQ2a38cVzoajfR2FEkcN5svNC8TBI5nTcsh8FthaXMunCZS0hTx08QRK3oZZnbLm63/xYWl/AtXE8J6wa2FrVkXgnArECEAH3oMwlnY0w= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MRXP264MB0774 Subject: [dpdk-dev] [PATCH v2 4/4] drivers/net: Fix in em and ice HW rings memory overlap 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 em and ice while freeing queues Signed-off-by: Renata Saiakhova --- drivers/net/e1000/em_rxtx.c | 2 ++ drivers/net/ice/ice_rxtx.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/drivers/net/e1000/em_rxtx.c b/drivers/net/e1000/em_rxtx.c index 49c53712a..67a271e8c 100644 --- a/drivers/net/e1000/em_rxtx.c +++ b/drivers/net/e1000/em_rxtx.c @@ -1611,12 +1611,14 @@ em_dev_free_queues(struct rte_eth_dev *dev) for (i = 0; i < dev->data->nb_rx_queues; i++) { eth_em_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_em_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/ice/ice_rxtx.c b/drivers/net/ice/ice_rxtx.c index 1c9f31efd..7c2dad9d6 100644 --- a/drivers/net/ice/ice_rxtx.c +++ b/drivers/net/ice/ice_rxtx.c @@ -1905,6 +1905,7 @@ ice_free_queues(struct rte_eth_dev *dev) continue; ice_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; @@ -1913,6 +1914,7 @@ ice_free_queues(struct rte_eth_dev *dev) continue; ice_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