get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 64763,
    "url": "http://patchwork.dpdk.org/api/patches/64763/",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/dfb4ae762a7c19031d26c1f664707f4c7823617b.1579168182.git.jackmin@mellanox.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.dpdk.org/api/projects/1/",
        "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": "<dfb4ae762a7c19031d26c1f664707f4c7823617b.1579168182.git.jackmin@mellanox.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/dfb4ae762a7c19031d26c1f664707f4c7823617b.1579168182.git.jackmin@mellanox.com",
    "date": "2020-01-16T10:14:13",
    "name": "[1/5] ethdev: add API to dump device internal flow info",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "284345d34c5d680b789d6af58195fb55ac719c5a",
    "submitter": {
        "id": 1065,
        "url": "http://patchwork.dpdk.org/api/people/1065/",
        "name": "Xiaoyu Min",
        "email": "jackmin@mellanox.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patchwork.dpdk.org/api/users/319/",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@intel.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/dfb4ae762a7c19031d26c1f664707f4c7823617b.1579168182.git.jackmin@mellanox.com/mbox/",
    "series": [
        {
            "id": 8154,
            "url": "http://patchwork.dpdk.org/api/series/8154/",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=8154",
            "date": "2020-01-16T10:14:12",
            "name": "ethdev: add API to dump device internal flow info",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/8154/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/64763/comments/",
    "check": "warning",
    "checks": "http://patchwork.dpdk.org/api/patches/64763/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 227ADA0352;\n\tThu, 16 Jan 2020 11:15:51 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 155F51C1E4;\n\tThu, 16 Jan 2020 11:15:46 +0100 (CET)",
            "from git-send-mailer.rdmz.labs.mlnx (unknown [37.142.13.130])\n by dpdk.org (Postfix) with ESMTP id C8B081C1AF\n for <dev@dpdk.org>; Thu, 16 Jan 2020 11:15:42 +0100 (CET)"
        ],
        "X-Mailman-Version": "2.1.15",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "To": "jerinjacobk@gmail.com, orika@mellanox.com, viacheslavo@mellanox.com,\n matan@mellanox.com, rasland@mellanox.com,\n Thomas Monjalon <thomas@monjalon.net>,\n Ferruh Yigit <ferruh.yigit@intel.com>,\n Andrew Rybchenko <arybchenko@solarflare.com>,\n Adrien Mazarguil <adrien.mazarguil@6wind.com>",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "References": "<cover.1579168182.git.jackmin@mellanox.com>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Content-Transfer-Encoding": "8bit",
        "Message-Id": "\n <dfb4ae762a7c19031d26c1f664707f4c7823617b.1579168182.git.jackmin@mellanox.com>",
        "Precedence": "list",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "Subject": "[dpdk-dev] [PATCH 1/5] ethdev: add API to dump device internal flow\n\tinfo",
        "MIME-Version": "1.0",
        "List-Post": "<mailto:dev@dpdk.org>",
        "Date": "Thu, 16 Jan 2020 12:14:13 +0200",
        "In-Reply-To": "<cover.1579168182.git.jackmin@mellanox.com>",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailer": "git-send-email 2.21.0",
        "Errors-To": "dev-bounces@dpdk.org",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "Cc": "dev@dpdk.org",
        "From": "Xiaoyu Min <jackmin@mellanox.com>"
    },
    "content": "Introduce an API which dump the device's internal representation\ninformation of rte flows in hardware.\n\nSigned-off-by: Xiaoyu Min <jackmin@mellanox.com>\n---\n lib/librte_ethdev/rte_ethdev_version.map |  3 +++\n lib/librte_ethdev/rte_flow.c             | 16 ++++++++++++++++\n lib/librte_ethdev/rte_flow.h             | 21 +++++++++++++++++++++\n lib/librte_ethdev/rte_flow_driver.h      |  5 +++++\n 4 files changed, 45 insertions(+)",
    "diff": "diff --git a/lib/librte_ethdev/rte_ethdev_version.map b/lib/librte_ethdev/rte_ethdev_version.map\nindex a7dacf2cf2..3f32fdecf7 100644\n--- a/lib/librte_ethdev/rte_ethdev_version.map\n+++ b/lib/librte_ethdev/rte_ethdev_version.map\n@@ -227,4 +227,7 @@ EXPERIMENTAL {\n \trte_flow_dynf_metadata_mask;\n \trte_flow_dynf_metadata_register;\n \trte_eth_dev_set_ptypes;\n+\n+\t# added in 20.02\n+\trte_flow_dev_dump;\n };\ndiff --git a/lib/librte_ethdev/rte_flow.c b/lib/librte_ethdev/rte_flow.c\nindex 87a3e8c4c6..751ce721b2 100644\n--- a/lib/librte_ethdev/rte_flow.c\n+++ b/lib/librte_ethdev/rte_flow.c\n@@ -1212,3 +1212,19 @@ rte_flow_expand_rss(struct rte_flow_expand_rss *buf, size_t size,\n \t}\n \treturn lsize;\n }\n+\n+int\n+rte_flow_dev_dump(uint16_t port_id, FILE *file, struct rte_flow_error *error)\n+{\n+\tstruct rte_eth_dev *dev = &rte_eth_devices[port_id];\n+\tconst struct rte_flow_ops *ops = rte_flow_ops_get(port_id, error);\n+\n+\tif (unlikely(!ops))\n+\t\treturn -rte_errno;\n+\tif (likely(!!ops->dev_dump))\n+\t\treturn flow_err(port_id, ops->dev_dump(dev, file, error),\n+\t\t\t\terror);\n+\treturn rte_flow_error_set(error, ENOSYS,\n+\t\t\t\t  RTE_FLOW_ERROR_TYPE_UNSPECIFIED,\n+\t\t\t\t  NULL, rte_strerror(ENOSYS));\n+}\ndiff --git a/lib/librte_ethdev/rte_flow.h b/lib/librte_ethdev/rte_flow.h\nindex 58b50265d2..cf7cf61ae8 100644\n--- a/lib/librte_ethdev/rte_flow.h\n+++ b/lib/librte_ethdev/rte_flow.h\n@@ -2790,6 +2790,27 @@ enum rte_flow_conv_op {\n \tRTE_FLOW_CONV_OP_ACTION_NAME_PTR,\n };\n \n+/**\n+ * @warning\n+ * @b EXPERIMENTAL: this API may change without prior notice.\n+ *\n+ * Dump hardware internal representation information of\n+ * rte flow to file.\n+ *\n+ * @param[in] port_id\n+ *    The port identifier of the Ethernet device.\n+ * @param[in] file\n+ *   A pointer to a file for output.\n+ * @param[out] error\n+ *   Perform verbose error reporting if not NULL. PMDs initialize this\n+ *   structure in case of error only.\n+ * @return\n+ *   0 on success, a nagative value otherwise.\n+ */\n+__rte_experimental\n+int\n+rte_flow_dev_dump(uint16_t port_id, FILE *file, struct rte_flow_error *error);\n+\n /**\n  * Check if mbuf dynamic field for metadata is registered.\n  *\ndiff --git a/lib/librte_ethdev/rte_flow_driver.h b/lib/librte_ethdev/rte_flow_driver.h\nindex a0359853e6..51a9a57a0f 100644\n--- a/lib/librte_ethdev/rte_flow_driver.h\n+++ b/lib/librte_ethdev/rte_flow_driver.h\n@@ -96,6 +96,11 @@ struct rte_flow_ops {\n \t\t(struct rte_eth_dev *,\n \t\t int,\n \t\t struct rte_flow_error *);\n+\t/** See rte_flow_dev_dump(). */\n+\tint (*dev_dump)\n+\t\t(struct rte_eth_dev *dev,\n+\t\t FILE *file,\n+\t\t struct rte_flow_error *error);\n };\n \n /**\n",
    "prefixes": [
        "1/5"
    ]
}