get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 73989,
    "url": "http://patches.dpdk.org/api/patches/73989/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1594707369-36270-3-git-send-email-xavier.huwei@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": "<1594707369-36270-3-git-send-email-xavier.huwei@huawei.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1594707369-36270-3-git-send-email-xavier.huwei@huawei.com",
    "date": "2020-07-14T06:16:07",
    "name": "[v3,2/4] net/hns3: support 200G speed rate",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "c23258747a60c7613b9fcd797bd235a233afb880",
    "submitter": {
        "id": 1405,
        "url": "http://patches.dpdk.org/api/people/1405/?format=api",
        "name": "Wei Hu (Xavier)",
        "email": "xavier.huwei@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/1594707369-36270-3-git-send-email-xavier.huwei@huawei.com/mbox/",
    "series": [
        {
            "id": 11011,
            "url": "http://patches.dpdk.org/api/series/11011/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=11011",
            "date": "2020-07-14T06:16:07",
            "name": "updates for hns3 PMD driver",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/11011/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/73989/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/73989/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 4652AA0540;\n\tTue, 14 Jul 2020 08:18:11 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 9CBE11D570;\n\tTue, 14 Jul 2020 08:18:10 +0200 (CEST)",
            "from huawei.com (szxga07-in.huawei.com [45.249.212.35])\n by dpdk.org (Postfix) with ESMTP id 30BD81D569\n for <dev@dpdk.org>; Tue, 14 Jul 2020 08:18:09 +0200 (CEST)",
            "from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.60])\n by Forcepoint Email with ESMTP id 64DA67C5216F2E996D79\n for <dev@dpdk.org>; Tue, 14 Jul 2020 14:18:07 +0800 (CST)",
            "from localhost.localdomain (10.69.192.56) by\n DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id\n 14.3.487.0; Tue, 14 Jul 2020 14:17:56 +0800"
        ],
        "From": "\"Wei Hu (Xavier)\" <xavier.huwei@huawei.com>",
        "To": "<dev@dpdk.org>",
        "CC": "<xavier.huwei@huawei.com>",
        "Date": "Tue, 14 Jul 2020 14:16:07 +0800",
        "Message-ID": "<1594707369-36270-3-git-send-email-xavier.huwei@huawei.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1594707369-36270-1-git-send-email-xavier.huwei@huawei.com>",
        "References": "<1594462703-21448-2-git-send-email-xavier.huwei@huawei.com>\n <1594707369-36270-1-git-send-email-xavier.huwei@huawei.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[10.69.192.56]",
        "X-CFilter-Loop": "Reflected",
        "Subject": "[dpdk-dev] [PATCH v3 2/4] net/hns3: support 200G speed rate",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "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",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "The 200G device has a new device id 0xA228, so adds this device id\nto pci table for pci driver can probe it. Similar to the network port\nwith other speed, the hns3 PMD driver gets 200G speed information\nfrom firmware, and passes them to DPDK framework.\n\nSigned-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>\n---\n drivers/net/hns3/hns3_cmd.h       |  1 +\n drivers/net/hns3/hns3_ethdev.c    | 12 +++++++++++-\n drivers/net/hns3/hns3_ethdev.h    |  1 +\n drivers/net/hns3/hns3_ethdev_vf.c |  1 +\n 4 files changed, 14 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/net/hns3/hns3_cmd.h b/drivers/net/hns3/hns3_cmd.h\nindex b203e66..d70f42e 100644\n--- a/drivers/net/hns3/hns3_cmd.h\n+++ b/drivers/net/hns3/hns3_cmd.h\n@@ -622,6 +622,7 @@ struct hns3_config_mac_mode_cmd {\n #define HNS3_CFG_SPEED_40G\t\t3\n #define HNS3_CFG_SPEED_50G\t\t4\n #define HNS3_CFG_SPEED_100G\t\t5\n+#define HNS3_CFG_SPEED_200G\t\t8\n \n #define HNS3_CFG_SPEED_S\t\t0\n #define HNS3_CFG_SPEED_M\t\tGENMASK(5, 0)\ndiff --git a/drivers/net/hns3/hns3_ethdev.c b/drivers/net/hns3/hns3_ethdev.c\nindex f218fb8..4712cc2 100644\n--- a/drivers/net/hns3/hns3_ethdev.c\n+++ b/drivers/net/hns3/hns3_ethdev.c\n@@ -2560,6 +2560,7 @@ hns3_dev_link_update(struct rte_eth_dev *eth_dev,\n \tcase ETH_SPEED_NUM_40G:\n \tcase ETH_SPEED_NUM_50G:\n \tcase ETH_SPEED_NUM_100G:\n+\tcase ETH_SPEED_NUM_200G:\n \t\tnew_link.link_speed = mac->link_speed;\n \t\tbreak;\n \tdefault:\n@@ -2789,6 +2790,9 @@ hns3_parse_speed(int speed_cmd, uint32_t *speed)\n \tcase HNS3_CFG_SPEED_100G:\n \t\t*speed = ETH_SPEED_NUM_100G;\n \t\tbreak;\n+\tcase HNS3_CFG_SPEED_200G:\n+\t\t*speed = ETH_SPEED_NUM_200G;\n+\t\tbreak;\n \tdefault:\n \t\treturn -EINVAL;\n \t}\n@@ -2811,7 +2815,8 @@ hns3_get_capability(struct hns3_hw *hw)\n \n \tif (device_id == HNS3_DEV_ID_25GE_RDMA ||\n \t    device_id == HNS3_DEV_ID_50GE_RDMA ||\n-\t    device_id == HNS3_DEV_ID_100G_RDMA_MACSEC)\n+\t    device_id == HNS3_DEV_ID_100G_RDMA_MACSEC ||\n+\t    device_id == HNS3_DEV_ID_200G_RDMA)\n \t\thns3_set_bit(hw->capability, HNS3_DEV_SUPPORT_DCB_B, 1);\n \n \t/* Get PCI revision id */\n@@ -3027,6 +3032,10 @@ hns3_cfg_mac_speed_dup_hw(struct hns3_hw *hw, uint32_t speed, uint8_t duplex)\n \t\thns3_set_field(req->speed_dup, HNS3_CFG_SPEED_M,\n \t\t\t       HNS3_CFG_SPEED_S, HNS3_CFG_SPEED_100G);\n \t\tbreak;\n+\tcase ETH_SPEED_NUM_200G:\n+\t\thns3_set_field(req->speed_dup, HNS3_CFG_SPEED_M,\n+\t\t\t       HNS3_CFG_SPEED_S, HNS3_CFG_SPEED_200G);\n+\t\tbreak;\n \tdefault:\n \t\tPMD_INIT_LOG(ERR, \"invalid speed (%u)\", speed);\n \t\treturn -EINVAL;\n@@ -5589,6 +5598,7 @@ static const struct rte_pci_id pci_id_hns3_map[] = {\n \t{ RTE_PCI_DEVICE(PCI_VENDOR_ID_HUAWEI, HNS3_DEV_ID_25GE_RDMA) },\n \t{ RTE_PCI_DEVICE(PCI_VENDOR_ID_HUAWEI, HNS3_DEV_ID_50GE_RDMA) },\n \t{ RTE_PCI_DEVICE(PCI_VENDOR_ID_HUAWEI, HNS3_DEV_ID_100G_RDMA_MACSEC) },\n+\t{ RTE_PCI_DEVICE(PCI_VENDOR_ID_HUAWEI, HNS3_DEV_ID_200G_RDMA) },\n \t{ .vendor_id = 0, /* sentinel */ },\n };\n \ndiff --git a/drivers/net/hns3/hns3_ethdev.h b/drivers/net/hns3/hns3_ethdev.h\nindex 31d34b0..0e665e5 100644\n--- a/drivers/net/hns3/hns3_ethdev.h\n+++ b/drivers/net/hns3/hns3_ethdev.h\n@@ -23,6 +23,7 @@\n #define HNS3_DEV_ID_25GE_RDMA\t\t\t0xA222\n #define HNS3_DEV_ID_50GE_RDMA\t\t\t0xA224\n #define HNS3_DEV_ID_100G_RDMA_MACSEC\t\t0xA226\n+#define HNS3_DEV_ID_200G_RDMA\t\t\t0xA228\n #define HNS3_DEV_ID_100G_VF\t\t\t0xA22E\n #define HNS3_DEV_ID_100G_RDMA_PFC_VF\t\t0xA22F\n \ndiff --git a/drivers/net/hns3/hns3_ethdev_vf.c b/drivers/net/hns3/hns3_ethdev_vf.c\nindex 54e5dac..b881bbe 100644\n--- a/drivers/net/hns3/hns3_ethdev_vf.c\n+++ b/drivers/net/hns3/hns3_ethdev_vf.c\n@@ -1893,6 +1893,7 @@ hns3vf_dev_link_update(struct rte_eth_dev *eth_dev,\n \tcase ETH_SPEED_NUM_40G:\n \tcase ETH_SPEED_NUM_50G:\n \tcase ETH_SPEED_NUM_100G:\n+\tcase ETH_SPEED_NUM_200G:\n \t\tnew_link.link_speed = mac->link_speed;\n \t\tbreak;\n \tdefault:\n",
    "prefixes": [
        "v3",
        "2/4"
    ]
}