Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/98634/?format=api
https://patches.dpdk.org/api/patches/98634/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210910133713.93103-2-cristian.dumitrescu@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": "<20210910133713.93103-2-cristian.dumitrescu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20210910133713.93103-2-cristian.dumitrescu@intel.com", "date": "2021-09-10T13:36:51", "name": "[V2,02/24] pipeline: move thread inline functions to header file", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "a706f001a4a7adac2925fd23ec3e695559d87d58", "submitter": { "id": 19, "url": "https://patches.dpdk.org/api/people/19/?format=api", "name": "Cristian Dumitrescu", "email": "cristian.dumitrescu@intel.com" }, "delegate": { "id": 1, "url": "https://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20210910133713.93103-2-cristian.dumitrescu@intel.com/mbox/", "series": [ { "id": 18840, "url": "https://patches.dpdk.org/api/series/18840/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=18840", "date": "2021-09-10T13:36:50", "name": "[V2,01/24] pipeline: move data structures to internal header file", "version": 2, "mbox": "https://patches.dpdk.org/series/18840/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/98634/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/98634/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 6139AA0547;\n\tFri, 10 Sep 2021 15:37:26 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id EAF8841130;\n\tFri, 10 Sep 2021 15:37:19 +0200 (CEST)", "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n by mails.dpdk.org (Postfix) with ESMTP id F0D5540DDE\n for <dev@dpdk.org>; Fri, 10 Sep 2021 15:37:17 +0200 (CEST)", "from fmsmga002.fm.intel.com ([10.253.24.26])\n by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 10 Sep 2021 06:37:16 -0700", "from silpixa00400573.ir.intel.com (HELO\n silpixa00400573.ger.corp.intel.com) ([10.237.223.107])\n by fmsmga002.fm.intel.com with ESMTP; 10 Sep 2021 06:37:15 -0700" ], "X-IronPort-AV": [ "E=McAfee;i=\"6200,9189,10102\"; a=\"221113263\"", "E=Sophos;i=\"5.85,283,1624345200\"; d=\"scan'208\";a=\"221113263\"", "E=Sophos;i=\"5.85,283,1624345200\"; d=\"scan'208\";a=\"549328513\"" ], "X-ExtLoop1": "1", "From": "Cristian Dumitrescu <cristian.dumitrescu@intel.com>", "To": "dev@dpdk.org", "Date": "Fri, 10 Sep 2021 14:36:51 +0100", "Message-Id": "<20210910133713.93103-2-cristian.dumitrescu@intel.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20210910133713.93103-1-cristian.dumitrescu@intel.com>", "References": "<20210910123003.85448-1-cristian.dumitrescu@intel.com>\n <20210910133713.93103-1-cristian.dumitrescu@intel.com>", "Subject": "[dpdk-dev] [PATCH V2 02/24] pipeline: move thread inline functions\n to header file", "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": "Move the thread inline functions to the internal header file.\n\nSigned-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>\n---\n lib/pipeline/rte_swx_pipeline.c | 56 ----------------------\n lib/pipeline/rte_swx_pipeline_internal.h | 59 ++++++++++++++++++++++++\n 2 files changed, 59 insertions(+), 56 deletions(-)", "diff": "diff --git a/lib/pipeline/rte_swx_pipeline.c b/lib/pipeline/rte_swx_pipeline.c\nindex ae9b2056db..7e01453c27 100644\n--- a/lib/pipeline/rte_swx_pipeline.c\n+++ b/lib/pipeline/rte_swx_pipeline.c\n@@ -1492,62 +1492,6 @@ struct_field_parse(struct rte_swx_pipeline *p,\n \t}\n }\n \n-static inline void\n-pipeline_port_inc(struct rte_swx_pipeline *p)\n-{\n-\tp->port_id = (p->port_id + 1) & (p->n_ports_in - 1);\n-}\n-\n-static inline void\n-thread_ip_reset(struct rte_swx_pipeline *p, struct thread *t)\n-{\n-\tt->ip = p->instructions;\n-}\n-\n-static inline void\n-thread_ip_set(struct thread *t, struct instruction *ip)\n-{\n-\tt->ip = ip;\n-}\n-\n-static inline void\n-thread_ip_action_call(struct rte_swx_pipeline *p,\n-\t\t struct thread *t,\n-\t\t uint32_t action_id)\n-{\n-\tt->ret = t->ip + 1;\n-\tt->ip = p->action_instructions[action_id];\n-}\n-\n-static inline void\n-thread_ip_inc(struct rte_swx_pipeline *p);\n-\n-static inline void\n-thread_ip_inc(struct rte_swx_pipeline *p)\n-{\n-\tstruct thread *t = &p->threads[p->thread_id];\n-\n-\tt->ip++;\n-}\n-\n-static inline void\n-thread_ip_inc_cond(struct thread *t, int cond)\n-{\n-\tt->ip += cond;\n-}\n-\n-static inline void\n-thread_yield(struct rte_swx_pipeline *p)\n-{\n-\tp->thread_id = (p->thread_id + 1) & (RTE_SWX_PIPELINE_THREADS_MAX - 1);\n-}\n-\n-static inline void\n-thread_yield_cond(struct rte_swx_pipeline *p, int cond)\n-{\n-\tp->thread_id = (p->thread_id + cond) & (RTE_SWX_PIPELINE_THREADS_MAX - 1);\n-}\n-\n /*\n * rx.\n */\ndiff --git a/lib/pipeline/rte_swx_pipeline_internal.h b/lib/pipeline/rte_swx_pipeline_internal.h\nindex 5d80dd8451..682f4c86a0 100644\n--- a/lib/pipeline/rte_swx_pipeline_internal.h\n+++ b/lib/pipeline/rte_swx_pipeline_internal.h\n@@ -1380,4 +1380,63 @@ struct rte_swx_pipeline {\n \tint numa_node;\n };\n \n+/*\n+ * Instruction.\n+ */\n+static inline void\n+pipeline_port_inc(struct rte_swx_pipeline *p)\n+{\n+\tp->port_id = (p->port_id + 1) & (p->n_ports_in - 1);\n+}\n+\n+static inline void\n+thread_ip_reset(struct rte_swx_pipeline *p, struct thread *t)\n+{\n+\tt->ip = p->instructions;\n+}\n+\n+static inline void\n+thread_ip_set(struct thread *t, struct instruction *ip)\n+{\n+\tt->ip = ip;\n+}\n+\n+static inline void\n+thread_ip_action_call(struct rte_swx_pipeline *p,\n+\t\t struct thread *t,\n+\t\t uint32_t action_id)\n+{\n+\tt->ret = t->ip + 1;\n+\tt->ip = p->action_instructions[action_id];\n+}\n+\n+static inline void\n+thread_ip_inc(struct rte_swx_pipeline *p);\n+\n+static inline void\n+thread_ip_inc(struct rte_swx_pipeline *p)\n+{\n+\tstruct thread *t = &p->threads[p->thread_id];\n+\n+\tt->ip++;\n+}\n+\n+static inline void\n+thread_ip_inc_cond(struct thread *t, int cond)\n+{\n+\tt->ip += cond;\n+}\n+\n+static inline void\n+thread_yield(struct rte_swx_pipeline *p)\n+{\n+\tp->thread_id = (p->thread_id + 1) & (RTE_SWX_PIPELINE_THREADS_MAX - 1);\n+}\n+\n+static inline void\n+thread_yield_cond(struct rte_swx_pipeline *p, int cond)\n+{\n+\tp->thread_id = (p->thread_id + cond) & (RTE_SWX_PIPELINE_THREADS_MAX - 1);\n+}\n+\n #endif\n", "prefixes": [ "V2", "02/24" ] }{ "id": 98634, "url": "