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 74E14A0350; Tue, 23 Jun 2020 15:43:07 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 008711D679; Tue, 23 Jun 2020 15:42:56 +0200 (CEST) Received: from FRA01-MR2-obe.outbound.protection.outlook.com (mail-eopbgr90107.outbound.protection.outlook.com [40.107.9.107]) by dpdk.org (Postfix) with ESMTP id 21C091D65F for ; Tue, 23 Jun 2020 15:42:53 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IsNai9dt9zlBrJgCufwyrCNSwBMHBvMYAzq/IlE0tlKn88jMnZpN0mItFf/y9kTP8yqBgOgK8uzzf3/q/0xc+TqT8f2QhtJIHt8zp+gk+XT4VJCcO9itGLCxfx+i40WDn0dVb5uEewKxgl6fILa0yQxT9Ct3nekMbkreMkX136obZknMB2GXLHnBBPd6H6C8f6QF1ioCEXQgBVY3YavSeDty6zPrXkfVGusFm4KELbN4suwuC9VgjPZwYPbaOjGkltuyjFYPIL/Mj946DQNzFREGpCdZa4hMEk6hhjDSZOxU0rQQXy/vLSJpvp0ADHJKRstcigNRbA13/molXi3glQ== 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=KIqauACBXjVcQzPO5hthUq9a2qBVX9oflARYPv7uP5c=; b=cfK2M1c8UHugCXT48BXor6v7UC7geXv73G5f/SqzApWr/CWWh+cF7jNn60VNjzvLVvA/QDpScoz+gN4asDH5sA4lOq7GnLBXJZfL9OyoRz3uhL2FdVbRqo1KyxPuurbgQ794GkypsdYFgun8PH68tJcjCnpWNTN73ClWkSWTtj5iagyrP9V4KoJRmkNzCz9oeMqvstYdZOVxwzk+j4Y5wer/I05Knvke2OrwCDYe2qflN5VXqFpaUMYGwLYASoQn7TmAegnqcCsNEmgwGm6lA0cezYN1QEaLP/OxgAYB7AnVyxbIBPf4P9OQzhKjOdzqls7cv341TguSbfPeL+ecmw== 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=KIqauACBXjVcQzPO5hthUq9a2qBVX9oflARYPv7uP5c=; b=ucDuVpvvRsObASj2iuQ+foIPzNMjjx7CBp3nA6FhecOa82dF2hX/j4VfB7+qElKQOS8NgPEprzBqYuBeZXuWTJswwgJ8K/jtMs7dABqXuy2qYxUJ9HtLRns5CUOSZp40/CzsENca6nJtSVMYfJpnMfAnqt67/nSGwCDTZsTMzuk= 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 MRXP264MB0264.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:20::11) 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:52 +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:52 +0000 From: Renata Saiakhova To: dev@dpdk.org Cc: Renata Saiakhova Date: Tue, 23 Jun 2020 15:42:13 +0200 Message-Id: <20200623134215.31092-3-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:52 +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: 5f4c00fe-f205-4e21-9f81-08d8177b5370 X-MS-TrafficTypeDiagnostic: MRXP264MB0264: 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: T0jDFtvb8ZETo2ANBLbybnwezq123rfpjc059gNCNZdZeJn2vf4v7wJQI/6guyPMD+I8xriEG0qYnpkFfit3o9p4LfBp8RFHDta7jTcyS5+w7YpogzxkqbshnLg4tR2CfloM+B+iT+JTtlZVfQg/HYYipKFDiy5cfKTRxOBn228MsLVeQMAnYaYOXyczZMPvl+uwbA3w1pWN5LXrNUZzcuy7dSpmDlgz9nauiBfjx23JOdBY0+rJn3BLY3zL+s3/IewnPvlk4V6jBKhF2AuEZAheJFijpu3INb2BGwkrhtSaTDTsIQr1/t0qNHD2WaXlO3KxBX54JdIUY7WqmvLC4g== 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)(16526019)(8936002)(52116002)(6666004)(66556008)(66946007)(6486002)(66476007)(107886003)(36756003)(4326008)(186003)(86362001)(2906002)(498600001)(5660300002)(2616005)(1076003)(8676002)(6506007)(26005)(6916009)(6512007)(956004)(83380400001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: cSgEvwCgmuOfctmdA0X0JDghkK7G+F3+I2uAjcOo/bGjP1GsLPPI/LkRhrUDvVwgsXPyGfOX++hE5m0dFUIodzszyIj7VfjZgiomeFOt9//7VcZ7in62x6xvMywiEe6TF1+N6bvroQHrf6vpskXQoHM/RdJ0y1ZSVRLvGK4LXjK4ax0I4rA7IHp/qdQ36K4b3Yz6q8HgXrV2PQvfE0m8o34GXs1PbW5ZHvLQsJj10nlUVKji2MLVaI2lFfdmpsHHsAULhsq9mv/xFeP0UaNHrtHxQGfJnKR2KahcJFU4xmAyVqny9WdCdsLsdfDcybssIvHJvVfSfjP0HL4AAzfO72reT17dL4ylWNSXXuPSDdzVGdrpmX8h/++gA3Zz1IvMflGGNM4ZjmG4HzMvkbBUXG9BYkaF/W26fcM2eyq23GEOhmJHiF7ufCzvOabyyixBW43nRyG95vpGqGZuixCUfrzpaXTPSASh2Pv4eVTtl8g= X-OriginatorOrg: ekinops.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5f4c00fe-f205-4e21-9f81-08d8177b5370 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jun 2020 13:42:52.2450 (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: 52ZZ3piR/jT8SuMXLKnwp3Tk8RQjUi0wykdSjwpnyh05dMmQokjN8OQ9KOtNtAqv4DJAuOLexjIl0DmoMMpuVNZoEGdhStOMsmo5TNI2IRI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MRXP264MB0264 Subject: [dpdk-dev] [PATCH v5 2/4] drivers/net: fix in igb and ixgbe HW rings memory 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 igb and ixgbe while freeing queues Signed-off-by: Renata Saiakhova --- drivers/net/e1000/igb_rxtx.c | 2 ++ drivers/net/ixgbe/ixgbe_rxtx.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/drivers/net/e1000/igb_rxtx.c b/drivers/net/e1000/igb_rxtx.c index 684fa4ad8..fe80c0f0d 100644 --- a/drivers/net/e1000/igb_rxtx.c +++ b/drivers/net/e1000/igb_rxtx.c @@ -1884,12 +1884,14 @@ igb_dev_free_queues(struct rte_eth_dev *dev) for (i = 0; i < dev->data->nb_rx_queues; i++) { eth_igb_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_igb_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/ixgbe/ixgbe_rxtx.c b/drivers/net/ixgbe/ixgbe_rxtx.c index 2e20e18c7..977ecf513 100644 --- a/drivers/net/ixgbe/ixgbe_rxtx.c +++ b/drivers/net/ixgbe/ixgbe_rxtx.c @@ -3368,12 +3368,14 @@ ixgbe_dev_free_queues(struct rte_eth_dev *dev) for (i = 0; i < dev->data->nb_rx_queues; i++) { ixgbe_dev_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++) { ixgbe_dev_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