get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 67093,
    "url": "https://patches.dpdk.org/api/patches/67093/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20200325032356.20198-3-jiaqix.min@intel.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<20200325032356.20198-3-jiaqix.min@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200325032356.20198-3-jiaqix.min@intel.com",
    "date": "2020-03-25T03:23:55",
    "name": "[2/3] net/i40e/base: new device ID introduced for V710-TL 5G",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "a0392365569af2b43b9182a3d801b75c8896986b",
    "submitter": {
        "id": 1374,
        "url": "https://patches.dpdk.org/api/people/1374/?format=api",
        "name": "Min, JiaqiX",
        "email": "jiaqix.min@intel.com"
    },
    "delegate": {
        "id": 31221,
        "url": "https://patches.dpdk.org/api/users/31221/?format=api",
        "username": "yexl",
        "first_name": "xiaolong",
        "last_name": "ye",
        "email": "xiaolong.ye@intel.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20200325032356.20198-3-jiaqix.min@intel.com/mbox/",
    "series": [
        {
            "id": 9032,
            "url": "https://patches.dpdk.org/api/series/9032/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=9032",
            "date": "2020-03-25T03:23:53",
            "name": "update i40e base code",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/9032/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/67093/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/67093/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 0052FA058E;\n\tWed, 25 Mar 2020 04:25:33 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 8CB081C030;\n\tWed, 25 Mar 2020 04:25:25 +0100 (CET)",
            "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n by dpdk.org (Postfix) with ESMTP id 7F80E1BFE2\n for <dev@dpdk.org>; Wed, 25 Mar 2020 04:25:22 +0100 (CET)",
            "from orsmga002.jf.intel.com ([10.7.209.21])\n by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 24 Mar 2020 20:25:21 -0700",
            "from dpdk.sh.intel.com ([10.239.255.20])\n by orsmga002.jf.intel.com with ESMTP; 24 Mar 2020 20:25:20 -0700"
        ],
        "IronPort-SDR": [
            "\n 3HG0ziI+XHWFeyVJTNMnku/3nRZcZU7R4wt4UL6QdujPqCLSPLI16TJzmWYcTZ8/7jD3E5y1/8\n TJLF203sK0dw==",
            "\n tevyNq90HsMlkBpCA2EqSAaeiAKrMggBIQYwSi592f/mXH8UZrwq4Qy/A3/qCpE1OTRhyur73M\n bfxArbegQRjw=="
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.72,302,1580803200\"; d=\"scan'208\";a=\"265396783\"",
        "From": "Jiaqi Min <jiaqix.min@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "Jiaqi Min <jiaqix.min@intel.com>,\n Zalfresso-Jundzillo <marekx.zalfresso-jundzillo@intel.com>",
        "Date": "Wed, 25 Mar 2020 03:23:55 +0000",
        "Message-Id": "<20200325032356.20198-3-jiaqix.min@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20200325032356.20198-1-jiaqix.min@intel.com>",
        "References": "<20200325032356.20198-1-jiaqix.min@intel.com>",
        "Subject": "[dpdk-dev] [PATCH 2/3] net/i40e/base: new device ID introduced for\n\tV710-TL 5G",
        "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": "This change is adding new device ID and handling it in the same\nway as X710-T*L head of family. A new device ID is for new V710-T*L adapter\nsupporting speeds up to 5G.\n\nSigned-off-by: Zalfresso-Jundzillo <marekx.zalfresso-jundzillo@intel.com>\nSigned-off-by: Jiaqi Min <jiaqix.min@intel.com>\n---\n drivers/net/i40e/base/i40e_common.c | 12 +++++++++---\n drivers/net/i40e/base/i40e_devids.h |  4 +++-\n drivers/net/i40e/i40e_ethdev.c      |  1 +\n 3 files changed, 13 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/drivers/net/i40e/base/i40e_common.c b/drivers/net/i40e/base/i40e_common.c\nindex 84e67f285..4e06f2d23 100644\n--- a/drivers/net/i40e/base/i40e_common.c\n+++ b/drivers/net/i40e/base/i40e_common.c\n@@ -34,6 +34,7 @@ enum i40e_status_code i40e_set_mac_type(struct i40e_hw *hw)\n \t\tcase I40E_DEV_ID_10G_BASE_T_BC:\n \t\tcase I40E_DEV_ID_10G_B:\n \t\tcase I40E_DEV_ID_10G_SFP:\n+\t\tcase I40E_DEV_ID_5G_BASE_T_BC:\n \t\tcase I40E_DEV_ID_20G_KR2:\n \t\tcase I40E_DEV_ID_20G_KR2_A:\n \t\tcase I40E_DEV_ID_25G_B:\n@@ -6728,6 +6729,7 @@ enum i40e_status_code i40e_write_phy_register(struct i40e_hw *hw,\n \tcase I40E_DEV_ID_10G_BASE_T:\n \tcase I40E_DEV_ID_10G_BASE_T4:\n \tcase I40E_DEV_ID_10G_BASE_T_BC:\n+\tcase I40E_DEV_ID_5G_BASE_T_BC:\n \tcase I40E_DEV_ID_10G_BASE_T_X722:\n \tcase I40E_DEV_ID_25G_B:\n \tcase I40E_DEV_ID_25G_SFP28:\n@@ -6764,6 +6766,7 @@ enum i40e_status_code i40e_read_phy_register(struct i40e_hw *hw,\n \t\tbreak;\n \tcase I40E_DEV_ID_10G_BASE_T:\n \tcase I40E_DEV_ID_10G_BASE_T4:\n+\tcase I40E_DEV_ID_5G_BASE_T_BC:\n \tcase I40E_DEV_ID_10G_BASE_T_X722:\n \tcase I40E_DEV_ID_25G_B:\n \tcase I40E_DEV_ID_25G_SFP28:\n@@ -7036,7 +7039,8 @@ enum i40e_status_code i40e_get_phy_lpi_status(struct i40e_hw *hw,\n \tstat->rx_lpi_status = 0;\n \tstat->tx_lpi_status = 0;\n \n-\tif (hw->device_id == I40E_DEV_ID_10G_BASE_T_BC &&\n+\tif ((hw->device_id == I40E_DEV_ID_10G_BASE_T_BC ||\n+\t     hw->device_id == I40E_DEV_ID_5G_BASE_T_BC) &&\n \t    (hw->phy.link_info.link_speed == I40E_LINK_SPEED_2_5GB ||\n \t     hw->phy.link_info.link_speed == I40E_LINK_SPEED_5GB)) {\n \t\tret = i40e_aq_get_phy_register(hw,\n@@ -7081,7 +7085,8 @@ enum i40e_status_code i40e_get_lpi_counters(struct i40e_hw *hw,\n \t/* only X710-T*L requires special handling of counters\n \t * for other devices we just read the MAC registers\n \t */\n-\tif (hw->device_id == I40E_DEV_ID_10G_BASE_T_BC &&\n+\tif ((hw->device_id == I40E_DEV_ID_10G_BASE_T_BC ||\n+\t     hw->device_id == I40E_DEV_ID_5G_BASE_T_BC) &&\n \t    hw->phy.link_info.link_speed != I40E_LINK_SPEED_1GB) {\n \t\tenum i40e_status_code retval;\n \t\tu32 cmd_status = 0;\n@@ -7123,7 +7128,8 @@ enum i40e_status_code i40e_get_lpi_duration(struct i40e_hw *hw,\n \tenum i40e_status_code retval;\n \tu32 cmd_status;\n \n-\tif (hw->device_id != I40E_DEV_ID_10G_BASE_T_BC)\n+\tif (hw->device_id != I40E_DEV_ID_10G_BASE_T_BC &&\n+\t    hw->device_id != I40E_DEV_ID_5G_BASE_T_BC)\n \t\treturn I40E_ERR_NOT_IMPLEMENTED;\n \n \tretval = i40e_aq_run_phy_activity\ndiff --git a/drivers/net/i40e/base/i40e_devids.h b/drivers/net/i40e/base/i40e_devids.h\nindex 5897d38f6..b87e1bcb4 100644\n--- a/drivers/net/i40e/base/i40e_devids.h\n+++ b/drivers/net/i40e/base/i40e_devids.h\n@@ -25,6 +25,7 @@\n #define I40E_DEV_ID_X710_N3000      0x0CF8\n #define I40E_DEV_ID_XXV710_N3000\t0x0D58\n #define I40E_DEV_ID_10G_BASE_T_BC\t0x15FF\n+#define I40E_DEV_ID_5G_BASE_T_BC\t0x101F\n #if defined(INTEGRATED_VF) || defined(VF_DRIVER) || defined(I40E_NDIS_SUPPORT)\n #define I40E_DEV_ID_VF\t\t\t0x154C\n #define I40E_DEV_ID_VF_HV\t\t0x1571\n@@ -39,7 +40,8 @@\n #define I40E_DEV_ID_10G_B\t\t0x104F\n #define I40E_DEV_ID_10G_SFP\t\t0x104E\n #define I40E_IS_X710TL_DEVICE(d) \\\n-\t((d) == I40E_DEV_ID_10G_BASE_T_BC)\n+\t(((d) == I40E_DEV_ID_10G_BASE_T_BC) || \\\n+\t((d) == I40E_DEV_ID_5G_BASE_T_BC))\n #define I40E_DEV_ID_KX_X722\t\t0x37CE\n #define I40E_DEV_ID_QSFP_X722\t\t0x37CF\n #define I40E_DEV_ID_SFP_X722\t\t0x37D0\ndiff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c\nindex 9539b0470..6740d00e2 100644\n--- a/drivers/net/i40e/i40e_ethdev.c\n+++ b/drivers/net/i40e/i40e_ethdev.c\n@@ -443,6 +443,7 @@ static const struct rte_pci_id pci_id_i40e_map[] = {\n \t{ RTE_PCI_DEVICE(I40E_INTEL_VENDOR_ID, I40E_DEV_ID_X710_N3000) },\n \t{ RTE_PCI_DEVICE(I40E_INTEL_VENDOR_ID, I40E_DEV_ID_XXV710_N3000) },\n \t{ RTE_PCI_DEVICE(I40E_INTEL_VENDOR_ID, I40E_DEV_ID_10G_BASE_T_BC) },\n+\t{ RTE_PCI_DEVICE(I40E_INTEL_VENDOR_ID, I40E_DEV_ID_5G_BASE_T_BC) },\n \t{ RTE_PCI_DEVICE(I40E_INTEL_VENDOR_ID, I40E_DEV_ID_10G_B) },\n \t{ RTE_PCI_DEVICE(I40E_INTEL_VENDOR_ID, I40E_DEV_ID_10G_SFP) },\n \t{ .vendor_id = 0, /* sentinel */ },\n",
    "prefixes": [
        "2/3"
    ]
}