Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/82035/?format=api
https://patches.dpdk.org/api/patches/82035/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1603496027-33918-3-git-send-email-nicolas.chautru@intel.com/", "project": { "id": 1, "url": "https://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": "<1603496027-33918-3-git-send-email-nicolas.chautru@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1603496027-33918-3-git-send-email-nicolas.chautru@intel.com", "date": "2020-10-23T23:33:42", "name": "[v4,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": "https://patches.dpdk.org/api/people/1314/?format=api", "name": "Chautru, Nicolas", "email": "nicolas.chautru@intel.com" }, "delegate": { "id": 6690, "url": "https://patches.dpdk.org/api/users/6690/?format=api", "username": "akhil", "first_name": "akhil", "last_name": "goyal", "email": "gakhil@marvell.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1603496027-33918-3-git-send-email-nicolas.chautru@intel.com/mbox/", "series": [ { "id": 13291, "url": "https://patches.dpdk.org/api/series/13291/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=13291", "date": "2020-10-23T23:33:40", "name": "BBDEV test updates", "version": 4, "mbox": "https://patches.dpdk.org/series/13291/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/82035/comments/", "check": "warning", "checks": "https://patches.dpdk.org/api/patches/82035/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 E1D63A04B0;\n\tSat, 24 Oct 2020 01:34:22 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 798CC688E;\n\tSat, 24 Oct 2020 01:34:05 +0200 (CEST)", "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n by dpdk.org (Postfix) with ESMTP id 8D528677D\n for <dev@dpdk.org>; Sat, 24 Oct 2020 01:34:01 +0200 (CEST)", "from fmsmga005.fm.intel.com ([10.253.24.32])\n by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 23 Oct 2020 16:33:58 -0700", "from skx-5gnr-sc12-4.sc.intel.com ([172.25.69.210])\n by fmsmga005.fm.intel.com with ESMTP; 23 Oct 2020 16:33:57 -0700" ], "IronPort-SDR": [ "\n d13jWw4FEySjgybsCmnQilv16+szJM12zORtvOjZLZTRcNZNEuqXDtH5nuphp5pQaCGAu8WO/m\n pzds+o0j1exg==", "\n Fa0wVbQW5sjHLBqy0judHQLWqJ2JoaiVzlOqu0Z6K/rotQD0w3SaDAkV2Kfm89vgAWUGGJtcz+\n NOFNR2RWhOfg==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9783\"; a=\"231935033\"", "E=Sophos;i=\"5.77,410,1596524400\"; d=\"scan'208\";a=\"231935033\"", "E=Sophos;i=\"5.77,410,1596524400\"; d=\"scan'208\";a=\"524841046\"" ], "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,\n\ttrix@redhat.com", "Cc": "david.marchand@redhat.com,\n\tNicolas Chautru <nicolas.chautru@intel.com>", "Date": "Fri, 23 Oct 2020 16:33:42 -0700", "Message-Id": "<1603496027-33918-3-git-send-email-nicolas.chautru@intel.com>", "X-Mailer": "git-send-email 1.8.3.1", "In-Reply-To": "<1603496027-33918-1-git-send-email-nicolas.chautru@intel.com>", "References": "<1603496027-33918-1-git-send-email-nicolas.chautru@intel.com>", "Subject": "[dpdk-dev] [PATCH v4 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 explict check in ut that the stats counters\nhave the expect values. Was missing for coverage.\n\nSigned-off-by: Nicolas Chautru <nicolas.chautru@intel.com>\nAcked-by: Aidan Goddard <aidan.goddard@accelercomm.com>\nAcked-by: Dave Burley <dave.burley@accelercomm.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 3554a77..b62848e 100644\n--- a/app/test-bbdev/test_bbdev_perf.c\n+++ b/app/test-bbdev/test_bbdev_perf.c\n@@ -4840,6 +4840,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": [ "v4", "2/7" ] }{ "id": 82035, "url": "