get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 128612,
    "url": "http://patches.dpdk.org/api/patches/128612/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230613140445.2155542-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": "<20230613140445.2155542-10-zhirun.yan@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230613140445.2155542-10-zhirun.yan@intel.com",
    "date": "2023-06-13T14:04:38",
    "name": "[v14,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/20230613140445.2155542-10-zhirun.yan@intel.com/mbox/",
    "series": [
        {
            "id": 28485,
            "url": "http://patches.dpdk.org/api/series/28485/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=28485",
            "date": "2023-06-13T14:04:29",
            "name": "graph enhancement for multi-core dispatch",
            "version": 14,
            "mbox": "http://patches.dpdk.org/series/28485/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/128612/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/128612/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 D6D3642CAB;\n\tTue, 13 Jun 2023 16:13:15 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id D24D642D4D;\n\tTue, 13 Jun 2023 16:12:30 +0200 (CEST)",
            "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n by mails.dpdk.org (Postfix) with ESMTP id C366242D51\n for <dev@dpdk.org>; Tue, 13 Jun 2023 16:12:26 +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:26 -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:23 -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=1686665547; x=1718201547;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=C9gth6n2X5d0lIQJzsuGQntqjUQ1B0rSJaH2qDwAJmc=;\n b=asSZjdsIg3zsjlxaU2ltCSm+QHP2FoMH1bdTqtOzaoybtSnA0SecRh42\n Uo3XYq6jVlWipBnFXlmYC7KdomaUPCBMBl2yMmx23vio4jijlI+dWKYJq\n T5DvQKXHP4CG6qjJoHAYzE/KpSWK0BQad5nSDFMnjdtOpjguqmTR8RFH6\n Q8iWi1sS5tzvYBks/spqllncoNfOBYdKaZBNc8RkZTo+KJrwcMo0UVSQX\n 3VEZIgi+3R3bg1GdusEgmrZ7ZBgA/U+N9RtwUezFk2ZjBQr+Rej+qAeym\n PSflXqyzwKic2J2SdbmQjzchqC50arSa3FmMy+y7E0n1XY3Gc8m6NJxHJ A==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6600,9927,10740\"; a=\"355839809\"",
            "E=Sophos;i=\"6.00,239,1681196400\"; d=\"scan'208\";a=\"355839809\"",
            "E=McAfee;i=\"6600,9927,10740\"; a=\"741439383\"",
            "E=Sophos;i=\"6.00,239,1681196400\"; d=\"scan'208\";a=\"741439383\""
        ],
        "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 09/16] graph: add structure for stream moving between\n cores",
        "Date": "Tue, 13 Jun 2023 22:04:38 +0800",
        "Message-Id": "<20230613140445.2155542-10-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": "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": [
        "v14",
        "09/16"
    ]
}