Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/73783/?format=api
http://patchwork.dpdk.org/api/patches/73783/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20200710214343.1407419-3-ferruh.yigit@intel.com/", "project": { "id": 1, "url": "http://patchwork.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20200710214343.1407419-3-ferruh.yigit@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200710214343.1407419-3-ferruh.yigit@intel.com", "date": "2020-07-10T21:43:43", "name": "[v7,3/3] drivers/net: delete HW rings while freeing queues", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "50e34c4e19b34130667656c254a5facb549df674", "submitter": { "id": 324, "url": "http://patchwork.dpdk.org/api/people/324/?format=api", "name": "Ferruh Yigit", "email": "ferruh.yigit@intel.com" }, "delegate": { "id": 319, "url": "http://patchwork.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20200710214343.1407419-3-ferruh.yigit@intel.com/mbox/", "series": [ { "id": 10960, "url": "http://patchwork.dpdk.org/api/series/10960/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=10960", "date": "2020-07-10T21:43:41", "name": "[v7,1/3] drivers/net: fix build with internal API usage", "version": 7, "mbox": "http://patchwork.dpdk.org/series/10960/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/73783/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/73783/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 2AC5CA052A;\n\tFri, 10 Jul 2020 23:44:07 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 2F90B1DD21;\n\tFri, 10 Jul 2020 23:43:59 +0200 (CEST)", "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n by dpdk.org (Postfix) with ESMTP id E9B071DB96\n for <dev@dpdk.org>; Fri, 10 Jul 2020 23:43:56 +0200 (CEST)", "from orsmga005.jf.intel.com ([10.7.209.41])\n by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 10 Jul 2020 14:43:56 -0700", "from silpixa00399752.ir.intel.com (HELO\n silpixa00399752.ger.corp.intel.com) ([10.237.222.180])\n by orsmga005.jf.intel.com with ESMTP; 10 Jul 2020 14:43:53 -0700" ], "IronPort-SDR": [ "\n 5qPlj5tygJtaTWGbRGfqlJdOV8e2ETfY4Y80LF+j9WXmoU1uw2m3DJa1uKE/cMb6pbStX45F3j\n 8D1H2RMGuzHg==", "\n PX3mEegSE2rwJGadnwXsR/A/KWeYPBfzx75yusnKz0WOg9QPvigFqwv22+Qf9xVFs6+ietfmPa\n fiYuURWdmalw==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9678\"; a=\"213173759\"", "E=Sophos;i=\"5.75,336,1589266800\"; d=\"scan'208\";a=\"213173759\"", "E=Sophos;i=\"5.75,336,1589266800\"; d=\"scan'208\";a=\"458406670\"" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "From": "Ferruh Yigit <ferruh.yigit@intel.com>", "To": "Wei Zhao <wei.zhao1@intel.com>, Jeff Guo <jia.guo@intel.com>,\n Beilei Xing <beilei.xing@intel.com>, Qiming Yang <qiming.yang@intel.com>,\n Qi Zhang <qi.z.zhang@intel.com>", "Cc": "dev@dpdk.org, Ferruh Yigit <ferruh.yigit@intel.com>,\n Renata Saiakhova <renata.saiakhova@ekinops.com>", "Date": "Fri, 10 Jul 2020 22:43:43 +0100", "Message-Id": "<20200710214343.1407419-3-ferruh.yigit@intel.com>", "X-Mailer": "git-send-email 2.25.4", "In-Reply-To": "<20200710214343.1407419-1-ferruh.yigit@intel.com>", "References": "<20200710144208.499544-1-ferruh.yigit@intel.com>\n <20200710214343.1407419-1-ferruh.yigit@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH v7 3/3] drivers/net: delete HW rings while\n\tfreeing queues", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "From: Renata Saiakhova <renata.saiakhova@ekinops.com>\n\nDelete memzones for HW rings in igb and ixgbe while freeing queues\n\nUpdated igb, ixgbe, i40e, ice & em drivers.\n\nSigned-off-by: Renata Saiakhova <renata.saiakhova@ekinops.com>\nReviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>\n---\n drivers/net/e1000/em_rxtx.c | 2 ++\n drivers/net/e1000/igb_rxtx.c | 2 ++\n drivers/net/i40e/i40e_fdir.c | 3 +++\n drivers/net/i40e/i40e_rxtx.c | 2 ++\n drivers/net/ice/ice_rxtx.c | 2 ++\n drivers/net/ixgbe/ixgbe_rxtx.c | 2 ++\n 6 files changed, 13 insertions(+)", "diff": "diff --git a/drivers/net/e1000/em_rxtx.c b/drivers/net/e1000/em_rxtx.c\nindex 49c53712a2..67a271e8ce 100644\n--- a/drivers/net/e1000/em_rxtx.c\n+++ b/drivers/net/e1000/em_rxtx.c\n@@ -1611,12 +1611,14 @@ em_dev_free_queues(struct rte_eth_dev *dev)\n \tfor (i = 0; i < dev->data->nb_rx_queues; i++) {\n \t\teth_em_rx_queue_release(dev->data->rx_queues[i]);\n \t\tdev->data->rx_queues[i] = NULL;\n+\t\trte_eth_dma_zone_free(dev, \"rx_ring\", i);\n \t}\n \tdev->data->nb_rx_queues = 0;\n \n \tfor (i = 0; i < dev->data->nb_tx_queues; i++) {\n \t\teth_em_tx_queue_release(dev->data->tx_queues[i]);\n \t\tdev->data->tx_queues[i] = NULL;\n+\t\trte_eth_dma_zone_free(dev, \"tx_ring\", i);\n \t}\n \tdev->data->nb_tx_queues = 0;\n }\ndiff --git a/drivers/net/e1000/igb_rxtx.c b/drivers/net/e1000/igb_rxtx.c\nindex 6883202842..5717cdb706 100644\n--- a/drivers/net/e1000/igb_rxtx.c\n+++ b/drivers/net/e1000/igb_rxtx.c\n@@ -1884,12 +1884,14 @@ igb_dev_free_queues(struct rte_eth_dev *dev)\n \tfor (i = 0; i < dev->data->nb_rx_queues; i++) {\n \t\teth_igb_rx_queue_release(dev->data->rx_queues[i]);\n \t\tdev->data->rx_queues[i] = NULL;\n+\t\trte_eth_dma_zone_free(dev, \"rx_ring\", i);\n \t}\n \tdev->data->nb_rx_queues = 0;\n \n \tfor (i = 0; i < dev->data->nb_tx_queues; i++) {\n \t\teth_igb_tx_queue_release(dev->data->tx_queues[i]);\n \t\tdev->data->tx_queues[i] = NULL;\n+\t\trte_eth_dma_zone_free(dev, \"tx_ring\", i);\n \t}\n \tdev->data->nb_tx_queues = 0;\n }\ndiff --git a/drivers/net/i40e/i40e_fdir.c b/drivers/net/i40e/i40e_fdir.c\nindex 4a778db4c6..71eb31fb8b 100644\n--- a/drivers/net/i40e/i40e_fdir.c\n+++ b/drivers/net/i40e/i40e_fdir.c\n@@ -269,6 +269,7 @@ i40e_fdir_teardown(struct i40e_pf *pf)\n {\n \tstruct i40e_hw *hw = I40E_PF_TO_HW(pf);\n \tstruct i40e_vsi *vsi;\n+\tstruct rte_eth_dev *dev = pf->adapter->eth_dev;\n \n \tvsi = pf->fdir.fdir_vsi;\n \tif (!vsi)\n@@ -280,8 +281,10 @@ i40e_fdir_teardown(struct i40e_pf *pf)\n \tif (err)\n \t\tPMD_DRV_LOG(DEBUG, \"Failed to do FDIR RX switch off\");\n \ti40e_dev_rx_queue_release(pf->fdir.rxq);\n+\trte_eth_dma_zone_free(dev, \"fdir_rx_ring\", pf->fdir.rxq->queue_id);\n \tpf->fdir.rxq = NULL;\n \ti40e_dev_tx_queue_release(pf->fdir.txq);\n+\trte_eth_dma_zone_free(dev, \"fdir_tx_ring\", pf->fdir.txq->queue_id);\n \tpf->fdir.txq = NULL;\n \ti40e_vsi_release(vsi);\n \tpf->fdir.fdir_vsi = NULL;\ndiff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/i40e_rxtx.c\nindex 840b6f387f..2d2efb71a5 100644\n--- a/drivers/net/i40e/i40e_rxtx.c\n+++ b/drivers/net/i40e/i40e_rxtx.c\n@@ -2928,6 +2928,7 @@ i40e_dev_free_queues(struct rte_eth_dev *dev)\n \t\t\tcontinue;\n \t\ti40e_dev_rx_queue_release(dev->data->rx_queues[i]);\n \t\tdev->data->rx_queues[i] = NULL;\n+\t\trte_eth_dma_zone_free(dev, \"rx_ring\", i);\n \t}\n \n \tfor (i = 0; i < dev->data->nb_tx_queues; i++) {\n@@ -2935,6 +2936,7 @@ i40e_dev_free_queues(struct rte_eth_dev *dev)\n \t\t\tcontinue;\n \t\ti40e_dev_tx_queue_release(dev->data->tx_queues[i]);\n \t\tdev->data->tx_queues[i] = NULL;\n+\t\trte_eth_dma_zone_free(dev, \"tx_ring\", i);\n \t}\n }\n \ndiff --git a/drivers/net/ice/ice_rxtx.c b/drivers/net/ice/ice_rxtx.c\nindex 5d6f693c52..cc3139042e 100644\n--- a/drivers/net/ice/ice_rxtx.c\n+++ b/drivers/net/ice/ice_rxtx.c\n@@ -1905,6 +1905,7 @@ ice_free_queues(struct rte_eth_dev *dev)\n \t\t\tcontinue;\n \t\tice_rx_queue_release(dev->data->rx_queues[i]);\n \t\tdev->data->rx_queues[i] = NULL;\n+\t\trte_eth_dma_zone_free(dev, \"rx_ring\", i);\n \t}\n \tdev->data->nb_rx_queues = 0;\n \n@@ -1913,6 +1914,7 @@ ice_free_queues(struct rte_eth_dev *dev)\n \t\t\tcontinue;\n \t\tice_tx_queue_release(dev->data->tx_queues[i]);\n \t\tdev->data->tx_queues[i] = NULL;\n+\t\trte_eth_dma_zone_free(dev, \"tx_ring\", i);\n \t}\n \tdev->data->nb_tx_queues = 0;\n }\ndiff --git a/drivers/net/ixgbe/ixgbe_rxtx.c b/drivers/net/ixgbe/ixgbe_rxtx.c\nindex 2e20e18c7a..977ecf5137 100644\n--- a/drivers/net/ixgbe/ixgbe_rxtx.c\n+++ b/drivers/net/ixgbe/ixgbe_rxtx.c\n@@ -3368,12 +3368,14 @@ ixgbe_dev_free_queues(struct rte_eth_dev *dev)\n \tfor (i = 0; i < dev->data->nb_rx_queues; i++) {\n \t\tixgbe_dev_rx_queue_release(dev->data->rx_queues[i]);\n \t\tdev->data->rx_queues[i] = NULL;\n+\t\trte_eth_dma_zone_free(dev, \"rx_ring\", i);\n \t}\n \tdev->data->nb_rx_queues = 0;\n \n \tfor (i = 0; i < dev->data->nb_tx_queues; i++) {\n \t\tixgbe_dev_tx_queue_release(dev->data->tx_queues[i]);\n \t\tdev->data->tx_queues[i] = NULL;\n+\t\trte_eth_dma_zone_free(dev, \"tx_ring\", i);\n \t}\n \tdev->data->nb_tx_queues = 0;\n }\n", "prefixes": [ "v7", "3/3" ] }{ "id": 73783, "url": "