get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 123964,
    "url": "http://patches.dpdk.org/api/patches/123964/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230215170949.60569-6-hernan.vargas@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": "<20230215170949.60569-6-hernan.vargas@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230215170949.60569-6-hernan.vargas@intel.com",
    "date": "2023-02-15T17:09:38",
    "name": "[v2,05/16] test/bbdev: enable early termination for validation",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "561de3ca93982fc75f17fcaffff63880809c9f1f",
    "submitter": {
        "id": 2659,
        "url": "http://patches.dpdk.org/api/people/2659/?format=api",
        "name": "Hernan Vargas",
        "email": "hernan.vargas@intel.com"
    },
    "delegate": {
        "id": 2642,
        "url": "http://patches.dpdk.org/api/users/2642/?format=api",
        "username": "mcoquelin",
        "first_name": "Maxime",
        "last_name": "Coquelin",
        "email": "maxime.coquelin@redhat.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20230215170949.60569-6-hernan.vargas@intel.com/mbox/",
    "series": [
        {
            "id": 27026,
            "url": "http://patches.dpdk.org/api/series/27026/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=27026",
            "date": "2023-02-15T17:09:33",
            "name": "test/bbdev: changes for 23.03",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/27026/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/123964/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/123964/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 9E21141CA8;\n\tWed, 15 Feb 2023 18:13:31 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 98B8A42D2F;\n\tWed, 15 Feb 2023 18:13:05 +0100 (CET)",
            "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n by mails.dpdk.org (Postfix) with ESMTP id E631142D10\n for <dev@dpdk.org>; Wed, 15 Feb 2023 18:13:00 +0100 (CET)",
            "from fmsmga003.fm.intel.com ([10.253.24.29])\n by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 15 Feb 2023 09:09:59 -0800",
            "from unknown (HELO csl-npg-qt0.la.intel.com) ([10.233.181.103])\n by FMSMGA003.fm.intel.com with ESMTP; 15 Feb 2023 09:09:57 -0800"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1676481181; x=1708017181;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=yQO/kGd3CDCnM9QS72aXn+TzzQE73zjgLpDI9wfier4=;\n b=ny1XCPtTBPx4mbKMdU3q0Ki6ObFGZAChx13SsX1nZAPm7lU1z9skTda+\n a60qUVQlPpFNexKrxrtjSeR+XfSC8NcRIyjvFVycneztZ2uKbzZaRJhp5\n Jcp54p9mSGTkDImUn79lBQLaszYQle9dJAQM59ad6T3rGOfDe8nwpG903\n 9UGedr6mMDbEEkuJQIXriBSTwXLveHLc/QgIK4BNp7Xa3ZTa4zSLYCm/R\n 5XHlpsHcuvw8xeVnTlSJ159JC5ZrUI/6ugbgT5kveFCCN56ymFf6601p7\n UDtAqGSOEPOZDbSNfMJx41GO3zcqnNspOJfMfIwO3IbCaqH1uQMnNM3sG w==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6500,9779,10622\"; a=\"332789802\"",
            "E=Sophos;i=\"5.97,300,1669104000\"; d=\"scan'208\";a=\"332789802\"",
            "E=McAfee;i=\"6500,9779,10622\"; a=\"758489619\"",
            "E=Sophos;i=\"5.97,300,1669104000\"; d=\"scan'208\";a=\"758489619\""
        ],
        "X-ExtLoop1": "1",
        "From": "Hernan Vargas <hernan.vargas@intel.com>",
        "To": "dev@dpdk.org, maxime.coquelin@redhat.com, gakhil@marvell.com,\n trix@redhat.com",
        "Cc": "nicolas.chautru@intel.com, qi.z.zhang@intel.com,\n Hernan Vargas <hernan.vargas@intel.com>",
        "Subject": "[PATCH v2 05/16] test/bbdev: enable early termination for validation",
        "Date": "Wed, 15 Feb 2023 09:09:38 -0800",
        "Message-Id": "<20230215170949.60569-6-hernan.vargas@intel.com>",
        "X-Mailer": "git-send-email 2.37.1",
        "In-Reply-To": "<20230215170949.60569-1-hernan.vargas@intel.com>",
        "References": "<20230215170949.60569-1-hernan.vargas@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "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"
    },
    "content": "Enhancement to enable early termination for validation tests if the\ndevice supports it.\n\nSigned-off-by: Hernan Vargas <hernan.vargas@intel.com>\n---\n app/test-bbdev/test_bbdev_perf.c | 30 +++++++++++++++++++-----------\n 1 file changed, 19 insertions(+), 11 deletions(-)",
    "diff": "diff --git a/app/test-bbdev/test_bbdev_perf.c b/app/test-bbdev/test_bbdev_perf.c\nindex dede0f900e..8c4b82efca 100644\n--- a/app/test-bbdev/test_bbdev_perf.c\n+++ b/app/test-bbdev/test_bbdev_perf.c\n@@ -3775,11 +3775,11 @@ throughput_pmd_lcore_ldpc_dec(void *arg)\n \tTEST_ASSERT_SUCCESS(ret, \"Allocation failed for %d ops\", num_ops);\n \n \t/* For throughput tests we need to disable early termination */\n-\tif (check_bit(ref_op->ldpc_dec.op_flags,\n-\t\t\tRTE_BBDEV_LDPC_ITERATION_STOP_ENABLE))\n-\t\tref_op->ldpc_dec.op_flags -=\n-\t\t\t\tRTE_BBDEV_LDPC_ITERATION_STOP_ENABLE;\n+\tif (check_bit(ref_op->ldpc_dec.op_flags, RTE_BBDEV_LDPC_ITERATION_STOP_ENABLE))\n+\t\tref_op->ldpc_dec.op_flags -= RTE_BBDEV_LDPC_ITERATION_STOP_ENABLE;\n+\n \tref_op->ldpc_dec.iter_max = get_iter_max();\n+\t/* Since ET is disabled, the expected iter_count is iter_max */\n \tref_op->ldpc_dec.iter_count = ref_op->ldpc_dec.iter_max;\n \n \tif (test_vector.op_type != RTE_BBDEV_OP_NONE)\n@@ -4465,7 +4465,7 @@ latency_test_dec(struct rte_mempool *mempool,\n \t\tstruct test_buffers *bufs, struct rte_bbdev_dec_op *ref_op,\n \t\tint vector_mask, uint16_t dev_id, uint16_t queue_id,\n \t\tconst uint16_t num_to_process, uint16_t burst_sz,\n-\t\tuint64_t *total_time, uint64_t *min_time, uint64_t *max_time)\n+\t\tuint64_t *total_time, uint64_t *min_time, uint64_t *max_time, bool disable_et)\n {\n \tint ret = TEST_SUCCESS;\n \tuint16_t i, j, dequeued;\n@@ -4481,8 +4481,14 @@ latency_test_dec(struct rte_mempool *mempool,\n \t\t\tburst_sz = num_to_process - dequeued;\n \n \t\tret = rte_bbdev_dec_op_alloc_bulk(mempool, ops_enq, burst_sz);\n-\t\tTEST_ASSERT_SUCCESS(ret,\n-\t\t\t\t\"rte_bbdev_dec_op_alloc_bulk() failed\");\n+\t\tTEST_ASSERT_SUCCESS(ret, \"rte_bbdev_dec_op_alloc_bulk() failed\");\n+\n+\t\tref_op->turbo_dec.iter_max = get_iter_max();\n+\t\t/* For validation tests we want to enable early termination */\n+\t\tif (!disable_et && !check_bit(ref_op->turbo_dec.op_flags,\n+\t\t\t\tRTE_BBDEV_TURBO_EARLY_TERMINATION))\n+\t\t\tref_op->turbo_dec.op_flags |= RTE_BBDEV_TURBO_EARLY_TERMINATION;\n+\n \t\tif (test_vector.op_type != RTE_BBDEV_OP_NONE)\n \t\t\tcopy_reference_dec_op(ops_enq, burst_sz, dequeued,\n \t\t\t\t\tbufs->inputs,\n@@ -4561,10 +4567,12 @@ latency_test_ldpc_dec(struct rte_mempool *mempool,\n \t\t/* For latency tests we need to disable early termination */\n \t\tif (disable_et && check_bit(ref_op->ldpc_dec.op_flags,\n \t\t\t\tRTE_BBDEV_LDPC_ITERATION_STOP_ENABLE))\n-\t\t\tref_op->ldpc_dec.op_flags -=\n-\t\t\t\t\tRTE_BBDEV_LDPC_ITERATION_STOP_ENABLE;\n+\t\t\tref_op->ldpc_dec.op_flags -= RTE_BBDEV_LDPC_ITERATION_STOP_ENABLE;\n+\n \t\tref_op->ldpc_dec.iter_max = get_iter_max();\n-\t\tref_op->ldpc_dec.iter_count = ref_op->ldpc_dec.iter_max;\n+\t\t/* When ET is disabled, the expected iter_count is iter_max */\n+\t\tif (disable_et)\n+\t\t\tref_op->ldpc_dec.iter_count = ref_op->ldpc_dec.iter_max;\n \n \t\tif (test_vector.op_type != RTE_BBDEV_OP_NONE)\n \t\t\tcopy_reference_ldpc_dec_op(ops_enq, burst_sz, dequeued,\n@@ -4873,7 +4881,7 @@ validation_latency_test(struct active_device *ad,\n \t\titer = latency_test_dec(op_params->mp, bufs,\n \t\t\t\top_params->ref_dec_op, op_params->vector_mask,\n \t\t\t\tad->dev_id, queue_id, num_to_process,\n-\t\t\t\tburst_sz, &total_time, &min_time, &max_time);\n+\t\t\t\tburst_sz, &total_time, &min_time, &max_time, latency_flag);\n \telse if (op_type == RTE_BBDEV_OP_LDPC_ENC)\n \t\titer = latency_test_ldpc_enc(op_params->mp, bufs,\n \t\t\t\top_params->ref_enc_op, ad->dev_id, queue_id,\n",
    "prefixes": [
        "v2",
        "05/16"
    ]
}