get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2201,
    "url": "https://patches.dpdk.org/api/patches/2201/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1420527230-17037-12-git-send-email-zlu@ezchip.com/",
    "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",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<1420527230-17037-12-git-send-email-zlu@ezchip.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1420527230-17037-12-git-send-email-zlu@ezchip.com",
    "date": "2015-01-06T06:53:49",
    "name": "[dpdk-dev,v2,11/12] eal: allow empty set of compile time cpuflags",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "64edef9a2681b02be5f4d28836ab9db5404133e6",
    "submitter": {
        "id": 130,
        "url": "https://patches.dpdk.org/api/people/130/?format=api",
        "name": "Zhigang Lu",
        "email": "zlu@ezchip.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1420527230-17037-12-git-send-email-zlu@ezchip.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/2201/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/2201/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 0AD955A41;\n\tTue,  6 Jan 2015 08:04:09 +0100 (CET)",
            "from emea01-db3-obe.outbound.protection.outlook.com\n\t(mail-db3on0089.outbound.protection.outlook.com [157.55.234.89])\n\tby dpdk.org (Postfix) with ESMTP id E353E5A40\n\tfor <dev@dpdk.org>; Tue,  6 Jan 2015 08:04:06 +0100 (CET)",
            "from AMSPR02CA0041.eurprd02.prod.outlook.com (10.242.225.169) by\n\tDB3PR02MB010.eurprd02.prod.outlook.com (10.242.128.16) with Microsoft\n\tSMTP Server (TLS) id 15.1.49.12; Tue, 6 Jan 2015 07:02:45 +0000",
            "from AM1FFO11FD001.protection.gbl (2a01:111:f400:7e00::114) by\n\tAMSPR02CA0041.outlook.office365.com (2a01:111:e400:8028::41) with\n\tMicrosoft SMTP Server (TLS) id 15.1.49.12 via Frontend Transport;\n\tTue, 6 Jan 2015 07:02:44 +0000",
            "from bjgfarm-2.internal.tilera.com (124.207.145.166) by\n\tAM1FFO11FD001.mail.protection.outlook.com (10.174.64.83) with\n\tMicrosoft SMTP Server (TLS) id 15.1.49.13 via Frontend Transport;\n\tTue, 6 Jan 2015 07:02:32 +0000",
            "(from zlu@localhost)\n\tby bjgfarm-2.internal.tilera.com (8.14.4/8.14.4/Submit) id\n\tt0672O44017225; Tue, 6 Jan 2015 15:02:24 +0800"
        ],
        "From": "Zhigang Lu <zlu@ezchip.com>",
        "To": "<dev@dpdk.org>",
        "Date": "Tue, 6 Jan 2015 14:53:49 +0800",
        "Message-ID": "<1420527230-17037-12-git-send-email-zlu@ezchip.com>",
        "X-Mailer": "git-send-email 2.1.2",
        "In-Reply-To": "<1420527230-17037-1-git-send-email-zlu@ezchip.com>",
        "References": "<1420527230-17037-1-git-send-email-zlu@ezchip.com>",
        "X-EOPAttributedMessage": "0",
        "Received-SPF": "Fail (protection.outlook.com: domain of ezchip.com does not\n\tdesignate 124.207.145.166 as permitted sender)\n\treceiver=protection.outlook.com; client-ip=124.207.145.166;\n\thelo=bjgfarm-2.internal.tilera.com;",
        "Authentication-Results": "spf=fail (sender IP is 124.207.145.166)\n\tsmtp.mailfrom=zlu@ezchip.com; ",
        "X-Forefront-Antispam-Report": "CIP:124.207.145.166; CTRY:CN; IPV:NLI; EFV:NLI; \n\tSFV:NSPM;\n\tSFS:(10009020)(6009001)(339900001)(199003)(189002)(50986999)(31966008)(76176999)(46102003)(21056001)(86362001)(97736003)(48376002)(120916001)(89996001)(87936001)(64706001)(19580395003)(19580405001)(4396001)(50226001)(99396003)(50466002)(92566001)(42186005)(68736005)(105606002)(2351001)(62966003)(107046002)(2950100001)(77156002)(36756003)(84676001)(229853001)(47776003)(6806004)(20776003)(104016003)(106466001)(33646002)(110136001);\n\tDIR:OUT; SFP:1101; SCL:1; SRVR:DB3PR02MB010;\n\tH:bjgfarm-2.internal.tilera.com; \n\tFPR:; SPF:Fail; MLV:sfv; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en;",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-DmarcAction": "None",
        "X-Microsoft-Antispam": [
            "UriScan:;",
            "BCL:0;PCL:0;RULEID:(3005003);SRVR:DB3PR02MB010;"
        ],
        "X-Forefront-PRVS": "0448A97BF2",
        "X-OriginatorOrg": "ezchip.com",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "06 Jan 2015 07:02:32.4914\n\t(UTC)",
        "X-MS-Exchange-CrossTenant-Id": "0fc16e0a-3cd3-4092-8b2f-0a42cff122c3",
        "X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp": "TenantId=0fc16e0a-3cd3-4092-8b2f-0a42cff122c3;\n\tIp=[124.207.145.166]",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "DB3PR02MB010",
        "Subject": "[dpdk-dev] [PATCH v2 11/12] eal: allow empty set of compile time\n\tcpuflags",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@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>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "On architectures that do not rely on RTE_COMPILE_TIME_CPUFLAGS, the\ncompile_time_flags[] array can end up being zero sized.  This results in a\ncompiler complaint in the subsequent loop.  Pulling out the array size\ncomputation silences this complaint.\n\nSigned-off-by: Zhigang Lu <zlu@ezchip.com>\nSigned-off-by: Cyril Chemparathy <cchemparathy@ezchip.com>\n---\n lib/librte_eal/common/eal_common_cpuflags.c | 4 +++-\n 1 file changed, 3 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/lib/librte_eal/common/eal_common_cpuflags.c b/lib/librte_eal/common/eal_common_cpuflags.c\nindex 6fd360c..7a1ca26 100644\n--- a/lib/librte_eal/common/eal_common_cpuflags.c\n+++ b/lib/librte_eal/common/eal_common_cpuflags.c\n@@ -62,10 +62,12 @@ rte_cpu_check_supported(void)\n \tstatic const enum rte_cpu_flag_t compile_time_flags[] = {\n \t\t\tRTE_COMPILE_TIME_CPUFLAGS\n \t};\n+\tunsigned count =\n+\t\tsizeof(compile_time_flags)/sizeof(compile_time_flags[0]);\n \tunsigned i;\n \tint ret;\n \n-\tfor (i = 0; i < sizeof(compile_time_flags)/sizeof(compile_time_flags[0]); i++) {\n+\tfor (i = 0; i < count; i++) {\n \t\tret = rte_cpu_get_flag_enabled(compile_time_flags[i]);\n \n \t\tif (ret < 0) {\n",
    "prefixes": [
        "dpdk-dev",
        "v2",
        "11/12"
    ]
}