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 5345BA0350; Tue, 23 Jun 2020 15:43:24 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A52CD1D68A; Tue, 23 Jun 2020 15:42:58 +0200 (CEST) Received: from FRA01-MR2-obe.outbound.protection.outlook.com (mail-eopbgr90131.outbound.protection.outlook.com [40.107.9.131]) by dpdk.org (Postfix) with ESMTP id 13D301D678 for ; Tue, 23 Jun 2020 15:42:55 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DF8rZpIVcJKbUzPori4Y9nf23QW9KAdaCSDHcCIEW6IyFR3xC/SNe3M2Wb2jD06KW0iKo6wVjzdNI2v5E3N//reS9wWOyKP8E2yDnbf9P8sWMhEqYsanor5fbwTdYYpc9wneHzCDA9mkTMTIdr92awftIlePyXHeiE005Tm4iGUMuQ7NZezO7FGtlHXEA79gDZ0+wV2gXU68FZatlSdizlt8rMnmUE1sk7XJfWfrwdrjN6nLGfcnTc+bAMXltyJR2GTgC+9OYP9Xxkl5Yl5OTucydAC7knEbdHqAqQFoZXmwlVs/G0zPdVszOSLpxJ5fcHE8PNs2dwMbMH+2vNk/Tw== 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=YctVu2qjKXpfc0mo8xFOTEqVbXVJzsKUygpFR/+jMOE=; b=RpDEHyLLbwiHd1VayNCGpLgMZ7WOq2hrV36o0+Shvi1cH2sW7FBRZT3RaJ1JaO+3J0//6rD0VOgG46SzPK8rfJCjd+2ruUu99jCCbNnqor0KQdLPZGl1rZz/PIf5xDDNaunEB1khYzE6WpvBEljhyatRiXo3fHN86QACrCPmV+AVuELsVdlLyzjzmPl/xzX0/LvSWi2oZUDla2qbvPE234JU4Ig7t6K4mjqqxehtJ5yIjBDNWU2DRosVnfIDFj/9AZgaAlTcnWcm9j2LFoDx5tnW+SAKvjMi5g6SCf4LpFTPua9DDEUY2g8fr6zaTY3wn5DJk/Ii5/xaksBBmxUWyQ== 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=YctVu2qjKXpfc0mo8xFOTEqVbXVJzsKUygpFR/+jMOE=; b=Hf/IYFmOUBGAWN42xwJfNykgJXzLfPoh4AwDVzEYVicyY6UVLOvwTicqCEYlV9TZ5Ut5JRaPgE4latJl65y/VZqqgj+X77IF62n8fca8cvL5Ll1B0kfBgzlORQWiVRwpnWLp4Fw7bu2m9zRm6Jzt190bPka2+rkaML5u/Yauo9o= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=ekinops.com; Received: from MRXP264MB0120.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:1b::10) by MRXP264MB0694.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:19::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3109.22; Tue, 23 Jun 2020 13:42:54 +0000 Received: from MRXP264MB0120.FRAP264.PROD.OUTLOOK.COM ([fe80::b9c3:a77c:6837:2548]) by MRXP264MB0120.FRAP264.PROD.OUTLOOK.COM ([fe80::b9c3:a77c:6837:2548%6]) with mapi id 15.20.3109.027; Tue, 23 Jun 2020 13:42:54 +0000 From: Renata Saiakhova To: dev@dpdk.org Cc: Renata Saiakhova Date: Tue, 23 Jun 2020 15:42:15 +0200 Message-Id: <20200623134215.31092-5-Renata.Saiakhova@ekinops.com> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20200623134215.31092-1-Renata.Saiakhova@ekinops.com> References: <20200623134215.31092-1-Renata.Saiakhova@ekinops.com> Content-Type: text/plain X-ClientProxiedBy: AM0PR01CA0079.eurprd01.prod.exchangelabs.com (2603:10a6:208:10e::20) To MRXP264MB0120.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:1b::10) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from renataOAB.oneaccess.intra (91.183.184.98) by AM0PR01CA0079.eurprd01.prod.exchangelabs.com (2603:10a6:208:10e::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3109.22 via Frontend Transport; Tue, 23 Jun 2020 13:42:54 +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: 93dfa0f5-daa4-48be-7e25-08d8177b54af X-MS-TrafficTypeDiagnostic: MRXP264MB0694: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:843; X-Forefront-PRVS: 04433051BF X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1/oZgDJK6HoDWWqy9bY2WWEdE2c/c7xVGj2yPSMkMBPNUCDhq3dDm1QO8O7erEvTexTMyqN15ZkWShp3mCTvCtRbF7g3osI56Q0S+/FyxFHYzhtnwFTko9aQDl3eZtrHvFA/MOxVN0LZJs2DE0WpdqRxP5hJoMqMrWrxmoSUghlMAqqAGkOFdBU5DFbHovxjsjFYve/a01bXGu9cOwdVfg1FrEEezDJEz9/lJSgP6Dw1vaesDN+FjJ2ikquaYNsz8BBjn287B2uyaLmlbKtFg/OI5txIlCXRPSWsQjE2wtLANe191dIjB9WWPmrcRjfA X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MRXP264MB0120.FRAP264.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFTY:; SFS:(366004)(6486002)(956004)(2616005)(8676002)(6512007)(36756003)(52116002)(86362001)(26005)(107886003)(186003)(16526019)(6506007)(4326008)(1076003)(8936002)(498600001)(5660300002)(66476007)(66946007)(6666004)(66556008)(6916009)(83380400001)(2906002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: z+8t6dKpYe3lQIIlNIScppVY1ZYMa4ACQgqzesrnBul9rWJHD29sMOcKQazo9QzoZctzh1sK2FrTmpuQtwX2Zr5bVYRUs+1hCm/PuA9eIskhwPG6uo99SebBIzIrj/kujBvrCKMwet+Ut0Xi/gAsXteQH0fugx1X8BtBwIwOwOhXK2X7NbcLUF/Zoo4Iu/gaM++VrRZW0aHOH9EHa+T6uPTJ6Eeoy2XQdaiil1ZJnlgP1I9LR3kzzaMiTDH2oE3RmkNy/gr3nsd8AfKK1EITTj2wCLFSNTn9FYyq223kt9vjoKSeSTWfc66NTuYJv772RRobiHQ5adPlOM0T5o3/FPsbGw3gkNVBrWQdJ9mcmb2FSsfl3mWKv16XDdfRiih1b8UWWfFJGeZXj0cc2Z0IoIREndouX+HhBUzPwe7usPqSk0dHndLYJsL0vtSKlw0iwPYfKNjoWPL/zXuPJm2vRAGu6Czp20SKW4hdlzfIixs= X-OriginatorOrg: ekinops.com X-MS-Exchange-CrossTenant-Network-Message-Id: 93dfa0f5-daa4-48be-7e25-08d8177b54af X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jun 2020 13:42:54.4067 (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: JyTw4sTQ95HSZdBeOgw8v/TIUWc47HqgtGnWTKq9B1a3LD8k1UBFc79ks0boMK4f3hNopJwP6DdHYeBpnsO8b38coNJD2QZAr471Q7i9dEw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MRXP264MB0694 Subject: [dpdk-dev] [PATCH v5 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 5d6f693c5..cc3139042 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