get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 66257,
    "url": "http://patches.dpdk.org/api/patches/66257/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1583346152-10186-10-git-send-email-nicolas.chautru@intel.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": "<1583346152-10186-10-git-send-email-nicolas.chautru@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1583346152-10186-10-git-send-email-nicolas.chautru@intel.com",
    "date": "2020-03-04T18:22:26",
    "name": "[v2,09/15] test-bbdev: support for offload test for LDPC",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "bac82021880ec7173c7ab07d60358519c0144203",
    "submitter": {
        "id": 1314,
        "url": "http://patches.dpdk.org/api/people/1314/?format=api",
        "name": "Chautru, Nicolas",
        "email": "nicolas.chautru@intel.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/1583346152-10186-10-git-send-email-nicolas.chautru@intel.com/mbox/",
    "series": [
        {
            "id": 8783,
            "url": "http://patches.dpdk.org/api/series/8783/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=8783",
            "date": "2020-03-04T18:22:17",
            "name": "bbdev new features",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/8783/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/66257/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/66257/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 786B9A0573;\n\tWed,  4 Mar 2020 19:24:15 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 110291C02D;\n\tWed,  4 Mar 2020 19:22:59 +0100 (CET)",
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n by dpdk.org (Postfix) with ESMTP id CE1361BFA9\n for <dev@dpdk.org>; Wed,  4 Mar 2020 19:22:47 +0100 (CET)",
            "from fmsmga008.fm.intel.com ([10.253.24.58])\n by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n 04 Mar 2020 10:22:43 -0800",
            "from skx-5gnr-sc12-4.sc.intel.com ([172.25.69.210])\n by fmsmga008.fm.intel.com with ESMTP; 04 Mar 2020 10:22:43 -0800"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.70,514,1574150400\"; d=\"scan'208\";a=\"234199018\"",
        "From": "Nicolas Chautru <nicolas.chautru@intel.com>",
        "To": "thomas@monjalon.net,\n\takhil.goyal@nxp.com,\n\tdev@dpdk.org",
        "Cc": "ferruh.yigit@intel.com,\n\tNic Chautru <nicolas.chautru@intel.com>",
        "Date": "Wed,  4 Mar 2020 10:22:26 -0800",
        "Message-Id": "<1583346152-10186-10-git-send-email-nicolas.chautru@intel.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1583346152-10186-1-git-send-email-nicolas.chautru@intel.com>",
        "References": "<1582778348-113547-15-git-send-email-nicolas.chautru@intel.com>\n <1583346152-10186-1-git-send-email-nicolas.chautru@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v2 09/15] test-bbdev: support for offload test\n\tfor LDPC",
        "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 <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: Nic Chautru <nicolas.chautru@intel.com>\n\nAdding support for the offload latency tests when\nusing the LDPC encoder and decoder operations.\n\nSigned-off-by: Nic Chautru <nicolas.chautru@intel.com>\n---\n app/test-bbdev/test_bbdev_perf.c | 26 +++++++++++++++++++-------\n 1 file changed, 19 insertions(+), 7 deletions(-)",
    "diff": "diff --git a/app/test-bbdev/test_bbdev_perf.c b/app/test-bbdev/test_bbdev_perf.c\nindex 8fcdda0..1017b97 100644\n--- a/app/test-bbdev/test_bbdev_perf.c\n+++ b/app/test-bbdev/test_bbdev_perf.c\n@@ -4538,7 +4538,7 @@ typedef int (test_case_function)(struct active_device *ad,\n offload_latency_empty_q_test_dec(uint16_t dev_id, uint16_t queue_id,\n \t\tconst uint16_t num_to_process, uint16_t burst_sz,\n \t\tuint64_t *deq_total_time, uint64_t *deq_min_time,\n-\t\tuint64_t *deq_max_time)\n+\t\tuint64_t *deq_max_time, const enum rte_bbdev_op_type op_type)\n {\n \tint i, deq_total;\n \tstruct rte_bbdev_dec_op *ops[MAX_BURST];\n@@ -4552,7 +4552,12 @@ typedef int (test_case_function)(struct active_device *ad,\n \n \t\tif (unlikely(num_to_process - deq_total < burst_sz))\n \t\t\tburst_sz = num_to_process - deq_total;\n-\t\trte_bbdev_dequeue_dec_ops(dev_id, queue_id, ops, burst_sz);\n+\t\tif (op_type == RTE_BBDEV_OP_TURBO_DEC)\n+\t\t\trte_bbdev_dequeue_dec_ops(dev_id, queue_id, ops,\n+\t\t\t\t\tburst_sz);\n+\t\telse\n+\t\t\trte_bbdev_dequeue_ldpc_dec_ops(dev_id, queue_id, ops,\n+\t\t\t\t\t\t\t\tburst_sz);\n \n \t\tdeq_last_time = rte_rdtsc_precise() - deq_start_time;\n \t\t*deq_max_time = RTE_MAX(*deq_max_time, deq_last_time);\n@@ -4567,7 +4572,7 @@ typedef int (test_case_function)(struct active_device *ad,\n offload_latency_empty_q_test_enc(uint16_t dev_id, uint16_t queue_id,\n \t\tconst uint16_t num_to_process, uint16_t burst_sz,\n \t\tuint64_t *deq_total_time, uint64_t *deq_min_time,\n-\t\tuint64_t *deq_max_time)\n+\t\tuint64_t *deq_max_time, const enum rte_bbdev_op_type op_type)\n {\n \tint i, deq_total;\n \tstruct rte_bbdev_enc_op *ops[MAX_BURST];\n@@ -4580,7 +4585,12 @@ typedef int (test_case_function)(struct active_device *ad,\n \n \t\tif (unlikely(num_to_process - deq_total < burst_sz))\n \t\t\tburst_sz = num_to_process - deq_total;\n-\t\trte_bbdev_dequeue_enc_ops(dev_id, queue_id, ops, burst_sz);\n+\t\tif (op_type == RTE_BBDEV_OP_LDPC_ENC)\n+\t\t\trte_bbdev_dequeue_ldpc_enc_ops(dev_id, queue_id, ops,\n+\t\t\t\t\tburst_sz);\n+\t\telse\n+\t\t\trte_bbdev_dequeue_enc_ops(dev_id, queue_id, ops,\n+\t\t\t\t\t\t\t\tburst_sz);\n \n \t\tdeq_last_time = rte_rdtsc_precise() - deq_start_time;\n \t\t*deq_max_time = RTE_MAX(*deq_max_time, deq_last_time);\n@@ -4590,6 +4600,7 @@ typedef int (test_case_function)(struct active_device *ad,\n \n \treturn i;\n }\n+\n #endif\n \n static int\n@@ -4627,14 +4638,15 @@ typedef int (test_case_function)(struct active_device *ad,\n \tprintf(\"== test: offload latency empty dequeue\\ndev: %s, burst size: %u, num ops: %u, op type: %s\\n\",\n \t\t\tinfo.dev_name, burst_sz, num_to_process, op_type_str);\n \n-\tif (op_type == RTE_BBDEV_OP_TURBO_DEC)\n+\tif (op_type == RTE_BBDEV_OP_TURBO_DEC ||\n+\t\t\top_type == RTE_BBDEV_OP_LDPC_DEC)\n \t\titer = offload_latency_empty_q_test_dec(ad->dev_id, queue_id,\n \t\t\t\tnum_to_process, burst_sz, &deq_total_time,\n-\t\t\t\t&deq_min_time, &deq_max_time);\n+\t\t\t\t&deq_min_time, &deq_max_time, op_type);\n \telse\n \t\titer = offload_latency_empty_q_test_enc(ad->dev_id, queue_id,\n \t\t\t\tnum_to_process, burst_sz, &deq_total_time,\n-\t\t\t\t&deq_min_time, &deq_max_time);\n+\t\t\t\t&deq_min_time, &deq_max_time, op_type);\n \n \tif (iter <= 0)\n \t\treturn TEST_FAILED;\n",
    "prefixes": [
        "v2",
        "09/15"
    ]
}