get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 45087,
    "url": "http://patches.dpdk.org/api/patches/45087/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1537527962-25757-9-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": "<1537527962-25757-9-git-send-email-hemant.agrawal@nxp.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1537527962-25757-9-git-send-email-hemant.agrawal@nxp.com",
    "date": "2018-09-21T11:05:57",
    "name": "[v3,08/13] bus/dpaa: avoid using be conversions for contextb",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "aa2e49e22a8ef69e62bc1a3ea34a3ab1935eb536",
    "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@amd.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1537527962-25757-9-git-send-email-hemant.agrawal@nxp.com/mbox/",
    "series": [
        {
            "id": 1437,
            "url": "http://patches.dpdk.org/api/series/1437/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=1437",
            "date": "2018-09-21T11:05:49",
            "name": "NXP DPAA driver enhancements",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/1437/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/45087/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/45087/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 [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 04F5A5B30;\n\tFri, 21 Sep 2018 13:08:25 +0200 (CEST)",
            "from inva020.nxp.com (inva020.nxp.com [92.121.34.13])\n\tby dpdk.org (Postfix) with ESMTP id A70524F9B\n\tfor <dev@dpdk.org>; Fri, 21 Sep 2018 13:08:12 +0200 (CEST)",
            "from inva020.nxp.com (localhost [127.0.0.1])\n\tby inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 8BD4B1A02B3;\n\tFri, 21 Sep 2018 13:08:12 +0200 (CEST)",
            "from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com\n\t[165.114.16.14])\n\tby inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 462091A02B4;\n\tFri, 21 Sep 2018 13:08:10 +0200 (CEST)",
            "from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net\n\t[10.232.134.28])\n\tby invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 8848E402DD;\n\tFri, 21 Sep 2018 19:08:06 +0800 (SGT)"
        ],
        "From": "Hemant Agrawal <hemant.agrawal@nxp.com>",
        "To": "dev@dpdk.org,\n\tthomas@monjalon.net,\n\tferruh.yigit@intel.com",
        "Cc": "Nipun Gupta <nipun.gupta@nxp.com>",
        "Date": "Fri, 21 Sep 2018 16:35:57 +0530",
        "Message-Id": "<1537527962-25757-9-git-send-email-hemant.agrawal@nxp.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1537527962-25757-1-git-send-email-hemant.agrawal@nxp.com>",
        "References": "<1537277516-8876-2-git-send-email-hemant.agrawal@nxp.com>\n\t<1537527962-25757-1-git-send-email-hemant.agrawal@nxp.com>",
        "X-Virus-Scanned": "ClamAV using ClamSMTP",
        "Subject": "[dpdk-dev] [PATCH v3 08/13] bus/dpaa: avoid using be conversions\n\tfor contextb",
        "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\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "From: Nipun Gupta <nipun.gupta@nxp.com>\n\nminor optimization in packet handling path\n\nSigned-off-by: Nipun Gupta <nipun.gupta@nxp.com>\n---\n drivers/bus/dpaa/base/qbman/qman.c | 15 +++++----------\n 1 file changed, 5 insertions(+), 10 deletions(-)",
    "diff": "diff --git a/drivers/bus/dpaa/base/qbman/qman.c b/drivers/bus/dpaa/base/qbman/qman.c\nindex 71da275..dc64d08 100644\n--- a/drivers/bus/dpaa/base/qbman/qman.c\n+++ b/drivers/bus/dpaa/base/qbman/qman.c\n@@ -852,11 +852,9 @@ static u32 __poll_portal_slow(struct qman_portal *p, u32 is)\n \t\t\tcase QM_MR_VERB_FQPN:\n \t\t\t\t/* Parked */\n #ifdef CONFIG_FSL_QMAN_FQ_LOOKUP\n-\t\t\t\tfq = get_fq_table_entry(\n-\t\t\t\t\tbe32_to_cpu(msg->fq.contextB));\n+\t\t\t\tfq = get_fq_table_entry(msg->fq.contextB);\n #else\n-\t\t\t\tfq = (void *)(uintptr_t)\n-\t\t\t\t\tbe32_to_cpu(msg->fq.contextB);\n+\t\t\t\tfq = (void *)(uintptr_t)msg->fq.contextB;\n #endif\n \t\t\t\tfq_state_change(p, fq, msg, verb);\n \t\t\t\tif (fq->cb.fqs)\n@@ -967,7 +965,6 @@ static inline unsigned int __poll_portal_fast(struct qman_portal *p,\n \t\t*shadow = *dq;\n \t\tdq = shadow;\n \t\tshadow->fqid = be32_to_cpu(shadow->fqid);\n-\t\tshadow->contextB = be32_to_cpu(shadow->contextB);\n \t\tshadow->seqnum = be16_to_cpu(shadow->seqnum);\n \t\thw_fd_to_cpu(&shadow->fd);\n #endif\n@@ -1136,9 +1133,9 @@ unsigned int qman_portal_poll_rx(unsigned int poll_limit,\n \n \t\t/* SDQCR: context_b points to the FQ */\n #ifdef CONFIG_FSL_QMAN_FQ_LOOKUP\n-\t\tfq = qman_fq_lookup_table[be32_to_cpu(dq[rx_number]->contextB)];\n+\t\tfq = qman_fq_lookup_table[dq[rx_number]->contextB];\n #else\n-\t\tfq = (void *)be32_to_cpu(dq[rx_number]->contextB);\n+\t\tfq = (void *)dq[rx_number]->contextB;\n #endif\n \t\tif (fq->cb.dqrr_prepare)\n \t\t\tfq->cb.dqrr_prepare(shadow[rx_number],\n@@ -1195,7 +1192,6 @@ u32 qman_portal_dequeue(struct rte_event ev[], unsigned int poll_limit,\n \t\t*shadow = *dq;\n \t\tdq = shadow;\n \t\tshadow->fqid = be32_to_cpu(shadow->fqid);\n-\t\tshadow->contextB = be32_to_cpu(shadow->contextB);\n \t\tshadow->seqnum = be16_to_cpu(shadow->seqnum);\n \t\thw_fd_to_cpu(&shadow->fd);\n #endif\n@@ -1260,7 +1256,6 @@ struct qm_dqrr_entry *qman_dequeue(struct qman_fq *fq)\n \t*shadow = *dq;\n \tdq = shadow;\n \tshadow->fqid = be32_to_cpu(shadow->fqid);\n-\tshadow->contextB = be32_to_cpu(shadow->contextB);\n \tshadow->seqnum = be16_to_cpu(shadow->seqnum);\n \thw_fd_to_cpu(&shadow->fd);\n #endif\n@@ -1556,7 +1551,7 @@ int qman_init_fq(struct qman_fq *fq, u32 flags, struct qm_mcc_initfq *opts)\n \n \t\tmcc->initfq.we_mask |= QM_INITFQ_WE_CONTEXTB;\n #ifdef CONFIG_FSL_QMAN_FQ_LOOKUP\n-\t\tmcc->initfq.fqd.context_b = fq->key;\n+\t\tmcc->initfq.fqd.context_b = cpu_to_be32(fq->key);\n #else\n \t\tmcc->initfq.fqd.context_b = (u32)(uintptr_t)fq;\n #endif\n",
    "prefixes": [
        "v3",
        "08/13"
    ]
}