get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 94582,
    "url": "https://patches.dpdk.org/api/patches/94582/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210621063708.4014937-9-robinx.zhang@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": "<20210621063708.4014937-9-robinx.zhang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210621063708.4014937-9-robinx.zhang@intel.com",
    "date": "2021-06-21T06:37:02",
    "name": "[v2,08/14] net/i40e/base: fix update link data for X722",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "6b3ff4a0f012793f97493b76f5ffdb57e6aa5a25",
    "submitter": {
        "id": 2004,
        "url": "https://patches.dpdk.org/api/people/2004/?format=api",
        "name": "Robin Zhang",
        "email": "robinx.zhang@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20210621063708.4014937-9-robinx.zhang@intel.com/mbox/",
    "series": [
        {
            "id": 17414,
            "url": "https://patches.dpdk.org/api/series/17414/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=17414",
            "date": "2021-06-21T06:36:54",
            "name": "i40e base code update",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/17414/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/94582/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/94582/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 5841EA0547;\n\tMon, 21 Jun 2021 08:47:09 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id E3D8D41199;\n\tMon, 21 Jun 2021 08:46:53 +0200 (CEST)",
            "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n by mails.dpdk.org (Postfix) with ESMTP id 9424F41198;\n Mon, 21 Jun 2021 08:46:51 +0200 (CEST)",
            "from orsmga001.jf.intel.com ([10.7.209.18])\n by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 20 Jun 2021 23:46:51 -0700",
            "from unknown (HELO intel-npg-odc-srv03.cd.intel.com)\n ([10.240.178.145])\n by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 20 Jun 2021 23:46:48 -0700"
        ],
        "IronPort-SDR": [
            "\n rDgD8MBeYwQodbpFWMEuBZFPI8koJ8cwWzQR+Z+6fifxXaKlQAVnE2pRXjaW0Mfx9uZRoLA9Ak\n NTt+qzZ5MpMg==",
            "\n tsVkSNKeGgRfesK1h/2kpbfTLNpmmt0DM4N2IYGo/xfuo+SMtOUIeS2ehyZYQdGcpWZV/NpygL\n cU3ND6eQiSTQ=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10021\"; a=\"270633599\"",
            "E=Sophos;i=\"5.83,289,1616482800\"; d=\"scan'208\";a=\"270633599\"",
            "E=Sophos;i=\"5.83,289,1616482800\"; d=\"scan'208\";a=\"486380428\""
        ],
        "From": "Robin Zhang <robinx.zhang@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "beilei.xing@intel.com, junfeng.guo@intel.com, stevex.yang@intel.com,\n Robin Zhang <robinx.zhang@intel.com>, stable@dpdk.org,\n Jaroslaw Gawin <jaroslawx.gawin@intel.com>",
        "Date": "Mon, 21 Jun 2021 06:37:02 +0000",
        "Message-Id": "<20210621063708.4014937-9-robinx.zhang@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20210621063708.4014937-1-robinx.zhang@intel.com>",
        "References": "<20210618063851.3694702-1-robinx.zhang@intel.com>\n <20210621063708.4014937-1-robinx.zhang@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v2 08/14] net/i40e/base: fix update link data for\n X722",
        "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",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "The X722 card has 'Link Type' information elsewhere than the X710.\nPreviously, for all cards, the 'Link Type' information was retrieved by\nopcode 0x0607 and this value was wrong for all X722 cards.\nNow this information for X722 only is taken by opcode 0x0600\n(function: i40e_aq_get_phy_capabilities) instead of an opcode\n0x0607 (function: i40e_aq_get_link_info).\nAll other parameters read by opcode 0x0607 unchanged.\n\nFixes: e6691b428eb1 (\"i40e/base: fix PHY NVM interaction\")\nFixes: 75c3de654ead (\"net/i40e/base: fix long link down notification time\")\nCc: stable@dpdk.org\n\nSigned-off-by: Jaroslaw Gawin <jaroslawx.gawin@intel.com>\nSigned-off-by: Robin Zhang <robinx.zhang@intel.com>\n---\n drivers/net/i40e/base/i40e_common.c | 14 ++++++++++----\n 1 file changed, 10 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/drivers/net/i40e/base/i40e_common.c b/drivers/net/i40e/base/i40e_common.c\nindex aa424e6010..ef061a6b63 100644\n--- a/drivers/net/i40e/base/i40e_common.c\n+++ b/drivers/net/i40e/base/i40e_common.c\n@@ -2078,6 +2078,9 @@ enum i40e_status_code i40e_aq_get_link_info(struct i40e_hw *hw,\n \t     hw->aq.fw_min_ver < 40)) && hw_link_info->phy_type == 0xE)\n \t\thw_link_info->phy_type = I40E_PHY_TYPE_10GBASE_SFPP_CU;\n \n+\t/* 'Get Link Status' response data structure from X722 FW has\n+\t * different format and does not contain this information\n+\t */\n \tif (hw->flags & I40E_HW_FLAG_AQ_PHY_ACCESS_CAPABLE &&\n \t    hw->mac.type != I40E_MAC_X722) {\n \t\t__le32 tmp;\n@@ -2948,10 +2951,13 @@ enum i40e_status_code i40e_update_link_info(struct i40e_hw *hw)\n \t\treturn status;\n \n \t/* extra checking needed to ensure link info to user is timely */\n-\tif ((hw->phy.link_info.link_info & I40E_AQ_MEDIA_AVAILABLE) &&\n-\t    ((hw->phy.link_info.link_info & I40E_AQ_LINK_UP) ||\n-\t     !(hw->phy.link_info_old.link_info & I40E_AQ_LINK_UP))) {\n-\t\tstatus = i40e_aq_get_phy_capabilities(hw, false, false,\n+\tif (((hw->phy.link_info.link_info & I40E_AQ_MEDIA_AVAILABLE) &&\n+\t     ((hw->phy.link_info.link_info & I40E_AQ_LINK_UP) ||\n+\t      !(hw->phy.link_info_old.link_info & I40E_AQ_LINK_UP))) ||\n+\t\thw->mac.type == I40E_MAC_X722) {\n+\t\tstatus = i40e_aq_get_phy_capabilities(hw, false,\n+\t\t\t\t\t\t      hw->mac.type ==\n+\t\t\t\t\t\t      I40E_MAC_X722,\n \t\t\t\t\t\t      &abilities, NULL);\n \t\tif (status)\n \t\t\treturn status;\n",
    "prefixes": [
        "v2",
        "08/14"
    ]
}