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 670D5A034F; Wed, 13 May 2020 15:15:48 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 185701D5D0; Wed, 13 May 2020 15:15:15 +0200 (CEST) Received: from FRA01-MR2-obe.outbound.protection.outlook.com (mail-eopbgr90109.outbound.protection.outlook.com [40.107.9.109]) by dpdk.org (Postfix) with ESMTP id 6C1951D5CE for ; Wed, 13 May 2020 15:15:12 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GQLT5IvZFCdKAmF/Ew+PlqmlrbcvnTnn2SwfjuQEd/hE4eVINhjBVa8ufEHe+DecIsDIOXA/kDf68TC6U58SE1chC/KkJZCYYIWfyA3YkwaHapsk8w43OZxsCvCpdJPxXEvONiIhKTSkimleGA88OL95oMTZ0x33Jh8Yf5kgaF3pTyeX02Qnk8gWvfbQO1kiimNpAl1zAJVA4R5TNmV/WEdUG9gZuHFF/1+cg0uXeNv7Ao9wrK7byfeCb4HpaVpZOqGKvNsHdnLnTqeGqjK8P3jyXi7cMQaV3/I40RmFCeSHNStmQjXyYbgzNVs9xxuOtn+yvbRjRdpQctK63iWcFA== 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=WWsFVePD+Z61M4+SskQks+NGvc8D9QJX+QYZCvbWFXNUKwUsEVDl4ErVqDExF5Easi+JcHyFtQVdYUkSpC/kEiNiDDEUedgOwGKl5ENaGR7AUeYcIu0SMei3ILfV/YOo8wtLAkGhzSbkv2sOcvpXT8b+gc8bN/U/TEWk+5mkQp44X0FN3K7czx6S70nWLd5UKrkuXuB2OfUSn6qCLHmkjPe3ZiQCcl+hBMjiG/TBWifPIpm4BH56ylxb46VofT2uQpY2+rNmBF/VWDmmopmhcVl0dRrQMyRCvgwrgG/j5fS/xeYRyzrBOQn5oER44j3dEKd9eOxLSp2YL/2CQSmAnw== 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=UWC/hD58SHYBj6PYHvDMcVQyZ5ZFdcM7XrMt1YJMPaKbm9FXL1s3QUETQOkH2v8nqeqQUgtM2pybLflRfMMOaHZ/4Q6ww6U1NxO0FalznvR9qG70mY0HPaeS0PwfvRS0vW5GFwkfpH0E6xj21D5c3fcMl9K4GWjpeF8Desl0MWo= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=ekinops.com; Received: from MRXP264MB0325.FRAP264.PROD.OUTLOOK.COM (52.134.49.19) by MRXP264MB0038.FRAP264.PROD.OUTLOOK.COM (52.134.49.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.26; Wed, 13 May 2020 13:15:12 +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 13:15:11 +0000 From: Renata Saiakhova To: dev@dpdk.org Cc: Renata Saiakhova Date: Wed, 13 May 2020 15:14:25 +0200 Message-Id: <20200513131425.27817-5-Renata.Saiakhova@ekinops.com> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20200513131425.27817-1-Renata.Saiakhova@ekinops.com> References: <20200513131425.27817-1-Renata.Saiakhova@ekinops.com> Content-Type: text/plain X-ClientProxiedBy: AM0PR06CA0123.eurprd06.prod.outlook.com (2603:10a6:208:ab::28) 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 AM0PR06CA0123.eurprd06.prod.outlook.com (2603:10a6:208:ab::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.20 via Frontend Transport; Wed, 13 May 2020 13:15:11 +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: b31065ee-7ff3-4878-2ce5-08d7f73faad2 X-MS-TrafficTypeDiagnostic: MRXP264MB0038: 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: 9BbiWPlTlIX6HO10bq7ytHT/coS15EkF9mMy1rdTWUeGtv//RU+OjGqosKM+IxCVef+dUD+h3JIf+C4b4BGNTnz9p0RXR+dJGuR3XmUte6HjY47LLhkISKkKEiPksH0eFK7jH93K/HZnsDYyU+HMlBudZzY1LHnZbMO2x9bO59U2ezdUbuets44ruydfLEGHcE6AqYmip05lW7Ao59RESMAJmpmP26XbBbXGnBHQ+ymfxKF1/rvAYXke92aI4Z4pn1T/sHftQ+V0N/g3v0MoR1Oy8b2c+1SajGT9rIYp0iYYqH508rcEA9cdW1IqU91IcRp6ECTZQe3G5Uw2sRlraz7y4dpsa7lLeZK14Ti25FdkHb6RjZJX3kmtx5c+lLslKLjnyZ+/gaLhV2Q4WTJJg1leXX3bUmDxCKB3pD0XJX3U9KcpJz/PoLMS8YbXZU3tdQ3BcbkgkFk1d0cyvZV1kk2v6xRH5v//0CK+64c0GIIs9pJunHv/rjumW8Jtp8rY+Jw5daZdB3P1GnUAsodAVg== 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:(376002)(346002)(136003)(39850400004)(396003)(366004)(33430700001)(36756003)(8936002)(4326008)(6916009)(6512007)(2616005)(8676002)(6486002)(107886003)(956004)(1076003)(26005)(33440700001)(86362001)(66476007)(5660300002)(316002)(478600001)(16526019)(52116002)(66556008)(6506007)(2906002)(66946007)(6666004)(186003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: SbQQumSCKti6+jhNcDrAh+lXZlyr98LwK0G81COHRYfyTpd+A37Lk5yaKB/tXzd5buRbeklS79gZxHzvewRe8ZoOJ0saSDvXsdF0CByphUGXJwAe0IIRlCUZTG3Ecoj38LbypXHnaiX4NEgdErRENgEBAbzxLOnuoJZX5wajHoHhP1CKm+ooXVDyFhtrw9nS3pb6JoLl10g9/81HZw6hF6KZJJ3nOx0yDedoIPtHDz5FKpTc81xOeuzc4jwbXUlyoUhcRpqU6mdd+v4gR9tcBJWaaUe7dmd3z4WgWkR+8HRU92wa2a818G5tCxT68vXPci/kWHbxpLpRbEMY3J4kEDKuQ8V1xgXgkCwDIHGh5+ohNlmtG3KgY4t1WhtSTwm0HKJnqq5FLlVNHNV6Ec7auEvcJIf8MF/x8vPr82BpTcfgHqrwh8uAfShCpIYg75fwLPNjsQG5mrX4xXwJCfU2ysZG4/wjySw+KZK1gcKr3XLbn57HhRVGQ29hBstvOK8E X-OriginatorOrg: ekinops.com X-MS-Exchange-CrossTenant-Network-Message-Id: b31065ee-7ff3-4878-2ce5-08d7f73faad2 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 May 2020 13:15:11.8304 (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: 9oMS579pL0gP3bMu1MrCymVrCLwD8YGe4eoRBJy6mbIDwfoZJqqivdIsSzVUWxjsCdpalAAD5RBqa/jTRcaGCruOpwyDnk2hbeh2x4V1V6o= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MRXP264MB0038 Subject: [dpdk-dev] [PATCH v3 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