get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 124746,
    "url": "http://patches.dpdk.org/api/patches/124746/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230302202211.170017-10-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": "<20230302202211.170017-10-hernan.vargas@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230302202211.170017-10-hernan.vargas@intel.com",
    "date": "2023-03-02T20:22:03",
    "name": "[v3,09/17] test/bbdev: add timeout for enq/deq loops",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "5daf3151917f7af8e1706f97b1155e27270f98f8",
    "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/20230302202211.170017-10-hernan.vargas@intel.com/mbox/",
    "series": [
        {
            "id": 27233,
            "url": "http://patches.dpdk.org/api/series/27233/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=27233",
            "date": "2023-03-02T20:21:54",
            "name": "test/bbdev: changes for 23.03",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/27233/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/124746/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/124746/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 2582741DB8;\n\tThu,  2 Mar 2023 21:23:03 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 381C842D3A;\n\tThu,  2 Mar 2023 21:22:09 +0100 (CET)",
            "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n by mails.dpdk.org (Postfix) with ESMTP id 51C3A42D1A\n for <dev@dpdk.org>; Thu,  2 Mar 2023 21:22:03 +0100 (CET)",
            "from orsmga008.jf.intel.com ([10.7.209.65])\n by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 02 Mar 2023 12:22:02 -0800",
            "from unknown (HELO csl-npg-qt0.la.intel.com) ([10.233.181.103])\n by orsmga008.jf.intel.com with ESMTP; 02 Mar 2023 12:22:01 -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=1677788523; x=1709324523;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=sfMWY+PrH2Nt32jm1wJ6vXs+HyvwZYAONVwxMRkkGyU=;\n b=Bm4Mo4xevmTQX5E7T5x0pDmXNszBC7wUyLaup7ttcNa6uZOGvfgP8pF+\n z8BLvQOeYzhB+DNLIQBqwm2p8fxooXTj1GIWIfsE5CD0BNhlXox/eYHfw\n DKljJ+m0DRS8n9EtTq4BHG8rlQSLnbPc8w75HrKyGNT2M/XyHgnso7DIZ\n BCj82HE+HOcSUv7cJNnvyXN8TNb+8S0Eem7LP454h/9ql6GFRmHgRJMxS\n XOMU3z9rMsZkS5rJfdBFOr81oJk/7GgEJIX6zrv9bchZJdcDs9DHRBmbZ\n S11K4Tg5pWB6PpaNI6gL77n6u0KeqeOCL9jcOrG5EhkVNRAdemVEMlzNV Q==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6500,9779,10637\"; a=\"334871200\"",
            "E=Sophos;i=\"5.98,228,1673942400\"; d=\"scan'208\";a=\"334871200\"",
            "E=McAfee;i=\"6500,9779,10637\"; a=\"705398118\"",
            "E=Sophos;i=\"5.98,228,1673942400\"; d=\"scan'208\";a=\"705398118\""
        ],
        "X-ExtLoop1": "1",
        "From": "Hernan Vargas <hernan.vargas@intel.com>",
        "To": "dev@dpdk.org, gakhil@marvell.com, trix@redhat.com,\n maxime.coquelin@redhat.com",
        "Cc": "nicolas.chautru@intel.com, qi.z.zhang@intel.com,\n Hernan Vargas <hernan.vargas@intel.com>",
        "Subject": "[PATCH v3 09/17] test/bbdev: add timeout for enq/deq loops",
        "Date": "Thu,  2 Mar 2023 12:22:03 -0800",
        "Message-Id": "<20230302202211.170017-10-hernan.vargas@intel.com>",
        "X-Mailer": "git-send-email 2.37.1",
        "In-Reply-To": "<20230302202211.170017-1-hernan.vargas@intel.com>",
        "References": "<20230302202211.170017-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": "Added timeout to prevent infinite loop condition if the device\ndoesn't enqueue/dequeue.\n\nSigned-off-by: Hernan Vargas <hernan.vargas@intel.com>\n---\n app/test-bbdev/test_bbdev_perf.c | 133 ++++++++++++++++++++++++++-----\n 1 file changed, 113 insertions(+), 20 deletions(-)",
    "diff": "diff --git a/app/test-bbdev/test_bbdev_perf.c b/app/test-bbdev/test_bbdev_perf.c\nindex 7bfc4cd5779e..7a4841a069ee 100644\n--- a/app/test-bbdev/test_bbdev_perf.c\n+++ b/app/test-bbdev/test_bbdev_perf.c\n@@ -192,6 +192,15 @@ struct test_time_stats {\n typedef int (test_case_function)(struct active_device *ad,\n \t\tstruct test_op_params *op_params);\n \n+/* Get device status before timeout exit */\n+static inline void\n+timeout_exit(uint8_t dev_id)\n+{\n+\tstruct rte_bbdev_info info;\n+\trte_bbdev_info_get(dev_id, &info);\n+\tprintf(\"Device Status %s\\n\", rte_bbdev_device_status_str(info.drv.device_status));\n+}\n+\n static inline void\n mbuf_reset(struct rte_mbuf *m)\n {\n@@ -3553,7 +3562,7 @@ throughput_pmd_lcore_dec(void *arg)\n \t\tops_enq[j]->opaque_data = (void *)(uintptr_t)j;\n \n \tfor (i = 0; i < TEST_REPETITIONS; ++i) {\n-\n+\t\tuint32_t time_out = 0;\n \t\tfor (j = 0; j < num_ops; ++j)\n \t\t\tmbuf_reset(ops_enq[j]->turbo_dec.hard_output.data);\n \t\tif (so_enable)\n@@ -3573,12 +3582,23 @@ throughput_pmd_lcore_dec(void *arg)\n \n \t\t\tdeq += rte_bbdev_dequeue_dec_ops(tp->dev_id,\n \t\t\t\t\tqueue_id, &ops_deq[deq], enq - deq);\n+\t\t\ttime_out++;\n+\t\t\tif (time_out >= TIME_OUT_POLL) {\n+\t\t\t\ttimeout_exit(tp->dev_id);\n+\t\t\t\tTEST_ASSERT_SUCCESS(TEST_FAILED, \"Enqueue timeout!\");\n+\t\t\t}\n \t\t}\n \n \t\t/* dequeue the remaining */\n+\t\ttime_out = 0;\n \t\twhile (deq < enq) {\n \t\t\tdeq += rte_bbdev_dequeue_dec_ops(tp->dev_id,\n \t\t\t\t\tqueue_id, &ops_deq[deq], enq - deq);\n+\t\t\ttime_out++;\n+\t\t\tif (time_out >= TIME_OUT_POLL) {\n+\t\t\t\ttimeout_exit(tp->dev_id);\n+\t\t\t\tTEST_ASSERT_SUCCESS(TEST_FAILED, \"Dequeue timeout!\");\n+\t\t\t}\n \t\t}\n \n \t\ttotal_time += rte_rdtsc_precise() - start_time;\n@@ -3669,6 +3689,7 @@ bler_pmd_lcore_ldpc_dec(void *arg)\n \t\tops_enq[j]->opaque_data = (void *)(uintptr_t)j;\n \n \tfor (i = 0; i < 1; ++i) { /* Could add more iterations */\n+\t\tuint32_t time_out = 0;\n \t\tfor (j = 0; j < num_ops; ++j) {\n \t\t\tif (!loopback)\n \t\t\t\tmbuf_reset(\n@@ -3692,12 +3713,23 @@ bler_pmd_lcore_ldpc_dec(void *arg)\n \n \t\t\tdeq += rte_bbdev_dequeue_ldpc_dec_ops(tp->dev_id,\n \t\t\t\t\tqueue_id, &ops_deq[deq], enq - deq);\n+\t\t\ttime_out++;\n+\t\t\tif (time_out >= TIME_OUT_POLL) {\n+\t\t\t\ttimeout_exit(tp->dev_id);\n+\t\t\t\tTEST_ASSERT_SUCCESS(TEST_FAILED, \"Enqueue timeout!\");\n+\t\t\t}\n \t\t}\n \n \t\t/* dequeue the remaining */\n+\t\ttime_out = 0;\n \t\twhile (deq < enq) {\n \t\t\tdeq += rte_bbdev_dequeue_ldpc_dec_ops(tp->dev_id,\n \t\t\t\t\tqueue_id, &ops_deq[deq], enq - deq);\n+\t\t\ttime_out++;\n+\t\t\tif (time_out >= TIME_OUT_POLL) {\n+\t\t\t\ttimeout_exit(tp->dev_id);\n+\t\t\t\tTEST_ASSERT_SUCCESS(TEST_FAILED, \"Dequeue timeout!\");\n+\t\t\t}\n \t\t}\n \n \t\ttotal_time += rte_rdtsc_precise() - start_time;\n@@ -3796,6 +3828,7 @@ throughput_pmd_lcore_ldpc_dec(void *arg)\n \t\tops_enq[j]->opaque_data = (void *)(uintptr_t)j;\n \n \tfor (i = 0; i < TEST_REPETITIONS; ++i) {\n+\t\tuint32_t time_out = 0;\n \t\tfor (j = 0; j < num_ops; ++j) {\n \t\t\tif (!loopback)\n \t\t\t\tmbuf_reset(\n@@ -3820,12 +3853,23 @@ throughput_pmd_lcore_ldpc_dec(void *arg)\n \n \t\t\tdeq += rte_bbdev_dequeue_ldpc_dec_ops(tp->dev_id,\n \t\t\t\t\tqueue_id, &ops_deq[deq], enq - deq);\n+\t\t\ttime_out++;\n+\t\t\tif (time_out >= TIME_OUT_POLL) {\n+\t\t\t\ttimeout_exit(tp->dev_id);\n+\t\t\t\tTEST_ASSERT_SUCCESS(TEST_FAILED, \"Enqueue timeout!\");\n+\t\t\t}\n \t\t}\n \n \t\t/* dequeue the remaining */\n+\t\ttime_out = 0;\n \t\twhile (deq < enq) {\n \t\t\tdeq += rte_bbdev_dequeue_ldpc_dec_ops(tp->dev_id,\n \t\t\t\t\tqueue_id, &ops_deq[deq], enq - deq);\n+\t\t\ttime_out++;\n+\t\t\tif (time_out >= TIME_OUT_POLL) {\n+\t\t\t\ttimeout_exit(tp->dev_id);\n+\t\t\t\tTEST_ASSERT_SUCCESS(TEST_FAILED, \"Dequeue timeout!\");\n+\t\t\t}\n \t\t}\n \n \t\ttotal_time += rte_rdtsc_precise() - start_time;\n@@ -3907,7 +3951,7 @@ throughput_pmd_lcore_enc(void *arg)\n \t\tops_enq[j]->opaque_data = (void *)(uintptr_t)j;\n \n \tfor (i = 0; i < TEST_REPETITIONS; ++i) {\n-\n+\t\tuint32_t time_out = 0;\n \t\tif (test_vector.op_type != RTE_BBDEV_OP_NONE)\n \t\t\tfor (j = 0; j < num_ops; ++j)\n \t\t\t\tmbuf_reset(ops_enq[j]->turbo_enc.output.data);\n@@ -3925,12 +3969,23 @@ throughput_pmd_lcore_enc(void *arg)\n \n \t\t\tdeq += rte_bbdev_dequeue_enc_ops(tp->dev_id,\n \t\t\t\t\tqueue_id, &ops_deq[deq], enq - deq);\n+\t\t\ttime_out++;\n+\t\t\tif (time_out >= TIME_OUT_POLL) {\n+\t\t\t\ttimeout_exit(tp->dev_id);\n+\t\t\t\tTEST_ASSERT_SUCCESS(TEST_FAILED, \"Enqueue timeout!\");\n+\t\t\t}\n \t\t}\n \n \t\t/* dequeue the remaining */\n+\t\ttime_out = 0;\n \t\twhile (deq < enq) {\n \t\t\tdeq += rte_bbdev_dequeue_enc_ops(tp->dev_id,\n \t\t\t\t\tqueue_id, &ops_deq[deq], enq - deq);\n+\t\t\ttime_out++;\n+\t\t\tif (time_out >= TIME_OUT_POLL) {\n+\t\t\t\ttimeout_exit(tp->dev_id);\n+\t\t\t\tTEST_ASSERT_SUCCESS(TEST_FAILED, \"Dequeue timeout!\");\n+\t\t\t}\n \t\t}\n \n \t\ttotal_time += rte_rdtsc_precise() - start_time;\n@@ -3997,7 +4052,7 @@ throughput_pmd_lcore_ldpc_enc(void *arg)\n \t\tops_enq[j]->opaque_data = (void *)(uintptr_t)j;\n \n \tfor (i = 0; i < TEST_REPETITIONS; ++i) {\n-\n+\t\tuint32_t time_out = 0;\n \t\tif (test_vector.op_type != RTE_BBDEV_OP_NONE)\n \t\t\tfor (j = 0; j < num_ops; ++j)\n \t\t\t\tmbuf_reset(ops_enq[j]->turbo_enc.output.data);\n@@ -4015,12 +4070,23 @@ throughput_pmd_lcore_ldpc_enc(void *arg)\n \n \t\t\tdeq += rte_bbdev_dequeue_ldpc_enc_ops(tp->dev_id,\n \t\t\t\t\tqueue_id, &ops_deq[deq], enq - deq);\n+\t\t\ttime_out++;\n+\t\t\tif (time_out >= TIME_OUT_POLL) {\n+\t\t\t\ttimeout_exit(tp->dev_id);\n+\t\t\t\tTEST_ASSERT_SUCCESS(TEST_FAILED, \"Enqueue timeout!\");\n+\t\t\t}\n \t\t}\n \n \t\t/* dequeue the remaining */\n+\t\ttime_out = 0;\n \t\twhile (deq < enq) {\n \t\t\tdeq += rte_bbdev_dequeue_ldpc_enc_ops(tp->dev_id,\n \t\t\t\t\tqueue_id, &ops_deq[deq], enq - deq);\n+\t\t\ttime_out++;\n+\t\t\tif (time_out >= TIME_OUT_POLL) {\n+\t\t\t\ttimeout_exit(tp->dev_id);\n+\t\t\t\tTEST_ASSERT_SUCCESS(TEST_FAILED, \"Dequeue timeout!\");\n+\t\t\t}\n \t\t}\n \n \t\ttotal_time += rte_rdtsc_precise() - start_time;\n@@ -4086,7 +4152,7 @@ throughput_pmd_lcore_fft(void *arg)\n \t\tops_enq[j]->opaque_data = (void *)(uintptr_t)j;\n \n \tfor (i = 0; i < TEST_REPETITIONS; ++i) {\n-\n+\t\tuint32_t time_out = 0;\n \t\tfor (j = 0; j < num_ops; ++j)\n \t\t\tmbuf_reset(ops_enq[j]->fft.base_output.data);\n \n@@ -4103,12 +4169,23 @@ throughput_pmd_lcore_fft(void *arg)\n \n \t\t\tdeq += rte_bbdev_dequeue_fft_ops(tp->dev_id,\n \t\t\t\t\tqueue_id, &ops_deq[deq], enq - deq);\n+\t\t\ttime_out++;\n+\t\t\tif (time_out >= TIME_OUT_POLL) {\n+\t\t\t\ttimeout_exit(tp->dev_id);\n+\t\t\t\tTEST_ASSERT_SUCCESS(TEST_FAILED, \"Enqueue timeout!\");\n+\t\t\t}\n \t\t}\n \n \t\t/* dequeue the remaining */\n+\t\ttime_out = 0;\n \t\twhile (deq < enq) {\n \t\t\tdeq += rte_bbdev_dequeue_fft_ops(tp->dev_id,\n \t\t\t\t\tqueue_id, &ops_deq[deq], enq - deq);\n+\t\t\ttime_out++;\n+\t\t\tif (time_out >= TIME_OUT_POLL) {\n+\t\t\t\ttimeout_exit(tp->dev_id);\n+\t\t\t\tTEST_ASSERT_SUCCESS(TEST_FAILED, \"Dequeue timeout!\");\n+\t\t\t}\n \t\t}\n \n \t\ttotal_time += rte_rdtsc_precise() - start_time;\n@@ -4481,6 +4558,7 @@ latency_test_dec(struct rte_mempool *mempool,\n \n \tfor (i = 0, dequeued = 0; dequeued < num_to_process; ++i) {\n \t\tuint16_t enq = 0, deq = 0;\n+\t\tuint32_t time_out = 0;\n \t\tbool first_time = true;\n \t\tlast_time = 0;\n \n@@ -4523,6 +4601,11 @@ latency_test_dec(struct rte_mempool *mempool,\n \t\t\t\tlast_time = rte_rdtsc_precise() - start_time;\n \t\t\t\tfirst_time = false;\n \t\t\t}\n+\t\t\ttime_out++;\n+\t\t\tif (time_out >= TIME_OUT_POLL) {\n+\t\t\t\ttimeout_exit(dev_id);\n+\t\t\t\tTEST_ASSERT_SUCCESS(TEST_FAILED, \"Dequeue timeout!\");\n+\t\t\t}\n \t\t} while (unlikely(burst_sz != deq));\n \n \t\t*max_time = RTE_MAX(*max_time, last_time);\n@@ -4615,7 +4698,11 @@ latency_test_ldpc_dec(struct rte_mempool *mempool,\n \t\t\t\tfirst_time = false;\n \t\t\t}\n \t\t\ttime_out++;\n-\t\t} while ((burst_sz != deq) && (time_out < TIME_OUT_POLL));\n+\t\t\tif (time_out >= TIME_OUT_POLL) {\n+\t\t\t\ttimeout_exit(dev_id);\n+\t\t\t\tTEST_ASSERT_SUCCESS(TEST_FAILED, \"Dequeue timeout!\");\n+\t\t\t}\n+\t\t} while (unlikely(burst_sz != deq));\n \n \t\t*max_time = RTE_MAX(*max_time, last_time);\n \t\t*min_time = RTE_MIN(*min_time, last_time);\n@@ -4624,14 +4711,8 @@ latency_test_ldpc_dec(struct rte_mempool *mempool,\n \t\tif (extDdr)\n \t\t\tretrieve_harq_ddr(dev_id, queue_id, ops_enq, burst_sz);\n \n-\t\tif (burst_sz != deq) {\n-\t\t\tstruct rte_bbdev_info info;\n-\t\t\tret = TEST_FAILED;\n-\t\t\trte_bbdev_info_get(dev_id, &info);\n-\t\t\tTEST_ASSERT_SUCCESS(ret, \"Dequeue timeout!\");\n-\t\t} else if (test_vector.op_type != RTE_BBDEV_OP_NONE) {\n-\t\t\tret = validate_ldpc_dec_op(ops_deq, burst_sz, ref_op,\n-\t\t\t\t\tvector_mask);\n+\t\tif (test_vector.op_type != RTE_BBDEV_OP_NONE) {\n+\t\t\tret = validate_ldpc_dec_op(ops_deq, burst_sz, ref_op, vector_mask);\n \t\t\tTEST_ASSERT_SUCCESS(ret, \"Validation failed!\");\n \t\t}\n \n@@ -4692,17 +4773,17 @@ latency_test_enc(struct rte_mempool *mempool,\n \t\t\t\tfirst_time = false;\n \t\t\t}\n \t\t\ttime_out++;\n-\t\t} while ((burst_sz != deq) && (time_out < TIME_OUT_POLL));\n+\t\t\tif (time_out >= TIME_OUT_POLL) {\n+\t\t\t\ttimeout_exit(dev_id);\n+\t\t\t\tTEST_ASSERT_SUCCESS(TEST_FAILED, \"Dequeue timeout!\");\n+\t\t\t}\n+\t\t} while (unlikely(burst_sz != deq));\n \n \t\t*max_time = RTE_MAX(*max_time, last_time);\n \t\t*min_time = RTE_MIN(*min_time, last_time);\n \t\t*total_time += last_time;\n-\t\tif (burst_sz != deq) {\n-\t\t\tstruct rte_bbdev_info info;\n-\t\t\tret = TEST_FAILED;\n-\t\t\trte_bbdev_info_get(dev_id, &info);\n-\t\t\tTEST_ASSERT_SUCCESS(ret, \"Dequeue timeout!\");\n-\t\t} else if (test_vector.op_type != RTE_BBDEV_OP_NONE) {\n+\n+\t\tif (test_vector.op_type != RTE_BBDEV_OP_NONE) {\n \t\t\tret = validate_enc_op(ops_deq, burst_sz, ref_op);\n \t\t\tTEST_ASSERT_SUCCESS(ret, \"Validation failed!\");\n \t\t}\n@@ -4728,6 +4809,7 @@ latency_test_ldpc_enc(struct rte_mempool *mempool,\n \n \tfor (i = 0, dequeued = 0; dequeued < num_to_process; ++i) {\n \t\tuint16_t enq = 0, deq = 0;\n+\t\tuint32_t time_out = 0;\n \t\tbool first_time = true;\n \t\tlast_time = 0;\n \n@@ -4763,6 +4845,11 @@ latency_test_ldpc_enc(struct rte_mempool *mempool,\n \t\t\t\tlast_time += rte_rdtsc_precise() - start_time;\n \t\t\t\tfirst_time = false;\n \t\t\t}\n+\t\t\ttime_out++;\n+\t\t\tif (time_out >= TIME_OUT_POLL) {\n+\t\t\t\ttimeout_exit(dev_id);\n+\t\t\t\tTEST_ASSERT_SUCCESS(TEST_FAILED, \"Dequeue timeout!\");\n+\t\t\t}\n \t\t} while (unlikely(burst_sz != deq));\n \n \t\t*max_time = RTE_MAX(*max_time, last_time);\n@@ -4796,6 +4883,7 @@ latency_test_fft(struct rte_mempool *mempool,\n \n \tfor (i = 0, dequeued = 0; dequeued < num_to_process; ++i) {\n \t\tuint16_t enq = 0, deq = 0;\n+\t\tuint32_t time_out = 0;\n \t\tbool first_time = true;\n \t\tlast_time = 0;\n \n@@ -4831,6 +4919,11 @@ latency_test_fft(struct rte_mempool *mempool,\n \t\t\t\tlast_time += rte_rdtsc_precise() - start_time;\n \t\t\t\tfirst_time = false;\n \t\t\t}\n+\t\t\ttime_out++;\n+\t\t\tif (time_out >= TIME_OUT_POLL) {\n+\t\t\t\ttimeout_exit(dev_id);\n+\t\t\t\tTEST_ASSERT_SUCCESS(TEST_FAILED, \"Dequeue timeout!\");\n+\t\t\t}\n \t\t} while (unlikely(burst_sz != deq));\n \n \t\t*max_time = RTE_MAX(*max_time, last_time);\n",
    "prefixes": [
        "v3",
        "09/17"
    ]
}