get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 73981,
    "url": "http://patches.dpdk.org/api/patches/73981/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200714053919.5609-6-stephen@networkplumber.org/",
    "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": "<20200714053919.5609-6-stephen@networkplumber.org>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200714053919.5609-6-stephen@networkplumber.org",
    "date": "2020-07-14T05:39:13",
    "name": "[v4,05/11] drivers: replace references to blacklist",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "f1eae663d2d47180c4fcdaf73e23b984722f07ac",
    "submitter": {
        "id": 27,
        "url": "http://patches.dpdk.org/api/people/27/?format=api",
        "name": "Stephen Hemminger",
        "email": "stephen@networkplumber.org"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20200714053919.5609-6-stephen@networkplumber.org/mbox/",
    "series": [
        {
            "id": 11009,
            "url": "http://patches.dpdk.org/api/series/11009/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=11009",
            "date": "2020-07-14T05:39:08",
            "name": "rename blacklist/whitelist to exclude/include",
            "version": 4,
            "mbox": "http://patches.dpdk.org/series/11009/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/73981/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/73981/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 B5FE3A0540;\n\tTue, 14 Jul 2020 07:40:18 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 8A9781D422;\n\tTue, 14 Jul 2020 07:39:40 +0200 (CEST)",
            "from mail-pf1-f195.google.com (mail-pf1-f195.google.com\n [209.85.210.195]) by dpdk.org (Postfix) with ESMTP id 3774A1D179\n for <dev@dpdk.org>; Tue, 14 Jul 2020 07:39:37 +0200 (CEST)",
            "by mail-pf1-f195.google.com with SMTP id m9so7108555pfh.0\n for <dev@dpdk.org>; Mon, 13 Jul 2020 22:39:37 -0700 (PDT)",
            "from hermes.corp.microsoft.com (204-195-22-127.wavecable.com.\n [204.195.22.127])\n by smtp.gmail.com with ESMTPSA id h9sm15810259pfk.155.2020.07.13.22.39.34\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Mon, 13 Jul 2020 22:39:34 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=networkplumber-org.20150623.gappssmtp.com; s=20150623;\n h=from:to:cc:subject:date:message-id:in-reply-to:references\n :mime-version:content-transfer-encoding;\n bh=5vbiFaMaWexAYxTXhLYm/FQc7CoRobxK1op/WboF4kA=;\n b=TxlRUAxhknBCQN68KqTPVOH2xEHeBxyT6WPoaD7fIpD6xkrxfL9cwyAzJj/y7qdDL9\n u+g96uZ/SnAjv7oVK6+CKSbMhczmsBc5fz3wq+u/AvkHPQQFHsJSM89/ifpKQUJ2zjaX\n IzohlB0emO4SI8Sor3dVUlCCabArgvB6VG07jenbL8743Dr0ODyIhWSNyVKdHcRWwAzh\n 3GvIlLZjNUrqKvHntnSKjYO70Y2Utk9lA8NjFYG0Nvm5S8epQ/J+lvyvcfQGgvZkIsRe\n t61um3WeOW/rVY8AmSCld4grDuEG4DDuPqk0CqGr30hz7lhl7PiLWQKDraQ/MdzXBluG\n /lXw==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20161025;\n h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n :references:mime-version:content-transfer-encoding;\n bh=5vbiFaMaWexAYxTXhLYm/FQc7CoRobxK1op/WboF4kA=;\n b=BrwzjVxKcM+y7YfHfnKT+9xsPa90o0A6CRBYDDnyjrgMQql4X0TMvUKQyDUiD4+u0N\n 86eLbEQSgRhu/NQmPNoEGljprF5i8W0XLlrAIH2vMh4NOmUEgsDsbXy2GfGW1qO7SveV\n oFXpSqankAq4q4ZMs5PSHZxXg9zI7FRh7UqInq/ct5Bo0vBJ7vywkiMKrTnx58NxQo4V\n 6CiU+m+2M81Q+THVgigoqOJkO+7k38j4XCJTBYhManhh2IhDCRcgvmcVoqx/EyUdhsuh\n X2/2tEp6zlLsV1WUnZQBQsb/WTgCchIvQuY8xKpo5rQpHTd1mIJtls0QL+OHhrlRPKFw\n 1tnQ==",
        "X-Gm-Message-State": "AOAM533fzgP3IlkVIfxhgOcj79iSmIhCQb2XKsuwd2tPQpW+ldxfuS4J\n w2NbseKt6bALYZ0LpDLwYJiJT1Mf5s+zHw==",
        "X-Google-Smtp-Source": "\n ABdhPJyqo42OHcY513vqNetN39OLCzd9aF/g/XkYUoCM3Xp7RUtAASIXCLemNa1Yk4k/71pafUKoYA==",
        "X-Received": "by 2002:a63:7f5d:: with SMTP id p29mr2085350pgn.259.1594705175860;\n Mon, 13 Jul 2020 22:39:35 -0700 (PDT)",
        "From": "Stephen Hemminger <stephen@networkplumber.org>",
        "To": "dev@dpdk.org",
        "Cc": "Stephen Hemminger <stephen@networkplumber.org>,\n Luca Boccassi <bluca@debian.org>",
        "Date": "Mon, 13 Jul 2020 22:39:13 -0700",
        "Message-Id": "<20200714053919.5609-6-stephen@networkplumber.org>",
        "X-Mailer": "git-send-email 2.26.2",
        "In-Reply-To": "<20200714053919.5609-1-stephen@networkplumber.org>",
        "References": "<20200613000055.7909-1-stephen@networkplumber.org>\n <20200714053919.5609-1-stephen@networkplumber.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v4 05/11] drivers: replace references to blacklist",
        "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": "Use the new terminology blocked to describe when devices\nare excluded from being used.\n\nSigned-off-by: Stephen Hemminger <stephen@networkplumber.org>\nAcked-by: Luca Boccassi <bluca@debian.org>\n---\n drivers/bus/dpaa/dpaa_bus.c        |  7 +++----\n drivers/bus/fslmc/fslmc_bus.c      |  9 ++++-----\n drivers/bus/fslmc/fslmc_vfio.c     |  8 ++++----\n drivers/bus/pci/pci_common.c       | 24 ++++++++++--------------\n drivers/bus/vmbus/vmbus_common.c   |  4 ++--\n drivers/crypto/virtio/virtio_pci.c |  2 +-\n drivers/net/fm10k/fm10k_ethdev.c   |  2 +-\n drivers/net/virtio/virtio_pci.c    |  2 +-\n 8 files changed, 26 insertions(+), 32 deletions(-)",
    "diff": "diff --git a/drivers/bus/dpaa/dpaa_bus.c b/drivers/bus/dpaa/dpaa_bus.c\nindex 32e872da5209..f08c3a6149da 100644\n--- a/drivers/bus/dpaa/dpaa_bus.c\n+++ b/drivers/bus/dpaa/dpaa_bus.c\n@@ -568,7 +568,7 @@ rte_dpaa_bus_probe(void)\n \tstruct rte_dpaa_driver *drv;\n \tFILE *svr_file = NULL;\n \tunsigned int svr_ver;\n-\tint probe_all = rte_dpaa_bus.bus.conf.scan_mode != RTE_BUS_SCAN_WHITELIST;\n+\tint probe_all = rte_dpaa_bus.bus.conf.scan_mode != RTE_BUS_SCAN_ALLOWLIST;\n \tstatic int process_once;\n \n \t/* If DPAA bus is not present nothing needs to be done */\n@@ -630,13 +630,12 @@ rte_dpaa_bus_probe(void)\n \n \t\t\tif (!drv->probe ||\n \t\t\t    (dev->device.devargs &&\n-\t\t\t    dev->device.devargs->policy == RTE_DEV_BLACKLISTED))\n+\t\t\t     dev->device.devargs->policy == RTE_DEV_BLOCKED))\n \t\t\t\tcontinue;\n \n \t\t\tif (probe_all ||\n \t\t\t    (dev->device.devargs &&\n-\t\t\t    dev->device.devargs->policy ==\n-\t\t\t    RTE_DEV_WHITELISTED)) {\n+\t\t\t     dev->device.devargs->policy == RTE_DEV_ALLOWED)) {\n \t\t\t\tret = drv->probe(drv, dev);\n \t\t\t\tif (ret) {\n \t\t\t\t\tDPAA_BUS_ERR(\"unable to probe:%s\",\ndiff --git a/drivers/bus/fslmc/fslmc_bus.c b/drivers/bus/fslmc/fslmc_bus.c\nindex beb3dd008fbc..be4ab4ff3f64 100644\n--- a/drivers/bus/fslmc/fslmc_bus.c\n+++ b/drivers/bus/fslmc/fslmc_bus.c\n@@ -403,7 +403,7 @@ rte_fslmc_probe(void)\n \t\treturn 0;\n \t}\n \n-\tprobe_all = rte_fslmc_bus.bus.conf.scan_mode != RTE_BUS_SCAN_WHITELIST;\n+\tprobe_all = rte_fslmc_bus.bus.conf.scan_mode != RTE_BUS_SCAN_ALLOWLIST;\n \n \t/* In case of PA, the FD addresses returned by qbman APIs are physical\n \t * addresses, which need conversion into equivalent VA address for\n@@ -434,16 +434,15 @@ rte_fslmc_probe(void)\n \t\t\t\tcontinue;\n \n \t\t\tif (dev->device.devargs &&\n-\t\t\t  dev->device.devargs->policy == RTE_DEV_BLACKLISTED) {\n-\t\t\t\tDPAA2_BUS_LOG(DEBUG, \"%s Blacklisted, skipping\",\n+\t\t\t    dev->device.devargs->policy == RTE_DEV_BLOCKED) {\n+\t\t\t\tDPAA2_BUS_LOG(DEBUG, \"%s Blocklisted, skipping\",\n \t\t\t\t\t      dev->device.name);\n \t\t\t\tcontinue;\n \t\t\t}\n \n \t\t\tif (probe_all ||\n \t\t\t   (dev->device.devargs &&\n-\t\t\t   dev->device.devargs->policy ==\n-\t\t\t   RTE_DEV_WHITELISTED)) {\n+\t\t\t    dev->device.devargs->policy == RTE_DEV_ALLOWED)) {\n \t\t\t\tret = drv->probe(drv, dev);\n \t\t\t\tif (ret) {\n \t\t\t\t\tDPAA2_BUS_ERR(\"Unable to probe\");\ndiff --git a/drivers/bus/fslmc/fslmc_vfio.c b/drivers/bus/fslmc/fslmc_vfio.c\nindex efe2c43d372a..3634db3f65a2 100644\n--- a/drivers/bus/fslmc/fslmc_vfio.c\n+++ b/drivers/bus/fslmc/fslmc_vfio.c\n@@ -819,8 +819,8 @@ fslmc_vfio_process_group(void)\n \tTAILQ_FOREACH_SAFE(dev, &rte_fslmc_bus.device_list, next, dev_temp) {\n \t\tif (dev->dev_type == DPAA2_MPORTAL) {\n \t\t\tif (dev->device.devargs &&\n-\t\t\t    dev->device.devargs->policy == RTE_DEV_BLACKLISTED) {\n-\t\t\t\tDPAA2_BUS_LOG(DEBUG, \"%s Blacklisted, skipping\",\n+\t\t\t    dev->device.devargs->policy == RTE_DEV_BLOCKED) {\n+\t\t\t\tDPAA2_BUS_LOG(DEBUG, \"%s Blocklisted, skipping\",\n \t\t\t\t\t      dev->device.name);\n \t\t\t\tTAILQ_REMOVE(&rte_fslmc_bus.device_list,\n \t\t\t\t\t\tdev, next);\n@@ -852,8 +852,8 @@ fslmc_vfio_process_group(void)\n \n \tTAILQ_FOREACH_SAFE(dev, &rte_fslmc_bus.device_list, next, dev_temp) {\n \t\tif (dev->device.devargs &&\n-\t\t    dev->device.devargs->policy == RTE_DEV_BLACKLISTED) {\n-\t\t\tDPAA2_BUS_LOG(DEBUG, \"%s Blacklisted, skipping\",\n+\t\t    dev->device.devargs->policy == RTE_DEV_BLOCKED) {\n+\t\t\tDPAA2_BUS_LOG(DEBUG, \"%s Blocklisted, skipping\",\n \t\t\t\t      dev->device.name);\n \t\t\tTAILQ_REMOVE(&rte_fslmc_bus.device_list, dev, next);\n \t\t\tcontinue;\ndiff --git a/drivers/bus/pci/pci_common.c b/drivers/bus/pci/pci_common.c\nindex a8e5fd52c1d0..fe3a02e8049f 100644\n--- a/drivers/bus/pci/pci_common.c\n+++ b/drivers/bus/pci/pci_common.c\n@@ -66,9 +66,8 @@ pci_name_set(struct rte_pci_device *dev)\n \t\t\tdev->name, sizeof(dev->name));\n \tdevargs = pci_devargs_lookup(&dev->addr);\n \tdev->device.devargs = devargs;\n-\t/* In blacklist mode, if the device is not blacklisted, no\n-\t * rte_devargs exists for it.\n-\t */\n+\n+\t/* If the device is blocked, no rte_devargs exists for it. */\n \tif (devargs != NULL)\n \t\t/* If an rte_devargs exists, the generic rte_device uses the\n \t\t * given name as its name.\n@@ -132,7 +131,7 @@ rte_pci_probe_one_driver(struct rte_pci_driver *dr,\n \n \tloc = &dev->addr;\n \n-\t/* The device is not blacklisted; Check if driver supports it */\n+\t/* The device is not blocked; Check if driver supports it */\n \tif (!rte_pci_match(dr, dev))\n \t\t/* Match of device and driver failed */\n \t\treturn 1;\n@@ -141,12 +140,10 @@ rte_pci_probe_one_driver(struct rte_pci_driver *dr,\n \t\t\tloc->domain, loc->bus, loc->devid, loc->function,\n \t\t\tdev->device.numa_node);\n \n-\t/* no initialization when blacklisted, return without error */\n+\t/* no initialization when marked as blocked, return without error */\n \tif (dev->device.devargs != NULL &&\n-\t\tdev->device.devargs->policy ==\n-\t\t\tRTE_DEV_BLACKLISTED) {\n-\t\tRTE_LOG(INFO, EAL, \"  Device is blacklisted, not\"\n-\t\t\t\" initializing\\n\");\n+\t\tdev->device.devargs->policy == RTE_DEV_BLOCKED) {\n+\t\tRTE_LOG(INFO, EAL, \"  Device is blocked, not initializing\\n\");\n \t\treturn 1;\n \t}\n \n@@ -589,14 +586,13 @@ rte_pci_ignore_device(const struct rte_pci_addr *pci_addr)\n \tstruct rte_devargs *devargs = pci_devargs_lookup(pci_addr);\n \n \tswitch (rte_pci_bus.bus.conf.scan_mode) {\n-\tcase RTE_BUS_SCAN_WHITELIST:\n-\t\tif (devargs && devargs->policy == RTE_DEV_WHITELISTED)\n+\tcase RTE_BUS_SCAN_ALLOWLIST:\n+\t\tif (devargs && devargs->policy == RTE_DEV_ALLOWED)\n \t\t\treturn false;\n \t\tbreak;\n \tcase RTE_BUS_SCAN_UNDEFINED:\n-\tcase RTE_BUS_SCAN_BLACKLIST:\n-\t\tif (devargs == NULL ||\n-\t\t    devargs->policy != RTE_DEV_BLACKLISTED)\n+\tcase RTE_BUS_SCAN_BLOCKLIST:\n+\t\tif (devargs == NULL || devargs->policy != RTE_DEV_BLOCKED)\n \t\t\treturn false;\n \t\tbreak;\n \t}\ndiff --git a/drivers/bus/vmbus/vmbus_common.c b/drivers/bus/vmbus/vmbus_common.c\nindex 4c9ac33ac6e4..b31678ad0564 100644\n--- a/drivers/bus/vmbus/vmbus_common.c\n+++ b/drivers/bus/vmbus/vmbus_common.c\n@@ -101,7 +101,7 @@ vmbus_probe_one_driver(struct rte_vmbus_driver *dr,\n \tVMBUS_LOG(INFO, \"VMBUS device %s on NUMA socket %i\",\n \t\t  guid, dev->device.numa_node);\n \n-\t/* TODO add blacklisted */\n+\t/* TODO add block/allow logic */\n \n \t/* map resources for device */\n \tret = rte_vmbus_map_device(dev);\n@@ -177,7 +177,7 @@ rte_vmbus_probe(void)\n \n \t\trte_uuid_unparse(dev->device_id, ubuf, sizeof(ubuf));\n \n-\t\t/* TODO: add whitelist/blacklist */\n+\t\t/* TODO: add allowlist/blocklist */\n \n \t\tif (vmbus_probe_all_drivers(dev) < 0) {\n \t\t\tVMBUS_LOG(NOTICE,\ndiff --git a/drivers/crypto/virtio/virtio_pci.c b/drivers/crypto/virtio/virtio_pci.c\nindex f490f6e28960..ae069794a683 100644\n--- a/drivers/crypto/virtio/virtio_pci.c\n+++ b/drivers/crypto/virtio/virtio_pci.c\n@@ -438,7 +438,7 @@ virtio_read_caps(struct rte_pci_device *dev, struct virtio_crypto_hw *hw)\n  * Return -1:\n  *   if there is error mapping with VFIO/UIO.\n  *   if port map error when driver type is KDRV_NONE.\n- *   if whitelisted but driver type is KDRV_UNKNOWN.\n+ *   if marked as allowed but driver type is KDRV_UNKNOWN.\n  * Return 1 if kernel driver is managing the device.\n  * Return 0 on success.\n  */\ndiff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net/fm10k/fm10k_ethdev.c\nindex b574693bca48..389ad5995040 100644\n--- a/drivers/net/fm10k/fm10k_ethdev.c\n+++ b/drivers/net/fm10k/fm10k_ethdev.c\n@@ -3083,7 +3083,7 @@ eth_fm10k_dev_init(struct rte_eth_dev *dev)\n \thw->hw_addr = (void *)pdev->mem_resource[0].addr;\n \tif (hw->hw_addr == NULL) {\n \t\tPMD_INIT_LOG(ERR, \"Bad mem resource.\"\n-\t\t\t\" Try to blacklist unused devices.\");\n+\t\t\t\" Try to blocklist unused devices.\");\n \t\treturn -EIO;\n \t}\n \ndiff --git a/drivers/net/virtio/virtio_pci.c b/drivers/net/virtio/virtio_pci.c\nindex 29a354bf76df..5bec1fb6aa27 100644\n--- a/drivers/net/virtio/virtio_pci.c\n+++ b/drivers/net/virtio/virtio_pci.c\n@@ -682,7 +682,7 @@ virtio_read_caps(struct rte_pci_device *dev, struct virtio_hw *hw)\n  * Return -1:\n  *   if there is error mapping with VFIO/UIO.\n  *   if port map error when driver type is KDRV_NONE.\n- *   if whitelisted but driver type is KDRV_UNKNOWN.\n+ *   if marked as allowed but driver type is KDRV_UNKNOWN.\n  * Return 1 if kernel driver is managing the device.\n  * Return 0 on success.\n  */\n",
    "prefixes": [
        "v4",
        "05/11"
    ]
}