get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 122352,
    "url": "http://patches.dpdk.org/api/patches/122352/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230119123056.14338-2-fengchengwen@huawei.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": "<20230119123056.14338-2-fengchengwen@huawei.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230119123056.14338-2-fengchengwen@huawei.com",
    "date": "2023-01-19T12:30:55",
    "name": "[1/2] net/virtio: support private dump",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "a4b99ce8155da60e7700bfee932edc2daa35a33d",
    "submitter": {
        "id": 2146,
        "url": "http://patches.dpdk.org/api/people/2146/?format=api",
        "name": "fengchengwen",
        "email": "fengchengwen@huawei.com"
    },
    "delegate": {
        "id": 2642,
        "url": "http://patches.dpdk.org/api/users/2642/?format=api",
        "username": "mcoquelin",
        "first_name": "Maxime",
        "last_name": "Coquelin",
        "email": "maxime.coquelin@redhat.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20230119123056.14338-2-fengchengwen@huawei.com/mbox/",
    "series": [
        {
            "id": 26607,
            "url": "http://patches.dpdk.org/api/series/26607/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=26607",
            "date": "2023-01-19T12:30:54",
            "name": "add private dump for vhost and virtio",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/26607/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/122352/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/122352/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 5764E42417;\n\tThu, 19 Jan 2023 13:37:21 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id C23DF42D81;\n\tThu, 19 Jan 2023 13:37:10 +0100 (CET)",
            "from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189])\n by mails.dpdk.org (Postfix) with ESMTP id 86DE9410DD\n for <dev@dpdk.org>; Thu, 19 Jan 2023 13:37:09 +0100 (CET)",
            "from dggpeml500024.china.huawei.com (unknown [172.30.72.56])\n by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4NyMTr4QJ6zJqGM;\n Thu, 19 Jan 2023 20:32:48 +0800 (CST)",
            "from localhost.localdomain (10.50.163.32) by\n dggpeml500024.china.huawei.com (7.185.36.10) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id\n 15.1.2375.34; Thu, 19 Jan 2023 20:37:04 +0800"
        ],
        "From": "Chengwen Feng <fengchengwen@huawei.com>",
        "To": "<thomas@monjalon.net>, <ferruh.yigit@amd.com>, Maxime Coquelin\n <maxime.coquelin@redhat.com>, Chenbo Xia <chenbo.xia@intel.com>",
        "CC": "<dev@dpdk.org>",
        "Subject": "[PATCH 1/2] net/virtio: support private dump",
        "Date": "Thu, 19 Jan 2023 12:30:55 +0000",
        "Message-ID": "<20230119123056.14338-2-fengchengwen@huawei.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20230119123056.14338-1-fengchengwen@huawei.com>",
        "References": "<20230119123056.14338-1-fengchengwen@huawei.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[10.50.163.32]",
        "X-ClientProxiedBy": "dggems702-chm.china.huawei.com (10.3.19.179) To\n dggpeml500024.china.huawei.com (7.185.36.10)",
        "X-CFilter-Loop": "Reflected",
        "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 implements eth_dev_priv_dump callback which could use for\ndebugging.\n\nSigned-off-by: Chengwen Feng <fengchengwen@huawei.com>\n---\n drivers/net/virtio/virtio_ethdev.c | 19 +++++++++++++++++++\n 1 file changed, 19 insertions(+)",
    "diff": "diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c\nindex 760ba4e368..0ad740b253 100644\n--- a/drivers/net/virtio/virtio_ethdev.c\n+++ b/drivers/net/virtio/virtio_ethdev.c\n@@ -1019,6 +1019,24 @@ virtio_dev_rx_queue_intr_disable(struct rte_eth_dev *dev, uint16_t queue_id)\n \treturn 0;\n }\n \n+static int\n+virtio_dev_priv_dump(struct rte_eth_dev *dev, FILE *f)\n+{\n+\tstruct virtio_hw *hw = dev->data->dev_private;\n+\n+\tfprintf(f, \"guest_features: 0x%\" PRIx64 \"\\n\", hw->guest_features);\n+\tfprintf(f, \"vtnet_hdr_size: %u\\n\", hw->vtnet_hdr_size);\n+\tfprintf(f, \"use_vec: rx-%u tx-%u\\n\", hw->use_vec_rx, hw->use_vec_tx);\n+\tfprintf(f, \"use_inorder: rx-%u tx-%u\\n\", hw->use_inorder_rx, hw->use_inorder_tx);\n+\tfprintf(f, \"intr_lsc: %u\\n\", hw->intr_lsc);\n+\tfprintf(f, \"max_mtu: %u\\n\", hw->max_mtu);\n+\tfprintf(f, \"max_rx_pkt_len: %zu\\n\", hw->max_rx_pkt_len);\n+\tfprintf(f, \"max_queue_pairs: %u\\n\", hw->max_queue_pairs);\n+\tfprintf(f, \"req_guest_features: 0x%\" PRIx64 \"\\n\", hw->req_guest_features);\n+\n+\treturn 0;\n+}\n+\n /*\n  * dev_ops for virtio, bare necessities for basic operation\n  */\n@@ -1055,6 +1073,7 @@ static const struct eth_dev_ops virtio_eth_dev_ops = {\n \t.mac_addr_remove         = virtio_mac_addr_remove,\n \t.mac_addr_set            = virtio_mac_addr_set,\n \t.get_monitor_addr        = virtio_get_monitor_addr,\n+\t.eth_dev_priv_dump       = virtio_dev_priv_dump,\n };\n \n /*\n",
    "prefixes": [
        "1/2"
    ]
}