get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 43964,
    "url": "http://patches.dpdk.org/api/patches/43964/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1535539660-20228-13-git-send-email-hemant.agrawal@nxp.com/",
    "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": "<1535539660-20228-13-git-send-email-hemant.agrawal@nxp.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1535539660-20228-13-git-send-email-hemant.agrawal@nxp.com",
    "date": "2018-08-29T10:47:39",
    "name": "[12/13] bus/dpaa: add check for re-definition in compat",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "4ee174d36270edfa65cfe2da953267084df14743",
    "submitter": {
        "id": 477,
        "url": "http://patches.dpdk.org/api/people/477/?format=api",
        "name": "Hemant Agrawal",
        "email": "hemant.agrawal@nxp.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@intel.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1535539660-20228-13-git-send-email-hemant.agrawal@nxp.com/mbox/",
    "series": [
        {
            "id": 1090,
            "url": "http://patches.dpdk.org/api/series/1090/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=1090",
            "date": "2018-08-29T10:47:27",
            "name": "driver/net: NXP DPAA driver enhancements",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/1090/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/43964/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/43964/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Received-SPF": "None (protection.outlook.com: nxp.com does not designate\n\tpermitted sender hosts)",
        "List-Post": "<mailto:dev@dpdk.org>",
        "Message-Id": "<1535539660-20228-13-git-send-email-hemant.agrawal@nxp.com>",
        "Cc": "dpdk-up@NXP1.onmicrosoft.com",
        "Subject": "[dpdk-dev] [PATCH 12/13] bus/dpaa: add check for re-definition in\n\tcompat",
        "From": "Hemant Agrawal <hemant.agrawal@nxp.com>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "X-Mailer": "git-send-email 2.7.4",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1;\n\th=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n\tbh=u6lM9PwZndaEgupBOcN8kQgTfq2N3MKoBzYdbAnvX60=;\n\tb=MrKMgascTWDsj8q2NsPCEMrT1UKAtZtQBPth6VmBwtNLA8lE1Pd6noEBUdgaOALxVzCyCmB/85opmWIgFUERIw5XKfgioBRNRjGUHHj5/W9gmwuueRmnc5cbTqAJGQTN07Fz9oJCnyKT+IFAvAe24FCrAauQlfuwrtN7rHyMCkk=",
        "Authentication-Results": "spf=none (sender IP is )\n\tsmtp.mailfrom=hemant.agrawal@nxp.com; ",
        "X-Mailman-Version": "2.1.15",
        "References": "<1535539660-20228-1-git-send-email-hemant.agrawal@nxp.com>",
        "In-Reply-To": "<1535539660-20228-1-git-send-email-hemant.agrawal@nxp.com>",
        "Precedence": "list",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "29 Aug 2018 10:49:58.0395\n\t(UTC)",
        "X-Exchange-Antispam-Report-Test": "UriScan:(185117386973197);",
        "X-MS-Office365-Filtering-HT": "Tenant",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "X-Originating-IP": "[14.143.30.134]",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "X-Forefront-PRVS": "077929D941",
        "SpamDiagnosticMetadata": "NSPM",
        "Content-Type": "text/plain",
        "X-Microsoft-Antispam-Message-Info": "vOkKMORDoNNtYJ+5ueVZ2cIeiWCRjAOyMtDGijjsKEP+6BckuNt4VlUKeFwsRmF9yoOUcokpQihfYA8BH0dzrAGkRCJY/oMqvBLrdz39omKeOpx3rIzyt7eFsKKTkK0nuMbob5dzTk5Qr/WkR3AalSkvB6UGklltr/Dy3UtEhzbRcYkN6Em9u+pQABYrsENBnuleZ7CurfZql5v/5/NGr2JsNTniqqaAWXlEbsvwjzsD3PBUc4kMwdDWy0tX/8VbijO0UIClgOVVih87V8O24+Rnlxml/As1R1pfKYYV69VSvJMsaRaIymXJDOrJ7YsHyrZC+FwCD+kwDO9dy15DKuvNcvqHpaoLhX3pLZ7IPt0=",
        "X-Exchange-Antispam-Report-CFA-Test": "BCL:0; PCL:0;\n\tRULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(823301075)(3002001)(10201501046)(3231311)(944501410)(52105095)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(201708071742011)(7699016);\n\tSRVR:VI1PR0401MB2543; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0401MB2543; ",
        "X-OriginatorOrg": "nxp.com",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "X-MS-Office365-Filtering-Correlation-Id": "c09e683a-da06-4ca1-bda2-08d60d9d2a2f",
        "X-Original-To": "patchwork@dpdk.org",
        "X-Microsoft-Exchange-Diagnostics": [
            "1; VI1PR0401MB2543;\n\t3:dVZSD7oWovzvbCPBWx/fUBZtXtqZARYc6K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EqKuawemkiFf3P47oGlwRzvpsDVAgOWZbh5MbG7f/H/fBf6iydSLJlc/cLDFuUR/4WeQ6Vwq98D4bFPdbasgFdybxesDhdaesfdeYLO+znZLgnFAmvJ9byzwGgyViTvcCgVEaMq5mQ7paNjJNiKle+0lcqJ82bDO8eHPl8joCsnC2h3eCdTG3hIsxVPnmED4yTRIrjx9iNgzYExlFL/iJsqtIMszsFlzawnLA5ZUbGaz1jbGCq0WD82p3danUogpNk9drRLWBN6E/sb+yCc7qW/3qIwk8/Ew7WXzuHiQOAmiiZxLI+yu8PNeiDPatqfHVKvytNA==;\n\t5:EcRdlDSzVQs38tydcddVenPb/U3pAP6SCabD7PYWEId0jT18doFNiSPHHVguhf619ABFISumz6+WSIvCOnYa2evVnoj6mSdPpQQT8sOV+RqUKmQ8+BDJw4C2zRBrfZItxs5Hgt7owVDL7auZyFAMsIBlspDt6R5F0fQZQKegkvw=;\n\t7:JlTDQQzQm3zsfs65T7cfESl5PVGM9Q9bPzbOcgt0K5Uu1HktG2phncEbGMKvFvdsgDF46qVTiYT/eCxM4P+7pZql/ibuAmVhlKRExlq5GksdVVHmZtQApnXSDoPA5Bsfirbm8q3vvixrQdVKtZc45LjNJ3/omtOM/2ZoBqE7pnQqSYoHwlUx0npXWma26ZSrHOPLldtMMorpqQMYr3Y7af+6lvmzAT9VxUWaP2P9et+t5lRTeMyikCxQaiyCXKJY"
        ],
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-BeenThere": "dev@dpdk.org",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "VI1PR0401MB2543",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "Hosted",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "c09e683a-da06-4ca1-bda2-08d60d9d2a2f",
        "Date": "Wed, 29 Aug 2018 16:17:39 +0530",
        "SpamDiagnosticOutput": "1:99",
        "X-ClientProxiedBy": "BM1PR0101CA0071.INDPRD01.PROD.OUTLOOK.COM\n\t(2603:1096:b00:19::33) To VI1PR0401MB2543.eurprd04.prod.outlook.com\n\t(2603:10a6:800:56::21)",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 2114A5F17;\n\tWed, 29 Aug 2018 12:50:08 +0200 (CEST)",
            "from EUR01-VE1-obe.outbound.protection.outlook.com\n\t(mail-ve1eur01on0045.outbound.protection.outlook.com [104.47.1.45])\n\tby dpdk.org (Postfix) with ESMTP id C985B5911\n\tfor <dev@dpdk.org>; Wed, 29 Aug 2018 12:49:59 +0200 (CEST)",
            "from bf-netperf1.ap.freescale.net (14.143.30.134) by\n\tVI1PR0401MB2543.eurprd04.prod.outlook.com (2603:10a6:800:56::21) with\n\tMicrosoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.17;\n\tWed, 29 Aug 2018 10:49:58 +0000"
        ],
        "Errors-To": "dev-bounces@dpdk.org",
        "X-Microsoft-Antispam": "BCL:0; PCL:0;\n\tRULEID:(7020095)(4652040)(8989137)(5600074)(711020)(4618075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020);\n\tSRVR:VI1PR0401MB2543; ",
        "Delivered-To": "patchwork@dpdk.org",
        "MIME-Version": "1.0",
        "X-MS-TrafficTypeDiagnostic": "VI1PR0401MB2543:",
        "X-MS-PublicTrafficType": "Email",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-Microsoft-Antispam-PRVS": "<VI1PR0401MB2543FF0C76D5B9B7252C984989090@VI1PR0401MB2543.eurprd04.prod.outlook.com>",
        "X-MS-Exchange-CrossTenant-Id": "686ea1d3-bc2b-4c6f-a92c-d99c5c301635",
        "X-Forefront-Antispam-Report": "SFV:NSPM;\n\tSFS:(10009020)(346002)(136003)(366004)(396003)(39860400002)(376002)(189003)(199004)(6512007)(6486002)(16526019)(53936002)(486006)(186003)(11346002)(105586002)(6116002)(106356001)(5660300001)(50466002)(68736007)(5009440100003)(2616005)(25786009)(48376002)(386003)(4326008)(55236004)(6666003)(73566003)(86362001)(956004)(107886003)(446003)(3846002)(26005)(6506007)(476003)(316002)(52116002)(50226002)(478600001)(47776003)(66066001)(8936002)(16586007)(76176011)(51416003)(97736004)(44832011)(81166006)(8676002)(7736002)(305945005)(36756003)(81156014)(14444005)(2906002)(110426005);\n\tDIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB2543;\n\tH:bf-netperf1.ap.freescale.net; \n\tFPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; ",
        "To": "dev@dpdk.org,\n\tferruh.yigit@intel.com"
    },
    "content": "Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>\n---\n drivers/bus/dpaa/include/compat.h | 20 ++++++++++++++------\n 1 file changed, 14 insertions(+), 6 deletions(-)",
    "diff": "diff --git a/drivers/bus/dpaa/include/compat.h b/drivers/bus/dpaa/include/compat.h\nindex 92241d2..4122657 100644\n--- a/drivers/bus/dpaa/include/compat.h\n+++ b/drivers/bus/dpaa/include/compat.h\n@@ -57,8 +57,9 @@\n #ifndef __packed\n #define __packed\t__rte_packed\n #endif\n+#ifndef noinline\n #define noinline\t__attribute__((noinline))\n-\n+#endif\n #define L1_CACHE_BYTES 64\n #define ____cacheline_aligned __attribute__((aligned(L1_CACHE_BYTES)))\n #define __stringify_1(x) #x\n@@ -75,20 +76,25 @@\n \t\tprintf(fmt, ##args); \\\n \t\tfflush(stdout); \\\n \t} while (0)\n-\n+#ifndef pr_crit\n #define pr_crit(fmt, args...)\t prflush(\"CRIT:\" fmt, ##args)\n+#endif\n+#ifndef pr_err\n #define pr_err(fmt, args...)\t prflush(\"ERR:\" fmt, ##args)\n+#endif\n+#ifndef pr_warn\n #define pr_warn(fmt, args...)\t prflush(\"WARN:\" fmt, ##args)\n+#endif\n+#ifndef pr_info\n #define pr_info(fmt, args...)\t prflush(fmt, ##args)\n-\n-#ifdef RTE_LIBRTE_DPAA_DEBUG_BUS\n-#ifdef pr_debug\n-#undef pr_debug\n #endif\n+#ifndef pr_debug\n+#ifdef RTE_LIBRTE_DPAA_DEBUG_BUS\n #define pr_debug(fmt, args...)\tprintf(fmt, ##args)\n #else\n #define pr_debug(fmt, args...) {}\n #endif\n+#endif\n \n #define DPAA_BUG_ON(x) RTE_ASSERT(x)\n \n@@ -256,7 +262,9 @@ __bswap_24(uint32_t x)\n #define be16_to_cpu(x) rte_be_to_cpu_16(x)\n \n #define cpu_to_be64(x) rte_cpu_to_be_64(x)\n+#if !defined(cpu_to_be32)\n #define cpu_to_be32(x) rte_cpu_to_be_32(x)\n+#endif\n #define cpu_to_be16(x) rte_cpu_to_be_16(x)\n \n #if RTE_BYTE_ORDER == RTE_LITTLE_ENDIAN\n",
    "prefixes": [
        "12/13"
    ]
}