Show a patch.

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

{
    "id": 44852,
    "url": "http://patches.dpdk.org/api/patches/44852/",
    "web_url": "http://patches.dpdk.org/patch/44852/",
    "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-10-git-send-email-hemant.agrawal@nxp.com>",
    "date": "2018-09-18T13:31:52",
    "name": "[v2,09/13] net/dpaa: rearranging of atomic queue support code",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "cfc887a07144c0da8d50cef4a411ba6419fddf4c",
    "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/44852/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/44852/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/44852/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 B0E975B3A;\n\tTue, 18 Sep 2018 15:34:15 +0200 (CEST)",
            "from inva020.nxp.com (inva020.nxp.com [92.121.34.13])\n\tby dpdk.org (Postfix) with ESMTP id 01487532C\n\tfor <dev@dpdk.org>; Tue, 18 Sep 2018 15:34:07 +0200 (CEST)",
            "from inva020.nxp.com (localhost [127.0.0.1])\n\tby inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id DB6B21A0147;\n\tTue, 18 Sep 2018 15:34:06 +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 50CD41A013F;\n\tTue, 18 Sep 2018 15:34:04 +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 D452240314;\n\tTue, 18 Sep 2018 21:33:59 +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-10-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:52 +0530",
        "Cc": "Sunil Kumar Kori <sunil.kori@nxp.com>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "Subject": "[dpdk-dev] [PATCH v2 09/13] net/dpaa: rearranging of atomic queue\n\tsupport code"
    },
    "content": "From: Sunil Kumar Kori <sunil.kori@nxp.com>\n\nThis is to align the code with dpaa2 to ease out maintaince\nof both driver code bases.\n\nSigned-off-by: Sunil Kumar Kori <sunil.kori@nxp.com>\n---\n drivers/net/dpaa/dpaa_rxtx.c | 25 +++++++++++++------------\n 1 file changed, 13 insertions(+), 12 deletions(-)",
    "diff": "diff --git a/drivers/net/dpaa/dpaa_rxtx.c b/drivers/net/dpaa/dpaa_rxtx.c\nindex 3a3a048..6698c97 100644\n--- a/drivers/net/dpaa/dpaa_rxtx.c\n+++ b/drivers/net/dpaa/dpaa_rxtx.c\n@@ -870,6 +870,19 @@ dpaa_eth_queue_tx(void *q, struct rte_mbuf **bufs, uint16_t nb_bufs)\n \t\t\t\tDPAA_TX_BURST_SIZE : nb_bufs;\n \t\tfor (loop = 0; loop < frames_to_send; loop++) {\n \t\t\tmbuf = *(bufs++);\n+\t\t\tseqn = mbuf->seqn;\n+\t\t\tif (seqn != DPAA_INVALID_MBUF_SEQN) {\n+\t\t\t\tindex = seqn - 1;\n+\t\t\t\tif (DPAA_PER_LCORE_DQRR_HELD & (1 << index)) {\n+\t\t\t\t\tflags[loop] =\n+\t\t\t\t\t   ((index & QM_EQCR_DCA_IDXMASK) << 8);\n+\t\t\t\t\tflags[loop] |= QMAN_ENQUEUE_FLAG_DCA;\n+\t\t\t\t\tDPAA_PER_LCORE_DQRR_SIZE--;\n+\t\t\t\t\tDPAA_PER_LCORE_DQRR_HELD &=\n+\t\t\t\t\t\t\t\t~(1 << index);\n+\t\t\t\t}\n+\t\t\t}\n+\n \t\t\tif (likely(RTE_MBUF_DIRECT(mbuf))) {\n \t\t\t\tmp = mbuf->pool;\n \t\t\t\tbp_info = DPAA_MEMPOOL_TO_POOL_INFO(mp);\n@@ -916,18 +929,6 @@ dpaa_eth_queue_tx(void *q, struct rte_mbuf **bufs, uint16_t nb_bufs)\n \t\t\t\t\tgoto send_pkts;\n \t\t\t\t}\n \t\t\t}\n-\t\t\tseqn = mbuf->seqn;\n-\t\t\tif (seqn != DPAA_INVALID_MBUF_SEQN) {\n-\t\t\t\tindex = seqn - 1;\n-\t\t\t\tif (DPAA_PER_LCORE_DQRR_HELD & (1 << index)) {\n-\t\t\t\t\tflags[loop] =\n-\t\t\t\t\t   ((index & QM_EQCR_DCA_IDXMASK) << 8);\n-\t\t\t\t\tflags[loop] |= QMAN_ENQUEUE_FLAG_DCA;\n-\t\t\t\t\tDPAA_PER_LCORE_DQRR_SIZE--;\n-\t\t\t\t\tDPAA_PER_LCORE_DQRR_HELD &=\n-\t\t\t\t\t\t\t\t~(1 << index);\n-\t\t\t\t}\n-\t\t\t}\n \t\t}\n \n send_pkts:\n",
    "prefixes": [
        "v2",
        "09/13"
    ]
}