Show a patch.

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

{
    "id": 434,
    "url": "https://patches.dpdk.org/api/patches/434/",
    "web_url": "https://patches.dpdk.org/patch/434/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/",
        "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"
    },
    "msgid": "<1411375081-27986-4-git-send-email-david.marchand@6wind.com>",
    "date": "2014-09-22T08:37:57",
    "name": "[dpdk-dev,3/7] eal: remove duplicate handling of white/black list",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "705ce16379bd7c3b65d970c96729088bd73a6fce",
    "submitter": {
        "id": 3,
        "url": "https://patches.dpdk.org/api/people/3/",
        "name": "David Marchand",
        "email": "david.marchand@6wind.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/patch/434/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/434/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/434/checks/",
    "tags": {},
    "headers": {
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "X-Original-To": "patchwork@dpdk.org",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=+gZmdFQhVSAe+YV3zya6O8DcUHH1fsDMDtf6MAodi5U=;\n\tb=PLPA+YVOIEHuHEfwJpuZuXEsBNK1ltDqJtS4VwaxxWdJorvbtQMh1DUvjeMZfpw9mB\n\tHlSf7vfl51EndbdkPHwCuBP8OXc2kxWST+OkCRyrizm+sWyYxXM/e5UATwCU2LOeB9We\n\tYm65UNRsdO3W/DtAc8Ji91CnXQ+I7DKa+8W7Mc6lDPt9u8LztBwQd2+ySa9ADbp+OCY7\n\tbhjATlADJd2TZ+IKbWhM7SYSctmTw1ukPI4JfHTAabnGkWLVErcQ7EGUA/J0lllUVfVu\n\ttssD5r6ThYcIaxo9N+NnAJRP2jznKHAq1cAnI+/yOpRU5AT2zAxcSkfjOGfBHeahHx/+\n\tdXVA==",
        "In-Reply-To": "<1411375081-27986-1-git-send-email-david.marchand@6wind.com>",
        "Precedence": "list",
        "Date": "Mon, 22 Sep 2014 10:37:57 +0200",
        "References": "<1411375081-27986-1-git-send-email-david.marchand@6wind.com>",
        "X-Mailer": "git-send-email 1.7.10.4",
        "X-Gm-Message-State": "ALoCoQkw+Vouwss9GafeR9mjKipXoeaZ+/Oy/bFFP73eo4lr+htM+hK9g0ceHcUUeKMm46+TIHIi",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "To": "dev@dpdk.org",
        "Errors-To": "dev-bounces@dpdk.org",
        "X-BeenThere": "dev@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id E92DEB3B2;\n\tMon, 22 Sep 2014 10:32:11 +0200 (CEST)",
            "from mail-wi0-f180.google.com (mail-wi0-f180.google.com\n\t[209.85.212.180]) by dpdk.org (Postfix) with ESMTP id 4E135B349\n\tfor <dev@dpdk.org>; Mon, 22 Sep 2014 10:32:08 +0200 (CEST)",
            "by mail-wi0-f180.google.com with SMTP id q5so2473166wiv.7\n\tfor <dev@dpdk.org>; Mon, 22 Sep 2014 01:38:11 -0700 (PDT)",
            "from alcyon.dev.6wind.com (guy78-3-82-239-227-177.fbx.proxad.net.\n\t[82.239.227.177]) by mx.google.com with ESMTPSA id\n\tjs2sm11522334wjc.9.2014.09.22.01.38.10 for <multiple recipients>\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 22 Sep 2014 01:38:10 -0700 (PDT)"
        ],
        "From": "David Marchand <david.marchand@6wind.com>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "Message-Id": "<1411375081-27986-4-git-send-email-david.marchand@6wind.com>",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "Subject": "[dpdk-dev] [PATCH 3/7] eal: remove duplicate handling of\n\twhite/black list",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "Delivered-To": "patchwork@dpdk.org",
        "X-Received": "by 10.180.189.18 with SMTP id ge18mr13442021wic.37.1411375091372;\n\tMon, 22 Sep 2014 01:38:11 -0700 (PDT)",
        "X-Mailman-Version": "2.1.15"
    },
    "content": "We can handle both short and long options for those in the same case.\n\nSigned-off-by: David Marchand <david.marchand@6wind.com>\n---\n lib/librte_eal/bsdapp/eal/eal.c   |   18 ++----------------\n lib/librte_eal/linuxapp/eal/eal.c |   18 ++----------------\n 2 files changed, 4 insertions(+), 32 deletions(-)",
    "diff": "diff --git a/lib/librte_eal/bsdapp/eal/eal.c b/lib/librte_eal/bsdapp/eal/eal.c\nindex 7e9f3aa..8599a35 100644\n--- a/lib/librte_eal/bsdapp/eal/eal.c\n+++ b/lib/librte_eal/bsdapp/eal/eal.c\n@@ -513,8 +513,8 @@ eal_parse_args(int argc, char **argv)\n \t\t{OPT_PROC_TYPE, 1, 0, 0},\n \t\t{OPT_FILE_PREFIX, 1, 0, 0},\n \t\t{OPT_SOCKET_MEM, 1, 0, 0},\n-\t\t{OPT_PCI_WHITELIST, 1, 0, 0},\n-\t\t{OPT_PCI_BLACKLIST, 1, 0, 0},\n+\t\t{OPT_PCI_WHITELIST, 1, 0, 'w'},\n+\t\t{OPT_PCI_BLACKLIST, 1, 0, 'b'},\n \t\t{OPT_VDEV, 1, 0, 0},\n \t\t{OPT_SYSLOG, 1, NULL, 0},\n \t\t{OPT_LOG_LEVEL, 1, NULL, 0},\n@@ -629,20 +629,6 @@ eal_parse_args(int argc, char **argv)\n \t\t\telse if (!strcmp(lgopts[option_index].name, OPT_PROC_TYPE)) {\n \t\t\t\tinternal_config.process_type = eal_parse_proc_type(optarg);\n \t\t\t}\n-\t\t\telse if (!strcmp(lgopts[option_index].name, OPT_PCI_BLACKLIST)) {\n-\t\t\t\tif (rte_eal_devargs_add(RTE_DEVTYPE_BLACKLISTED_PCI,\n-\t\t\t\t\t\toptarg) < 0) {\n-\t\t\t\t\teal_usage(prgname);\n-\t\t\t\t\treturn -1;\n-\t\t\t\t}\n-\t\t\t}\n-\t\t\telse if (!strcmp(lgopts[option_index].name, OPT_PCI_WHITELIST)) {\n-\t\t\t\tif (rte_eal_devargs_add(RTE_DEVTYPE_WHITELISTED_PCI,\n-\t\t\t\t\t\toptarg) < 0) {\n-\t\t\t\t\teal_usage(prgname);\n-\t\t\t\t\treturn -1;\n-\t\t\t\t}\n-\t\t\t}\n \t\t\telse if (!strcmp(lgopts[option_index].name, OPT_VDEV)) {\n \t\t\t\tif (rte_eal_devargs_add(RTE_DEVTYPE_VIRTUAL,\n \t\t\t\t\t\toptarg) < 0) {\ndiff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c\nindex bf63744..655c454 100644\n--- a/lib/librte_eal/linuxapp/eal/eal.c\n+++ b/lib/librte_eal/linuxapp/eal/eal.c\n@@ -718,8 +718,8 @@ eal_parse_args(int argc, char **argv)\n \t\t{OPT_PROC_TYPE, 1, 0, 0},\n \t\t{OPT_FILE_PREFIX, 1, 0, 0},\n \t\t{OPT_SOCKET_MEM, 1, 0, 0},\n-\t\t{OPT_PCI_WHITELIST, 1, 0, 0},\n-\t\t{OPT_PCI_BLACKLIST, 1, 0, 0},\n+\t\t{OPT_PCI_WHITELIST, 1, 0, 'w'},\n+\t\t{OPT_PCI_BLACKLIST, 1, 0, 'b'},\n \t\t{OPT_VDEV, 1, 0, 0},\n \t\t{OPT_SYSLOG, 1, NULL, 0},\n \t\t{OPT_LOG_LEVEL, 1, NULL, 0},\n@@ -879,20 +879,6 @@ eal_parse_args(int argc, char **argv)\n \t\t\t\t\treturn -1;\n \t\t\t\t}\n \t\t\t}\n-\t\t\telse if (!strcmp(lgopts[option_index].name, OPT_PCI_BLACKLIST)) {\n-\t\t\t\tif (rte_eal_devargs_add(RTE_DEVTYPE_BLACKLISTED_PCI,\n-\t\t\t\t\t\toptarg) < 0) {\n-\t\t\t\t\teal_usage(prgname);\n-\t\t\t\t\treturn -1;\n-\t\t\t\t}\n-\t\t\t}\n-\t\t\telse if (!strcmp(lgopts[option_index].name, OPT_PCI_WHITELIST)) {\n-\t\t\t\tif (rte_eal_devargs_add(RTE_DEVTYPE_WHITELISTED_PCI,\n-\t\t\t\t\t\toptarg) < 0) {\n-\t\t\t\t\teal_usage(prgname);\n-\t\t\t\t\treturn -1;\n-\t\t\t\t}\n-\t\t\t}\n \t\t\telse if (!strcmp(lgopts[option_index].name, OPT_VDEV)) {\n \t\t\t\tif (rte_eal_devargs_add(RTE_DEVTYPE_VIRTUAL,\n \t\t\t\t\t\toptarg) < 0) {\n",
    "prefixes": [
        "dpdk-dev",
        "3/7"
    ]
}