get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 135672,
    "url": "http://patches.dpdk.org/api/patches/135672/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20240102072818.886476-1-rkudurumalla@marvell.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": "<20240102072818.886476-1-rkudurumalla@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20240102072818.886476-1-rkudurumalla@marvell.com",
    "date": "2024-01-02T07:28:16",
    "name": "[v9,1/3] node: support to add next node to ethdev Rx node",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "4962e1e37ede3c48c8b85fc8e87c60d0884b770d",
    "submitter": {
        "id": 2289,
        "url": "http://patches.dpdk.org/api/people/2289/?format=api",
        "name": "Rakesh Kudurumalla",
        "email": "rkudurumalla@marvell.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/20240102072818.886476-1-rkudurumalla@marvell.com/mbox/",
    "series": [
        {
            "id": 30695,
            "url": "http://patches.dpdk.org/api/series/30695/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=30695",
            "date": "2024-01-02T07:28:16",
            "name": "[v9,1/3] node: support to add next node to ethdev Rx node",
            "version": 9,
            "mbox": "http://patches.dpdk.org/series/30695/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/135672/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/135672/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 16E53437F9;\n\tTue,  2 Jan 2024 08:28:28 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id D7FA4402D8;\n\tTue,  2 Jan 2024 08:28:27 +0100 (CET)",
            "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173])\n by mails.dpdk.org (Postfix) with ESMTP id 02F1A402BD\n for <dev@dpdk.org>; Tue,  2 Jan 2024 08:28:25 +0100 (CET)",
            "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id\n 401Nlxwq003982 for <dev@dpdk.org>; Mon, 1 Jan 2024 23:28:25 -0800",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3vakkkx8ce-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Mon, 01 Jan 2024 23:28:25 -0800 (PST)",
            "from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48;\n Mon, 1 Jan 2024 23:28:23 -0800",
            "from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.48 via Frontend\n Transport; Mon, 1 Jan 2024 23:28:23 -0800",
            "from localhost.localdomain (unknown [10.28.36.154])\n by maili.marvell.com (Postfix) with ESMTP id 36ADA3F7080;\n Mon,  1 Jan 2024 23:28:20 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=\n from:to:cc:subject:date:message-id:in-reply-to:references\n :mime-version:content-transfer-encoding:content-type; s=\n pfpt0220; bh=f0PEjy+nPaLqaFxOfff4KyINRR7SFYcKrsJxPShIy80=; b=Cw6\n vDtICuuZRLjYRaZcKa+szMNnLuX8/TSFyJFe92VItuRDaPbBiNj1mE4x9zahiLQS\n 6rYfY+/JV8/xDDnG+aSq9ur3YEUHyQH7fzMtsQj8spEggqXVLw1JHgO+S1REbOGE\n XaNUuK3MajeJtWIUE+F2PEoAwp4BS3a27ckn96gvpPOIgvdPB8LSuCodtf7qO+V+\n Ca/5wKOqFELcqXB3gxUae0jTkQlBR34EkXdFo2NcW+XjrjH0hXso0JHsbW3JmUWA\n Qod5b3RI5V0jMNG0Z5h+dqxo+dwyEGjreOc9Hf6WGwNRdcWQ91IuTjxbl72LZsB3\n /wBYjC/fwK7nayqLPxw==",
        "From": "Rakesh Kudurumalla <rkudurumalla@marvell.com>",
        "To": "Nithin Dabilpuram <ndabilpuram@marvell.com>, Pavan Nikhilesh\n <pbhagavatula@marvell.com>",
        "CC": "<dev@dpdk.org>, <jerinj@marvell.com>, Rakesh Kudurumalla\n <rkudurumalla@marvell.com>",
        "Subject": "[PATCH v9 1/3] node: support to add next node to ethdev Rx node",
        "Date": "Tue, 2 Jan 2024 12:58:16 +0530",
        "Message-ID": "<20240102072818.886476-1-rkudurumalla@marvell.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20240101083726.875161-1-rkudurumalla@marvell.com>",
        "References": "<20240101083726.875161-1-rkudurumalla@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-ORIG-GUID": "fSJp6_tAMVkTaUhWttgZ6GUFwPdv0vqr",
        "X-Proofpoint-GUID": "fSJp6_tAMVkTaUhWttgZ6GUFwPdv0vqr",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26\n definitions=2023-12-09_02,2023-12-07_01,2023-05-22_02",
        "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": "By default all packets received on ethdev_rx node\nis forwarded to pkt_cls node.This patch provides\nlibrary support to add a new node as next node to\nethdev_rx node and forward packet to new node from\nrx node.\n\nSigned-off-by: Rakesh Kudurumalla <rkudurumalla@marvell.com>\n---\nv9: Resolve memory issue\n\n lib/node/ethdev_ctrl.c      | 48 +++++++++++++++++++++++++++++++++++++\n lib/node/rte_node_eth_api.h | 18 ++++++++++++++\n lib/node/version.map        |  3 +++\n 3 files changed, 69 insertions(+)",
    "diff": "diff --git a/lib/node/ethdev_ctrl.c b/lib/node/ethdev_ctrl.c\nindex d564b80e37..cffe15976f 100644\n--- a/lib/node/ethdev_ctrl.c\n+++ b/lib/node/ethdev_ctrl.c\n@@ -2,6 +2,7 @@\n  * Copyright(C) 2020 Marvell International Ltd.\n  */\n \n+#include <errno.h>\n #include <stdlib.h>\n \n #include <rte_ethdev.h>\n@@ -129,3 +130,50 @@ rte_node_eth_config(struct rte_node_ethdev_config *conf, uint16_t nb_confs,\n \tctrl.nb_graphs = nb_graphs;\n \treturn 0;\n }\n+\n+int\n+rte_node_ethdev_rx_next_update(rte_node_t id, const char *edge_name)\n+{\n+\tstruct ethdev_rx_node_main *data;\n+\tethdev_rx_node_elem_t *elem;\n+\tchar **next_nodes;\n+\tint rc = -EINVAL;\n+\tuint32_t size;\n+\tuint16_t i = 0;\n+\n+\tif (edge_name == NULL)\n+\t\tgoto exit;\n+\n+\tsize = rte_node_edge_get(id, NULL);\n+\n+\tif (size == RTE_NODE_ID_INVALID)\n+\t\tgoto exit;\n+\n+\tnext_nodes = calloc((size / sizeof(char *)) + 1, sizeof(*next_nodes));\n+\tif (next_nodes == NULL) {\n+\t\trc = -ENOMEM;\n+\t\tgoto exit;\n+\t}\n+\n+\tsize = rte_node_edge_get(id, next_nodes);\n+\n+\twhile (next_nodes[i] != NULL) {\n+\t\tif (strcmp(edge_name, next_nodes[i]) == 0) {\n+\t\t\tdata = ethdev_rx_get_node_data_get();\n+\t\t\telem = data->head;\n+\t\t\twhile (elem->next != data->head) {\n+\t\t\t\tif (elem->nid == id) {\n+\t\t\t\t\telem->ctx.cls_next = i;\n+\t\t\t\t\trc = 0;\n+\t\t\t\t\tgoto found;\n+\t\t\t\t}\n+\t\t\t\telem = elem->next;\n+\t\t\t}\n+\t\t}\n+\t\ti++;\n+\t}\n+found:\n+\tfree(next_nodes);\n+exit:\n+\treturn rc;\n+}\ndiff --git a/lib/node/rte_node_eth_api.h b/lib/node/rte_node_eth_api.h\nindex eaae50772d..d2f705e908 100644\n--- a/lib/node/rte_node_eth_api.h\n+++ b/lib/node/rte_node_eth_api.h\n@@ -22,6 +22,7 @@ extern \"C\" {\n \n #include <rte_compat.h>\n #include <rte_common.h>\n+#include <rte_graph.h>\n #include <rte_mempool.h>\n \n /**\n@@ -57,6 +58,23 @@ struct rte_node_ethdev_config {\n  */\n int rte_node_eth_config(struct rte_node_ethdev_config *cfg,\n \t\t\tuint16_t cnt, uint16_t nb_graphs);\n+\n+/**\n+ * Update ethdev rx next node.\n+ *\n+ * @param id\n+ *   Node id whose edge is to be updated.\n+ * @param edge_name\n+ *   Name of the next node.\n+ *\n+ * @return\n+ *   ENINVAL: Either of input parameters are invalid\n+ *   ENOMEM: If memory allocation failed\n+ *   0 on successful initialization.\n+ */\n+__rte_experimental\n+int rte_node_ethdev_rx_next_update(rte_node_t id, const char *edge_name);\n+\n #ifdef __cplusplus\n }\n #endif\ndiff --git a/lib/node/version.map b/lib/node/version.map\nindex 99ffcdd414..6bdb944c4c 100644\n--- a/lib/node/version.map\n+++ b/lib/node/version.map\n@@ -19,4 +19,7 @@ EXPERIMENTAL {\n \trte_node_ip4_reassembly_configure;\n \trte_node_udp4_dst_port_add;\n \trte_node_udp4_usr_node_add;\n+\n+\t# added in 24.03\n+\trte_node_ethdev_rx_next_update;\n };\n",
    "prefixes": [
        "v9",
        "1/3"
    ]
}