get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 128614,
    "url": "http://patchwork.dpdk.org/api/patches/128614/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230613140445.2155542-12-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-12-zhirun.yan@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230613140445.2155542-12-zhirun.yan@intel.com",
    "date": "2023-06-13T14:04:40",
    "name": "[v14,11/16] graph: enable create and destroy graph scheduling workqueue",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "7f9eb83c0f263f8d060a8a85af44de365c8b34da",
    "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-12-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/128614/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/128614/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 798BD42CAB;\n\tTue, 13 Jun 2023 16:13:33 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 05AE242BFE;\n\tTue, 13 Jun 2023 16:12:35 +0200 (CEST)",
            "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n by mails.dpdk.org (Postfix) with ESMTP id 7482742D5A\n for <dev@dpdk.org>; Tue, 13 Jun 2023 16:12:33 +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:32 -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: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=1686665553; x=1718201553;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=zKZLeIHr9FeSeOY0Lc9P3dlFxlXVbvZx6tLL2HmUpgQ=;\n b=R1ffutjHp0evQHSGR3iiuF8+w1nus1SYb1sK5KFxyncOA5CJANBK9i/S\n AahmV3nRdK6C3D+RFNuiFPRnZEORLdf7sCfy8/HIKUETE25nkWRKlX/Mc\n e93sSTeUBlqXqth0cBawW/M/B2Tajw5MRqHOirK18GsK1hh6X4L8jSbmD\n T4U4+zaGfcwfF/Fxhkgcm+V036Kfd+JI+xBzzy8GsuDP8BwNnLnDrphuL\n qprY0boPSnRtok/Splt30VhdFGdtMTv1MaZ2liWMPU8Vr3A/OFX4dSfNN\n JmVzunmjgXcoI6tH0JDezKsvafs5DQ5JS6sXP9g/gYQJmwvsReq6PTy9N g==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6600,9927,10740\"; a=\"355839861\"",
            "E=Sophos;i=\"6.00,239,1681196400\"; d=\"scan'208\";a=\"355839861\"",
            "E=McAfee;i=\"6600,9927,10740\"; a=\"741439410\"",
            "E=Sophos;i=\"6.00,239,1681196400\"; d=\"scan'208\";a=\"741439410\""
        ],
        "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 11/16] graph: enable create and destroy graph scheduling\n workqueue",
        "Date": "Tue, 13 Jun 2023 22:04:40 +0800",
        "Message-Id": "<20230613140445.2155542-12-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 enables to create and destroy scheduling workqueue into\ncommon graph operations.\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: Pavan Nikhilesh <pbhagavatula@marvell.com>\n---\n lib/graph/graph.c | 10 ++++++++++\n 1 file changed, 10 insertions(+)",
    "diff": "diff --git a/lib/graph/graph.c b/lib/graph/graph.c\nindex 41251e3435..0c28d925bc 100644\n--- a/lib/graph/graph.c\n+++ b/lib/graph/graph.c\n@@ -451,6 +451,11 @@ rte_graph_destroy(rte_graph_t id)\n \twhile (graph != NULL) {\n \t\ttmp = STAILQ_NEXT(graph, next);\n \t\tif (graph->id == id) {\n+\t\t\t/* Destroy the schedule work queue if has */\n+\t\t\tif (rte_graph_worker_model_get(graph->graph) ==\n+\t\t\t    RTE_GRAPH_MODEL_MCORE_DISPATCH)\n+\t\t\t\tgraph_sched_wq_destroy(graph);\n+\n \t\t\t/* Call fini() of the all the nodes in the graph */\n \t\t\tgraph_node_fini(graph);\n \t\t\t/* Destroy graph fast path memory */\n@@ -524,6 +529,11 @@ graph_clone(struct graph *parent_graph, const char *name, struct rte_graph_param\n \t/* Clone the graph model */\n \tgraph->graph->model = parent_graph->graph->model;\n \n+\t/* Create the graph schedule work queue */\n+\tif (rte_graph_worker_model_get(graph->graph) == RTE_GRAPH_MODEL_MCORE_DISPATCH &&\n+\t    graph_sched_wq_create(graph, parent_graph, prm))\n+\t\tgoto graph_mem_destroy;\n+\n \t/* Call init() of the all the nodes in the graph */\n \tif (graph_node_init(graph))\n \t\tgoto graph_mem_destroy;\n",
    "prefixes": [
        "v14",
        "11/16"
    ]
}