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 B2F5EA034F; Wed, 13 May 2020 11:17:46 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B80481D51B; Wed, 13 May 2020 11:17:42 +0200 (CEST) Received: from FRA01-PR2-obe.outbound.protection.outlook.com (mail-eopbgr120133.outbound.protection.outlook.com [40.107.12.133]) by dpdk.org (Postfix) with ESMTP id CB72F1D51D for ; Wed, 13 May 2020 11:17:40 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gkf99Uxoh2ig0+bOWbs/oKz1OfpIdFcl3oRmPoHGO4SgzZ/+YPFPyyrPxYucIvCnAELFP+Mmw9v1hQ9MUfW/vLsnF2fe9Kx5NuKLw+E1NeyvUqxUJP2SxMhTlK3l3Sd0fVXD+ZLs87YIY0TiBVugf8JjviE0/AYBQ9f/UOpuYIzlk5n1ce9V6hXHZ7EnfSAk3Qarf0TZicdU4bhek6ZBcSUuE4pQThCl9vz+ac3BN8sLUCO+ebkWpE0ywcKIpMEiwqE+HSX12LDq2vDCzOU8vjE9LyORVgaakNQTS+sdGZO2WpeT0W9CvApDZOSuGGpKYxgeaT4bKXYQXarFpoIDFQ== 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=wbzebK/ETKNO7H79xdDasqoDMdCZ0juYuQ1yx5QaltY=; b=IsmLusC4AFEnL+XhmhKBy9RH1/k2/w6Qr8XggegGJgSOOUBR1+tCCh88ZdQxBpbvcWaEGzuDwsD2a/HfJZRY+j32R9wKXpeBgcJ7HcQjaJC9no6VUqt9/ZRxEZmiwuw/Xmg59qcTaqrgweRv+AZ/ZsYOIGumwxs7vDXQ9TRfk58f1WAiBAVRvQwHBbuOOuFN5LmK67kERx3l39Py5h1rVXYebQ9CNjf33XOe75F0xTLNsoeotGwmfPkw0oHcHE66NCtic76QUb+ymy/GWjF06u5Iau2ch5SafReKSxs+sy9PdzMIsj82xIBkKkdvD+9JIH2c7nYmuvqb84I+PXnvJg== 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=wbzebK/ETKNO7H79xdDasqoDMdCZ0juYuQ1yx5QaltY=; b=RIO4kabBTnqGh60uYwct+S9VV5Fm10w2K3Tz2FBrvAMx6joCYJgJ+vlYUuPZVXYfIBWFLVuo3RUnow2QZIpsAVnxN6Clmlr03eUbsdgOFuBIOkAVK0lAYbSGNMwOa/y1t/hLitkNVj7psSrOS1B+9veYEz9Gjiyp81btgFB20bg= 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:40 +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:40 +0000 From: Renata Saiakhova To: Beilei Xing , Jeff Guo Cc: dev@dpdk.org, Renata Saiakhova Date: Wed, 13 May 2020 11:15:46 +0200 Message-Id: <20200513091547.19658-4-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:39 +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: 4a3bac2c-a127-44b1-0888-08d7f71e7c17 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: OUGWgYGy4A2CsnY7N5VXAABKLM+1LprgInyLSXUTr+S6oGxN04t8wd2gbADCom+8Uf9mgN71vBl5hV1tJ7jkKh4rvsIryihR+7a6pCQ9HAfKd84ZMOkxFtwqlzaS3zGBwiRaq7ijz6PalbGqCqSMHEsmYvI6lnj5hgXbU8iH3s7kk0jhmzNB5/hM3ayd3+dyfRtFe7uqzRXGRDD3G2kfduIc6Jur4f9M3oFkXGjYBgoT6XskwckbWbS4vJ/Z30uMAp2B76G/MBTlx26RrzSejnMXXrERqaSrVF1N6jZRwZdDUue5qZziEkSavwkNF1pfnbne7rSHOnbw2g0d3lO9VhST9CuvCKewT3RRAtm9UaOpOZ/6dYatvxp6WgH+KCnOjTOCDFg+ysqTy7+rnKMB67hkKLlFCndU2/63XG0lMKbWWdL7wk95zv9fPKkTFRwdA5NBFAngfIJlq6te8eSuKiFGNJDdVuN9I012j/lvq/xTIuhXmuQNstWg7zLrogaRJPZfEQLj9Rmn9cjS15Jp9Q== 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)(6666004)(16526019)(110136005)(6512007)(4326008)(186003)(1076003)(8676002)(66556008)(107886003)(33440700001)(5660300002)(66476007)(2906002)(2616005)(66946007)(36756003)(4744005)(8936002)(6486002)(956004); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: xsmJxUFZHEzRKAtopFgYVm8Y4JKW1nhMJ+xqzC0v6fWXOifIXo+AxriGVJYIqDnsMBpeXOXwqZl7ecGJD/DgM0xvA6BXqtdX9b0ep8rxLCtPowaXSau2nXeiZ01jwK4keSVNmQ7HAOfqyUsTrzIRTCXxkBDu2cFtcNlbb8oj3FOZavwiKPMd4qwsSSZFPr3AC+gzClB76qiFWeD30lqRNHCMMpL5f8R93Pu0JkXiUZSJpL8U4qjqSG7nRVTckIRw1UZnAyKgCwWSsnVFVqkyJXIe79d2+o6hCCch0bQd4UT2QZzIyu994a4EPWH81y8SEkI4xXEERv4LxWp3cbbZmEoItlrclWC75FfJuTKkmUlzUhhj9YrafxOhcf/m+/1j6870QBg6TS1JbhZAEzYheX7htI+1KYk4yZ7VuyORdxVCOosSKh6rsCUJT8kmL4sKFpktqgMfDPUzTnScHfcTQujBa8vI9CJsTQxJpHqZdbg= X-OriginatorOrg: ekinops.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4a3bac2c-a127-44b1-0888-08d7f71e7c17 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 May 2020 09:17:40.0867 (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: Z6Yl1Gn4JPUdiOx4efvcKJFG4VxBeUqI9d1b0OpK3UUBADmjInQc7EGaxiHQflt3LxRDbKu9Iw+Y+vG1ubN/FOc03Kv4BGNo2ZVZ8JSArZ4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MRXP264MB0774 Subject: [dpdk-dev] [PATCH v2 3/4] drivers/net: Fix in i40e 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 i40e while freeing queues Signed-off-by: Renata Saiakhova --- drivers/net/i40e/i40e_rxtx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/i40e_rxtx.c index 5e7c86ed8..99cec9b99 100644 --- a/drivers/net/i40e/i40e_rxtx.c +++ b/drivers/net/i40e/i40e_rxtx.c @@ -2900,6 +2900,7 @@ i40e_dev_free_queues(struct rte_eth_dev *dev) continue; i40e_dev_rx_queue_release(dev->data->rx_queues[i]); dev->data->rx_queues[i] = NULL; + rte_eth_dma_zone_free(dev, "rx_ring", i); } for (i = 0; i < dev->data->nb_tx_queues; i++) { @@ -2907,6 +2908,7 @@ i40e_dev_free_queues(struct rte_eth_dev *dev) continue; i40e_dev_tx_queue_release(dev->data->tx_queues[i]); dev->data->tx_queues[i] = NULL; + rte_eth_dma_zone_free(dev, "tx_ring", i); } } -- 2.17.2