get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 99863,
    "url": "http://patches.dpdk.org/api/patches/99863/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20210928082953.18731-9-nipun.gupta@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": "<20210928082953.18731-9-nipun.gupta@nxp.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210928082953.18731-9-nipun.gupta@nxp.com",
    "date": "2021-09-28T08:29:52",
    "name": "[v7,8/9] app/bbdev: handle endianness of test data",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "1c830c1c3ad08eb0a6e52317c78267bd800ae480",
    "submitter": {
        "id": 471,
        "url": "http://patches.dpdk.org/api/people/471/?format=api",
        "name": "Nipun Gupta",
        "email": "nipun.gupta@nxp.com"
    },
    "delegate": {
        "id": 6690,
        "url": "http://patches.dpdk.org/api/users/6690/?format=api",
        "username": "akhil",
        "first_name": "akhil",
        "last_name": "goyal",
        "email": "gakhil@marvell.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20210928082953.18731-9-nipun.gupta@nxp.com/mbox/",
    "series": [
        {
            "id": 19214,
            "url": "http://patches.dpdk.org/api/series/19214/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=19214",
            "date": "2021-09-28T08:29:49",
            "name": "baseband: add NXP LA12xx driver",
            "version": 7,
            "mbox": "http://patches.dpdk.org/series/19214/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/99863/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/99863/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 1B783A0C4D;\n\tTue, 28 Sep 2021 10:40:08 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id B03B54113C;\n\tTue, 28 Sep 2021 10:30:05 +0200 (CEST)",
            "from inva020.nxp.com (inva020.nxp.com [92.121.34.13])\n by mails.dpdk.org (Postfix) with ESMTP id 539A7410F5\n for <dev@dpdk.org>; Tue, 28 Sep 2021 10:29:59 +0200 (CEST)",
            "from inva020.nxp.com (localhost [127.0.0.1])\n by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 17EB81A4025;\n Tue, 28 Sep 2021 10:29:59 +0200 (CEST)",
            "from aprdc01srsp001v.ap-rdc01.nxp.com\n (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16])\n by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 9C8421A4018;\n Tue, 28 Sep 2021 10:29:58 +0200 (CEST)",
            "from lsv03274.swis.in-blr01.nxp.com (lsv03274.swis.in-blr01.nxp.com\n [92.120.147.114])\n by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id F3D24183AD14;\n Tue, 28 Sep 2021 16:29:57 +0800 (+08)"
        ],
        "From": "nipun.gupta@nxp.com",
        "To": "dev@dpdk.org,\n\tgakhil@marvell.com,\n\tnicolas.chautru@intel.com",
        "Cc": "david.marchand@redhat.com, hemant.agrawal@nxp.com,\n Nipun Gupta <nipun.gupta@nxp.com>",
        "Date": "Tue, 28 Sep 2021 13:59:52 +0530",
        "Message-Id": "<20210928082953.18731-9-nipun.gupta@nxp.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20210928082953.18731-1-nipun.gupta@nxp.com>",
        "References": "<20210318063421.14895-1-hemant.agrawal@nxp.com>\n <20210928082953.18731-1-nipun.gupta@nxp.com>",
        "X-Virus-Scanned": "ClamAV using ClamSMTP",
        "Subject": "[dpdk-dev] [PATCH v7 8/9] app/bbdev: handle endianness of test data",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <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 <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\nWith data input, output and harq also supported in big\nendian format, this patch updates the testbbdev application\nto handle the endianness conversion as directed by the\nthe driver being used.\n\nIf the driver supports big endian data processing, conversion\nfrom little endian to big is handled by the testbbdev application.\n\nSigned-off-by: Nipun Gupta <nipun.gupta@nxp.com>\n---\n app/test-bbdev/test_bbdev_perf.c | 62 ++++++++++++++++++++++++++++++++\n 1 file changed, 62 insertions(+)",
    "diff": "diff --git a/app/test-bbdev/test_bbdev_perf.c b/app/test-bbdev/test_bbdev_perf.c\nindex 469597b8b3..a0f565ee3f 100644\n--- a/app/test-bbdev/test_bbdev_perf.c\n+++ b/app/test-bbdev/test_bbdev_perf.c\n@@ -227,6 +227,64 @@ clear_soft_out_cap(uint32_t *op_flags)\n \t*op_flags &= ~RTE_BBDEV_TURBO_NEG_LLR_1_BIT_SOFT_OUT;\n }\n \n+static inline void\n+reverse_op(struct op_data_entries *op)\n+{\n+\tuint8_t nb_segs = op->nb_segments;\n+\tuint32_t *data, len;\n+\tint complete, rem, i, j;\n+\tuint8_t *rem_data, temp;\n+\n+\t/* Validate each mbuf segment length */\n+\tfor (i = 0; i < nb_segs; ++i) {\n+\t\tlen = op->segments[i].length;\n+\t\tdata = op->segments[i].addr;\n+\n+\t\t/* Swap complete u32 bytes */\n+\t\tcomplete = len / 4;\n+\t\tfor (j = 0; j < complete; j++)\n+\t\t\tdata[j] = rte_bswap32(data[j]);\n+\n+\t\t/* Swap any remaining data for last seg */\n+\t\tif (i == (nb_segs - 1)) {\n+\t\t\trem = len % 4;\n+\t\t\trem_data = (uint8_t *)&data[j];\n+\t\t\tfor (j = 0; j < rem/2; j++) {\n+\t\t\t\ttemp = rem_data[j];\n+\t\t\t\trem_data[j] = rem_data[rem - j - 1];\n+\t\t\t\trem_data[rem - j - 1] = temp;\n+\t\t\t}\n+\t\t}\n+\t}\n+}\n+\n+static inline void\n+reverse_all_ops(void)\n+{\n+\tunsigned int nb_inputs, nb_soft_outputs, nb_hard_outputs,\n+\t\tnb_harq_inputs, nb_harq_outputs;\n+\n+\tnb_inputs = test_vector.entries[DATA_INPUT].nb_segments;\n+\tif (nb_inputs)\n+\t\treverse_op(&test_vector.entries[DATA_INPUT]);\n+\n+\tnb_soft_outputs = test_vector.entries[DATA_SOFT_OUTPUT].nb_segments;\n+\tif (nb_soft_outputs)\n+\t\treverse_op(&test_vector.entries[DATA_SOFT_OUTPUT]);\n+\n+\tnb_hard_outputs = test_vector.entries[DATA_HARD_OUTPUT].nb_segments;\n+\tif (nb_hard_outputs)\n+\t\treverse_op(&test_vector.entries[DATA_HARD_OUTPUT]);\n+\n+\tnb_harq_inputs  = test_vector.entries[DATA_HARQ_INPUT].nb_segments;\n+\tif (nb_harq_inputs)\n+\t\treverse_op(&test_vector.entries[DATA_HARQ_INPUT]);\n+\n+\tnb_harq_outputs = test_vector.entries[DATA_HARQ_OUTPUT].nb_segments;\n+\tif (nb_harq_outputs)\n+\t\treverse_op(&test_vector.entries[DATA_HARQ_OUTPUT]);\n+}\n+\n static int\n check_dev_cap(const struct rte_bbdev_info *dev_info)\n {\n@@ -234,6 +292,7 @@ check_dev_cap(const struct rte_bbdev_info *dev_info)\n \tunsigned int nb_inputs, nb_soft_outputs, nb_hard_outputs,\n \t\tnb_harq_inputs, nb_harq_outputs;\n \tconst struct rte_bbdev_op_cap *op_cap = dev_info->drv.capabilities;\n+\tuint8_t be_data = dev_info->drv.support_be_data;\n \n \tnb_inputs = test_vector.entries[DATA_INPUT].nb_segments;\n \tnb_soft_outputs = test_vector.entries[DATA_SOFT_OUTPUT].nb_segments;\n@@ -245,6 +304,9 @@ check_dev_cap(const struct rte_bbdev_info *dev_info)\n \t\tif (op_cap->type != test_vector.op_type)\n \t\t\tcontinue;\n \n+\t\tif (be_data)\n+\t\t\treverse_all_ops();\n+\n \t\tif (op_cap->type == RTE_BBDEV_OP_TURBO_DEC) {\n \t\t\tconst struct rte_bbdev_op_cap_turbo_dec *cap =\n \t\t\t\t\t&op_cap->cap.turbo_dec;\n",
    "prefixes": [
        "v7",
        "8/9"
    ]
}