Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/87891/?format=api
http://patches.dpdk.org/api/patches/87891/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20210212165814.2189305-2-harry.van.haaren@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": "<20210212165814.2189305-2-harry.van.haaren@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20210212165814.2189305-2-harry.van.haaren@intel.com", "date": "2021-02-12T16:58:13", "name": "[v3,2/3] event/sw: add useful work done attribute", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "dd48f99302e758f5350f8d5487d6e4b388a0244a", "submitter": { "id": 317, "url": "http://patches.dpdk.org/api/people/317/?format=api", "name": "Van Haaren, Harry", "email": "harry.van.haaren@intel.com" }, "delegate": { "id": 310, "url": "http://patches.dpdk.org/api/users/310/?format=api", "username": "jerin", "first_name": "Jerin", "last_name": "Jacob", "email": "jerinj@marvell.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20210212165814.2189305-2-harry.van.haaren@intel.com/mbox/", "series": [ { "id": 15254, "url": "http://patches.dpdk.org/api/series/15254/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=15254", "date": "2021-02-12T16:58:12", "name": "[v3,1/3] service: add component useful work attribute", "version": 3, "mbox": "http://patches.dpdk.org/series/15254/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/87891/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/87891/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 33971A0547;\n\tFri, 12 Feb 2021 17:58:33 +0100 (CET)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 8A36F22A2B8;\n\tFri, 12 Feb 2021 17:58:27 +0100 (CET)", "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n by mails.dpdk.org (Postfix) with ESMTP id 67CDA22A2AB\n for <dev@dpdk.org>; Fri, 12 Feb 2021 17:58:24 +0100 (CET)", "from orsmga003.jf.intel.com ([10.7.209.27])\n by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 12 Feb 2021 08:58:24 -0800", "from silpixa00400633.ir.intel.com ([10.237.213.44])\n by orsmga003.jf.intel.com with ESMTP; 12 Feb 2021 08:58:22 -0800" ], "IronPort-SDR": [ "\n smyn2CPWNngAyckG41j1uJFrzgV+yVgH44Fv9gCa5FM+Kkv9kOQ5MbUaZ0SFQen9Rm3UETmX7U\n mAo8GCizJy7A==", "\n iX4PwLiswDwbXG0mdfmg3jxRyxE4M8wthR/mv+CpwW4CjNwavogabMXkizjqtDMfnP4fUyTz3t\n swv9pMyPEY+A==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9893\"; a=\"182511459\"", "E=Sophos;i=\"5.81,174,1610438400\"; d=\"scan'208\";a=\"182511459\"", "E=Sophos;i=\"5.81,174,1610438400\"; d=\"scan'208\";a=\"360466441\"" ], "X-ExtLoop1": "1", "From": "Harry van Haaren <harry.van.haaren@intel.com>", "To": "dev@dpdk.org", "Cc": "david.marchand@redhat.com, mattias.ronnblom@ericsson.com,\n honnappa.nagarahalli@arm.com, Harry van Haaren <harry.van.haaren@intel.com>", "Date": "Fri, 12 Feb 2021 16:58:13 +0000", "Message-Id": "<20210212165814.2189305-2-harry.van.haaren@intel.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20210212165814.2189305-1-harry.van.haaren@intel.com>", "References": "<20210212165814.2189305-1-harry.van.haaren@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH v3 2/3] event/sw: add useful work done attribute", "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", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "This commit exposes if useful work is done to the service\ninstance. The normal service_attr_get() API can be used to\nretrieve the value of the attribute.\n\nSigned-off-by: Harry van Haaren <harry.van.haaren@intel.com>\n---\n drivers/event/sw/sw_evdev_scheduler.c | 7 +++++++\n 1 file changed, 7 insertions(+)", "diff": "diff --git a/drivers/event/sw/sw_evdev_scheduler.c b/drivers/event/sw/sw_evdev_scheduler.c\nindex f747b3c6d4..c78f687446 100644\n--- a/drivers/event/sw/sw_evdev_scheduler.c\n+++ b/drivers/event/sw/sw_evdev_scheduler.c\n@@ -5,6 +5,9 @@\n #include <rte_ring.h>\n #include <rte_hash_crc.h>\n #include <rte_event_ring.h>\n+\n+#include <rte_service_component.h>\n+\n #include \"sw_evdev.h\"\n #include \"iq_chunk.h\"\n #include \"event_ring.h\"\n@@ -559,6 +562,10 @@ sw_event_schedule(struct rte_eventdev *dev)\n \tsw->sched_no_iq_enqueues += (in_pkts_total == 0);\n \tsw->sched_no_cq_enqueues += (out_pkts_total == 0);\n \n+\tuint64_t work_done = (in_pkts_total + out_pkts_total) != 0;\n+\trte_service_component_attr_set(sw->service_id,\n+\t\t\tRTE_SERVICE_ATTR_USEFUL_WORK_LAST_ITER, work_done);\n+\n \t/* push all the internal buffered QEs in port->cq_ring to the\n \t * worker cores: aka, do the ring transfers batched.\n \t */\n", "prefixes": [ "v3", "2/3" ] }{ "id": 87891, "url": "