Show a patch.

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

{
    "id": 44851,
    "url": "http://patches.dpdk.org/api/patches/44851/",
    "web_url": "http://patches.dpdk.org/patch/44851/",
    "project": {
        "id": 1,
        "url": "http://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": "<1537277516-8876-9-git-send-email-hemant.agrawal@nxp.com>",
    "date": "2018-09-18T13:31:51",
    "name": "[v2,08/13] bus/dpaa: avoid using be conversions for contextb",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "aa2e49e22a8ef69e62bc1a3ea34a3ab1935eb536",
    "submitter": {
        "id": 477,
        "url": "http://patches.dpdk.org/api/people/477/",
        "name": "Hemant Agrawal",
        "email": "hemant.agrawal@nxp.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patches.dpdk.org/api/users/319/",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@intel.com"
    },
    "mbox": "http://patches.dpdk.org/patch/44851/mbox/",
    "series": [
        {
            "id": 1371,
            "url": "http://patches.dpdk.org/api/series/1371/",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=1371",
            "date": "2018-09-18T13:31:43",
            "name": "NXP DPAA driver enhancements",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/1371/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/44851/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/44851/checks/",
    "tags": {},
    "headers": {
        "X-Mailman-Version": "2.1.15",
        "In-Reply-To": "<1537277516-8876-1-git-send-email-hemant.agrawal@nxp.com>",
        "Errors-To": "dev-bounces@dpdk.org",
        "X-Mailer": "git-send-email 2.7.4",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id D06B35B2C;\n\tTue, 18 Sep 2018 15:34:13 +0200 (CEST)",
            "from inva021.nxp.com (inva021.nxp.com [92.121.34.21])\n\tby dpdk.org (Postfix) with ESMTP id 114F04F9B\n\tfor <dev@dpdk.org>; Tue, 18 Sep 2018 15:34:06 +0200 (CEST)",
            "from inva021.nxp.com (localhost [127.0.0.1])\n\tby inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id EA60520013F;\n\tTue, 18 Sep 2018 15:34:05 +0200 (CEST)",
            "from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com\n\t[165.114.16.14])\n\tby inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 5FF5F200124;\n\tTue, 18 Sep 2018 15:34:03 +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 BE840402D9;\n\tTue, 18 Sep 2018 21:33:58 +0800 (SGT)"
        ],
        "References": "<1535539660-20228-2-git-send-email-hemant.agrawal@nxp.com>\n\t<1537277516-8876-1-git-send-email-hemant.agrawal@nxp.com>",
        "Delivered-To": "patchwork@dpdk.org",
        "X-BeenThere": "dev@dpdk.org",
        "Message-Id": "<1537277516-8876-9-git-send-email-hemant.agrawal@nxp.com>",
        "X-Virus-Scanned": "ClamAV using ClamSMTP",
        "List-Post": "<mailto:dev@dpdk.org>",
        "Precedence": "list",
        "From": "Hemant Agrawal <hemant.agrawal@nxp.com>",
        "X-Original-To": "patchwork@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": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "To": "dev@dpdk.org,\n\tthomas@monjalon.net,\n\tferruh.yigit@intel.com",
        "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>",
        "Date": "Tue, 18 Sep 2018 19:01:51 +0530",
        "Cc": "Nipun Gupta <nipun.gupta@nxp.com>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "Subject": "[dpdk-dev] [PATCH v2 08/13] bus/dpaa: avoid using be conversions\n\tfor contextb"
    },
    "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": [
        "v2",
        "08/13"
    ]
}