get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 126380,
    "url": "http://patches.dpdk.org/api/patches/126380/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230421095322.30374-3-liudongdong3@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": "<20230421095322.30374-3-liudongdong3@huawei.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230421095322.30374-3-liudongdong3@huawei.com",
    "date": "2023-04-21T09:53:22",
    "name": "[2/2] net/hns3: support dump media type",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "e387890f775811add3128c8f7ed657318f7d4d07",
    "submitter": {
        "id": 2718,
        "url": "http://patches.dpdk.org/api/people/2718/?format=api",
        "name": "Dongdong Liu",
        "email": "liudongdong3@huawei.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20230421095322.30374-3-liudongdong3@huawei.com/mbox/",
    "series": [
        {
            "id": 27814,
            "url": "http://patches.dpdk.org/api/series/27814/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=27814",
            "date": "2023-04-21T09:53:22",
            "name": "net/hns3: add some features for hns3 pmd",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/27814/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/126380/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/126380/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 A8C13429AA;\n\tFri, 21 Apr 2023 11:55:14 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 331A5410FB;\n\tFri, 21 Apr 2023 11:55:14 +0200 (CEST)",
            "from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187])\n by mails.dpdk.org (Postfix) with ESMTP id A52A4410F3;\n Fri, 21 Apr 2023 11:55:12 +0200 (CEST)",
            "from kwepemi500017.china.huawei.com (unknown [172.30.72.54])\n by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4Q2qY812JNzng0h;\n Fri, 21 Apr 2023 17:51:24 +0800 (CST)",
            "from localhost.localdomain (10.28.79.22) by\n kwepemi500017.china.huawei.com (7.221.188.110) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id\n 15.1.2507.23; Fri, 21 Apr 2023 17:55:10 +0800"
        ],
        "From": "Dongdong Liu <liudongdong3@huawei.com>",
        "To": "<dev@dpdk.org>, <ferruh.yigit@amd.com>, <thomas@monjalon.net>,\n <andrew.rybchenko@oktetlabs.ru>, <fengchengwen@huawei.com>",
        "CC": "<stable@dpdk.org>, <liudongdong3@huawei.com>",
        "Subject": "[PATCH 2/2] net/hns3: support dump media type",
        "Date": "Fri, 21 Apr 2023 17:53:22 +0800",
        "Message-ID": "<20230421095322.30374-3-liudongdong3@huawei.com>",
        "X-Mailer": "git-send-email 2.22.0",
        "In-Reply-To": "<20230421095322.30374-1-liudongdong3@huawei.com>",
        "References": "<20230421095322.30374-1-liudongdong3@huawei.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[10.28.79.22]",
        "X-ClientProxiedBy": "dggems704-chm.china.huawei.com (10.3.19.181) To\n kwepemi500017.china.huawei.com (7.221.188.110)",
        "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": "From: Chengwen Feng <fengchengwen@huawei.com>\n\nThe media type information helps locate faults such as AN or rate\nswitching, so add dump media type in eth_dev_priv_dump ops.\n\nSigned-off-by: Chengwen Feng <fengchengwen@huawei.com>\nSigned-off-by: Dongdong Liu <liudongdong3@huawei.com>\n---\n drivers/net/hns3/hns3_dump.c   | 2 ++\n drivers/net/hns3/hns3_ethdev.c | 2 +-\n drivers/net/hns3/hns3_ethdev.h | 2 ++\n 3 files changed, 5 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/net/hns3/hns3_dump.c b/drivers/net/hns3/hns3_dump.c\nindex 8d723f1876..0af3c2ce09 100644\n--- a/drivers/net/hns3/hns3_dump.c\n+++ b/drivers/net/hns3/hns3_dump.c\n@@ -68,12 +68,14 @@ hns3_get_dev_mac_info(FILE *file, struct hns3_adapter *hns)\n \n \tfprintf(file, \"  - MAC Info:\\n\");\n \tfprintf(file,\n+\t\t\"\\t  -- media_type=%s\\n\"\n \t\t\"\\t  -- query_type=%u\\n\"\n \t\t\"\\t  -- supported_speed=0x%x\\n\"\n \t\t\"\\t  -- advertising=0x%x\\n\"\n \t\t\"\\t  -- lp_advertising=0x%x\\n\"\n \t\t\"\\t  -- support_autoneg=%s\\n\"\n \t\t\"\\t  -- support_fc_autoneg=%s\\n\",\n+\t\thns3_get_media_type_name(hw->mac.media_type),\n \t\thw->mac.query_type,\n \t\thw->mac.supported_speed,\n \t\thw->mac.advertising,\ndiff --git a/drivers/net/hns3/hns3_ethdev.c b/drivers/net/hns3/hns3_ethdev.c\nindex a872cb8dd7..d97280e647 100644\n--- a/drivers/net/hns3/hns3_ethdev.c\n+++ b/drivers/net/hns3/hns3_ethdev.c\n@@ -4891,7 +4891,7 @@ hns3_set_fiber_port_link_speed(struct hns3_hw *hw,\n \treturn hns3_cfg_mac_speed_dup(hw, cfg->speed, cfg->duplex);\n }\n \n-static const char *\n+const char *\n hns3_get_media_type_name(uint8_t media_type)\n {\n \tif (media_type == HNS3_MEDIA_TYPE_FIBER)\ndiff --git a/drivers/net/hns3/hns3_ethdev.h b/drivers/net/hns3/hns3_ethdev.h\nindex ee4dd18d7b..8268dba788 100644\n--- a/drivers/net/hns3/hns3_ethdev.h\n+++ b/drivers/net/hns3/hns3_ethdev.h\n@@ -1054,6 +1054,8 @@ int hns3_timesync_write_time(struct rte_eth_dev *dev,\n \t\t\tconst struct timespec *ts);\n int hns3_timesync_adjust_time(struct rte_eth_dev *dev, int64_t delta);\n \n+const char *hns3_get_media_type_name(uint8_t media_type);\n+\n static inline bool\n is_reset_pending(struct hns3_adapter *hns)\n {\n",
    "prefixes": [
        "2/2"
    ]
}