get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 138411,
    "url": "http://patchwork.dpdk.org/api/patches/138411/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20240315025448.2820722-1-haijie1@huawei.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<20240315025448.2820722-1-haijie1@huawei.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20240315025448.2820722-1-haijie1@huawei.com",
    "date": "2024-03-15T02:54:48",
    "name": "[v2] net/hns3: support new device",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "e668bcd3c373170c8e1a449e74c96a1e41b0d0be",
    "submitter": {
        "id": 2935,
        "url": "http://patchwork.dpdk.org/api/people/2935/?format=api",
        "name": "Jie Hai",
        "email": "haijie1@huawei.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patchwork.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20240315025448.2820722-1-haijie1@huawei.com/mbox/",
    "series": [
        {
            "id": 31528,
            "url": "http://patchwork.dpdk.org/api/series/31528/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=31528",
            "date": "2024-03-15T02:54:48",
            "name": "[v2] net/hns3: support new device",
            "version": 2,
            "mbox": "http://patchwork.dpdk.org/series/31528/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/138411/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/138411/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 EDAB441B15;\n\tFri, 15 Mar 2024 03:59:26 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 38FC042E8B;\n\tFri, 15 Mar 2024 03:59:26 +0100 (CET)",
            "from szxga06-in.huawei.com (szxga06-in.huawei.com [45.249.212.32])\n by mails.dpdk.org (Postfix) with ESMTP id 041E642DCA\n for <dev@dpdk.org>; Fri, 15 Mar 2024 03:59:23 +0100 (CET)",
            "from mail.maildlp.com (unknown [172.19.88.214])\n by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4Twpq15YmYz1vwm5\n for <dev@dpdk.org>; Fri, 15 Mar 2024 10:58:37 +0800 (CST)",
            "from kwepemd100004.china.huawei.com (unknown [7.221.188.31])\n by mail.maildlp.com (Postfix) with ESMTPS id B5A8B1A016C\n for <dev@dpdk.org>; Fri, 15 Mar 2024 10:59:21 +0800 (CST)",
            "from localhost.localdomain (10.67.165.2) by\n kwepemd100004.china.huawei.com (7.221.188.31) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.2.1258.28; Fri, 15 Mar 2024 10:59:21 +0800"
        ],
        "From": "Jie Hai <haijie1@huawei.com>",
        "To": "<dev@dpdk.org>, Yisen Zhuang <yisen.zhuang@huawei.com>",
        "CC": "<lihuisong@huawei.com>, <fengchengwen@huawei.com>, <haijie1@huawei.com>",
        "Subject": "[PATCH v2] net/hns3: support new device",
        "Date": "Fri, 15 Mar 2024 10:54:48 +0800",
        "Message-ID": "<20240315025448.2820722-1-haijie1@huawei.com>",
        "X-Mailer": "git-send-email 2.30.0",
        "In-Reply-To": "<20240306092112.506493-1-haijie1@huawei.com>",
        "References": "<20240306092112.506493-1-haijie1@huawei.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[10.67.165.2]",
        "X-ClientProxiedBy": "dggems706-chm.china.huawei.com (10.3.19.183) To\n kwepemd100004.china.huawei.com (7.221.188.31)",
        "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 introduces the new devices, which are on-chip network\ninterface controllers with RDMA/DCB/ROH supporting. One is 100GE\nand the other is 200GE. Both can be found on HIP09/HIP10 SoCs.\n\nCc: stable@dpdk.org\n\nSigned-off-by: Jie Hai <haijie1@huawei.com>\n---\n doc/guides/nics/hns3.rst               | 2 +-\n doc/guides/rel_notes/release_24_03.rst | 4 ++++\n drivers/net/hns3/hns3_cmd.c            | 4 +++-\n drivers/net/hns3/hns3_ethdev.c         | 2 ++\n drivers/net/hns3/hns3_ethdev.h         | 2 ++\n 5 files changed, 12 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/doc/guides/nics/hns3.rst b/doc/guides/nics/hns3.rst\nindex 3b0613fc1b11..f32cbafbe8b2 100644\n--- a/doc/guides/nics/hns3.rst\n+++ b/doc/guides/nics/hns3.rst\n@@ -6,7 +6,7 @@ HNS3 Poll Mode Driver\n \n The hns3 PMD (**librte_net_hns3**) provides poll mode driver support\n for the inbuilt HiSilicon Network Subsystem(HNS) network engine\n-found in the HiSilicon Kunpeng 920 SoC and Kunpeng 930 SoC .\n+found in the HiSilicon Kunpeng 920 SoC(HIP08) and Kunpeng 930 SoC(HIP09/HIP10) .\n \n Features\n --------\ndiff --git a/doc/guides/rel_notes/release_24_03.rst b/doc/guides/rel_notes/release_24_03.rst\nindex 932688ca4d82..e971f9738e0d 100644\n--- a/doc/guides/rel_notes/release_24_03.rst\n+++ b/doc/guides/rel_notes/release_24_03.rst\n@@ -176,6 +176,10 @@ New Features\n   * Added power-saving during polling within the ``rte_event_dequeue_burst()`` API.\n   * Added support for DMA adapter.\n \n+  * **Updated HiSilicon hns3 ethdev driver.**\n+\n+  * Added new device supporting RDMA/DCB/ROH with PCI IDs: ``0xa227, 0xa22c``.\n+\n \n Removed Items\n -------------\ndiff --git a/drivers/net/hns3/hns3_cmd.c b/drivers/net/hns3/hns3_cmd.c\nindex 2c1664485bef..001ff49b368b 100644\n--- a/drivers/net/hns3/hns3_cmd.c\n+++ b/drivers/net/hns3/hns3_cmd.c\n@@ -545,7 +545,9 @@ hns3_set_dcb_capability(struct hns3_hw *hw)\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_200G_RDMA)\n+\t    device_id == HNS3_DEV_ID_200G_RDMA ||\n+\t    device_id == HNS3_DEV_ID_100G_ROH ||\n+\t    device_id == HNS3_DEV_ID_200G_ROH)\n \t\thns3_set_bit(hw->capability, HNS3_DEV_SUPPORT_DCB_B, 1);\n }\n \ndiff --git a/drivers/net/hns3/hns3_ethdev.c b/drivers/net/hns3/hns3_ethdev.c\nindex b10d1216d2d1..9730b9a7e9f6 100644\n--- a/drivers/net/hns3/hns3_ethdev.c\n+++ b/drivers/net/hns3/hns3_ethdev.c\n@@ -6649,6 +6649,8 @@ static const struct rte_pci_id pci_id_hns3_map[] = {\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{ RTE_PCI_DEVICE(PCI_VENDOR_ID_HUAWEI, HNS3_DEV_ID_100G_ROH) },\n+\t{ RTE_PCI_DEVICE(PCI_VENDOR_ID_HUAWEI, HNS3_DEV_ID_200G_ROH) },\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 12d8299def39..e70c5fff2a45 100644\n--- a/drivers/net/hns3/hns3_ethdev.h\n+++ b/drivers/net/hns3/hns3_ethdev.h\n@@ -28,7 +28,9 @@\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_100G_ROH\t                0xA227\n #define HNS3_DEV_ID_200G_RDMA\t\t\t0xA228\n+#define HNS3_DEV_ID_200G_ROH\t                0xA22C\n #define HNS3_DEV_ID_100G_VF\t\t\t0xA22E\n #define HNS3_DEV_ID_100G_RDMA_PFC_VF\t\t0xA22F\n \n",
    "prefixes": [
        "v2"
    ]
}