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 9FA14A0350; Tue, 23 Jun 2020 15:43:15 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 428C81D684; Tue, 23 Jun 2020 15:42:57 +0200 (CEST) Received: from FRA01-MR2-obe.outbound.protection.outlook.com (mail-eopbgr90122.outbound.protection.outlook.com [40.107.9.122]) by dpdk.org (Postfix) with ESMTP id 22FF51D672 for ; Tue, 23 Jun 2020 15:42:54 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WthpdQTO37mnIXAI+x3C5z+8f1TYjKZhYlJf336+67atu4Tah7SJHLKRdwwklDKo5SkEahZB+jC1Mt2M2IlFLk4WHyyMcVnGhV9/tXK6Wa5rBc2nyIIh+IK/em2M/kaZsztIeMEjtiZarguiPRIgHiyRP4a3vnpLkrPd8TYX6OpET/IokpyGYuyuHIeOLJ30UgSwIDxE8/nxtQW8J+uJfCq9WyuOE2fNLlXpsWRGEYh4S4hLWp4JUXkLePhvPSrI2De+/sbhxB+snIo+gGRqnlYDwk+En4peVLAMtOsSDOxL8bhZl697Uo9EYlVxyewe/RIynDSnJgfSHBqGxK8HIw== 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=PqZUP/b5e1g/ql4Ech8/Ff0JkrWSTNljfzthKN1TQqU=; b=Rae8kVKAexUWJxkGgpxYLt8SULSA+LkbGo6o2LjYkJRVlhDJpF6cvtU2/vEgReZJsexHSHtcDyop5YJQWkhOhJxLqokCHWgl3wzuOaDqJLRzoaKRY5kTKVtFxPMCvCur6SVU6zbkZhhvWxqDFhmoCRH8LdRfDPYmqmeMlZYVnfreZScOonAFpi+0k1gUbIv+Vre/fJMaXrDKELzDCmOIqVB2lra7UW1QswBHA8bg9h++YdrLv18rMWvHQ/zXMPVVVES/52ygKoPgaiL6y5X0yXXS7kA2od5WuBtjTJV1MHeoBRLXNRraJtLcxHmNbQrURI7TlPpyffmqULOj02pYyw== 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=PqZUP/b5e1g/ql4Ech8/Ff0JkrWSTNljfzthKN1TQqU=; b=y42HdGgmTXTdP4wB9qIYD2HI31Z+DRC9AosapTeu0k1NhHbcRTJNzefeNXHxXrbXekYq7j2C02KZdLfYwtillYzFrPVXnJSGkiqKzF3XrCA3A9CeMwmGyxQCyp0qRgaqqc5CyVxtDSX+JAATIi6RRqyvsK+OawWMekI9On0YGq8= 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:53 +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:53 +0000 From: Renata Saiakhova To: dev@dpdk.org Cc: Renata Saiakhova Date: Tue, 23 Jun 2020 15:42:14 +0200 Message-Id: <20200623134215.31092-4-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:53 +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: c4ed3f1b-6bac-47fc-8aaf-08d8177b540d X-MS-TrafficTypeDiagnostic: MRXP264MB0264: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1122; X-Forefront-PRVS: 04433051BF X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ovegfEHmFD/nYkdp/6cSbk94Dj0OIsKhQAQ77AB0KupyiBdVSbKUNmqgnf7bPkJG6ZQJ8JPXBjVP1YHNMAnk8Cl3EtLOoCf37fw4ZpITNZQ27fdLMqXldq5jMDZvGUf7SdAZ5OjmTm8ru4VJYU/OfRiLFWFjEJ2MJuv8azjsgWiOjqlyQZK1ziNYlF4ekikOustCw5LuW6MSL/aEHoNPM6n4isQbhmQLpZDmTUa9Zae2PYSxjiWV09rtKa8cu6b3ri/jcNsD+klE9/nCPG3SPzkUdLdp+q1g69smRrn9RYWQLD+cFeAAn7LDl2eSGCRW 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: sNeiGsu09PAIeHutPvdQQO4YusGE5E+EprAWN/lvgBF2TaTuihW9Bkanpya/wg53HSmLu+hCQuuRuW21Hubb+wMGORGH/VDwQud3+InEc9hUh28rup88qp1VETPoGMw94iRhUM6/fxIdZ06cfAoe6g/xZ4/uBLfGxBgH38sSNrplxM5pmu8UzFAjHB3muAFGscZK112RR6sMgpVVKnkSZHfL3AN0GeA3wNycTvDMeD5wNoTT/SexecblEIWQJ3/0b1l0TtMgkgmC3rKSYn1f8LGcIoBRlKtMGctBEEREOWVNkLywZPVAZm12mS1yl5ZN7ad5QESGfSgklkaBbnNWpYbLtGIWSyiUU4JqmAdp+x8aGroL7q2O6Vad5TMViTotOOwqies3rE1OTNfrnzG5EydQmlNh1mlvzAckfcjEXJ3UsMra607IJwwocuKFcHsISBWVF2GOUAvdVLtNEynwNBAqQ5MkFif9FNMmVS9NqV4= X-OriginatorOrg: ekinops.com X-MS-Exchange-CrossTenant-Network-Message-Id: c4ed3f1b-6bac-47fc-8aaf-08d8177b540d X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jun 2020 13:42:53.3643 (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: Yf8NqHvdOcT61JFAapHknXZxNcLOSaHSMkGRdbgA2xK+desBwxZO+JVdVWUAMgZWIKutROuTEJDtD6j314ywE66BX4myApkktgGwxxzGZOA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MRXP264MB0264 Subject: [dpdk-dev] [PATCH v5 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_fdir.c | 3 +++ drivers/net/i40e/i40e_rxtx.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/drivers/net/i40e/i40e_fdir.c b/drivers/net/i40e/i40e_fdir.c index d59399afe..3a82cafac 100644 --- a/drivers/net/i40e/i40e_fdir.c +++ b/drivers/net/i40e/i40e_fdir.c @@ -269,6 +269,7 @@ i40e_fdir_teardown(struct i40e_pf *pf) { struct i40e_hw *hw = I40E_PF_TO_HW(pf); struct i40e_vsi *vsi; + struct rte_eth_dev *dev = pf->adapter->eth_dev; vsi = pf->fdir.fdir_vsi; if (!vsi) @@ -280,8 +281,10 @@ i40e_fdir_teardown(struct i40e_pf *pf) if (err) PMD_DRV_LOG(DEBUG, "Failed to do FDIR RX switch off"); i40e_dev_rx_queue_release(pf->fdir.rxq); + rte_eth_dma_zone_free(dev, "fdir_rx_ring", pf->fdir.rxq->queue_id); pf->fdir.rxq = NULL; i40e_dev_tx_queue_release(pf->fdir.txq); + rte_eth_dma_zone_free(dev, "fdir_tx_ring", pf->fdir.txq->queue_id); pf->fdir.txq = NULL; i40e_vsi_release(vsi); pf->fdir.fdir_vsi = NULL; diff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/i40e_rxtx.c index 840b6f387..2d2efb71a 100644 --- a/drivers/net/i40e/i40e_rxtx.c +++ b/drivers/net/i40e/i40e_rxtx.c @@ -2928,6 +2928,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++) { @@ -2935,6 +2936,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