Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/27619/?format=api
https://patches.dpdk.org/api/patches/27619/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1502800360-15782-9-git-send-email-harry.van.haaren@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": "<1502800360-15782-9-git-send-email-harry.van.haaren@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1502800360-15782-9-git-send-email-harry.van.haaren@intel.com", "date": "2017-08-15T12:32:40", "name": "[dpdk-dev,8/8] service: clarify documentation for register", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "b0e7d5f3e35363f59fb1a1308997d9a79202b135", "submitter": { "id": 317, "url": "https://patches.dpdk.org/api/people/317/?format=api", "name": "Van Haaren, Harry", "email": "harry.van.haaren@intel.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1502800360-15782-9-git-send-email-harry.van.haaren@intel.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/27619/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/27619/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 18CFF996C;\n\tTue, 15 Aug 2017 14:33:14 +0200 (CEST)", "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n\tby dpdk.org (Postfix) with ESMTP id 12BE77CD6\n\tfor <dev@dpdk.org>; Tue, 15 Aug 2017 14:32:58 +0200 (CEST)", "from fmsmga005.fm.intel.com ([10.253.24.32])\n\tby fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t15 Aug 2017 05:32:58 -0700", "from silpixa00398672.ir.intel.com ([10.237.223.128])\n\tby fmsmga005.fm.intel.com with ESMTP; 15 Aug 2017 05:32:57 -0700" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.41,377,1498546800\"; d=\"scan'208\";a=\"139790209\"", "From": "Harry van Haaren <harry.van.haaren@intel.com>", "To": "dev@dpdk.org", "Cc": "Harry van Haaren <harry.van.haaren@intel.com>", "Date": "Tue, 15 Aug 2017 13:32:40 +0100", "Message-Id": "<1502800360-15782-9-git-send-email-harry.van.haaren@intel.com>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1502800360-15782-1-git-send-email-harry.van.haaren@intel.com>", "References": "<1502800360-15782-1-git-send-email-harry.van.haaren@intel.com>", "Subject": "[dpdk-dev] [PATCH 8/8] service: clarify documentation for register", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://dpdk.org/ml/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "This commit adds a section to the service register function\nto make it clear that when registering a service, it must not\ncall any other service core APIs (eg: adding lcores or mappings).\n\nThe reason for this is that it breaks the abstraction that the\nservices represent a task or work-item to be performed, while\nservice-cores and assinging of tasks to cores is perfomed by the\napplication (or default settings from EAL are used).\n\nSigned-off-by: Harry van Haaren <harry.van.haaren@intel.com>\n---\n lib/librte_eal/common/include/rte_service_component.h | 5 +++++\n 1 file changed, 5 insertions(+)", "diff": "diff --git a/lib/librte_eal/common/include/rte_service_component.h b/lib/librte_eal/common/include/rte_service_component.h\nindex 70cca69..977a668 100644\n--- a/lib/librte_eal/common/include/rte_service_component.h\n+++ b/lib/librte_eal/common/include/rte_service_component.h\n@@ -83,6 +83,11 @@ struct rte_service_spec {\n * A service represents a component that the requires CPU time periodically to\n * achieve its purpose.\n *\n+ * Note that when registering a service it is illegal to call any other\n+ * public service core API, as this would break the abstraction that services\n+ * present work to be performed, and EAL or the application schedule that work\n+ * on service cores.\n+ *\n * For example the eventdev SW PMD requires CPU cycles to perform its\n * scheduling. This can be achieved by registering it as a service, and the\n * application can then assign CPU resources to it using\n", "prefixes": [ "dpdk-dev", "8/8" ] }{ "id": 27619, "url": "