Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/75674/?format=api
http://patches.dpdk.org/api/patches/75674/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1597795557-39612-3-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": "<1597795557-39612-3-git-send-email-nicolas.chautru@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1597795557-39612-3-git-send-email-nicolas.chautru@intel.com", "date": "2020-08-19T00:05:52", "name": "[v3,2/7] app/bbdev: add explicit check for counters", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "196a56f1af5cd7a11e06c117c880edcc63159e1e", "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/1597795557-39612-3-git-send-email-nicolas.chautru@intel.com/mbox/", "series": [ { "id": 11698, "url": "http://patches.dpdk.org/api/series/11698/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=11698", "date": "2020-08-19T00:05:50", "name": "BBDEV test updates", "version": 3, "mbox": "http://patches.dpdk.org/series/11698/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/75674/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/75674/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 9D096A04AF;\n\tWed, 19 Aug 2020 02:08:11 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 68FE71C0AD;\n\tWed, 19 Aug 2020 02:07:54 +0200 (CEST)", "from mga18.intel.com (mga18.intel.com [134.134.136.126])\n by dpdk.org (Postfix) with ESMTP id 4254F5F69\n for <dev@dpdk.org>; Wed, 19 Aug 2020 02:07:51 +0200 (CEST)", "from orsmga007.jf.intel.com ([10.7.209.58])\n by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 18 Aug 2020 17:07:49 -0700", "from skx-5gnr-sc12-4.sc.intel.com ([172.25.69.210])\n by orsmga007.jf.intel.com with ESMTP; 18 Aug 2020 17:07:48 -0700" ], "IronPort-SDR": [ "\n d+OPBZzkjCMX59UbKFOEQb0FYpXM+W8N1FDBN20H9XOTdlz62vGKHcdHZUth9On0r175AUmilY\n 48N8bMh1A8Og==", "\n 1jCEkSTRigp95V4Su7Z8grD6U8kYOf6dxySjb4ToMovu9KLIDx1ln8XrG+7KXgMaKijOtXxX9u\n V+wbpw24lXeA==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9717\"; a=\"142653490\"", "E=Sophos;i=\"5.76,329,1592895600\"; d=\"scan'208\";a=\"142653490\"", "E=Sophos;i=\"5.76,329,1592895600\"; d=\"scan'208\";a=\"336789152\"" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "From": "Nicolas Chautru <nicolas.chautru@intel.com>", "To": "dev@dpdk.org,\n\takhil.goyal@nxp.com", "Cc": "bruce.richardson@intel.com,\n\tNicolas Chautru <nicolas.chautru@intel.com>", "Date": "Tue, 18 Aug 2020 17:05:52 -0700", "Message-Id": "<1597795557-39612-3-git-send-email-nicolas.chautru@intel.com>", "X-Mailer": "git-send-email 1.8.3.1", "In-Reply-To": "<1597795557-39612-1-git-send-email-nicolas.chautru@intel.com>", "References": "<1597795557-39612-1-git-send-email-nicolas.chautru@intel.com>", "Subject": "[dpdk-dev] [PATCH v3 2/7] app/bbdev: add explicit check for counters", "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": "Adding explicit check in ut that the stats counters\nhave the expected values. Was missing for coverage.\n\nSigned-off-by: Nicolas Chautru <nicolas.chautru@intel.com>\n---\n app/test-bbdev/test_bbdev_perf.c | 17 +++++++++++++++++\n 1 file changed, 17 insertions(+)", "diff": "diff --git a/app/test-bbdev/test_bbdev_perf.c b/app/test-bbdev/test_bbdev_perf.c\nindex 1319afd..b0b6f18 100644\n--- a/app/test-bbdev/test_bbdev_perf.c\n+++ b/app/test-bbdev/test_bbdev_perf.c\n@@ -4769,6 +4769,23 @@ typedef int (test_case_function)(struct active_device *ad,\n \t\t\t(double)(time_st.deq_max_time * 1000000) /\n \t\t\trte_get_tsc_hz());\n \n+\tstruct rte_bbdev_stats stats = {0};\n+\tget_bbdev_queue_stats(ad->dev_id, queue_id, &stats);\n+\tif (op_type != RTE_BBDEV_OP_LDPC_DEC) {\n+\t\tTEST_ASSERT_SUCCESS(stats.enqueued_count != num_to_process,\n+\t\t\t\t\"Mismatch in enqueue count %10\"PRIu64\" %d\",\n+\t\t\t\tstats.enqueued_count, num_to_process);\n+\t\tTEST_ASSERT_SUCCESS(stats.dequeued_count != num_to_process,\n+\t\t\t\t\"Mismatch in dequeue count %10\"PRIu64\" %d\",\n+\t\t\t\tstats.dequeued_count, num_to_process);\n+\t}\n+\tTEST_ASSERT_SUCCESS(stats.enqueue_err_count != 0,\n+\t\t\t\"Enqueue count Error %10\"PRIu64\"\",\n+\t\t\tstats.enqueue_err_count);\n+\tTEST_ASSERT_SUCCESS(stats.dequeue_err_count != 0,\n+\t\t\t\"Dequeue count Error (%10\"PRIu64\"\",\n+\t\t\tstats.dequeue_err_count);\n+\n \treturn TEST_SUCCESS;\n #endif\n }\n", "prefixes": [ "v3", "2/7" ] }{ "id": 75674, "url": "