Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/128490/?format=api
http://patches.dpdk.org/api/patches/128490/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230609191245.252521-10-zhirun.yan@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": "<20230609191245.252521-10-zhirun.yan@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20230609191245.252521-10-zhirun.yan@intel.com", "date": "2023-06-09T19:12:38", "name": "[v12,09/16] graph: add structure for stream moving between cores", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "2daa07d8023405593a9ac56213ff9d589dc760b6", "submitter": { "id": 1154, "url": "http://patches.dpdk.org/api/people/1154/?format=api", "name": "Yan, Zhirun", "email": "zhirun.yan@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/20230609191245.252521-10-zhirun.yan@intel.com/mbox/", "series": [ { "id": 28444, "url": "http://patches.dpdk.org/api/series/28444/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=28444", "date": "2023-06-09T19:12:29", "name": "graph enhancement for multi-core dispatch", "version": 12, "mbox": "http://patches.dpdk.org/series/28444/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/128490/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/128490/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 EF24142C71;\n\tFri, 9 Jun 2023 21:20:59 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id E68A042D56;\n\tFri, 9 Jun 2023 21:20:16 +0200 (CEST)", "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n by mails.dpdk.org (Postfix) with ESMTP id B565D42D35\n for <dev@dpdk.org>; Fri, 9 Jun 2023 21:20:15 +0200 (CEST)", "from fmsmga006.fm.intel.com ([10.253.24.20])\n by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 09 Jun 2023 12:20:15 -0700", "from dpdk-zhirun-lmm.sh.intel.com ([10.67.119.94])\n by fmsmga006.fm.intel.com with ESMTP; 09 Jun 2023 12:20:12 -0700" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1686338415; x=1717874415;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=C9gth6n2X5d0lIQJzsuGQntqjUQ1B0rSJaH2qDwAJmc=;\n b=M55wcNOq4owqtquoNBH1Ln6inOSkHPEFFBPOBq8zFKvNU0GB/gIFciyZ\n J26mKptX8kVM2SOL904wY7dWsZyNuWTkzp9xkJTTs3oJKrxnxiStUZpMl\n UR2Rwzl31a+rAzO7Z1UvSTOpFL4K7ilUvqHr53dw1v8ZSwUz7PCT7HtSy\n LF9M1YMH+JAD+YUp7CEm/LrQp/sS0eELtHCdgllJ87bsF2SeC63uGff/v\n EM1d+D8DNxV8r1GuTFwg7XnHO1vZleeyxvM6/FNq6l2HZNi9+7HNi9vYv\n Lx0KMrOhTQEcs4VnsbbFb0PV6Lt+O6uJ/1i6TaNOWzVcQ6D2MTe8xxM8s Q==;", "X-IronPort-AV": [ "E=McAfee;i=\"6600,9927,10736\"; a=\"360155058\"", "E=Sophos;i=\"6.00,230,1681196400\"; d=\"scan'208\";a=\"360155058\"", "E=McAfee;i=\"6600,9927,10736\"; a=\"957254672\"", "E=Sophos;i=\"6.00,230,1681196400\"; d=\"scan'208\";a=\"957254672\"" ], "X-ExtLoop1": "1", "From": "Zhirun Yan <zhirun.yan@intel.com>", "To": "dev@dpdk.org, jerinj@marvell.com, kirankumark@marvell.com,\n ndabilpuram@marvell.com, stephen@networkplumber.org,\n pbhagavatula@marvell.com, jerinjacobk@gmail.com, david.marchand@redhat.com", "Cc": "cunming.liang@intel.com, haiyue.wang@intel.com,\n mattias.ronnblom@ericsson.com, Zhirun Yan <zhirun.yan@intel.com>", "Subject": "[PATCH v12 09/16] graph: add structure for stream moving between\n cores", "Date": "Sat, 10 Jun 2023 03:12:38 +0800", "Message-Id": "<20230609191245.252521-10-zhirun.yan@intel.com>", "X-Mailer": "git-send-email 2.37.2", "In-Reply-To": "<20230609191245.252521-1-zhirun.yan@intel.com>", "References": "<20230608151844.1823783-1-zhirun.yan@intel.com>\n <20230609191245.252521-1-zhirun.yan@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "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" }, "content": "Add graph_mcore_dispatch_wq_node to hold graph scheduling workqueue\nnode.\n\nSigned-off-by: Haiyue Wang <haiyue.wang@intel.com>\nSigned-off-by: Cunming Liang <cunming.liang@intel.com>\nSigned-off-by: Zhirun Yan <zhirun.yan@intel.com>\n---\n lib/graph/graph.c | 2 ++\n lib/graph/graph_populate.c | 1 +\n lib/graph/graph_private.h | 12 ++++++++++++\n lib/graph/rte_graph_worker_common.h | 29 +++++++++++++++++++++++++++++\n 4 files changed, 44 insertions(+)", "diff": "diff --git a/lib/graph/graph.c b/lib/graph/graph.c\nindex 1b34f0e543..968cbbf86c 100644\n--- a/lib/graph/graph.c\n+++ b/lib/graph/graph.c\n@@ -291,6 +291,7 @@ rte_graph_model_mcore_dispatch_core_bind(rte_graph_t id, int lcore)\n \t\tgoto fail;\n \n \tgraph->lcore_id = lcore;\n+\tgraph->graph->dispatch.lcore_id = graph->lcore_id;\n \tgraph->socket = rte_lcore_to_socket_id(lcore);\n \n \t/* check the availability of source node */\n@@ -314,6 +315,7 @@ rte_graph_model_mcore_dispatch_core_unbind(rte_graph_t id)\n \t\t\tbreak;\n \n \tgraph->lcore_id = RTE_MAX_LCORE;\n+\tgraph->graph->dispatch.lcore_id = RTE_MAX_LCORE;\n \n fail:\n \treturn;\ndiff --git a/lib/graph/graph_populate.c b/lib/graph/graph_populate.c\nindex 2c0844ce92..ed596a7711 100644\n--- a/lib/graph/graph_populate.c\n+++ b/lib/graph/graph_populate.c\n@@ -89,6 +89,7 @@ graph_nodes_populate(struct graph *_graph)\n \t\t}\n \t\tnode->id = graph_node->node->id;\n \t\tnode->parent_id = pid;\n+\t\tnode->dispatch.lcore_id = graph_node->node->lcore_id;\n \t\tnb_edges = graph_node->node->nb_edges;\n \t\tnode->nb_edges = nb_edges;\n \t\toff += sizeof(struct rte_node);\ndiff --git a/lib/graph/graph_private.h b/lib/graph/graph_private.h\nindex 354dc8ac0a..d84174b667 100644\n--- a/lib/graph/graph_private.h\n+++ b/lib/graph/graph_private.h\n@@ -64,6 +64,18 @@ struct node {\n \tchar next_nodes[][RTE_NODE_NAMESIZE]; /**< Names of next nodes. */\n };\n \n+/**\n+ * @internal\n+ *\n+ * Structure that holds the graph scheduling workqueue node stream.\n+ * Used for mcore dispatch model.\n+ */\n+struct graph_mcore_dispatch_wq_node {\n+\trte_graph_off_t node_off;\n+\tuint16_t nb_objs;\n+\tvoid *objs[RTE_GRAPH_BURST_SIZE];\n+} __rte_cache_aligned;\n+\n /**\n * @internal\n *\ndiff --git a/lib/graph/rte_graph_worker_common.h b/lib/graph/rte_graph_worker_common.h\nindex 123600f939..b34cdf1ffb 100644\n--- a/lib/graph/rte_graph_worker_common.h\n+++ b/lib/graph/rte_graph_worker_common.h\n@@ -36,12 +36,20 @@ extern \"C\" {\n /**< Dispatch model to support cross-core dispatching within core affinity. */\n #define RTE_GRAPH_MODEL_DEFAULT RTE_GRAPH_MODEL_RTC /**< Default graph model. */\n \n+/**\n+ * @internal\n+ *\n+ * Singly-linked list head for graph schedule run-queue.\n+ */\n+SLIST_HEAD(rte_graph_rq_head, rte_graph);\n+\n /**\n * @internal\n *\n * Data structure to hold graph data.\n */\n struct rte_graph {\n+\t/* Fast path area. */\n \tuint32_t tail;\t\t /**< Tail of circular buffer. */\n \tuint32_t head;\t\t /**< Head of circular buffer. */\n \tuint32_t cir_mask;\t /**< Circular buffer wrap around mask. */\n@@ -51,6 +59,20 @@ struct rte_graph {\n \tuint8_t model;\t\t /**< graph model */\n \tuint8_t reserved1;\t /**< Reserved for future use. */\n \tuint16_t reserved2;\t /**< Reserved for future use. */\n+\tRTE_STD_C11\n+\tunion {\n+\t\t/* Fast schedule area for mcore dispatch model */\n+\t\tstruct {\n+\t\t\tstruct rte_graph_rq_head *rq __rte_cache_aligned; /* The run-queue */\n+\t\t\tstruct rte_graph_rq_head rq_head; /* The head for run-queue list */\n+\n+\t\t\tunsigned int lcore_id; /**< The graph running Lcore. */\n+\t\t\tstruct rte_ring *wq; /**< The work-queue for pending streams. */\n+\t\t\tstruct rte_mempool *mp; /**< The mempool for scheduling streams. */\n+\t\t} dispatch; /** Only used by dispatch model */\n+\t};\n+\tSLIST_ENTRY(rte_graph) next; /* The next for rte_graph list */\n+\t/* End of Fast path area.*/\n \trte_graph_t id;\t/**< Graph identifier. */\n \tint socket;\t/**< Socket ID where memory is allocated. */\n \tchar name[RTE_GRAPH_NAMESIZE];\t/**< Name of the graph. */\n@@ -83,6 +105,13 @@ struct rte_node {\n \t/** Original process function when pcap is enabled. */\n \trte_node_process_t original_process;\n \n+\tRTE_STD_C11\n+\tunion {\n+\t\t/* Fast schedule area for mcore dispatch model */\n+\t\tstruct {\n+\t\t\tunsigned int lcore_id; /**< Node running lcore. */\n+\t\t} dispatch;\n+\t};\n \t/* Fast path area */\n #define RTE_NODE_CTX_SZ 16\n \tuint8_t ctx[RTE_NODE_CTX_SZ] __rte_cache_aligned; /**< Node Context. */\n", "prefixes": [ "v12", "09/16" ] }{ "id": 128490, "url": "