get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 128615,
    "url": "http://patchwork.dpdk.org/api/patches/128615/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230613140445.2155542-13-zhirun.yan@intel.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<20230613140445.2155542-13-zhirun.yan@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230613140445.2155542-13-zhirun.yan@intel.com",
    "date": "2023-06-13T14:04:41",
    "name": "[v14,12/16] graph: introduce graph walk by cross-core dispatch",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "6365af4fc8cca11a356dabb9121419a64e75fd07",
    "submitter": {
        "id": 1154,
        "url": "http://patchwork.dpdk.org/api/people/1154/?format=api",
        "name": "Yan, Zhirun",
        "email": "zhirun.yan@intel.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patchwork.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20230613140445.2155542-13-zhirun.yan@intel.com/mbox/",
    "series": [
        {
            "id": 28485,
            "url": "http://patchwork.dpdk.org/api/series/28485/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=28485",
            "date": "2023-06-13T14:04:29",
            "name": "graph enhancement for multi-core dispatch",
            "version": 14,
            "mbox": "http://patchwork.dpdk.org/series/28485/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/128615/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/128615/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 5D17342CAB;\n\tTue, 13 Jun 2023 16:13:43 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 76CFC42D6D;\n\tTue, 13 Jun 2023 16:12:38 +0200 (CEST)",
            "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n by mails.dpdk.org (Postfix) with ESMTP id AA8ED42D61\n for <dev@dpdk.org>; Tue, 13 Jun 2023 16:12:36 +0200 (CEST)",
            "from orsmga008.jf.intel.com ([10.7.209.65])\n by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 13 Jun 2023 07:12:36 -0700",
            "from dpdk-zhirun-lmm.sh.intel.com ([10.67.119.94])\n by orsmga008.jf.intel.com with ESMTP; 13 Jun 2023 07:12:33 -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=1686665556; x=1718201556;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=mr9iwvNxhZ7hGShL923CB2ZRxK/tbZrY7A7RG2Y8TbA=;\n b=EKVZrLtGMPqf1tQO09psjD/QWQGtGaTx8rLBmLh3eOl407RWfVclPPfv\n 3o6z0pXPvyuKav2n6LJo3/5HAo8RsKyWWQIXzPSwiVRWnOXwRoan+migT\n 9UEGOrNqlTIoARGwh/No2i1eYt/hBznOc8o1ngl/aLSzNUuYozjDlPHzf\n 7LKGFMQT/9j0O1p2Ny/jYOacf0UvrklDYc3S4PDHbKesgQtfxcxGX3x/L\n 4kHCg/dDbnWdFFuxx6Yc8bQv/WPGtcF4gVUeTmXBoS2pHx9Xm2HwJ2cLE\n tsLpgO8YtMDObF1cION17hcmC1KTveFwoIinjFCvuyl5fZ5RcX6Rg2Kpz g==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6600,9927,10740\"; a=\"355839880\"",
            "E=Sophos;i=\"6.00,239,1681196400\"; d=\"scan'208\";a=\"355839880\"",
            "E=McAfee;i=\"6600,9927,10740\"; a=\"741439416\"",
            "E=Sophos;i=\"6.00,239,1681196400\"; d=\"scan'208\";a=\"741439416\""
        ],
        "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 v14 12/16] graph: introduce graph walk by cross-core dispatch",
        "Date": "Tue, 13 Jun 2023 22:04:41 +0800",
        "Message-Id": "<20230613140445.2155542-13-zhirun.yan@intel.com>",
        "X-Mailer": "git-send-email 2.37.2",
        "In-Reply-To": "<20230613140445.2155542-1-zhirun.yan@intel.com>",
        "References": "<20230613101404.1787790-1-zhirun.yan@intel.com>\n <20230613140445.2155542-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": "This patch introduces the task scheduler mechanism to enable dispatching\ntasks to another worker cores. Currently, there is only a local work\nqueue for one graph to walk. We introduce a scheduler worker queue in\neach worker core for dispatching tasks. It will perform the walk on\nscheduler work queue first, then handle the local work queue.\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>\nAcked-by: Jerin Jacob <jerinj@marvell.com>\nAcked-by: Pavan Nikhilesh <pbhagavatula@marvell.com>\n---\n lib/graph/rte_graph_model_mcore_dispatch.h | 44 ++++++++++++++++++++++\n 1 file changed, 44 insertions(+)",
    "diff": "diff --git a/lib/graph/rte_graph_model_mcore_dispatch.h b/lib/graph/rte_graph_model_mcore_dispatch.h\nindex 6163f96c37..c78a3bbdf9 100644\n--- a/lib/graph/rte_graph_model_mcore_dispatch.h\n+++ b/lib/graph/rte_graph_model_mcore_dispatch.h\n@@ -83,6 +83,50 @@ __rte_experimental\n int rte_graph_model_mcore_dispatch_node_lcore_affinity_set(const char *name,\n \t\t\t\t\t\t\t   unsigned int lcore_id);\n \n+/**\n+ * Perform graph walk on the circular buffer and invoke the process function\n+ * of the nodes and collect the stats.\n+ *\n+ * @param graph\n+ *   Graph pointer returned from rte_graph_lookup function.\n+ *\n+ * @see rte_graph_lookup()\n+ */\n+__rte_experimental\n+static inline void\n+rte_graph_walk_mcore_dispatch(struct rte_graph *graph)\n+{\n+\tconst rte_graph_off_t *cir_start = graph->cir_start;\n+\tconst rte_node_t mask = graph->cir_mask;\n+\tuint32_t head = graph->head;\n+\tstruct rte_node *node;\n+\n+\tRTE_ASSERT(graph->parent_id != RTE_GRAPH_ID_INVALID);\n+\tif (graph->dispatch.wq != NULL)\n+\t\t__rte_graph_mcore_dispatch_sched_wq_process(graph);\n+\n+\twhile (likely(head != graph->tail)) {\n+\t\tnode = (struct rte_node *)RTE_PTR_ADD(graph, cir_start[(int32_t)head++]);\n+\n+\t\t/* skip the src nodes which not bind with current worker */\n+\t\tif ((int32_t)head < 0 && node->dispatch.lcore_id != graph->dispatch.lcore_id)\n+\t\t\tcontinue;\n+\n+\t\t/* Schedule the node until all task/objs are done */\n+\t\tif (node->dispatch.lcore_id != RTE_MAX_LCORE &&\n+\t\t    graph->dispatch.lcore_id != node->dispatch.lcore_id &&\n+\t\t    graph->dispatch.rq != NULL &&\n+\t\t    __rte_graph_mcore_dispatch_sched_node_enqueue(node, graph->dispatch.rq))\n+\t\t\tcontinue;\n+\n+\t\t__rte_node_process(graph, node);\n+\n+\t\thead = likely((int32_t)head > 0) ? head & mask : head;\n+\t}\n+\n+\tgraph->tail = 0;\n+}\n+\n #ifdef __cplusplus\n }\n #endif\n",
    "prefixes": [
        "v14",
        "12/16"
    ]
}