get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 17258,
    "url": "https://patches.dpdk.org/api/patches/17258/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1480031006-15702-1-git-send-email-qi.z.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": "<1480031006-15702-1-git-send-email-qi.z.zhang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1480031006-15702-1-git-send-email-qi.z.zhang@intel.com",
    "date": "2016-11-24T23:43:26",
    "name": "[dpdk-dev,1/1] net/i40e: enable auto link update for XXV710",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "a9cbca22cdfb3154741f825884d145cd2dd1010b",
    "submitter": {
        "id": 504,
        "url": "https://patches.dpdk.org/api/people/504/?format=api",
        "name": "Qi Zhang",
        "email": "qi.z.zhang@intel.com"
    },
    "delegate": {
        "id": 319,
        "url": "https://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1480031006-15702-1-git-send-email-qi.z.zhang@intel.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/17258/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/17258/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id CB8D8379B;\n\tFri, 25 Nov 2016 07:46:24 +0100 (CET)",
            "from mga05.intel.com (mga05.intel.com [192.55.52.43])\n\tby dpdk.org (Postfix) with ESMTP id 6CEAA2142\n\tfor <dev@dpdk.org>; Fri, 25 Nov 2016 07:46:23 +0100 (CET)",
            "from orsmga003.jf.intel.com ([10.7.209.27])\n\tby fmsmga105.fm.intel.com with ESMTP; 24 Nov 2016 22:46:17 -0800",
            "from unknown (HELO localhost.localdomain.sh.intel.com)\n\t([10.239.129.196])\n\tby orsmga003.jf.intel.com with ESMTP; 24 Nov 2016 22:46:15 -0800"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.31,693,1473145200\"; d=\"scan'208\";a=\"905294672\"",
        "From": "Qi Zhang <qi.z.zhang@intel.com>",
        "To": "jingjing.wu@intel.com,\n\thelin.zhang@intel.com",
        "Cc": "dev@dpdk.org,\n\tQi Zhang <qi.z.zhang@intel.com>",
        "Date": "Thu, 24 Nov 2016 18:43:26 -0500",
        "Message-Id": "<1480031006-15702-1-git-send-email-qi.z.zhang@intel.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "Subject": "[dpdk-dev] [PATCH 1/1] net/i40e: enable auto link update for XXV710",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "This patch remove the limitation that XXV710 device does\nnot support auto link update.\n\nSigned-off-by: Qi Zhang <qi.z.zhang@intel.com>\n---\n drivers/net/i40e/i40e_ethdev.c | 8 ++++----\n 1 file changed, 4 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c\nindex 67778ba..b7a916d 100644\n--- a/drivers/net/i40e/i40e_ethdev.c\n+++ b/drivers/net/i40e/i40e_ethdev.c\n@@ -1628,6 +1628,8 @@ i40e_phy_conf_link(struct i40e_hw *hw,\n \n \t/* use get_phy_abilities_resp value for the rest */\n \tphy_conf.phy_type = phy_ab.phy_type;\n+\tphy_conf.phy_type_ext = phy_ab.phy_type_ext;\n+\tphy_conf.fec_config = phy_ab.mod_type_ext;\n \tphy_conf.eee_capability = phy_ab.eee_capability;\n \tphy_conf.eeer = phy_ab.eeer_val;\n \tphy_conf.low_power_ctrl = phy_ab.d3_lpan;\n@@ -1653,8 +1655,7 @@ i40e_apply_link_speed(struct rte_eth_dev *dev)\n \tstruct rte_eth_conf *conf = &dev->data->dev_conf;\n \n \tspeed = i40e_parse_link_speeds(conf->link_speeds);\n-\tif (!I40E_PHY_TYPE_SUPPORT_25G(hw->phy.phy_types))\n-\t\tabilities |= I40E_AQ_PHY_ENABLE_ATOMIC_LINK;\n+\tabilities |= I40E_AQ_PHY_ENABLE_ATOMIC_LINK;\n \tif (!(conf->link_speeds & ETH_LINK_SPEED_FIXED))\n \t\tabilities |= I40E_AQ_PHY_AN_ENABLED;\n \tabilities |= I40E_AQ_PHY_LINK_ENABLED;\n@@ -1990,8 +1991,7 @@ i40e_dev_set_link_down(struct rte_eth_dev *dev)\n \tuint8_t abilities = 0;\n \tstruct i40e_hw *hw = I40E_DEV_PRIVATE_TO_HW(dev->data->dev_private);\n \n-\tif (!I40E_PHY_TYPE_SUPPORT_25G(hw->phy.phy_types))\n-\t\tabilities = I40E_AQ_PHY_ENABLE_ATOMIC_LINK;\n+\tabilities = I40E_AQ_PHY_ENABLE_ATOMIC_LINK;\n \treturn i40e_phy_conf_link(hw, abilities, speed);\n }\n \n",
    "prefixes": [
        "dpdk-dev",
        "1/1"
    ]
}