Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/88014/?format=api
http://patches.dpdk.org/api/patches/88014/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20210219142619.43960-1-cristian.dumitrescu@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": "<20210219142619.43960-1-cristian.dumitrescu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20210219142619.43960-1-cristian.dumitrescu@intel.com", "date": "2021-02-19T14:26:19", "name": "examples/pipeline: make pipeline quanta configurable", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "07085e20997c75f2fa6ef16e7b80e75fe8eb8cf0", "submitter": { "id": 19, "url": "http://patches.dpdk.org/api/people/19/?format=api", "name": "Cristian Dumitrescu", "email": "cristian.dumitrescu@intel.com" }, "delegate": { "id": 1, "url": "http://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20210219142619.43960-1-cristian.dumitrescu@intel.com/mbox/", "series": [ { "id": 15305, "url": "http://patches.dpdk.org/api/series/15305/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=15305", "date": "2021-02-19T14:26:19", "name": "examples/pipeline: make pipeline quanta configurable", "version": 1, "mbox": "http://patches.dpdk.org/series/15305/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/88014/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/88014/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 714F0A0546;\n\tFri, 19 Feb 2021 15:26:24 +0100 (CET)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 0E91D16092F;\n\tFri, 19 Feb 2021 15:26:24 +0100 (CET)", "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n by mails.dpdk.org (Postfix) with ESMTP id CF05316092E\n for <dev@dpdk.org>; Fri, 19 Feb 2021 15:26:21 +0100 (CET)", "from fmsmga004.fm.intel.com ([10.253.24.48])\n by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 19 Feb 2021 06:26:20 -0800", "from silpixa00400573.ir.intel.com (HELO\n silpixa00400573.ger.corp.intel.com) ([10.237.223.107])\n by fmsmga004.fm.intel.com with ESMTP; 19 Feb 2021 06:26:19 -0800" ], "IronPort-SDR": [ "\n 7tFDnFQ/ZLmqnLWoZRv0SD3ugmo55ona3BVk++HL1Vx/myzKZehipT8AGyskByZSTgMRc87sID\n CKX/x3eJHy0A==", "\n J+laOWpcstfaWLTt+VKSHUd0XVZm7cGcPuU8YWa19wkXQk11QPaG25w/RAN6qF9sqRn25We26G\n L7evIoVMXU5w==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9899\"; a=\"183064275\"", "E=Sophos;i=\"5.81,189,1610438400\"; d=\"scan'208\";a=\"183064275\"", "E=Sophos;i=\"5.81,189,1610438400\"; d=\"scan'208\";a=\"419990634\"" ], "X-ExtLoop1": "1", "From": "Cristian Dumitrescu <cristian.dumitrescu@intel.com>", "To": "dev@dpdk.org", "Date": "Fri, 19 Feb 2021 14:26:19 +0000", "Message-Id": "<20210219142619.43960-1-cristian.dumitrescu@intel.com>", "X-Mailer": "git-send-email 2.17.1", "Subject": "[dpdk-dev] [PATCH] examples/pipeline: make pipeline quanta\n configurable", "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": "Make the pipeline instruction quanta configurable at build time.\n\nSigned-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>\n---\n examples/pipeline/thread.c | 11 ++++++++++-\n 1 file changed, 10 insertions(+), 1 deletion(-)", "diff": "diff --git a/examples/pipeline/thread.c b/examples/pipeline/thread.c\nindex 6ac27e4eb..bf11e6144 100644\n--- a/examples/pipeline/thread.c\n+++ b/examples/pipeline/thread.c\n@@ -30,6 +30,15 @@\n #define THREAD_TIMER_PERIOD_MS 100\n #endif\n \n+/* Pipeline instruction quanta: Needs to be big enough to do some meaningful\n+ * work, but not too big to avoid starving any other pipelines mapped to the\n+ * same thread. For a pipeline that executes 10 instructions per packet, a\n+ * quanta of 1000 instructions equates to processing 100 packets.\n+ */\n+#ifndef PIPELINE_INSTR_QUANTA\n+#define PIPELINE_INSTR_QUANTA 1000\n+#endif\n+\n /**\n * Control thread: data plane thread context\n */\n@@ -517,7 +526,7 @@ thread_main(void *arg __rte_unused)\n \n \t\t/* Data Plane */\n \t\tfor (j = 0; j < t->n_pipelines; j++)\n-\t\t\trte_swx_pipeline_run(t->p[j], 1000000);\n+\t\t\trte_swx_pipeline_run(t->p[j], PIPELINE_INSTR_QUANTA);\n \n \t\t/* Control Plane */\n \t\tif ((i & 0xF) == 0) {\n", "prefixes": [] }{ "id": 88014, "url": "