get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/79087/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 79087,
    "url": "http://patches.dpdk.org/api/patches/79087/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200928231437.414489-22-thomas@monjalon.net/",
    "project": {
        "id": 1,
        "url": "http://patches.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": "<20200928231437.414489-22-thomas@monjalon.net>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200928231437.414489-22-thomas@monjalon.net",
    "date": "2020-09-28T23:14:29",
    "name": "[v3,21/29] ethdev: remove old close behaviour",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "4066ffa25bbb06872795038cfbe36c7f49970c5a",
    "submitter": {
        "id": 685,
        "url": "http://patches.dpdk.org/api/people/685/?format=api",
        "name": "Thomas Monjalon",
        "email": "thomas@monjalon.net"
    },
    "delegate": {
        "id": 319,
        "url": "http://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20200928231437.414489-22-thomas@monjalon.net/mbox/",
    "series": [
        {
            "id": 12565,
            "url": "http://patches.dpdk.org/api/series/12565/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=12565",
            "date": "2020-09-28T23:14:08",
            "name": "cleanup ethdev close operation",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/12565/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/79087/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/79087/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 46A57A04C0;\n\tTue, 29 Sep 2020 01:21:38 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 56FA51DA11;\n\tTue, 29 Sep 2020 01:16:01 +0200 (CEST)",
            "from new2-smtp.messagingengine.com (new2-smtp.messagingengine.com\n [66.111.4.224]) by dpdk.org (Postfix) with ESMTP id D935D1D9A9\n for <dev@dpdk.org>; Tue, 29 Sep 2020 01:15:44 +0200 (CEST)",
            "from compute7.internal (compute7.nyi.internal [10.202.2.47])\n by mailnew.nyi.internal (Postfix) with ESMTP id 7410A580796;\n Mon, 28 Sep 2020 19:15:43 -0400 (EDT)",
            "from mailfrontend2 ([10.202.2.163])\n by compute7.internal (MEProxy); Mon, 28 Sep 2020 19:15:43 -0400",
            "from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184])\n by mail.messagingengine.com (Postfix) with ESMTPA id 9A978306467E;\n Mon, 28 Sep 2020 19:15:33 -0400 (EDT)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h=\n from:to:cc:subject:date:message-id:in-reply-to:references\n :mime-version:content-transfer-encoding; s=fm2; bh=LeyN56kNBbuWU\n oVHkgI2eyGujNyT+hlx1/AhXi/2xck=; b=TCuB64eGBxL6N/gnpuVoMHd721uv8\n y9uZ9fFlc+asbWIqW/aq770X/sZDT98N7fNxNcPj0TtYwyFaBC8UCRqoFFJ/zz+5\n AccJi6XXKeB2YpiWLs57fpTEUY6BM5AKVe2oWNoYE5Xzd0SA4viyptS2QfCgrOly\n CZqRLOOCuVYyDZrSeeAMVyqTwNCiWLgqbkigwMunSXH12L2hzMFJqCCbgduOT20r\n gEroAoqRkqbqGTbom3+qdAL61XkelML4V2LQv/lnj4fOcRIrZC/U8BD/rtL7TLM1\n ngSrikpp+Pz1lXotReQbGgqIXRL4pZgZBEWd9CQRLpk6CBf7wmFM8Tm6Q==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=\n messagingengine.com; h=cc:content-transfer-encoding:date:from\n :in-reply-to:message-id:mime-version:references:subject:to\n :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=\n fm3; bh=LeyN56kNBbuWUoVHkgI2eyGujNyT+hlx1/AhXi/2xck=; b=Xs2jgBx5\n 2auiQbHcWvdoNit+RjvL3ljaWztVkxVXoc2n30yKlMfTKLXkqb3QtZ6bKzLdKR6t\n EkC8KI1H3rLCssJfIdD/WBLzJeFLjJsdDzTiI8RtbHgCpWDCy4mRhVgizlA5fqA8\n Hjsfsu9Olg9JQCbu65IOj0CQxltfrpM9wzcJEw2Jsx1r5FymuOs5iymufD2GpK7d\n z5iIwEMYiHA369JX4o/BlNZbyk9qBe0TEShAYPW5GBCtoaQoDyoP7wIwnbtpLMsg\n tO5jiXSQjywcKPIPqUiHeQiB/k5dHOUsP5FfKjzZAKiojQRF2qkwF2hdSHp0h0SB\n VhzKvujN5tm8ig=="
        ],
        "X-ME-Sender": "<xms:nW5yX686DYIz-3NoWLYbv1N0TEcEx79RWA_kY4PQVY0dpvMwW12ZOA>\n <xme:nW5yX6tSpWUIiOne-ew5L1VIHDYam1pQcWVqduG4dVizr2RTKz03ncLscjCqD3qNI\n 7l0fsesgkl6MYJn8g>",
        "X-ME-Proxy-Cause": "\n gggruggvucftvghtrhhoucdtuddrgedujedrvdejgddulecutefuodetggdotefrodftvf\n curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu\n uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc\n fjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepvfhhohhmrghs\n ucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucggtf\n frrghtthgvrhhnpeehtdduuefggeekveehueeitdefhfdvkeevtedvfeeivdffudeuudeh\n udetiedvudenucffohhmrghinhepughpughkrdhorhhgnecukfhppeejjedrudefgedrvd\n dtfedrudekgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhr\n ohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght",
        "X-ME-Proxy": "<xmx:nW5yXwAtrkYGbndGHfIyiWOrGh_a_ETtUYoJ1fupfHy8O0UYZnWnyA>\n <xmx:nW5yXyeVelVmBZbXzhFOaldDlyYer1DL4Bf2ODpOA1xVb0I3yUYMqQ>\n <xmx:nW5yX_NPahUS7S2UNI0rT-mXnYnp9a3bYB1vi0mfbMq1JMbbXPM6CQ>\n <xmx:n25yX5H8MQz4m6zcfj0O-ui7PDqVwqlocYgCk3aSbNq8hAf2dRJLbw>",
        "From": "Thomas Monjalon <thomas@monjalon.net>",
        "To": "dev@dpdk.org",
        "Cc": "ferruh.yigit@intel.com,\tarybchenko@solarflare.com,\n Shijith Thotton <sthotton@marvell.com>,\n Srisivasubramanian Srinivasan <srinivasan@marvell.com>,\n Heinrich Kuhn <heinrich.kuhn@netronome.com>,\n Alfredo Cardigliano <cardigliano@ntop.org>,\n Liron Himi <lironh@marvell.com>,\tRay Kinsella <mdr@ashroe.eu>,\n Neil Horman <nhorman@tuxdriver.com>,\n \"John W. Linville\" <linville@tuxdriver.com>,\n Ciara Loftus <ciara.loftus@intel.com>,\tQi Zhang <qi.z.zhang@intel.com>,\n Shepard Siegel <shepard.siegel@atomicrules.com>,\n Ed Czeck <ed.czeck@atomicrules.com>,\n John Miller <john.miller@atomicrules.com>,\n Igor Russkikh <igor.russkikh@aquantia.com>,\n Pavel Belous <pavel.belous@aquantia.com>,\n Steven Webster <steven.webster@windriver.com>,\n Matt Peters <matt.peters@windriver.com>,\n Somalapuram Amaranath <asomalap@amd.com>,\n Rasesh Mody <rmody@marvell.com>,\tShahed Shaikh <shshaikh@marvell.com>,\n Ajit Khaparde <ajit.khaparde@broadcom.com>,\n Somnath Kotur <somnath.kotur@broadcom.com>, Chas Williams <chas3@att.com>,\n \"Wei Hu (Xavier)\" <xavier.huwei@huawei.com>,\n Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>,\n Hemant Agrawal <hemant.agrawal@nxp.com>,\n Sachin Saxena <sachin.saxena@oss.nxp.com>,\tJeff Guo <jia.guo@intel.com>,\n Haiyue Wang <haiyue.wang@intel.com>,\tMarcin Wojtas <mw@semihalf.com>,\n Michal Krawczyk <mk@semihalf.com>,\tGuy Tzalik <gtzalik@amazon.com>,\n Evgeny Schemeilin <evgenys@amazon.com>,\n Igor Chauskin <igorch@amazon.com>,\tGagandeep Singh <g.singh@nxp.com>,\n John Daley <johndale@cisco.com>,\tHyong Youb Kim <hyonkim@cisco.com>,\n Gaetan Rivet <grive@u256.net>,\tXiao Wang <xiao.w.wang@intel.com>,\n Ziyang Xuan <xuanziyang2@huawei.com>,\n Xiaoyun Wang <cloud.wangxiaoyun@huawei.com>,\n Guoyang Zhou <zhouguoyang@huawei.com>,\n \"Min Hu (Connor)\" <humin29@huawei.com>,\n Yisen Zhuang <yisen.zhuang@huawei.com>,\n Beilei Xing <beilei.xing@intel.com>,\tJingjing Wu <jingjing.wu@intel.com>,\n Qiming Yang <qiming.yang@intel.com>,\tJakub Grajciar <jgrajcia@cisco.com>,\n Matan Azrad <matan@nvidia.com>,\tShahaf Shuler <shahafs@nvidia.com>,\n Viacheslav Ovsiienko <viacheslavo@nvidia.com>,\n Zyta Szpak <zr@semihalf.com>,\tStephen Hemminger <sthemmin@microsoft.com>,\n \"K. Y. Srinivasan\" <kys@microsoft.com>,\n Haiyang Zhang <haiyangz@microsoft.com>,\tLong Li <longli@microsoft.com>,\n Martin Spinler <spinler@cesnet.cz>,\tTetsuya Mukawa <mtetsuyah@gmail.com>,\n Harman Kalra <hkalra@marvell.com>,\tJerin Jacob <jerinj@marvell.com>,\n Nithin Dabilpuram <ndabilpuram@marvell.com>,\n Kiran Kumar K <kirankumark@marvell.com>, Akhil Goyal <akhil.goyal@nxp.com>,\n Bruce Richardson <bruce.richardson@intel.com>,\n Jasvinder Singh <jasvinder.singh@intel.com>,\n Cristian Dumitrescu <cristian.dumitrescu@intel.com>,\n Keith Wiles <keith.wiles@intel.com>,\n Maxime Coquelin <maxime.coquelin@redhat.com>,\n Chenbo Xia <chenbo.xia@intel.com>,\tZhihong Wang <zhihong.wang@intel.com>,\n Yong Wang <yongwang@vmware.com>",
        "Date": "Tue, 29 Sep 2020 01:14:29 +0200",
        "Message-Id": "<20200928231437.414489-22-thomas@monjalon.net>",
        "X-Mailer": "git-send-email 2.28.0",
        "In-Reply-To": "<20200928231437.414489-1-thomas@monjalon.net>",
        "References": "<20200913220711.3768597-1-thomas@monjalon.net>\n <20200928231437.414489-1-thomas@monjalon.net>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v3 21/29] ethdev: remove old close behaviour",
        "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": "The temporary flag RTE_ETH_DEV_CLOSE_REMOVE is removed.\nIt was introduced in DPDK 18.11 in order to give time for PMDs to migrate.\n\nThe old behaviour was to free only queues when closing a port.\nThe new behaviour is calling rte_eth_dev_release_port() which does\nthree more tasks:\n\t- trigger event callback\n\t- reset state and few pointers\n\t- free all generic port resources\n\nThe private port resources must be released in the .dev_close callback.\n\nThe .remove callback should:\n\t- call .dev_close callback\n\t- call rte_eth_dev_release_port()\n\t- free multi-port device shared resources\n\nDespite waiting two years, some drivers have not migrated,\nso they may hit issues with the incompatible new behaviour.\nAfter sending emails, adding logs, and announcing the deprecation,\nthe only last solution is to declare these drivers as unmaintained:\n\tionic, liquidio, nfp\nBelow is a summary of what to implement in those drivers.\n\n* The freeing of private port resources must be moved\nfrom the \".remove(device)\" function to the \".dev_close(port)\" function.\n\n* If a generic resource (.mac_addrs or .hash_mac_addrs) cannot be freed,\nit must be set to NULL in \".dev_close\" function to protect from\nsubsequent rte_eth_dev_release_port() freeing.\n\n* Note 1:\nThe generic resources are freed in rte_eth_dev_release_port(),\nafter \".dev_close\" is called in rte_eth_dev_close(), but not when\ncalling \".dev_close\" directly from the \".remove\" PMD function.\nThat's why rte_eth_dev_release_port() must still be called explicitly\nfrom \".remove(device)\" after calling the \".dev_close\" PMD function.\n\n* Note 2:\nIf a device can have multiple ports, the common resources must be freed\nonly in the \".remove(device)\" function.\n\n* Note 3:\nThe port is supposed to be in a stopped state when it is closed.\nIf it is not the case, it is free to the PMD implementation\nhow to react when trying to close a non-stopped port:\neither try to stop it automatically or just return an error.\n\nCc: Shijith Thotton <sthotton@marvell.com>\nCc: Srisivasubramanian Srinivasan <srinivasan@marvell.com>\nCc: Heinrich Kuhn <heinrich.kuhn@netronome.com>\nCc: Alfredo Cardigliano <cardigliano@ntop.org>\n\nSigned-off-by: Thomas Monjalon <thomas@monjalon.net>\nReviewed-by: Liron Himi <lironh@marvell.com>\n---\n MAINTAINERS                               |  6 +++---\n doc/guides/rel_notes/deprecation.rst      |  6 ------\n drivers/net/af_packet/rte_eth_af_packet.c |  1 -\n drivers/net/af_xdp/rte_eth_af_xdp.c       |  2 --\n drivers/net/ark/ark_ethdev.c              |  2 --\n drivers/net/atlantic/atl_ethdev.c         |  2 --\n drivers/net/avp/avp_ethdev.c              |  2 --\n drivers/net/axgbe/axgbe_ethdev.c          |  1 -\n drivers/net/bnx2x/bnx2x_ethdev.c          |  5 -----\n drivers/net/bnxt/bnxt_ethdev.c            |  5 -----\n drivers/net/bnxt/bnxt_reps.c              |  4 ----\n drivers/net/bonding/rte_eth_bond_pmd.c    |  1 -\n drivers/net/cxgbe/cxgbe_main.c            |  2 --\n drivers/net/cxgbe/cxgbevf_main.c          |  2 --\n drivers/net/dpaa/dpaa_ethdev.c            |  1 -\n drivers/net/dpaa2/dpaa2_ethdev.c          |  1 -\n drivers/net/e1000/em_ethdev.c             |  5 -----\n drivers/net/e1000/igb_ethdev.c            | 10 ----------\n drivers/net/ena/ena_ethdev.c              |  6 ------\n drivers/net/enetc/enetc_ethdev.c          |  1 -\n drivers/net/enic/enic_ethdev.c            |  2 --\n drivers/net/enic/enic_vf_representor.c    |  3 +--\n drivers/net/failsafe/failsafe.c           |  1 -\n drivers/net/fm10k/fm10k_ethdev.c          |  5 -----\n drivers/net/hinic/hinic_pmd_ethdev.c      |  6 ------\n drivers/net/hns3/hns3_ethdev.c            |  5 -----\n drivers/net/hns3/hns3_ethdev_vf.c         |  5 -----\n drivers/net/i40e/i40e_ethdev.c            |  5 -----\n drivers/net/i40e/i40e_ethdev_vf.c         |  5 -----\n drivers/net/iavf/iavf_ethdev.c            |  5 -----\n drivers/net/ice/ice_dcf_ethdev.c          |  2 --\n drivers/net/ice/ice_ethdev.c              |  5 -----\n drivers/net/igc/igc_ethdev.c              |  5 -----\n drivers/net/ixgbe/ixgbe_ethdev.c          | 10 ----------\n drivers/net/kni/rte_eth_kni.c             |  2 --\n drivers/net/memif/rte_eth_memif.c         |  3 ---\n drivers/net/mlx4/mlx4.c                   |  1 -\n drivers/net/mlx5/linux/mlx5_os.c          |  2 --\n drivers/net/mvneta/mvneta_ethdev.c        |  3 ---\n drivers/net/mvpp2/mrvl_ethdev.c           |  3 ---\n drivers/net/netvsc/hn_ethdev.c            |  3 ---\n drivers/net/nfb/nfb_ethdev.c              |  3 ---\n drivers/net/null/rte_eth_null.c           |  1 -\n drivers/net/octeontx/octeontx_ethdev.c    |  1 -\n drivers/net/octeontx2/otx2_ethdev.c       |  1 -\n drivers/net/pcap/rte_eth_pcap.c           |  1 -\n drivers/net/pfe/pfe_ethdev.c              |  2 --\n drivers/net/qede/qede_ethdev.c            |  5 -----\n drivers/net/ring/rte_eth_ring.c           |  1 -\n drivers/net/sfc/sfc_ethdev.c              |  4 +---\n drivers/net/softnic/rte_eth_softnic.c     |  1 -\n drivers/net/szedata2/rte_eth_szedata2.c   |  3 ---\n drivers/net/tap/rte_eth_tap.c             |  2 +-\n drivers/net/vhost/rte_eth_vhost.c         |  2 +-\n drivers/net/virtio/virtio_ethdev.c        |  5 -----\n drivers/net/vmxnet3/vmxnet3_ethdev.c      |  3 ---\n lib/librte_ethdev/rte_ethdev.c            | 17 +----------------\n lib/librte_ethdev/rte_ethdev.h            |  8 +-------\n 58 files changed, 9 insertions(+), 197 deletions(-)",
    "diff": "diff --git a/MAINTAINERS b/MAINTAINERS\nindex 49a6dfa7a5..6aaf80d483 100644\n--- a/MAINTAINERS\n+++ b/MAINTAINERS\n@@ -604,7 +604,7 @@ F: drivers/net/thunderx/\n F: doc/guides/nics/thunderx.rst\n F: doc/guides/nics/features/thunderx.ini\n \n-Cavium LiquidIO\n+Cavium LiquidIO - UNMAINTAINED\n M: Shijith Thotton <sthotton@marvell.com>\n M: Srisivasubramanian Srinivasan <srinivasan@marvell.com>\n T: git://dpdk.org/next/dpdk-next-net-mrvl\n@@ -793,7 +793,7 @@ F: drivers/net/nfb/\n F: doc/guides/nics/nfb.rst\n F: doc/guides/nics/features/nfb.ini\n \n-Netronome nfp\n+Netronome nfp - UNMAINTAINED\n M: Heinrich Kuhn <heinrich.kuhn@netronome.com>\n F: drivers/net/nfp/\n F: doc/guides/nics/nfp.rst\n@@ -829,7 +829,7 @@ F: doc/guides/nics/pfe.rst\n F: drivers/net/pfe/\n F: doc/guides/nics/features/pfe.ini\n \n-Pensando ionic\n+Pensando ionic - UNMAINTAINED\n M: Alfredo Cardigliano <cardigliano@ntop.org>\n F: drivers/net/ionic/\n F: doc/guides/nics/ionic.rst\ndiff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst\nindex 9691f2c57d..d07b4eeb47 100644\n--- a/doc/guides/rel_notes/deprecation.rst\n+++ b/doc/guides/rel_notes/deprecation.rst\n@@ -137,12 +137,6 @@ Deprecation Notices\n   - ``rte_eth_dev_stop``\n   - ``rte_eth_dev_close``\n \n-* ethdev: The temporary flag RTE_ETH_DEV_CLOSE_REMOVE will be removed in 20.11.\n-  As a consequence, the new behaviour introduced in 18.11 will be effective\n-  for all drivers: generic port resources are freed on close operation.\n-  Private resources are expected to be released in the ``dev_close`` callback.\n-  More details in http://inbox.dpdk.org/dev/5248162.j6AOsuQRmx@thomas/\n-\n * ethdev: New offload flags ``DEV_RX_OFFLOAD_FLOW_MARK`` will be added in 19.11.\n   This will allow application to enable or disable PMDs from updating\n   ``rte_mbuf::hash::fdir``.\ndiff --git a/drivers/net/af_packet/rte_eth_af_packet.c b/drivers/net/af_packet/rte_eth_af_packet.c\nindex 12c202cba4..25876224f8 100644\n--- a/drivers/net/af_packet/rte_eth_af_packet.c\n+++ b/drivers/net/af_packet/rte_eth_af_packet.c\n@@ -859,7 +859,6 @@ rte_pmd_init_internals(struct rte_vdev_device *dev,\n \tdata->nb_tx_queues = (uint16_t)nb_queues;\n \tdata->dev_link = pmd_link;\n \tdata->mac_addrs = &(*internals)->eth_addr;\n-\tdata->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n \n \t(*eth_dev)->dev_ops = &ops;\n \ndiff --git a/drivers/net/af_xdp/rte_eth_af_xdp.c b/drivers/net/af_xdp/rte_eth_af_xdp.c\nindex badbce63fb..60add9ead4 100644\n--- a/drivers/net/af_xdp/rte_eth_af_xdp.c\n+++ b/drivers/net/af_xdp/rte_eth_af_xdp.c\n@@ -1274,8 +1274,6 @@ init_internals(struct rte_vdev_device *dev, const char *if_name,\n \teth_dev->dev_ops = &ops;\n \teth_dev->rx_pkt_burst = eth_af_xdp_rx;\n \teth_dev->tx_pkt_burst = eth_af_xdp_tx;\n-\t/* Let rte_eth_dev_close() release the port resources. */\n-\teth_dev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n \n #if defined(XDP_UMEM_UNALIGNED_CHUNK_FLAG)\n \tAF_XDP_LOG(INFO, \"Zero copy between umem and mbuf enabled.\\n\");\ndiff --git a/drivers/net/ark/ark_ethdev.c b/drivers/net/ark/ark_ethdev.c\nindex 5f2ed4b7b7..83dc4ecd2c 100644\n--- a/drivers/net/ark/ark_ethdev.c\n+++ b/drivers/net/ark/ark_ethdev.c\n@@ -260,8 +260,6 @@ eth_ark_dev_init(struct rte_eth_dev *dev)\n \t/* Use dummy function until setup */\n \tdev->rx_pkt_burst = &eth_ark_recv_pkts_noop;\n \tdev->tx_pkt_burst = &eth_ark_xmit_pkts_noop;\n-\t/* Let rte_eth_dev_close() release the port resources */\n-\tdev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n \n \tark->bar0 = (uint8_t *)pci_dev->mem_resource[0].addr;\n \tark->a_bar = (uint8_t *)pci_dev->mem_resource[2].addr;\ndiff --git a/drivers/net/atlantic/atl_ethdev.c b/drivers/net/atlantic/atl_ethdev.c\nindex d3babeff94..2217511ca0 100644\n--- a/drivers/net/atlantic/atl_ethdev.c\n+++ b/drivers/net/atlantic/atl_ethdev.c\n@@ -380,8 +380,6 @@ eth_atl_dev_init(struct rte_eth_dev *eth_dev)\n \tif (rte_eal_process_type() != RTE_PROC_PRIMARY)\n \t\treturn 0;\n \n-\teth_dev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n-\n \t/* Vendor and Device ID need to be set before init of shared code */\n \thw->device_id = pci_dev->id.device_id;\n \thw->vendor_id = pci_dev->id.vendor_id;\ndiff --git a/drivers/net/avp/avp_ethdev.c b/drivers/net/avp/avp_ethdev.c\nindex 2eed6acc3f..c730b7ab86 100644\n--- a/drivers/net/avp/avp_ethdev.c\n+++ b/drivers/net/avp/avp_ethdev.c\n@@ -957,8 +957,6 @@ eth_avp_dev_init(struct rte_eth_dev *eth_dev)\n \teth_dev->dev_ops = &avp_eth_dev_ops;\n \teth_dev->rx_pkt_burst = &avp_recv_pkts;\n \teth_dev->tx_pkt_burst = &avp_xmit_pkts;\n-\t/* Let rte_eth_dev_close() release the port resources */\n-\teth_dev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n \n \tif (rte_eal_process_type() != RTE_PROC_PRIMARY) {\n \t\t/*\ndiff --git a/drivers/net/axgbe/axgbe_ethdev.c b/drivers/net/axgbe/axgbe_ethdev.c\nindex 2dd64180ad..cf085487cc 100644\n--- a/drivers/net/axgbe/axgbe_ethdev.c\n+++ b/drivers/net/axgbe/axgbe_ethdev.c\n@@ -1959,7 +1959,6 @@ eth_axgbe_dev_init(struct rte_eth_dev *eth_dev)\n \tint ret;\n \n \teth_dev->dev_ops = &axgbe_eth_dev_ops;\n-\teth_dev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n \n \teth_dev->rx_descriptor_status = axgbe_dev_rx_descriptor_status;\n \teth_dev->tx_descriptor_status = axgbe_dev_tx_descriptor_status;\ndiff --git a/drivers/net/bnx2x/bnx2x_ethdev.c b/drivers/net/bnx2x/bnx2x_ethdev.c\nindex 8dc46384af..40225b2f44 100644\n--- a/drivers/net/bnx2x/bnx2x_ethdev.c\n+++ b/drivers/net/bnx2x/bnx2x_ethdev.c\n@@ -735,11 +735,6 @@ bnx2x_common_dev_init(struct rte_eth_dev *eth_dev, int is_vf)\n \t\t\tgoto out;\n \t}\n \n-\t/* Pass the information to the rte_eth_dev_close() that it should also\n-\t * release the private port resources.\n-\t */\n-\teth_dev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n-\n \treturn 0;\n \n out:\ndiff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c\nindex e726d078ec..a77bab661d 100644\n--- a/drivers/net/bnxt/bnxt_ethdev.c\n+++ b/drivers/net/bnxt/bnxt_ethdev.c\n@@ -5802,11 +5802,6 @@ bnxt_dev_init(struct rte_eth_dev *eth_dev, void *params __rte_unused)\n \n \tbnxt_alloc_switch_domain(bp);\n \n-\t/* Pass the information to the rte_eth_dev_close() that it should also\n-\t * release the private port resources.\n-\t */\n-\teth_dev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n-\n \tPMD_DRV_LOG(INFO,\n \t\t    DRV_MODULE_NAME \"found at mem %\" PRIX64 \", node addr %pM\\n\",\n \t\t    pci_dev->mem_resource[0].phys_addr,\ndiff --git a/drivers/net/bnxt/bnxt_reps.c b/drivers/net/bnxt/bnxt_reps.c\nindex 2b6c0a277b..df8680c113 100644\n--- a/drivers/net/bnxt/bnxt_reps.c\n+++ b/drivers/net/bnxt/bnxt_reps.c\n@@ -203,10 +203,6 @@ int bnxt_vf_representor_init(struct rte_eth_dev *eth_dev, void *params)\n \tPMD_DRV_LOG(INFO, \"calling bnxt_print_link_info\\n\");\n \tbnxt_print_link_info(eth_dev);\n \n-\t/* Pass the information to the rte_eth_dev_close() that it should also\n-\t * release the private port resources.\n-\t */\n-\teth_dev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n \tPMD_DRV_LOG(INFO,\n \t\t    \"Switch domain id %d: Representor Device %d init done\\n\",\n \t\t    vf_rep_bp->switch_domain_id, vf_rep_bp->vf_id);\ndiff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_pmd.c\nindex a9ed5d8e12..1f761c7c9e 100644\n--- a/drivers/net/bonding/rte_eth_bond_pmd.c\n+++ b/drivers/net/bonding/rte_eth_bond_pmd.c\n@@ -3209,7 +3209,6 @@ bond_alloc(struct rte_vdev_device *dev, uint8_t mode)\n \t}\n \n \tinternals = eth_dev->data->dev_private;\n-\teth_dev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n \teth_dev->data->nb_rx_queues = (uint16_t)1;\n \teth_dev->data->nb_tx_queues = (uint16_t)1;\n \ndiff --git a/drivers/net/cxgbe/cxgbe_main.c b/drivers/net/cxgbe/cxgbe_main.c\nindex da4ae25d47..53b08a64af 100644\n--- a/drivers/net/cxgbe/cxgbe_main.c\n+++ b/drivers/net/cxgbe/cxgbe_main.c\n@@ -2142,8 +2142,6 @@ int cxgbe_probe(struct adapter *adapter)\n \t\t\tgoto out_free;\n \t\t}\n \n-\t\tpi->eth_dev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n-\n \t\tif (i > 0) {\n \t\t\t/* First port will be notified by upper layer */\n \t\t\trte_eth_dev_probing_finish(eth_dev);\ndiff --git a/drivers/net/cxgbe/cxgbevf_main.c b/drivers/net/cxgbe/cxgbevf_main.c\nindex 35d873402b..9ee060504f 100644\n--- a/drivers/net/cxgbe/cxgbevf_main.c\n+++ b/drivers/net/cxgbe/cxgbevf_main.c\n@@ -261,8 +261,6 @@ int cxgbevf_probe(struct adapter *adapter)\n \t\t\tgoto out_free;\n \t\t}\n \n-\t\tpi->eth_dev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n-\n \t\tif (i > 0) {\n \t\t\t/* First port will be notified by upper layer */\n \t\t\trte_eth_dev_probing_finish(eth_dev);\ndiff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c\nindex 8f986683e2..a01c8f3fc6 100644\n--- a/drivers/net/dpaa/dpaa_ethdev.c\n+++ b/drivers/net/dpaa/dpaa_ethdev.c\n@@ -2127,7 +2127,6 @@ rte_dpaa_probe(struct rte_dpaa_driver *dpaa_drv,\n \n \tqman_ern_register_cb(dpaa_free_mbuf);\n \n-\teth_dev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n \tif (dpaa_drv->drv_flags & RTE_DPAA_DRV_INTR_LSC)\n \t\teth_dev->data->dev_flags |= RTE_ETH_DEV_INTR_LSC;\n \ndiff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c\nindex 7bd3208a19..d8624514df 100644\n--- a/drivers/net/dpaa2/dpaa2_ethdev.c\n+++ b/drivers/net/dpaa2/dpaa2_ethdev.c\n@@ -2793,7 +2793,6 @@ rte_dpaa2_probe(struct rte_dpaa2_driver *dpaa2_drv,\n \tdpaa2_dev->eth_dev = eth_dev;\n \teth_dev->data->rx_mbuf_alloc_failed = 0;\n \n-\teth_dev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n \tif (dpaa2_drv->drv_flags & RTE_DPAA2_DRV_INTR_LSC)\n \t\teth_dev->data->dev_flags |= RTE_ETH_DEV_INTR_LSC;\n \ndiff --git a/drivers/net/e1000/em_ethdev.c b/drivers/net/e1000/em_ethdev.c\nindex 2d0e071448..6a6ae0e9d5 100644\n--- a/drivers/net/e1000/em_ethdev.c\n+++ b/drivers/net/e1000/em_ethdev.c\n@@ -297,11 +297,6 @@ eth_em_dev_init(struct rte_eth_dev *eth_dev)\n \trte_ether_addr_copy((struct rte_ether_addr *)hw->mac.addr,\n \t\teth_dev->data->mac_addrs);\n \n-\t/* Pass the information to the rte_eth_dev_close() that it should also\n-\t * release the private port resources.\n-\t */\n-\teth_dev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n-\n \t/* initialize the vfta */\n \tmemset(shadow_vfta, 0, sizeof(*shadow_vfta));\n \ndiff --git a/drivers/net/e1000/igb_ethdev.c b/drivers/net/e1000/igb_ethdev.c\nindex 9e4aefe00c..f8778207ef 100644\n--- a/drivers/net/e1000/igb_ethdev.c\n+++ b/drivers/net/e1000/igb_ethdev.c\n@@ -841,11 +841,6 @@ eth_igb_dev_init(struct rte_eth_dev *eth_dev)\n \trte_ether_addr_copy((struct rte_ether_addr *)hw->mac.addr,\n \t\t\t&eth_dev->data->mac_addrs[0]);\n \n-\t/* Pass the information to the rte_eth_dev_close() that it should also\n-\t * release the private port resources.\n-\t */\n-\teth_dev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n-\n \t/* initialize the vfta */\n \tmemset(shadow_vfta, 0, sizeof(*shadow_vfta));\n \n@@ -997,11 +992,6 @@ eth_igbvf_dev_init(struct rte_eth_dev *eth_dev)\n \t\treturn -ENOMEM;\n \t}\n \n-\t/* Pass the information to the rte_eth_dev_close() that it should also\n-\t * release the private port resources.\n-\t */\n-\teth_dev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n-\n \t/* Generate a random MAC address, if none was assigned by PF. */\n \tif (rte_is_zero_ether_addr(perm_addr)) {\n \t\trte_eth_random_addr(perm_addr->addr_bytes);\ndiff --git a/drivers/net/ena/ena_ethdev.c b/drivers/net/ena/ena_ethdev.c\nindex ae6daad892..cf1c0b9795 100644\n--- a/drivers/net/ena/ena_ethdev.c\n+++ b/drivers/net/ena/ena_ethdev.c\n@@ -1863,12 +1863,6 @@ static int eth_ena_dev_init(struct rte_eth_dev *eth_dev)\n \t\t\tget_feat_ctx.dev_attr.mac_addr,\n \t\t\t(struct rte_ether_addr *)adapter->mac_addr);\n \n-\t/*\n-\t * Pass the information to the rte_eth_dev_close() that it should also\n-\t * release the private port resources.\n-\t */\n-\teth_dev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n-\n \tadapter->drv_stats = rte_zmalloc(\"adapter stats\",\n \t\t\t\t\t sizeof(*adapter->drv_stats),\n \t\t\t\t\t RTE_CACHE_LINE_SIZE);\ndiff --git a/drivers/net/enetc/enetc_ethdev.c b/drivers/net/enetc/enetc_ethdev.c\nindex afb658df3d..325c93b92a 100644\n--- a/drivers/net/enetc/enetc_ethdev.c\n+++ b/drivers/net/enetc/enetc_ethdev.c\n@@ -877,7 +877,6 @@ enetc_dev_init(struct rte_eth_dev *eth_dev)\n \teth_dev->dev_ops = &enetc_ops;\n \teth_dev->rx_pkt_burst = &enetc_recv_pkts;\n \teth_dev->tx_pkt_burst = &enetc_xmit_pkts;\n-\teth_dev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n \n \t/* Retrieving and storing the HW base address of device */\n \thw->hw.reg = (void *)pci_dev->mem_resource[0].addr;\ndiff --git a/drivers/net/enic/enic_ethdev.c b/drivers/net/enic/enic_ethdev.c\nindex ed03d53608..27f60b45b8 100644\n--- a/drivers/net/enic/enic_ethdev.c\n+++ b/drivers/net/enic/enic_ethdev.c\n@@ -1292,8 +1292,6 @@ static int eth_enic_dev_init(struct rte_eth_dev *eth_dev,\n \tenic->port_id = eth_dev->data->port_id;\n \tenic->rte_dev = eth_dev;\n \tenic->dev_data = eth_dev->data;\n-\t/* Let rte_eth_dev_close() release the port resources */\n-\teth_dev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n \n \tpdev = RTE_ETH_DEV_TO_PCI(eth_dev);\n \trte_eth_copy_pci_info(eth_dev, pdev);\ndiff --git a/drivers/net/enic/enic_vf_representor.c b/drivers/net/enic/enic_vf_representor.c\nindex c528be2b98..169c611a68 100644\n--- a/drivers/net/enic/enic_vf_representor.c\n+++ b/drivers/net/enic/enic_vf_representor.c\n@@ -670,8 +670,7 @@ int enic_vf_representor_init(struct rte_eth_dev *eth_dev, void *init_params)\n \n \teth_dev->device->driver = pf->rte_dev->device->driver;\n \teth_dev->dev_ops = &enic_vf_representor_dev_ops;\n-\teth_dev->data->dev_flags |= RTE_ETH_DEV_REPRESENTOR\n-\t\t| RTE_ETH_DEV_CLOSE_REMOVE;\n+\teth_dev->data->dev_flags |= RTE_ETH_DEV_REPRESENTOR;\n \teth_dev->data->representor_id = vf->vf_id;\n \teth_dev->data->mac_addrs = rte_zmalloc(\"enic_mac_addr_vf\",\n \t\tsizeof(struct rte_ether_addr) *\ndiff --git a/drivers/net/failsafe/failsafe.c b/drivers/net/failsafe/failsafe.c\nindex 44d47e8f72..b921e101e6 100644\n--- a/drivers/net/failsafe/failsafe.c\n+++ b/drivers/net/failsafe/failsafe.c\n@@ -180,7 +180,6 @@ fs_eth_dev_create(struct rte_vdev_device *vdev)\n \t\tERROR(\"Unable to allocate rte_eth_dev\");\n \t\treturn -1;\n \t}\n-\tdev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n \tpriv = PRIV(dev);\n \tpriv->data = dev->data;\n \tpriv->rxp = FS_RX_PROXY_INIT;\ndiff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net/fm10k/fm10k_ethdev.c\nindex 533f976709..23f4d04068 100644\n--- a/drivers/net/fm10k/fm10k_ethdev.c\n+++ b/drivers/net/fm10k/fm10k_ethdev.c\n@@ -3129,11 +3129,6 @@ eth_fm10k_dev_init(struct rte_eth_dev *dev)\n \t\t&dev->data->mac_addrs[0]);\n \t}\n \n-\t/* Pass the information to the rte_eth_dev_close() that it should also\n-\t * release the private port resources.\n-\t */\n-\tdev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n-\n \t/* Reset the hw statistics */\n \tdiag = fm10k_stats_reset(dev);\n \tif (diag != 0) {\ndiff --git a/drivers/net/hinic/hinic_pmd_ethdev.c b/drivers/net/hinic/hinic_pmd_ethdev.c\nindex 5f2e97d3bd..623534fda4 100644\n--- a/drivers/net/hinic/hinic_pmd_ethdev.c\n+++ b/drivers/net/hinic/hinic_pmd_ethdev.c\n@@ -3100,12 +3100,6 @@ static int hinic_func_init(struct rte_eth_dev *eth_dev)\n \t\tgoto mc_addr_fail;\n \t}\n \n-\t/*\n-\t * Pass the information to the rte_eth_dev_close() that it should also\n-\t * release the private port resources.\n-\t */\n-\teth_dev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n-\n \t/* create hardware nic_device */\n \trc = hinic_nic_dev_create(eth_dev);\n \tif (rc) {\ndiff --git a/drivers/net/hns3/hns3_ethdev.c b/drivers/net/hns3/hns3_ethdev.c\nindex 3b395a1ccf..dd03bd62b2 100644\n--- a/drivers/net/hns3/hns3_ethdev.c\n+++ b/drivers/net/hns3/hns3_ethdev.c\n@@ -5678,11 +5678,6 @@ hns3_dev_init(struct rte_eth_dev *eth_dev)\n \t\t\t    &eth_dev->data->mac_addrs[0]);\n \n \thw->adapter_state = HNS3_NIC_INITIALIZED;\n-\t/*\n-\t * Pass the information to the rte_eth_dev_close() that it should also\n-\t * release the private port resources.\n-\t */\n-\teth_dev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n \n \tif (rte_atomic16_read(&hns->hw.reset.schedule) == SCHEDULE_PENDING) {\n \t\thns3_err(hw, \"Reschedule reset service after dev_init\");\ndiff --git a/drivers/net/hns3/hns3_ethdev_vf.c b/drivers/net/hns3/hns3_ethdev_vf.c\nindex e0ca5a6ac2..436d864b5f 100644\n--- a/drivers/net/hns3/hns3_ethdev_vf.c\n+++ b/drivers/net/hns3/hns3_ethdev_vf.c\n@@ -2684,11 +2684,6 @@ hns3vf_dev_init(struct rte_eth_dev *eth_dev)\n \t\t\t    &eth_dev->data->mac_addrs[0]);\n \n \thw->adapter_state = HNS3_NIC_INITIALIZED;\n-\t/*\n-\t * Pass the information to the rte_eth_dev_close() that it should also\n-\t * release the private port resources.\n-\t */\n-\teth_dev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n \n \tif (rte_atomic16_read(&hns->hw.reset.schedule) == SCHEDULE_PENDING) {\n \t\thns3_err(hw, \"Reschedule reset service after dev_init\");\ndiff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c\nindex 804f0128ab..6fb88148b8 100644\n--- a/drivers/net/i40e/i40e_ethdev.c\n+++ b/drivers/net/i40e/i40e_ethdev.c\n@@ -1699,11 +1699,6 @@ eth_i40e_dev_init(struct rte_eth_dev *dev, void *init_params __rte_unused)\n \trte_ether_addr_copy((struct rte_ether_addr *)hw->mac.perm_addr,\n \t\t\t\t\t&dev->data->mac_addrs[0]);\n \n-\t/* Pass the information to the rte_eth_dev_close() that it should also\n-\t * release the private port resources.\n-\t */\n-\tdev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n-\n \t/* Init dcb to sw mode by default */\n \tret = i40e_dcb_init_configure(dev, TRUE);\n \tif (ret != I40E_SUCCESS) {\ndiff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c\nindex 61aad8c415..4aaf41956c 100644\n--- a/drivers/net/i40e/i40e_ethdev_vf.c\n+++ b/drivers/net/i40e/i40e_ethdev_vf.c\n@@ -1586,11 +1586,6 @@ i40evf_dev_init(struct rte_eth_dev *eth_dev)\n \thw->adapter_stopped = 1;\n \thw->adapter_closed = 0;\n \n-\t/* Pass the information to the rte_eth_dev_close() that it should also\n-\t * release the private port resources.\n-\t */\n-\teth_dev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n-\n \tif(i40evf_init_vf(eth_dev) != 0) {\n \t\tPMD_INIT_LOG(ERR, \"Init vf failed\");\n \t\treturn -1;\ndiff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c\nindex 8f46c4588f..512ade2ad0 100644\n--- a/drivers/net/iavf/iavf_ethdev.c\n+++ b/drivers/net/iavf/iavf_ethdev.c\n@@ -1412,11 +1412,6 @@ iavf_dev_init(struct rte_eth_dev *eth_dev)\n \tadapter->eth_dev = eth_dev;\n \tadapter->stopped = 1;\n \n-\t/* Pass the information to the rte_eth_dev_close() that it should also\n-\t * release the private port resources.\n-\t */\n-\teth_dev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n-\n \tif (iavf_init_vf(eth_dev) != 0) {\n \t\tPMD_INIT_LOG(ERR, \"Init vf failed\");\n \t\treturn -1;\ndiff --git a/drivers/net/ice/ice_dcf_ethdev.c b/drivers/net/ice/ice_dcf_ethdev.c\nindex 5b626cb641..33dd0c44f2 100644\n--- a/drivers/net/ice/ice_dcf_ethdev.c\n+++ b/drivers/net/ice/ice_dcf_ethdev.c\n@@ -908,8 +908,6 @@ ice_dcf_dev_init(struct rte_eth_dev *eth_dev)\n \tif (rte_eal_process_type() != RTE_PROC_PRIMARY)\n \t\treturn 0;\n \n-\teth_dev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n-\n \tadapter->real_hw.vc_event_msg_cb = ice_dcf_handle_pf_event_msg;\n \tif (ice_dcf_init_hw(eth_dev, &adapter->real_hw) != 0) {\n \t\tPMD_INIT_LOG(ERR, \"Failed to init DCF hardware\");\ndiff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c\nindex b4ac5e3f81..85a3ca6a2d 100644\n--- a/drivers/net/ice/ice_ethdev.c\n+++ b/drivers/net/ice/ice_ethdev.c\n@@ -2245,11 +2245,6 @@ ice_dev_init(struct rte_eth_dev *dev)\n \t\tgoto err_init_mac;\n \t}\n \n-\t/* Pass the information to the rte_eth_dev_close() that it should also\n-\t * release the private port resources.\n-\t */\n-\tdev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n-\n \tret = ice_res_pool_init(&pf->msix_pool, 1,\n \t\t\t\thw->func_caps.common_cap.num_msix_vectors - 1);\n \tif (ret) {\ndiff --git a/drivers/net/igc/igc_ethdev.c b/drivers/net/igc/igc_ethdev.c\nindex 11397c5c1d..9d27fc0d07 100644\n--- a/drivers/net/igc/igc_ethdev.c\n+++ b/drivers/net/igc/igc_ethdev.c\n@@ -1323,11 +1323,6 @@ eth_igc_dev_init(struct rte_eth_dev *dev)\n \t\tgoto err_late;\n \t}\n \n-\t/* Pass the information to the rte_eth_dev_close() that it should also\n-\t * release the private port resources.\n-\t */\n-\tdev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n-\n \thw->mac.get_link_status = 1;\n \tigc->stopped = 0;\n \ndiff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c\nindex 5a863ca4bf..600e9d6928 100644\n--- a/drivers/net/ixgbe/ixgbe_ethdev.c\n+++ b/drivers/net/ixgbe/ixgbe_ethdev.c\n@@ -1248,11 +1248,6 @@ eth_ixgbe_dev_init(struct rte_eth_dev *eth_dev, void *init_params __rte_unused)\n \t\treturn -ENOMEM;\n \t}\n \n-\t/* Pass the information to the rte_eth_dev_close() that it should also\n-\t * release the private port resources.\n-\t */\n-\teth_dev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n-\n \t/* initialize the vfta */\n \tmemset(shadow_vfta, 0, sizeof(*shadow_vfta));\n \n@@ -1663,11 +1658,6 @@ eth_ixgbevf_dev_init(struct rte_eth_dev *eth_dev)\n \t\treturn -ENOMEM;\n \t}\n \n-\t/* Pass the information to the rte_eth_dev_close() that it should also\n-\t * release the private port resources.\n-\t */\n-\teth_dev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n-\n \t/* Generate a random MAC address, if none was assigned by PF. */\n \tif (rte_is_zero_ether_addr(perm_addr)) {\n \t\tgenerate_random_mac_addr(perm_addr);\ndiff --git a/drivers/net/kni/rte_eth_kni.c b/drivers/net/kni/rte_eth_kni.c\nindex aa365a57de..45ab1b17a8 100644\n--- a/drivers/net/kni/rte_eth_kni.c\n+++ b/drivers/net/kni/rte_eth_kni.c\n@@ -387,8 +387,6 @@ eth_kni_create(struct rte_vdev_device *vdev,\n \tdata->promiscuous = 1;\n \tdata->all_multicast = 1;\n \n-\tdata->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n-\n \trte_eth_random_addr(internals->eth_addr.addr_bytes);\n \n \teth_dev->dev_ops = &eth_kni_ops;\ndiff --git a/drivers/net/memif/rte_eth_memif.c b/drivers/net/memif/rte_eth_memif.c\nindex 1a2411c838..ff8a58081f 100644\n--- a/drivers/net/memif/rte_eth_memif.c\n+++ b/drivers/net/memif/rte_eth_memif.c\n@@ -1527,9 +1527,6 @@ memif_create(struct rte_vdev_device *vdev, enum memif_role_t role,\n \t\teth_dev->tx_pkt_burst = eth_memif_tx;\n \t}\n \n-\n-\teth_dev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n-\n \trte_eth_dev_probing_finish(eth_dev);\n \n \treturn 0;\ndiff --git a/drivers/net/mlx4/mlx4.c b/drivers/net/mlx4/mlx4.c\nindex ad7c805d67..3e57875414 100644\n--- a/drivers/net/mlx4/mlx4.c\n+++ b/drivers/net/mlx4/mlx4.c\n@@ -1027,7 +1027,6 @@ mlx4_pci_probe(struct rte_pci_driver *pci_drv, struct rte_pci_device *pci_dev)\n \t\t\tERROR(\"can not allocate rte ethdev\");\n \t\t\tgoto port_error;\n \t\t}\n-\t\teth_dev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n \t\teth_dev->data->dev_private = priv;\n \t\teth_dev->data->mac_addrs = priv->mac;\n \t\teth_dev->device = &pci_dev->device;\ndiff --git a/drivers/net/mlx5/linux/mlx5_os.c b/drivers/net/mlx5/linux/mlx5_os.c\nindex 0511a55a28..8e498314ef 100644\n--- a/drivers/net/mlx5/linux/mlx5_os.c\n+++ b/drivers/net/mlx5/linux/mlx5_os.c\n@@ -1155,8 +1155,6 @@ mlx5_dev_spawn(struct rte_device *dpdk_dev,\n \t\terr = ENOMEM;\n \t\tgoto error;\n \t}\n-\t/* Flag to call rte_eth_dev_release_port() in rte_eth_dev_close(). */\n-\teth_dev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n \tif (priv->representor) {\n \t\teth_dev->data->dev_flags |= RTE_ETH_DEV_REPRESENTOR;\n \t\teth_dev->data->representor_id = priv->representor_id;\ndiff --git a/drivers/net/mvneta/mvneta_ethdev.c b/drivers/net/mvneta/mvneta_ethdev.c\nindex eebcdb840e..db142bec23 100644\n--- a/drivers/net/mvneta/mvneta_ethdev.c\n+++ b/drivers/net/mvneta/mvneta_ethdev.c\n@@ -834,9 +834,6 @@ mvneta_eth_dev_create(struct rte_vdev_device *vdev, const char *name)\n \tmvneta_set_tx_function(eth_dev);\n \teth_dev->dev_ops = &mvneta_ops;\n \n-\t/* Flag to call rte_eth_dev_release_port() in rte_eth_dev_close(). */\n-\teth_dev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n-\n \trte_eth_dev_probing_finish(eth_dev);\n \treturn 0;\n out_free:\ndiff --git a/drivers/net/mvpp2/mrvl_ethdev.c b/drivers/net/mvpp2/mrvl_ethdev.c\nindex 27f7cfb056..cfb97e4f8f 100644\n--- a/drivers/net/mvpp2/mrvl_ethdev.c\n+++ b/drivers/net/mvpp2/mrvl_ethdev.c\n@@ -2863,9 +2863,6 @@ mrvl_eth_dev_create(struct rte_vdev_device *vdev, const char *name)\n \tmrvl_set_tx_function(eth_dev);\n \teth_dev->dev_ops = &mrvl_ops;\n \n-\t/* Flag to call rte_eth_dev_release_port() in rte_eth_dev_close(). */\n-\teth_dev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n-\n \trte_eth_dev_probing_finish(eth_dev);\n \treturn 0;\n out_free:\ndiff --git a/drivers/net/netvsc/hn_ethdev.c b/drivers/net/netvsc/hn_ethdev.c\nindex 8968036ea3..15d6e9762d 100644\n--- a/drivers/net/netvsc/hn_ethdev.c\n+++ b/drivers/net/netvsc/hn_ethdev.c\n@@ -123,9 +123,6 @@ eth_dev_vmbus_allocate(struct rte_vmbus_device *dev, size_t private_data_size)\n \teth_dev->data->dev_flags |= RTE_ETH_DEV_INTR_LSC;\n \teth_dev->intr_handle = &dev->intr_handle;\n \n-\t/* allow ethdev to remove on close */\n-\teth_dev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n-\n \treturn eth_dev;\n }\n \ndiff --git a/drivers/net/nfb/nfb_ethdev.c b/drivers/net/nfb/nfb_ethdev.c\nindex c3c3d003f1..d937ac6922 100644\n--- a/drivers/net/nfb/nfb_ethdev.c\n+++ b/drivers/net/nfb/nfb_ethdev.c\n@@ -457,9 +457,6 @@ nfb_eth_dev_init(struct rte_eth_dev *dev)\n \t\trte_kvargs_free(kvlist);\n \t}\n \n-\t/* Let rte_eth_dev_close() release the port resources */\n-\tdev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n-\n \t/*\n \t * Get number of available DMA RX and TX queues, which is maximum\n \t * number of queues that can be created and store it in private device\ndiff --git a/drivers/net/null/rte_eth_null.c b/drivers/net/null/rte_eth_null.c\nindex 84c1d0c951..7c3c76a897 100644\n--- a/drivers/net/null/rte_eth_null.c\n+++ b/drivers/net/null/rte_eth_null.c\n@@ -548,7 +548,6 @@ eth_dev_null_create(struct rte_vdev_device *dev, struct pmd_options *args)\n \tdata->mac_addrs = &internals->eth_addr;\n \tdata->promiscuous = 1;\n \tdata->all_multicast = 1;\n-\tdata->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n \n \teth_dev->dev_ops = &ops;\n \ndiff --git a/drivers/net/octeontx/octeontx_ethdev.c b/drivers/net/octeontx/octeontx_ethdev.c\nindex 48ce3e1621..a263f45399 100644\n--- a/drivers/net/octeontx/octeontx_ethdev.c\n+++ b/drivers/net/octeontx/octeontx_ethdev.c\n@@ -1374,7 +1374,6 @@ octeontx_create(struct rte_vdev_device *dev, int port, uint8_t evdev,\n \tdata->promiscuous = 0;\n \tdata->all_multicast = 0;\n \tdata->scattered_rx = 0;\n-\tdata->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n \n \t/* Get maximum number of supported MAC entries */\n \tmax_entries = octeontx_bgx_port_mac_entries_get(nic->port_id);\ndiff --git a/drivers/net/octeontx2/otx2_ethdev.c b/drivers/net/octeontx2/otx2_ethdev.c\nindex abe5f03628..581ac89381 100644\n--- a/drivers/net/octeontx2/otx2_ethdev.c\n+++ b/drivers/net/octeontx2/otx2_ethdev.c\n@@ -2394,7 +2394,6 @@ otx2_eth_dev_init(struct rte_eth_dev *eth_dev)\n \tpci_dev = RTE_ETH_DEV_TO_PCI(eth_dev);\n \n \trte_eth_copy_pci_info(eth_dev, pci_dev);\n-\teth_dev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n \n \t/* Zero out everything after OTX2_DEV to allow proper dev_reset() */\n \tmemset(&dev->otx2_eth_dev_data_start, 0, sizeof(*dev) -\ndiff --git a/drivers/net/pcap/rte_eth_pcap.c b/drivers/net/pcap/rte_eth_pcap.c\nindex 909eef8cce..da4988064a 100644\n--- a/drivers/net/pcap/rte_eth_pcap.c\n+++ b/drivers/net/pcap/rte_eth_pcap.c\n@@ -1334,7 +1334,6 @@ eth_from_pcaps(struct rte_vdev_device *vdev,\n \telse\n \t\teth_dev->tx_pkt_burst = eth_tx_drop;\n \n-\teth_dev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n \trte_eth_dev_probing_finish(eth_dev);\n \treturn 0;\n }\ndiff --git a/drivers/net/pfe/pfe_ethdev.c b/drivers/net/pfe/pfe_ethdev.c\nindex 55f2fea4b2..bb2ae0df34 100644\n--- a/drivers/net/pfe/pfe_ethdev.c\n+++ b/drivers/net/pfe/pfe_ethdev.c\n@@ -846,8 +846,6 @@ pfe_eth_init(struct rte_vdev_device *vdev, struct pfe *pfe, int id)\n \teth_dev->data->nb_rx_queues = 1;\n \teth_dev->data->nb_tx_queues = 1;\n \n-\teth_dev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n-\n \t/* For link status, open the PFE CDEV; Error from this function\n \t * is silently ignored; In case of error, the link status will not\n \t * be available.\ndiff --git a/drivers/net/qede/qede_ethdev.c b/drivers/net/qede/qede_ethdev.c\nindex 43fe68c2bf..cd578709fb 100644\n--- a/drivers/net/qede/qede_ethdev.c\n+++ b/drivers/net/qede/qede_ethdev.c\n@@ -2711,11 +2711,6 @@ static int qede_common_dev_init(struct rte_eth_dev *eth_dev, bool is_vf)\n \t\tadapter->ipgre.enable = false;\n \t}\n \n-\t/* Pass the information to the rte_eth_dev_close() that it should also\n-\t * release the private port resources.\n-\t */\n-\teth_dev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n-\n \tDP_INFO(edev, \"MAC address : %02x:%02x:%02x:%02x:%02x:%02x\\n\",\n \t\tadapter->primary_mac.addr_bytes[0],\n \t\tadapter->primary_mac.addr_bytes[1],\ndiff --git a/drivers/net/ring/rte_eth_ring.c b/drivers/net/ring/rte_eth_ring.c\nindex ed0fdeb28f..12046f5a00 100644\n--- a/drivers/net/ring/rte_eth_ring.c\n+++ b/drivers/net/ring/rte_eth_ring.c\n@@ -358,7 +358,6 @@ do_eth_dev_ring_create(const char *name,\n \n \teth_dev->dev_ops = &ops;\n \tdata->numa_node = numa_node;\n-\tdata->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n \n \t/* finally assign rx and tx ops */\n \teth_dev->rx_pkt_burst = eth_ring_rx;\ndiff --git a/drivers/net/sfc/sfc_ethdev.c b/drivers/net/sfc/sfc_ethdev.c\nindex eaa48627d6..1c72e40b75 100644\n--- a/drivers/net/sfc/sfc_ethdev.c\n+++ b/drivers/net/sfc/sfc_ethdev.c\n@@ -343,7 +343,7 @@ sfc_dev_close(struct rte_eth_dev *dev)\n \t}\n \n \t/*\n-\t * Cleanup all resources in accordance with RTE_ETH_DEV_CLOSE_REMOVE.\n+\t * Cleanup all resources.\n \t * Rollback primary process sfc_eth_dev_init() below.\n \t */\n \n@@ -2179,8 +2179,6 @@ sfc_eth_dev_init(struct rte_eth_dev *dev)\n \n \tsfc_log_init(sa, \"entry\");\n \n-\tdev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n-\n \tdev->data->mac_addrs = rte_zmalloc(\"sfc\", RTE_ETHER_ADDR_LEN, 0);\n \tif (dev->data->mac_addrs == NULL) {\n \t\trc = ENOMEM;\ndiff --git a/drivers/net/softnic/rte_eth_softnic.c b/drivers/net/softnic/rte_eth_softnic.c\nindex ad9e2aa86d..e942df78b6 100644\n--- a/drivers/net/softnic/rte_eth_softnic.c\n+++ b/drivers/net/softnic/rte_eth_softnic.c\n@@ -390,7 +390,6 @@ pmd_ethdev_register(struct rte_vdev_device *vdev,\n \tdev->device = &vdev->device;\n \n \t/* dev->data */\n-\tdev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n \tdev->data->dev_private = dev_private;\n \tdev->data->dev_link.link_speed = ETH_SPEED_NUM_100G;\n \tdev->data->dev_link.link_duplex = ETH_LINK_FULL_DUPLEX;\ndiff --git a/drivers/net/szedata2/rte_eth_szedata2.c b/drivers/net/szedata2/rte_eth_szedata2.c\nindex daa40cfd6c..4325b9a30d 100644\n--- a/drivers/net/szedata2/rte_eth_szedata2.c\n+++ b/drivers/net/szedata2/rte_eth_szedata2.c\n@@ -1488,9 +1488,6 @@ rte_szedata2_eth_dev_init(struct rte_eth_dev *dev, struct port_info *pi)\n \tPMD_INIT_LOG(INFO, \"Initializing eth_dev %s (driver %s)\", data->name,\n \t\t\tRTE_STR(RTE_SZEDATA2_DRIVER_NAME));\n \n-\t/* Let rte_eth_dev_close() release the port resources */\n-\tdev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n-\n \t/* Fill internal private structure. */\n \tinternals->dev = dev;\n \t/* Get index of szedata2 device file and create path to device file */\ndiff --git a/drivers/net/tap/rte_eth_tap.c b/drivers/net/tap/rte_eth_tap.c\nindex 0d217f1486..b127ce62dc 100644\n--- a/drivers/net/tap/rte_eth_tap.c\n+++ b/drivers/net/tap/rte_eth_tap.c\n@@ -1922,7 +1922,7 @@ eth_dev_tap_create(struct rte_vdev_device *vdev, const char *tap_name,\n \t/* Setup some default values */\n \tdata = dev->data;\n \tdata->dev_private = pmd;\n-\tdata->dev_flags = RTE_ETH_DEV_INTR_LSC | RTE_ETH_DEV_CLOSE_REMOVE;\n+\tdata->dev_flags = RTE_ETH_DEV_INTR_LSC;\n \tdata->numa_node = numa_node;\n \n \tdata->dev_link = pmd_link;\ndiff --git a/drivers/net/vhost/rte_eth_vhost.c b/drivers/net/vhost/rte_eth_vhost.c\nindex f67f4db812..45552ef742 100644\n--- a/drivers/net/vhost/rte_eth_vhost.c\n+++ b/drivers/net/vhost/rte_eth_vhost.c\n@@ -1443,7 +1443,7 @@ eth_dev_vhost_create(struct rte_vdev_device *dev, char *iface_name,\n \tinternal->flags = flags;\n \tinternal->disable_flags = disable_flags;\n \tdata->dev_link = pmd_link;\n-\tdata->dev_flags = RTE_ETH_DEV_INTR_LSC | RTE_ETH_DEV_CLOSE_REMOVE;\n+\tdata->dev_flags = RTE_ETH_DEV_INTR_LSC;\n \tdata->promiscuous = 1;\n \tdata->all_multicast = 1;\n \ndiff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c\nindex 0787337a01..b6ed5829bd 100644\n--- a/drivers/net/virtio/virtio_ethdev.c\n+++ b/drivers/net/virtio/virtio_ethdev.c\n@@ -1924,11 +1924,6 @@ eth_virtio_dev_init(struct rte_eth_dev *eth_dev)\n \tif (ret < 0)\n \t\treturn ret;\n \thw->speed = speed;\n-\t/*\n-\t * Pass the information to the rte_eth_dev_close() that it should also\n-\t * release the private port resources.\n-\t */\n-\teth_dev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n \n \t/* Allocate memory for storing MAC addresses */\n \teth_dev->data->mac_addrs = rte_zmalloc(\"virtio\",\ndiff --git a/drivers/net/vmxnet3/vmxnet3_ethdev.c b/drivers/net/vmxnet3/vmxnet3_ethdev.c\nindex 17fed0ed6e..34a169d2c0 100644\n--- a/drivers/net/vmxnet3/vmxnet3_ethdev.c\n+++ b/drivers/net/vmxnet3/vmxnet3_ethdev.c\n@@ -321,9 +321,6 @@ eth_vmxnet3_dev_init(struct rte_eth_dev *eth_dev)\n \t\t     hw->perm_addr[0], hw->perm_addr[1], hw->perm_addr[2],\n \t\t     hw->perm_addr[3], hw->perm_addr[4], hw->perm_addr[5]);\n \n-\t/* Flag to call rte_eth_dev_release_port() in rte_eth_dev_close(). */\n-\teth_dev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;\n-\n \t/* Put device in Quiesce Mode */\n \tVMXNET3_WRITE_BAR1_REG(hw, VMXNET3_REG_CMD, VMXNET3_CMD_QUIESCE_DEV);\n \ndiff --git a/lib/librte_ethdev/rte_ethdev.c b/lib/librte_ethdev/rte_ethdev.c\nindex d12d74dd8c..d7668114ca 100644\n--- a/lib/librte_ethdev/rte_ethdev.c\n+++ b/lib/librte_ethdev/rte_ethdev.c\n@@ -1720,22 +1720,7 @@ rte_eth_dev_close(uint16_t port_id)\n \t(*dev->dev_ops->dev_close)(dev);\n \n \trte_ethdev_trace_close(port_id);\n-\t/* check behaviour flag - temporary for PMD migration */\n-\tif ((dev->data->dev_flags & RTE_ETH_DEV_CLOSE_REMOVE) != 0) {\n-\t\t/* new behaviour: send event + reset state + free all data */\n-\t\trte_eth_dev_release_port(dev);\n-\t\treturn;\n-\t}\n-\tRTE_ETHDEV_LOG(DEBUG, \"Port closing is using an old behaviour.\\n\"\n-\t\t\t\"The driver %s should migrate to the new behaviour.\\n\",\n-\t\t\tdev->device->driver->name);\n-\t/* old behaviour: only free queue arrays */\n-\tdev->data->nb_rx_queues = 0;\n-\trte_free(dev->data->rx_queues);\n-\tdev->data->rx_queues = NULL;\n-\tdev->data->nb_tx_queues = 0;\n-\trte_free(dev->data->tx_queues);\n-\tdev->data->tx_queues = NULL;\n+\trte_eth_dev_release_port(dev);\n }\n \n int\ndiff --git a/lib/librte_ethdev/rte_ethdev.h b/lib/librte_ethdev/rte_ethdev.h\nindex 645a18664d..24d898ae89 100644\n--- a/lib/librte_ethdev/rte_ethdev.h\n+++ b/lib/librte_ethdev/rte_ethdev.h\n@@ -1654,11 +1654,6 @@ struct rte_eth_dev_owner {\n \tchar name[RTE_ETH_MAX_OWNER_NAME_LEN]; /**< The owner name. */\n };\n \n-/**\n- * Port is released (i.e. totally freed and data erased) on close.\n- * Temporary flag for PMD migration to new rte_eth_dev_close() behaviour.\n- */\n-#define RTE_ETH_DEV_CLOSE_REMOVE 0x0001\n /** Device supports link state interrupt */\n #define RTE_ETH_DEV_INTR_LSC     0x0002\n /** Device is a bonded slave */\n@@ -2282,8 +2277,7 @@ int rte_eth_dev_set_link_down(uint16_t port_id);\n \n /**\n  * Close a stopped Ethernet device. The device cannot be restarted!\n- * The function frees all port resources if the driver supports\n- * the flag RTE_ETH_DEV_CLOSE_REMOVE.\n+ * The function frees all port resources.\n  *\n  * @param port_id\n  *   The port identifier of the Ethernet device.\n",
    "prefixes": [
        "v3",
        "21/29"
    ]
}