get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/125663/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 125663,
    "url": "http://patches.dpdk.org/api/patches/125663/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230331040306.3143693-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": "<20230331040306.3143693-9-zhirun.yan@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230331040306.3143693-9-zhirun.yan@intel.com",
    "date": "2023-03-31T04:02:59",
    "name": "[v5,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/20230331040306.3143693-9-zhirun.yan@intel.com/mbox/",
    "series": [
        {
            "id": 27590,
            "url": "http://patches.dpdk.org/api/series/27590/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=27590",
            "date": "2023-03-31T04:02:51",
            "name": "graph enhancement for multi-core dispatch",
            "version": 5,
            "mbox": "http://patches.dpdk.org/series/27590/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/125663/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/125663/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 957AF4287E;\n\tFri, 31 Mar 2023 06:04:14 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 17C2142D49;\n\tFri, 31 Mar 2023 06:03:35 +0200 (CEST)",
            "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n by mails.dpdk.org (Postfix) with ESMTP id 0121842D48\n for <dev@dpdk.org>; Fri, 31 Mar 2023 06:03:31 +0200 (CEST)",
            "from fmsmga007.fm.intel.com ([10.253.24.52])\n by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 30 Mar 2023 21:03:31 -0700",
            "from dpdk-zhirun-lmm.sh.intel.com ([10.67.119.68])\n by fmsmga007.fm.intel.com with ESMTP; 30 Mar 2023 21:03:29 -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=1680235412; x=1711771412;\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=X0imWnt7bOa2qfLYVHrMCdp0X0IUcDOqSCPU3OlyxgOcYgdWyqo+Dx0u\n P+l3Xjn36acR87UrN/bYaPX89kgZoAf/ql1IXS8J3x4rbAwWO3+08ms0l\n L8JtIehgvTtAl9ODNvnMYH0b94UfaOX+AhTreepwQgW5WpUa6h+qUOQ1m\n a1hqY3n2Ps3OdVcoai423usDJhUUk1SXmlltf0TbjhNB2s2i74UvtKsYZ\n Ni6nsfoJlOA/Uwgo8l0wAF087VXC0g8+pQIOM9A/M7vtrQEI03RSI7QhD\n ksa5gjP3Vn+w+3KMJV11uSKLQH6fA9OeKkuvdHvGcms5vGFPMciTeaeWv Q==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6600,9927,10665\"; a=\"338849101\"",
            "E=Sophos;i=\"5.98,306,1673942400\"; d=\"scan'208\";a=\"338849101\"",
            "E=McAfee;i=\"6600,9927,10665\"; a=\"687502282\"",
            "E=Sophos;i=\"5.98,306,1673942400\"; d=\"scan'208\";a=\"687502282\""
        ],
        "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",
        "Cc": "cunming.liang@intel.com, haiyue.wang@intel.com,\n Zhirun Yan <zhirun.yan@intel.com>",
        "Subject": "[PATCH v5 08/15] graph: add struct for stream moving between cores",
        "Date": "Fri, 31 Mar 2023 13:02:59 +0900",
        "Message-Id": "<20230331040306.3143693-9-zhirun.yan@intel.com>",
        "X-Mailer": "git-send-email 2.37.2",
        "In-Reply-To": "<20230331040306.3143693-1-zhirun.yan@intel.com>",
        "References": "<20230330061834.3118201-1-zhirun.yan@intel.com>\n <20230331040306.3143693-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": [
        "v5",
        "08/15"
    ]
}