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 41269A0519; Mon, 22 Jun 2020 11:56:02 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2E4171D664; Mon, 22 Jun 2020 11:55:51 +0200 (CEST) Received: from FRA01-PR2-obe.outbound.protection.outlook.com (mail-eopbgr120110.outbound.protection.outlook.com [40.107.12.110]) by dpdk.org (Postfix) with ESMTP id 54A3D1D663 for ; Mon, 22 Jun 2020 11:55:49 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aCauQDDds+IMudyIFlCWzi8G/frJTuR5Vz7z2A64FCeUTZNAbp0FXg3CDXwfdUYDSkVnetoMkNYGDLHWEL/qIa8VxoDee/+K+jjcs2mpYlSXCz9iXznE6BytCRJdw5TrVVqccG71c+7mXDYC0NstmdTdWhvTQEcPbvv6xIpDhr37hUouO4ej8kULGY8c48sjGI3PaMGH81ldQnjJ3IYmL2UuXaN6l7UqRm9wJA5d9mLkVURPrDhM+wMddqaMAjYuHw3wE7Wiu0JWjdbQoSL/8tLGntFk/7E4r7feNqTUx9BJGjSilceM3XG+9ParQrWUxKGiwPklHqaAIF+VYO+8GQ== 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=E55n2R2FKGp09lk1fr8P5OY9UBC6/JqtZlUR/VeGHAJsPeo4zIo3dC0KDAL6ID1wAYi+rbBWycuijW0sisyZvpzqgLPVK6y+JF7eSzFRkxrb72QxFZjYdX8kJ+xh+VkTWvTt/MT+XmUlBx1G2kjx6P6Ele5gLrqXnalEeTVGSS6GY3aV81QGy6lBvvZNBwlKRKUilFg3atV6p7d58jnbhP8tZ7vDCiJUtXRiVJVW5OEs2I7rSdf1r3H8+WLllzT8k3Ru+/7p7vCjdzgSOOKyrBfq70GomUsgT/DOTxaeoUkRdCJexs85P6sIQJldVGgwMybmRQGU+mYpuOUpqHUThw== 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=dOmtAtZgKp2fEBd/Rwrva536vC4NItkZRYMPv3guA77ytisRNE9i76EtELATRUzdgAG0K3py6Fr9NqBlcT7eO0USsG6113ez1XMrTvmgs6/lbmCpOnAZZ3UQ/ADZM5o0U+dDDKNatgk8Z3L6kDYWbk0fzaQHIWPgihC8H3AYpIY= 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 MRXP264MB0391.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:16::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3109.24; Mon, 22 Jun 2020 09:55:47 +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; Mon, 22 Jun 2020 09:55:47 +0000 From: Renata Saiakhova To: dev@dpdk.org Cc: Renata Saiakhova Date: Mon, 22 Jun 2020 11:54:43 +0200 Message-Id: <20200622095443.26136-5-Renata.Saiakhova@ekinops.com> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20200622095443.26136-1-Renata.Saiakhova@ekinops.com> References: <20200622095443.26136-1-Renata.Saiakhova@ekinops.com> Content-Type: text/plain X-ClientProxiedBy: AM0PR10CA0015.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:17c::25) 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 AM0PR10CA0015.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:17c::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3109.22 via Frontend Transport; Mon, 22 Jun 2020 09:55:46 +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: ee4e88ef-b8af-409c-a6b0-08d816926fd3 X-MS-TrafficTypeDiagnostic: MRXP264MB0391: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:843; X-Forefront-PRVS: 0442E569BC X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qnsvCYvAdEpwx32COA4xmzTGiY0380jcks/y1/H/lLKJRoCw5iqLXuB4d83hNBcTjaL9NvEnfRtklzxT8LZQSGsiwr83qdcfwdO7Xj/H/rudWgxk3d7jMg8ZM2Q6uQWwNzBdzG8PCb6KrbBJ3lQFxCkq6xsA8fk5fN1nXNN8uEtUVGBwQkOIL9Mu37dgvJtSfP2+eX3K1DIktWj0MYhTrHROs0HlBcJ55bGhXw6usZjcA9E0qC+WtbYve6m2UXX2aZQguBt5QEc23kKyE+XRkz1rZViNHPY7i7OOp0jr1KTdP9A8C8uxOGeJLWwBRXb599LqKmF9xrKhU9rhan0rxA== 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:(346002)(396003)(136003)(366004)(39840400004)(376002)(316002)(1076003)(478600001)(107886003)(6666004)(36756003)(52116002)(86362001)(8676002)(2906002)(66556008)(8936002)(83380400001)(66476007)(66946007)(16526019)(956004)(26005)(2616005)(186003)(6512007)(6486002)(6506007)(6916009)(5660300002)(4326008); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: /ngC+U7gYm7woFyEMlie9IryjIFeAXBeAxLMMmnTo//VjJ+5whhNdQjmlxvZtu3mAf6hNDr2HMaQy3/ayekI/TXet6wxFP3POp2sYOz8yFMRzZJ0K+SPoOy6uBYbMofDz4W2xeaaAchvErMIWDsj8oeXO1lQNmIqehDL+2TCR5GWAFJ89QhkRZc1DNREO0LVqH2JVboW3taeiCmQ6LLjM+Qbv6CWAw0hNiCB1i4bT8INNP8TAKJ5ZUwrjryyVJstKguFx/r8bT6tgxlN1GBIxEx5uTItOwBs6RYSNFtZmCcyrdJ7DCmARVp4LvZNzZrevd0EOu8qA1ejx5ul13HwkzE8hM05CznFs6DXDnhPZgbKzP55gwadZfyoiN/yKsv7rEVwAurEh7rgMl2+X90gtt3nXnEHV7KGYMYO2BpDdgRElkSb0DVFv5Vv5Bnk5gF1wwzRYjTk+9MOHO5hxJQZ06Q7kjcL+2/WQC0lt/hnUsI= X-OriginatorOrg: ekinops.com X-MS-Exchange-CrossTenant-Network-Message-Id: ee4e88ef-b8af-409c-a6b0-08d816926fd3 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jun 2020 09:55:47.1562 (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: a234xuDjqUYRI8EFw2FJAH+WbdEvaIkV2tzUI8XYNVyXoye9JOZlNwFVvP5R2gvtn+sZ/SKhqRx/b79iVJhw6Jx1Ga/l/Gn9MbtBUoXamTU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MRXP264MB0391 Subject: [dpdk-dev] [PATCH v4 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