Show a patch.

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

{
    "id": 438,
    "url": "https://patches.dpdk.org/api/patches/438/?format=api",
    "web_url": "https://patches.dpdk.org/patch/438/",
    "project": {
        "id": 1,
        "url": "https://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"
    },
    "msgid": "<1411375081-27986-8-git-send-email-david.marchand@6wind.com>",
    "date": "2014-09-22T08:38:01",
    "name": "[dpdk-dev,7/7] eal: indent files",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "b53cde04e3799d3f00368cf1509b9286a050d9af",
    "submitter": {
        "id": 3,
        "url": "https://patches.dpdk.org/api/people/3/?format=api",
        "name": "David Marchand",
        "email": "david.marchand@6wind.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/patch/438/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/438/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/438/checks/",
    "tags": {},
    "headers": {
        "X-Mailman-Version": "2.1.15",
        "In-Reply-To": "<1411375081-27986-1-git-send-email-david.marchand@6wind.com>",
        "Errors-To": "dev-bounces@dpdk.org",
        "X-Mailer": "git-send-email 1.7.10.4",
        "Received": [
            "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 4BAAFB3C4;\n\tMon, 22 Sep 2014 10:32:18 +0200 (CEST)",
            "from mail-we0-f172.google.com (mail-we0-f172.google.com\n\t[74.125.82.172]) by dpdk.org (Postfix) with ESMTP id 80C69B3B9\n\tfor <dev@dpdk.org>; Mon, 22 Sep 2014 10:32:14 +0200 (CEST)",
            "by mail-we0-f172.google.com with SMTP id p10so2064024wes.3\n\tfor <dev@dpdk.org>; Mon, 22 Sep 2014 01:38:17 -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.16 for <multiple recipients>\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 22 Sep 2014 01:38:16 -0700 (PDT)"
        ],
        "References": "<1411375081-27986-1-git-send-email-david.marchand@6wind.com>",
        "X-BeenThere": "dev@dpdk.org",
        "X-Received": "by 10.194.176.71 with SMTP id cg7mr769035wjc.132.1411375097591; \n\tMon, 22 Sep 2014 01:38:17 -0700 (PDT)",
        "Message-Id": "<1411375081-27986-8-git-send-email-david.marchand@6wind.com>",
        "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=vCmrn2e6+y9HcMT0CsGVSvHKb2wjS3hAuslBv5UsbYk=;\n\tb=ibTwOc1J8mlsaIjdbLy5+fDCmiydUTxNzkWxr/CcOK9UggCVd7TNkm0RubssCHEU/c\n\t5A81s3AS1Q1CubloY8lQZ3UosDExsZh8is/pKalyjhOO/m9ppTI/LlniQzkxokgtQKQ7\n\tl6mRlyCDCkA3ECEZsdM6PL5Hy7eDT09o7xu0ohWWh0h402jWCY4DB6WlYmiiR+oJ2kqJ\n\tLJTkqKXChFkItbPUUmi2jTUDJ0dPHDir9VwIvhmSVNMLCtvoYdHbWTlo2W7GTTbvT22h\n\tkqT8wbMnErBlj34Ox27TXydE81djUU7TDyZ4y6Xtiw8a1bvpCm4HyErSzpjDLoaLYeWx\n\tyVxA==",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "Precedence": "list",
        "From": "David Marchand <david.marchand@6wind.com>",
        "X-Original-To": "patchwork@dpdk.org",
        "List-Post": "<mailto:dev@dpdk.org>",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "To": "dev@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "Date": "Mon, 22 Sep 2014 10:38:01 +0200",
        "X-Gm-Message-State": "ALoCoQm3A2bGrEbhp73mJhkhqbp0T2n0Aum8egerJv3sFA93/d99kC9Sz+FrOaLgLZUaHHZdsJvF",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "Subject": "[dpdk-dev] [PATCH 7/7] eal: indent files"
    },
    "content": "Indent files modified in previous commit.\n\nSigned-off-by: David Marchand <david.marchand@6wind.com>\n---\n lib/librte_eal/common/eal_common_options.c |   48 +++++++++++------------\n lib/librte_eal/linuxapp/eal/eal.c          |   58 ++++++++++++++--------------\n 2 files changed, 53 insertions(+), 53 deletions(-)",
    "diff": "diff --git a/lib/librte_eal/common/eal_common_options.c b/lib/librte_eal/common/eal_common_options.c\nindex 4009f02..7a5d55e 100644\n--- a/lib/librte_eal/common/eal_common_options.c\n+++ b/lib/librte_eal/common/eal_common_options.c\n@@ -297,56 +297,56 @@ eal_parse_common_option(int opt, const char *optarg,\n \n \t/* long options */\n \tcase OPT_NO_HUGE_NUM:\n-\t\t\tconf->no_hugetlbfs = 1;\n+\t\tconf->no_hugetlbfs = 1;\n \t\tbreak;\n \n \tcase OPT_NO_PCI_NUM:\n-\t\t\tconf->no_pci = 1;\n+\t\tconf->no_pci = 1;\n \t\tbreak;\n \n \tcase OPT_NO_HPET_NUM:\n-\t\t\tconf->no_hpet = 1;\n+\t\tconf->no_hpet = 1;\n \t\tbreak;\n \n \tcase OPT_VMWARE_TSC_MAP_NUM:\n-\t\t\tconf->vmware_tsc_map = 1;\n+\t\tconf->vmware_tsc_map = 1;\n \t\tbreak;\n \n \tcase OPT_NO_SHCONF_NUM:\n-\t\t\tconf->no_shconf = 1;\n+\t\tconf->no_shconf = 1;\n \t\tbreak;\n \n \tcase OPT_PROC_TYPE_NUM:\n-\t\t\tconf->process_type = eal_parse_proc_type(optarg);\n+\t\tconf->process_type = eal_parse_proc_type(optarg);\n \t\tbreak;\n \n \tcase OPT_VDEV_NUM:\n-\t\t\tif (rte_eal_devargs_add(RTE_DEVTYPE_VIRTUAL,\n-\t\t\t\t\toptarg) < 0) {\n-\t\t\t\treturn -1;\n-\t\t\t}\n+\t\tif (rte_eal_devargs_add(RTE_DEVTYPE_VIRTUAL,\n+\t\t\t\toptarg) < 0) {\n+\t\t\treturn -1;\n+\t\t}\n \t\tbreak;\n \n \tcase OPT_SYSLOG_NUM:\n-\t\t\tif (eal_parse_syslog(optarg, conf) < 0) {\n-\t\t\t\tRTE_LOG(ERR, EAL, \"invalid parameters for --\"\n-\t\t\t\t\t\tOPT_SYSLOG \"\\n\");\n-\t\t\t\treturn -1;\n-\t\t\t}\n+\t\tif (eal_parse_syslog(optarg, conf) < 0) {\n+\t\t\tRTE_LOG(ERR, EAL, \"invalid parameters for --\"\n+\t\t\t\t\tOPT_SYSLOG \"\\n\");\n+\t\t\treturn -1;\n+\t\t}\n \t\tbreak;\n \n \tcase OPT_LOG_LEVEL_NUM: {\n-\t\t\tuint32_t log;\n+\t\tuint32_t log;\n \n-\t\t\tif (eal_parse_log_level(optarg, &log) < 0) {\n-\t\t\t\tRTE_LOG(ERR, EAL,\n-\t\t\t\t\t\"invalid parameters for --\"\n-\t\t\t\t\tOPT_LOG_LEVEL \"\\n\");\n-\t\t\t\treturn -1;\n-\t\t\t}\n-\t\t\tconf->log_level = log;\n-\t\tbreak;\n+\t\tif (eal_parse_log_level(optarg, &log) < 0) {\n+\t\t\tRTE_LOG(ERR, EAL,\n+\t\t\t\t\"invalid parameters for --\"\n+\t\t\t\tOPT_LOG_LEVEL \"\\n\");\n+\t\t\treturn -1;\n \t\t}\n+\t\tconf->log_level = log;\n+\t\tbreak;\n+\t}\n \n \t/* don't know what to do, leave this to caller */\n \tdefault:\ndiff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c\nindex 1d468dd..05804dc 100644\n--- a/lib/librte_eal/linuxapp/eal/eal.c\n+++ b/lib/librte_eal/linuxapp/eal/eal.c\n@@ -584,53 +584,53 @@ eal_parse_args(int argc, char **argv)\n \n \t\t/* long options */\n \t\tcase OPT_XEN_DOM0_NUM:\n-\t\t#ifdef RTE_LIBRTE_XEN_DOM0\n-\t\t\t\tinternal_config.xen_dom0_support = 1;\n-\t\t#else\n-\t\t\t\tRTE_LOG(ERR, EAL, \"Can't support DPDK app \"\n-\t\t\t\t\t\"running on Dom0, please configure\"\n-\t\t\t\t\t\" RTE_LIBRTE_XEN_DOM0=y\\n\");\n-\t\t\t\treturn -1;\n-\t\t#endif\n+#ifdef RTE_LIBRTE_XEN_DOM0\n+\t\t\tinternal_config.xen_dom0_support = 1;\n+#else\n+\t\t\tRTE_LOG(ERR, EAL, \"Can't support DPDK app \"\n+\t\t\t\t\"running on Dom0, please configure\"\n+\t\t\t\t\" RTE_LIBRTE_XEN_DOM0=y\\n\");\n+\t\t\treturn -1;\n+#endif\n \t\t\tbreak;\n \n \t\tcase OPT_HUGE_DIR_NUM:\n-\t\t\t\tinternal_config.hugepage_dir = optarg;\n+\t\t\tinternal_config.hugepage_dir = optarg;\n \t\t\tbreak;\n \n \t\tcase OPT_FILE_PREFIX_NUM:\n-\t\t\t\tinternal_config.hugefile_prefix = optarg;\n+\t\t\tinternal_config.hugefile_prefix = optarg;\n \t\t\tbreak;\n \n \t\tcase OPT_SOCKET_MEM_NUM:\n-\t\t\t\tif (eal_parse_socket_mem(optarg) < 0) {\n-\t\t\t\t\tRTE_LOG(ERR, EAL, \"invalid parameters for --\"\n-\t\t\t\t\t\t\tOPT_SOCKET_MEM \"\\n\");\n-\t\t\t\t\teal_usage(prgname);\n-\t\t\t\t\treturn -1;\n-\t\t\t\t}\n+\t\t\tif (eal_parse_socket_mem(optarg) < 0) {\n+\t\t\t\tRTE_LOG(ERR, EAL, \"invalid parameters for --\"\n+\t\t\t\t\t\tOPT_SOCKET_MEM \"\\n\");\n+\t\t\t\teal_usage(prgname);\n+\t\t\t\treturn -1;\n+\t\t\t}\n \t\t\tbreak;\n \n \t\tcase OPT_BASE_VIRTADDR_NUM:\n-\t\t\t\tif (eal_parse_base_virtaddr(optarg) < 0) {\n-\t\t\t\t\tRTE_LOG(ERR, EAL, \"invalid parameter for --\"\n-\t\t\t\t\t\t\tOPT_BASE_VIRTADDR \"\\n\");\n-\t\t\t\t\teal_usage(prgname);\n-\t\t\t\t\treturn -1;\n-\t\t\t\t}\n+\t\t\tif (eal_parse_base_virtaddr(optarg) < 0) {\n+\t\t\t\tRTE_LOG(ERR, EAL, \"invalid parameter for --\"\n+\t\t\t\t\t\tOPT_BASE_VIRTADDR \"\\n\");\n+\t\t\t\teal_usage(prgname);\n+\t\t\t\treturn -1;\n+\t\t\t}\n \t\t\tbreak;\n \n \t\tcase OPT_VFIO_INTR_NUM:\n-\t\t\t\tif (eal_parse_vfio_intr(optarg) < 0) {\n-\t\t\t\t\tRTE_LOG(ERR, EAL, \"invalid parameters for --\"\n-\t\t\t\t\t\t\tOPT_VFIO_INTR \"\\n\");\n-\t\t\t\t\teal_usage(prgname);\n-\t\t\t\t\treturn -1;\n-\t\t\t\t}\n+\t\t\tif (eal_parse_vfio_intr(optarg) < 0) {\n+\t\t\t\tRTE_LOG(ERR, EAL, \"invalid parameters for --\"\n+\t\t\t\t\t\tOPT_VFIO_INTR \"\\n\");\n+\t\t\t\teal_usage(prgname);\n+\t\t\t\treturn -1;\n+\t\t\t}\n \t\t\tbreak;\n \n \t\tcase OPT_CREATE_UIO_DEV_NUM:\n-\t\t\t\tinternal_config.create_uio_dev = 1;\n+\t\t\tinternal_config.create_uio_dev = 1;\n \t\t\tbreak;\n \n \t\tdefault:\n",
    "prefixes": [
        "dpdk-dev",
        "7/7"
    ]
}