List comments

GET /api/patches/73524/comments/
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

[
    {
        "id": 115533,
        "web_url": "https://patches.dpdk.org/comment/115533/",
        "msgid": "<CAOFC0T2ZPONkjU4oUDmDXEJNQWoW=q5BcB0c7OfxGLg=xZP4iA@mail.gmail.com>",
        "date": "2020-07-08T14:11:25",
        "subject": "Re: [dpdk-dev] [PATCH] EAL: Called remove() of drivers for vdev and\n\tpci buses",
        "submitter": {
            "id": 1639,
            "url": "https://patches.dpdk.org/api/people/1639/",
            "name": "Muhammad Bilal",
            "email": "m.bilal@emumba.com"
        },
        "content": "On Wed, Jul 8, 2020 at 5:04 PM Muhammad Bilal <m.bilal@emumba.com> wrote:\n>\n> while using memif with app, the resources are not cleaned on exit,\n> So an error occurred on running it second time. The cause of this problem\n> is that remove() of memif driver is not called by rte_eal_cleanup() which\n> is counterpart of probe() called from rte_eal_init(). This is a case for\n> all other divers e.g pci, so to solve this problem I have added the\n> functionality of calling remove() function of all the driver attached to\n> devices on vdev and pci buses.\n>\nLittle correction\nBugzilla ID: 437\n> Bugzilla ID: 353\n> Signed-off-by: Muhammad Bilal <m.bilal@emumba.com>\n> ---\n>  drivers/bus/pci/pci_common.c           | 23 +++++++++++++++++++++++\n>  drivers/bus/vdev/vdev.c                | 19 ++++++++++++++++++-\n>  lib/librte_eal/common/eal_common_bus.c | 18 ++++++++++++++++++\n>  lib/librte_eal/include/rte_bus.h       | 23 +++++++++++++++++++++++\n>  lib/librte_eal/linux/eal.c             |  2 ++\n>  5 files changed, 84 insertions(+), 1 deletion(-)\n>\n> diff --git a/drivers/bus/pci/pci_common.c b/drivers/bus/pci/pci_common.c\n> index 245d94f59..203b32a23 100644\n> --- a/drivers/bus/pci/pci_common.c\n> +++ b/drivers/bus/pci/pci_common.c\n> @@ -320,6 +320,28 @@ pci_probe(void)\n>         return (probed && probed == failed) ? -1 : 0;\n>  }\n>\n> +/*\n> + * Scan the content of the PCI bus, and call the remove() function for\n> + * all registered drivers of devices that have already been probed.\n> + */\n> +static int\n> +pci_remove(void)\n> +{\n> +       struct rte_pci_device *dev = NULL;\n> +       int ret = 0;\n> +\n> +       FOREACH_DEVICE_ON_PCIBUS(dev) {\n> +               if (rte_dev_is_probed(&dev->device))\n> +                       if (rte_pci_detach_dev(dev) != 0) {\n> +                               RTE_LOG(INFO, EAL,\n> +                                       \"failed to detach driver form %s\\n\",\n> +                                       dev->device.name);\n> +                               ret = -1;\n> +                       }\n> +       }\n> +       return ret;\n> +}\n> +\n>  /* dump one device */\n>  static int\n>  pci_dump_one_device(FILE *f, struct rte_pci_device *dev)\n> @@ -669,6 +691,7 @@ struct rte_pci_bus rte_pci_bus = {\n>         .bus = {\n>                 .scan = rte_pci_scan,\n>                 .probe = pci_probe,\n> +               .remove = pci_remove,\n>                 .find_device = pci_find_device,\n>                 .plug = pci_plug,\n>                 .unplug = pci_unplug,\n> diff --git a/drivers/bus/vdev/vdev.c b/drivers/bus/vdev/vdev.c\n> index a89ea2353..692c936b9 100644\n> --- a/drivers/bus/vdev/vdev.c\n> +++ b/drivers/bus/vdev/vdev.c\n> @@ -546,6 +546,22 @@ vdev_unplug(struct rte_device *dev)\n>         return rte_vdev_uninit(dev->name);\n>  }\n>\n> +static int\n> +vdev_remove(void)\n> +{\n> +       struct rte_vdev_device *dev;\n> +       int ret = 0;\n> +\n> +       TAILQ_FOREACH(dev, &vdev_device_list, next) {\n> +               if (vdev_remove_driver(dev) != 0) {\n> +                       VDEV_LOG(INFO, \"driver of %s is not removed\\n\",\n> +                               dev->device.name);\n> +                       ret = -1;\n> +               }\n> +       }\n> +       return ret;\n> +}\n> +\n>  static struct rte_bus rte_vdev_bus = {\n>         .scan = vdev_scan,\n>         .probe = vdev_probe,\n> @@ -554,7 +570,8 @@ static struct rte_bus rte_vdev_bus = {\n>         .unplug = vdev_unplug,\n>         .parse = vdev_parse,\n>         .dev_iterate = rte_vdev_dev_iterate,\n> -};\n> +       .remove = vdev_remove,\n> +       };\n>\n>  RTE_REGISTER_BUS(vdev, rte_vdev_bus);\n>\n> diff --git a/lib/librte_eal/common/eal_common_bus.c b/lib/librte_eal/common/eal_common_bus.c\n> index baa5b532a..bff95a0ae 100644\n> --- a/lib/librte_eal/common/eal_common_bus.c\n> +++ b/lib/librte_eal/common/eal_common_bus.c\n> @@ -85,6 +85,24 @@ rte_bus_probe(void)\n>         return 0;\n>  }\n>\n> +/* Remove all devices of all buses */\n> +int\n> +rte_bus_remove(void)\n> +{\n> +       int ret;\n> +       struct rte_bus *bus;\n> +\n> +       TAILQ_FOREACH(bus, &rte_bus_list, next) {\n> +               if (!strcmp(bus->name, \"vdev\") || !strcmp(bus->name, \"pci\")) {\n> +                       ret = bus->remove();\n> +                       if (ret)\n> +                               RTE_LOG(INFO, EAL, \"Bus (%s) remove failed.\\n\",\n> +                                       bus->name);\n> +               }\n> +       }\n> +       return 0;\n> +}\n> +\n>  /* Dump information of a single bus */\n>  static int\n>  bus_dump_one(FILE *f, struct rte_bus *bus)\n> diff --git a/lib/librte_eal/include/rte_bus.h b/lib/librte_eal/include/rte_bus.h\n> index d3034d0ed..c3e7e62c9 100644\n> --- a/lib/librte_eal/include/rte_bus.h\n> +++ b/lib/librte_eal/include/rte_bus.h\n> @@ -67,6 +67,18 @@ typedef int (*rte_bus_scan_t)(void);\n>   */\n>  typedef int (*rte_bus_probe_t)(void);\n>\n> +/**\n> + * Implementation specific remove function which is responsible for unlinking\n> + * devices on that bus from attached drivers.\n> + *\n> + * This is called while iterating over each registered bus.\n> + *\n> + * @return\n> + *     0 for successful remove\n> + *     !0 for any error while removing\n> + */\n> +typedef int (*rte_bus_remove_t)(void);\n> +\n>  /**\n>   * Device iterator to find a device on a bus.\n>   *\n> @@ -248,6 +260,7 @@ struct rte_bus {\n>         const char *name;            /**< Name of the bus */\n>         rte_bus_scan_t scan;         /**< Scan for devices attached to bus */\n>         rte_bus_probe_t probe;       /**< Probe devices on bus */\n> +       rte_bus_remove_t remove;         /**< remove device on bus */\n>         rte_bus_find_device_t find_device; /**< Find a device on the bus */\n>         rte_bus_plug_t plug;         /**< Probe single device for drivers */\n>         rte_bus_unplug_t unplug;     /**< Remove single device from driver */\n> @@ -301,6 +314,16 @@ int rte_bus_scan(void);\n>   */\n>  int rte_bus_probe(void);\n>\n> +/**\n> + * For each device on the buses,call the driver-specific remove\n> + * for device uninitialization.\n> + *\n> + * @return\n> + *      0 for successful match/probe\n> + *     !0 otherwise\n> + */\n> +int rte_bus_remove(void);\n> +\n>  /**\n>   * Dump information of all the buses registered with EAL.\n>   *\n> diff --git a/lib/librte_eal/linux/eal.c b/lib/librte_eal/linux/eal.c\n> index f162124a3..89a03d3bb 100644\n> --- a/lib/librte_eal/linux/eal.c\n> +++ b/lib/librte_eal/linux/eal.c\n> @@ -1330,6 +1330,8 @@ mark_freeable(const struct rte_memseg_list *msl, const struct rte_memseg *ms,\n>  int\n>  rte_eal_cleanup(void)\n>  {\n> +       /* Remove devices/drivers from all buses */\n> +       rte_bus_remove();\n>         /* if we're in a primary process, we need to mark hugepages as freeable\n>          * so that finalization can release them back to the system.\n>          */\n> --\n> 2.25.1\n>",
        "headers": {
            "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
            "Return-Path": "<dev-bounces@dpdk.org>",
            "To": "ferruh.yigit@intel.com, anatoly.burakov@intel.com",
            "X-Google-Smtp-Source": "\n ABdhPJz6aPauhTQGhzxu6Rh4mKZtO4YC+UTwFzqWKvByluzoAyd9YS7VLMlKthiW57je0j38VDVLVLWQGCxIv6afet4=",
            "X-Gm-Message-State": "AOAM530kJFdZzqa09wKxrCSW+36meO2sGksXhKEc83kzl6tE52tZO/ND\n k8Si06H5OxYRZ15gEvI6yRaBeYHpnrRfaKRE5rNzxw==",
            "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=emumba-com.20150623.gappssmtp.com; s=20150623;\n h=mime-version:references:in-reply-to:from:date:message-id:subject:to\n :cc; bh=t1wRYBVuCVz0N2L6bOD6n4ucwUQA+JlIQj8guXGAhuQ=;\n b=Y8U8AnT/BN10Dx9pOwKYgJpPzjCNVnep3y4QOW/XC5r341vFKV2vJEA7uXsF+b1Ism\n tJ7m8J8s55mHS9fRHpJrmGQH0xquOEBwkLE9hVDTsD9tIJfQCoh5Ei3gFzCtmEOd2psN\n a6ZSazyabNy5ewkxtarCXegnkBqNCA6waAqGi2xuknVONXDp/2X4GkIGf8qKwz28n1PS\n pTtwSNzLIISL+tI0ncrsxEwbbBE5NMQ121H+z03k8UPA1lDGJ0zBLNym5mdkZIoWxl9U\n T/ZcqiVBQ68PxYm1lR6T764C1haRX+lfidrbFNpMnksOEpyAW101BYii+MxROJ8gTxJo\n jvIg==",
            "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
            "Message-ID": "\n <CAOFC0T2ZPONkjU4oUDmDXEJNQWoW=q5BcB0c7OfxGLg=xZP4iA@mail.gmail.com>",
            "X-BeenThere": "dev@dpdk.org",
            "Received": [
                "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id A377DA0526;\n\tWed,  8 Jul 2020 16:11:38 +0200 (CEST)",
                "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 846721DF90;\n\tWed,  8 Jul 2020 16:11:38 +0200 (CEST)",
                "from mail-io1-f68.google.com (mail-io1-f68.google.com\n [209.85.166.68]) by dpdk.org (Postfix) with ESMTP id 6D4811DB08\n for <dev@dpdk.org>; Wed,  8 Jul 2020 16:11:37 +0200 (CEST)",
                "by mail-io1-f68.google.com with SMTP id q74so23560995iod.1\n for <dev@dpdk.org>; Wed, 08 Jul 2020 07:11:37 -0700 (PDT)"
            ],
            "Subject": "Re: [dpdk-dev] [PATCH] EAL: Called remove() of drivers for vdev and\n\tpci buses",
            "Cc": "vipin.varghese@intel.com, jgrajcia@cisco.com, jerinj@marvell.com,\n dev@dpdk.org, stable@dpdk.org",
            "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-Post": "<mailto:dev@dpdk.org>",
            "In-Reply-To": "<20200708120329.103200-1-m.bilal@emumba.com>",
            "Precedence": "list",
            "From": "Muhammad Bilal <m.bilal@emumba.com>",
            "X-Received": "by 2002:a05:6602:134d:: with SMTP id\n i13mr38207243iov.113.1594217496640;\n Wed, 08 Jul 2020 07:11:36 -0700 (PDT)",
            "MIME-Version": "1.0",
            "References": "<20200708120329.103200-1-m.bilal@emumba.com>",
            "X-Original-To": "patchwork@inbox.dpdk.org",
            "Sender": "\"dev\" <dev-bounces@dpdk.org>",
            "Errors-To": "dev-bounces@dpdk.org",
            "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
            "Content-Type": "text/plain; charset=\"UTF-8\"",
            "Delivered-To": "patchwork@inbox.dpdk.org",
            "Date": "Wed, 8 Jul 2020 19:11:25 +0500",
            "X-Mailman-Version": "2.1.15",
            "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20161025;\n h=x-gm-message-state:mime-version:references:in-reply-to:from:date\n :message-id:subject:to:cc;\n bh=t1wRYBVuCVz0N2L6bOD6n4ucwUQA+JlIQj8guXGAhuQ=;\n b=oSubDvt6RDyXKYvRYvQg8aEGNa9JyPx29drVxh4n/eBLr2hEEmiMvPZlskFyZqiuFO\n +ZkJIlJij/G4BT3RQg/5G+6mqsXrrMjrfYU0j9xsNSj1+DsQatquiV2dt/OxiNsIy6MP\n HzjugGFJ5hO9Om3AVmxc6DKA9lZm/39J/9+KAIuQ5VTX0fs3nUBR39EEUI9oRJ3uAfb2\n CnIMux5/YH7owGmbqkP6JmK2w7i3kXp6/5ZxDpRUx7MSzHatNJcd4CtrF3moKekB344+\n Fm2RiqPkUFU1i0dYhU6aNx/cDf6HQpfknvxp8LpLiuCs5CI73XerYL81QhtW0qpI45rE\n U59g=="
        }
    },
    {
        "id": 118524,
        "web_url": "https://patches.dpdk.org/comment/118524/",
        "msgid": "<20200912195337.734ez2cumf6x7hxp@u256.net>",
        "date": "2020-09-12T19:53:37",
        "subject": "Re: [dpdk-dev] [PATCH] EAL: Called remove() of drivers for vdev and\n pci buses",
        "submitter": {
            "id": 1560,
            "url": "https://patches.dpdk.org/api/people/1560/",
            "name": "Gaëtan Rivet",
            "email": "grive@u256.net"
        },
        "content": "On 08/07/20 17:03 +0500, Muhammad Bilal wrote:\n> while using memif with app, the resources are not cleaned on exit,\n> So an error occurred on running it second time. The cause of this problem\n> is that remove() of memif driver is not called by rte_eal_cleanup() which\n> is counterpart of probe() called from rte_eal_init(). This is a case for\n> all other divers e.g pci, so to solve this problem I have added the\n> functionality of calling remove() function of all the driver attached to\n> devices on vdev and pci buses.\n> \n\nHi Muhammad,\n\nreview inline.\n\n> Bugzilla ID: 353\n> Signed-off-by: Muhammad Bilal <m.bilal@emumba.com>\n> ---\n>  drivers/bus/pci/pci_common.c           | 23 +++++++++++++++++++++++\n>  drivers/bus/vdev/vdev.c                | 19 ++++++++++++++++++-\n>  lib/librte_eal/common/eal_common_bus.c | 18 ++++++++++++++++++\n>  lib/librte_eal/include/rte_bus.h       | 23 +++++++++++++++++++++++\n>  lib/librte_eal/linux/eal.c             |  2 ++\n>  5 files changed, 84 insertions(+), 1 deletion(-)\n> \n> diff --git a/drivers/bus/pci/pci_common.c b/drivers/bus/pci/pci_common.c\n> index 245d94f59..203b32a23 100644\n> --- a/drivers/bus/pci/pci_common.c\n> +++ b/drivers/bus/pci/pci_common.c\n> @@ -320,6 +320,28 @@ pci_probe(void)\n>  \treturn (probed && probed == failed) ? -1 : 0;\n>  }\n>  \n> +/*\n> + * Scan the content of the PCI bus, and call the remove() function for\n> + * all registered drivers of devices that have already been probed.\n> + */\n\nYou are not scanning the content of the PCI bus here.\nThe PCI bus referred in this comment is the actual, physical one.\nIt is only scanned during rte_pci_scan.\n\nYou are iterating registered PCI devices and removing them.\n\n> +static int\n> +pci_remove(void)\n> +{\n> +\tstruct rte_pci_device *dev = NULL;\n> +\tint ret = 0;\n> +\n> +\tFOREACH_DEVICE_ON_PCIBUS(dev) {\n> +\t\tif (rte_dev_is_probed(&dev->device))\n> +\t\t\tif (rte_pci_detach_dev(dev) != 0) {\n> +\t\t\t\tRTE_LOG(INFO, EAL,\n> +\t\t\t\t\t\"failed to detach driver form %s\\n\",\n\ns/form/from/\n\n> +\t\t\t\t\tdev->device.name);\n> +\t\t\t\tret = -1;\n> +\t\t\t}\n\nMemory is leaked from not freeing the rte_pci_device here.\nThe device iterator must be made safe (using TAILQ_FOREACH_SAFE)\nand the dev pointer removed from the list and freed.\n\nThere might be other resources still open.\n\n> +\t}\n> +\treturn ret;\n> +}\n> +\n>  /* dump one device */\n>  static int\n>  pci_dump_one_device(FILE *f, struct rte_pci_device *dev)\n> @@ -669,6 +691,7 @@ struct rte_pci_bus rte_pci_bus = {\n>  \t.bus = {\n>  \t\t.scan = rte_pci_scan,\n>  \t\t.probe = pci_probe,\n> +\t\t.remove = pci_remove,\n>  \t\t.find_device = pci_find_device,\n>  \t\t.plug = pci_plug,\n>  \t\t.unplug = pci_unplug,\n> diff --git a/drivers/bus/vdev/vdev.c b/drivers/bus/vdev/vdev.c\n> index a89ea2353..692c936b9 100644\n> --- a/drivers/bus/vdev/vdev.c\n> +++ b/drivers/bus/vdev/vdev.c\n> @@ -546,6 +546,22 @@ vdev_unplug(struct rte_device *dev)\n>  \treturn rte_vdev_uninit(dev->name);\n>  }\n>  \n> +static int\n> +vdev_remove(void)\n> +{\n> +\tstruct rte_vdev_device *dev;\n> +\tint ret = 0;\n> +\n> +\tTAILQ_FOREACH(dev, &vdev_device_list, next) {\n> +\t\tif (vdev_remove_driver(dev) != 0) {\n> +\t\t\tVDEV_LOG(INFO, \"driver of %s is not removed\\n\",\n> +\t\t\t\tdev->device.name);\n> +\t\t\tret = -1;\n> +\t\t}\n> +\t}\n\nSame as PCI bus, it should be made safe and the dev pointer removed\nfrom the TAILQ and freed as well.\n\n> +\treturn ret;\n> +}\n> +\n>  static struct rte_bus rte_vdev_bus = {\n>  \t.scan = vdev_scan,\n>  \t.probe = vdev_probe,\n> @@ -554,7 +570,8 @@ static struct rte_bus rte_vdev_bus = {\n>  \t.unplug = vdev_unplug,\n>  \t.parse = vdev_parse,\n>  \t.dev_iterate = rte_vdev_dev_iterate,\n> -};\n> +\t.remove = vdev_remove,\n> +\t};\n>  \n>  RTE_REGISTER_BUS(vdev, rte_vdev_bus);\n>  \n> diff --git a/lib/librte_eal/common/eal_common_bus.c b/lib/librte_eal/common/eal_common_bus.c\n> index baa5b532a..bff95a0ae 100644\n> --- a/lib/librte_eal/common/eal_common_bus.c\n> +++ b/lib/librte_eal/common/eal_common_bus.c\n> @@ -85,6 +85,24 @@ rte_bus_probe(void)\n>  \treturn 0;\n>  }\n>  \n> +/* Remove all devices of all buses */\n> +int\n> +rte_bus_remove(void)\n> +{\n> +\tint ret;\n> +\tstruct rte_bus *bus;\n> +\n> +\tTAILQ_FOREACH(bus, &rte_bus_list, next) {\n> +\t\tif (!strcmp(bus->name, \"vdev\") || !strcmp(bus->name, \"pci\")) {\n\nYou should only check that the bus sets the ops, not how the bus is named.\n\n> +\t\t\tret = bus->remove();\n> +\t\t\tif (ret)\n> +\t\t\t\tRTE_LOG(INFO, EAL, \"Bus (%s) remove failed.\\n\",\n> +\t\t\t\t\tbus->name);\n> +\t\t}\n> +\t}\n> +\treturn 0;\n> +}\n> +\n>  /* Dump information of a single bus */\n>  static int\n>  bus_dump_one(FILE *f, struct rte_bus *bus)\n> diff --git a/lib/librte_eal/include/rte_bus.h b/lib/librte_eal/include/rte_bus.h\n> index d3034d0ed..c3e7e62c9 100644\n> --- a/lib/librte_eal/include/rte_bus.h\n> +++ b/lib/librte_eal/include/rte_bus.h\n> @@ -67,6 +67,18 @@ typedef int (*rte_bus_scan_t)(void);\n>   */\n>  typedef int (*rte_bus_probe_t)(void);\n>  \n> +/**\n> + * Implementation specific remove function which is responsible for unlinking\n> + * devices on that bus from attached drivers.\n> + *\n> + * This is called while iterating over each registered bus.\n> + *\n> + * @return\n> + *\t0 for successful remove\n> + *\t!0 for any error while removing\n> + */\n> +typedef int (*rte_bus_remove_t)(void);\n> +\n>  /**\n>   * Device iterator to find a device on a bus.\n>   *\n> @@ -248,6 +260,7 @@ struct rte_bus {\n>  \tconst char *name;            /**< Name of the bus */\n>  \trte_bus_scan_t scan;         /**< Scan for devices attached to bus */\n>  \trte_bus_probe_t probe;       /**< Probe devices on bus */\n> +\trte_bus_remove_t remove;\t /**< remove device on bus */\n\nMissing capital R from 'remove', 'device' should be plural.\n'Remove devices from the bus' would read a bit better.\n\n>  \trte_bus_find_device_t find_device; /**< Find a device on the bus */\n>  \trte_bus_plug_t plug;         /**< Probe single device for drivers */\n>  \trte_bus_unplug_t unplug;     /**< Remove single device from driver */\n> @@ -301,6 +314,16 @@ int rte_bus_scan(void);\n>   */\n>  int rte_bus_probe(void);\n>  \n> +/**\n> + * For each device on the buses,call the driver-specific remove\n\nMissing a space after the comma.\n\n> + * for device uninitialization.\n> + *\n> + * @return\n> + *\t 0 for successful match/probe\n\nYou missed replacing match/probe here.\n\n> + *\t!0 otherwise\n> + */\n> +int rte_bus_remove(void);\n> +\n>  /**\n>   * Dump information of all the buses registered with EAL.\n>   *\n> diff --git a/lib/librte_eal/linux/eal.c b/lib/librte_eal/linux/eal.c\n> index f162124a3..89a03d3bb 100644\n> --- a/lib/librte_eal/linux/eal.c\n> +++ b/lib/librte_eal/linux/eal.c\n> @@ -1330,6 +1330,8 @@ mark_freeable(const struct rte_memseg_list *msl, const struct rte_memseg *ms,\n>  int\n>  rte_eal_cleanup(void)\n>  {\n> +\t/* Remove devices/drivers from all buses */\n> +\trte_bus_remove();\n\nYou've made your API return an int, but ignored drivers return code and\nalways return 0. That could be fine, but you also ignore it here anyway.\nAt this point just make it void, unless some error handling can be done.\n\nThere are variable definitions following in this function, why is this\ncall first?\n\nIt seems to be called only from linux EAL, why not BSD and Windows as\nwell?\n\n>  \t/* if we're in a primary process, we need to mark hugepages as freeable\n>  \t * so that finalization can release them back to the system.\n>  \t */\n> -- \n> 2.25.1\n>",
        "headers": {
            "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
            "Return-Path": "<dev-bounces@dpdk.org>",
            "In-Reply-To": "<20200708120329.103200-1-m.bilal@emumba.com>",
            "To": "Muhammad Bilal <m.bilal@emumba.com>",
            "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
            "Message-ID": "<20200912195337.734ez2cumf6x7hxp@u256.net>",
            "X-BeenThere": "dev@dpdk.org",
            "Received": [
                "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 20808A04CC;\n\tSat, 12 Sep 2020 21:53:48 +0200 (CEST)",
                "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 909394F9A;\n\tSat, 12 Sep 2020 21:53:46 +0200 (CEST)",
                "from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net\n [217.70.183.200]) by dpdk.org (Postfix) with ESMTP id 1A5D1160;\n Sat, 12 Sep 2020 21:53:45 +0200 (CEST)",
                "from u256.net (lfbn-poi-1-843-59.w86-254.abo.wanadoo.fr\n [86.254.165.59]) (Authenticated sender: grive@u256.net)\n by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 1B78D20005;\n Sat, 12 Sep 2020 19:53:42 +0000 (UTC)"
            ],
            "Subject": "Re: [dpdk-dev] [PATCH] EAL: Called remove() of drivers for vdev and\n pci buses",
            "Cc": "ferruh.yigit@intel.com, anatoly.burakov@intel.com,\n vipin.varghese@intel.com, jgrajcia@cisco.com, jerinj@marvell.com,\n dev@dpdk.org, stable@dpdk.org",
            "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-Post": "<mailto:dev@dpdk.org>",
            "Date": "Sat, 12 Sep 2020 21:53:37 +0200",
            "Precedence": "list",
            "From": "=?utf-8?q?Ga=C3=ABtan?= Rivet <grive@u256.net>",
            "Content-Transfer-Encoding": "8bit",
            "MIME-Version": "1.0",
            "Errors-To": "dev-bounces@dpdk.org",
            "References": "<20200708120329.103200-1-m.bilal@emumba.com>",
            "X-Original-To": "patchwork@inbox.dpdk.org",
            "Sender": "\"dev\" <dev-bounces@dpdk.org>",
            "Content-Disposition": "inline",
            "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
            "Content-Type": "text/plain; charset=utf-8",
            "Delivered-To": "patchwork@inbox.dpdk.org",
            "X-Originating-IP": "86.254.165.59",
            "X-Mailman-Version": "2.1.15"
        }
    }
]