Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/125579/?format=api
http://patches.dpdk.org/api/patches/125579/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230329064340.2550530-9-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": "<20230329064340.2550530-9-zhirun.yan@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20230329064340.2550530-9-zhirun.yan@intel.com", "date": "2023-03-29T06:43:33", "name": "[v3,08/15] graph: add struct for stream moving between cores", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "f9db4460be5e3015ee0d3f10dbcc55347fe205cd", "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/20230329064340.2550530-9-zhirun.yan@intel.com/mbox/", "series": [ { "id": 27571, "url": "http://patches.dpdk.org/api/series/27571/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=27571", "date": "2023-03-29T06:43:25", "name": "graph enhancement for multi-core dispatch", "version": 3, "mbox": "http://patches.dpdk.org/series/27571/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/125579/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/125579/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 F009D4285E;\n\tWed, 29 Mar 2023 08:44:47 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 173A642C54;\n\tWed, 29 Mar 2023 08:44:10 +0200 (CEST)", "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n by mails.dpdk.org (Postfix) with ESMTP id 6A53142D12\n for <dev@dpdk.org>; Wed, 29 Mar 2023 08:44:07 +0200 (CEST)", "from fmsmga002.fm.intel.com ([10.253.24.26])\n by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 28 Mar 2023 23:44:06 -0700", "from dpdk-zhirun-lmm.sh.intel.com ([10.67.119.68])\n by fmsmga002.fm.intel.com with ESMTP; 28 Mar 2023 23:44:05 -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=1680072247; x=1711608247;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=i4bPHhLYEjnztA7cgmSSgSHPMH/gVksNCdgVwnohoaI=;\n b=d99dzZ/pShTmw52yWSaxuCbYrV27gbqB1QhF6TQ84KRyqWyKq559/vNp\n 5I2zfux7duPeR9tKBPv/LZggtjZcUCWx8j61vtyLRdtfnfNfnXiJPmp/S\n Io25hEZsooB9OQKKBrhEta2Gm+y/nOACNdn+lKtJhMUrwvjrqf43XwsR7\n yJVD0BYIjeQUt0Bt6T9UeNjK74ckJbIFzWljWGIml82Q6UunM0P8lD7Yd\n HZvz1P5PCa7H3dWpx7jGD77wjufjckjXPgUrOPZxYWuatpNp9ZWWUjFw1\n 0Od/N0lFXB5pLFNjQ1ruh0VUxcz1+k0eY80EjFPFVNASeoQqxis7/cVZo g==;", "X-IronPort-AV": [ "E=McAfee;i=\"6600,9927,10663\"; a=\"329260480\"", "E=Sophos;i=\"5.98,300,1673942400\"; d=\"scan'208\";a=\"329260480\"", "E=McAfee;i=\"6600,9927,10663\"; a=\"795105000\"", "E=Sophos;i=\"5.98,300,1673942400\"; d=\"scan'208\";a=\"795105000\"" ], "X-ExtLoop1": "1", "From": "Zhirun Yan <zhirun.yan@intel.com>", "To": "dev@dpdk.org, jerinj@marvell.com, kirankumark@marvell.com,\n ndabilpuram@marvell.com", "Cc": "cunming.liang@intel.com, haiyue.wang@intel.com,\n Zhirun Yan <zhirun.yan@intel.com>", "Subject": "[PATCH v3 08/15] graph: add struct for stream moving between cores", "Date": "Wed, 29 Mar 2023 15:43:33 +0900", "Message-Id": "<20230329064340.2550530-9-zhirun.yan@intel.com>", "X-Mailer": "git-send-email 2.37.2", "In-Reply-To": "<20230329064340.2550530-1-zhirun.yan@intel.com>", "References": "<20230324021622.1369006-1-zhirun.yan@intel.com>\n <20230329064340.2550530-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_sched_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 | 1 +\n lib/graph/graph_populate.c | 1 +\n lib/graph/graph_private.h | 12 ++++++++++++\n lib/graph/rte_graph_worker_common.h | 21 +++++++++++++++++++++\n 4 files changed, 35 insertions(+)", "diff": "diff --git a/lib/graph/graph.c b/lib/graph/graph.c\nindex 90eaad0378..dd3d69dbf7 100644\n--- a/lib/graph/graph.c\n+++ b/lib/graph/graph.c\n@@ -284,6 +284,7 @@ rte_graph_model_dispatch_core_bind(rte_graph_t id, int lcore)\n \t\t\tbreak;\n \n \tgraph->lcore_id = lcore;\n+\tgraph->graph->lcore_id = graph->lcore_id;\n \tgraph->socket = rte_lcore_to_socket_id(lcore);\n \n \t/* check the availability of source node */\ndiff --git a/lib/graph/graph_populate.c b/lib/graph/graph_populate.c\nindex 2c0844ce92..7dcf1420c1 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->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 d28a5af93e..b66b18ebbc 100644\n--- a/lib/graph/graph_private.h\n+++ b/lib/graph/graph_private.h\n@@ -60,6 +60,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_sched_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 1526da6e2c..dc0a0b5554 100644\n--- a/lib/graph/rte_graph_worker_common.h\n+++ b/lib/graph/rte_graph_worker_common.h\n@@ -30,6 +30,13 @@\n extern \"C\" {\n #endif\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@@ -41,6 +48,15 @@ struct rte_graph {\n \tuint32_t cir_mask;\t /**< Circular buffer wrap around mask. */\n \trte_node_t nb_nodes;\t /**< Number of nodes in the graph. */\n \trte_graph_off_t *cir_start; /**< Pointer to circular buffer. */\n+\t/* Graph schedule */\n+\tstruct rte_graph_rq_head *rq __rte_cache_aligned; /* The run-queue */\n+\tstruct rte_graph_rq_head rq_head; /* The head for run-queue list */\n+\n+\tSLIST_ENTRY(rte_graph) rq_next; /* The next for run-queue list */\n+\tunsigned int lcore_id; /**< The graph running Lcore. */\n+\tstruct rte_ring *wq; /**< The work-queue for pending streams. */\n+\tstruct rte_mempool *mp; /**< The mempool for scheduling streams. */\n+\t/* Graph schedule area */\n \trte_graph_off_t nodes_start; /**< Offset at which node memory starts. */\n \trte_graph_t id;\t/**< Graph identifier. */\n \tint socket;\t/**< Socket ID where memory is allocated. */\n@@ -74,6 +90,11 @@ 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+\t\tunion {\n+\t\t/* Fast schedule area for mcore dispatch model */\n+\t\tunsigned int lcore_id; /**< Node running lcore. */\n+\t\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": [ "v3", "08/15" ] }{ "id": 125579, "url": "