get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 702110,
    "url": "http://patchwork.ozlabs.org/api/patches/702110/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1480710782-9195-4-git-send-email-bimmy.pujari@intel.com/",
    "project": {
        "id": 46,
        "url": "http://patchwork.ozlabs.org/api/projects/46/?format=api",
        "name": "Intel Wired Ethernet development",
        "link_name": "intel-wired-lan",
        "list_id": "intel-wired-lan.osuosl.org",
        "list_email": "intel-wired-lan@osuosl.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<1480710782-9195-4-git-send-email-bimmy.pujari@intel.com>",
    "list_archive_url": null,
    "date": "2016-12-02T20:32:57",
    "name": "[next,S56,3/8] i40e: Save link FEC info from link up event",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "422de6d44f3f842b52522897f3bb168be8c9d1c1",
    "submitter": {
        "id": 68919,
        "url": "http://patchwork.ozlabs.org/api/people/68919/?format=api",
        "name": "Pujari, Bimmy",
        "email": "bimmy.pujari@intel.com"
    },
    "delegate": {
        "id": 68,
        "url": "http://patchwork.ozlabs.org/api/users/68/?format=api",
        "username": "jtkirshe",
        "first_name": "Jeff",
        "last_name": "Kirsher",
        "email": "jeffrey.t.kirsher@intel.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1480710782-9195-4-git-send-email-bimmy.pujari@intel.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/702110/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/702110/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<intel-wired-lan-bounces@lists.osuosl.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "intel-wired-lan@lists.osuosl.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "intel-wired-lan@lists.osuosl.org"
        ],
        "Received": [
            "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3tVm9N30mwz9vF3\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat,  3 Dec 2016 07:34:48 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id BB45286365;\n\tFri,  2 Dec 2016 20:34:46 +0000 (UTC)",
            "from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 1tuY49sx8m_E; Fri,  2 Dec 2016 20:34:45 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 0E12D85147;\n\tFri,  2 Dec 2016 20:34:45 +0000 (UTC)",
            "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ash.osuosl.org (Postfix) with ESMTP id 3D1B51BFB36\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri,  2 Dec 2016 20:34:41 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 3AC7785025\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri,  2 Dec 2016 20:34:41 +0000 (UTC)",
            "from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id pFKcPAwK1dhn for <intel-wired-lan@lists.osuosl.org>;\n\tFri,  2 Dec 2016 20:34:40 +0000 (UTC)",
            "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby fraxinus.osuosl.org (Postfix) with ESMTPS id 8C8CC85043\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri,  2 Dec 2016 20:34:40 +0000 (UTC)",
            "from orsmga001.jf.intel.com ([10.7.209.18])\n\tby fmsmga101.fm.intel.com with ESMTP; 02 Dec 2016 12:34:39 -0800",
            "from bimmy.jf.intel.com (HELO bimmy.linux1.jf.intel.com)\n\t([134.134.2.167])\n\tby orsmga001.jf.intel.com with ESMTP; 02 Dec 2016 12:34:39 -0800"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos; i=\"5.33,288,1477983600\"; d=\"scan'208\";\n\ta=\"1067223585\"",
        "From": "Bimmy Pujari <bimmy.pujari@intel.com>",
        "To": "intel-wired-lan@lists.osuosl.org",
        "Date": "Fri,  2 Dec 2016 12:32:57 -0800",
        "Message-Id": "<1480710782-9195-4-git-send-email-bimmy.pujari@intel.com>",
        "X-Mailer": "git-send-email 2.4.11",
        "In-Reply-To": "<1480710782-9195-1-git-send-email-bimmy.pujari@intel.com>",
        "References": "<1480710782-9195-1-git-send-email-bimmy.pujari@intel.com>",
        "Cc": "Henry Tieman <henry.w.tieman@intel.com>",
        "Subject": "[Intel-wired-lan] [next PATCH S56 3/8] i40e: Save link FEC info\n\tfrom link up event",
        "X-BeenThere": "intel-wired-lan@lists.osuosl.org",
        "X-Mailman-Version": "2.1.18-1",
        "Precedence": "list",
        "List-Id": "Intel Wired Ethernet Linux Kernel Driver Development\n\t<intel-wired-lan.lists.osuosl.org>",
        "List-Unsubscribe": "<http://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@lists.osuosl.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>",
        "List-Post": "<mailto:intel-wired-lan@lists.osuosl.org>",
        "List-Help": "<mailto:intel-wired-lan-request@lists.osuosl.org?subject=help>",
        "List-Subscribe": "<http://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@lists.osuosl.org?subject=subscribe>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "intel-wired-lan-bounces@lists.osuosl.org",
        "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@lists.osuosl.org>"
    },
    "content": "From: Henry Tieman <henry.w.tieman@intel.com>\n\nStore the FEC status bits from the link up event into the\nhw_link_info structure.\n\nSigned-off-by: Henry Tieman <henry.w.tieman@intel.com>\nChange-ID: I9a7b256f6dfb0dce89c2f503075d0d383526832e\n---\nTesting Hints: In support of DCR 2228, this commit stores the FEC\ndata for later display in the \"link up\" kernel log message.\n\n drivers/net/ethernet/intel/i40e/i40e_common.c |  2 ++\n drivers/net/ethernet/intel/i40e/i40e_main.c   | 21 +++++++++++++++++++--\n drivers/net/ethernet/intel/i40e/i40e_type.h   |  1 +\n drivers/net/ethernet/intel/i40evf/i40e_type.h |  1 +\n 4 files changed, 23 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/net/ethernet/intel/i40e/i40e_common.c b/drivers/net/ethernet/intel/i40e/i40e_common.c\nindex 59e766c..549fdca 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_common.c\n+++ b/drivers/net/ethernet/intel/i40e/i40e_common.c\n@@ -1838,6 +1838,8 @@ i40e_status i40e_aq_get_link_info(struct i40e_hw *hw,\n \thw_link_info->link_speed = (enum i40e_aq_link_speed)resp->link_speed;\n \thw_link_info->link_info = resp->link_info;\n \thw_link_info->an_info = resp->an_info;\n+\thw_link_info->fec_info = resp->config & (I40E_AQ_CONFIG_FEC_KR_ENA |\n+\t\t\t\t\t\t I40E_AQ_CONFIG_FEC_RS_ENA);\n \thw_link_info->ext_info = resp->ext_info;\n \thw_link_info->loopback = resp->loopback;\n \thw_link_info->max_frame_size = le16_to_cpu(resp->max_frame_size);\ndiff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c\nindex a0689f1..951976b 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_main.c\n+++ b/drivers/net/ethernet/intel/i40e/i40e_main.c\n@@ -5267,6 +5267,8 @@ void i40e_print_link_message(struct i40e_vsi *vsi, bool isup)\n \tenum i40e_aq_link_speed new_speed;\n \tchar *speed = \"Unknown\";\n \tchar *fc = \"Unknown\";\n+\tchar *fec = \"\";\n+\tchar *an = \"\";\n \n \tnew_speed = vsi->back->hw.phy.link_info.link_speed;\n \n@@ -5326,8 +5328,23 @@ void i40e_print_link_message(struct i40e_vsi *vsi, bool isup)\n \t\tbreak;\n \t}\n \n-\tnetdev_info(vsi->netdev, \"NIC Link is Up %sbps Full Duplex, Flow Control: %s\\n\",\n-\t\t    speed, fc);\n+\tif (vsi->back->hw.phy.link_info.link_speed == I40E_LINK_SPEED_25GB) {\n+\t\tfec = \", FEC: None\";\n+\t\tan = \", Autoneg: False\";\n+\n+\t\tif (vsi->back->hw.phy.link_info.an_info & I40E_AQ_AN_COMPLETED)\n+\t\t\tan = \", Autoneg: True\";\n+\n+\t\tif (vsi->back->hw.phy.link_info.fec_info &\n+\t\t    I40E_AQ_CONFIG_FEC_KR_ENA)\n+\t\t\tfec = \", FEC: CL74 FC-FEC/BASE-R\";\n+\t\telse if (vsi->back->hw.phy.link_info.fec_info &\n+\t\t\t I40E_AQ_CONFIG_FEC_RS_ENA)\n+\t\t\tfec = \", FEC: CL108 RS-FEC\";\n+\t}\n+\n+\tnetdev_info(vsi->netdev, \"NIC Link is Up, %sbps Full Duplex%s%s, Flow Control: %s\\n\",\n+\t\t    speed, fec, an, fc);\n }\n \n /**\ndiff --git a/drivers/net/ethernet/intel/i40e/i40e_type.h b/drivers/net/ethernet/intel/i40e/i40e_type.h\nindex be7b611..df7914e 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_type.h\n+++ b/drivers/net/ethernet/intel/i40e/i40e_type.h\n@@ -184,6 +184,7 @@ struct i40e_link_status {\n \tenum i40e_aq_link_speed link_speed;\n \tu8 link_info;\n \tu8 an_info;\n+\tu8 fec_info;\n \tu8 ext_info;\n \tu8 loopback;\n \t/* is Link Status Event notification to SW enabled */\ndiff --git a/drivers/net/ethernet/intel/i40evf/i40e_type.h b/drivers/net/ethernet/intel/i40evf/i40e_type.h\nindex 3f19dff..16bb880 100644\n--- a/drivers/net/ethernet/intel/i40evf/i40e_type.h\n+++ b/drivers/net/ethernet/intel/i40evf/i40e_type.h\n@@ -158,6 +158,7 @@ struct i40e_link_status {\n \tenum i40e_aq_link_speed link_speed;\n \tu8 link_info;\n \tu8 an_info;\n+\tu8 fec_info;\n \tu8 ext_info;\n \tu8 loopback;\n \t/* is Link Status Event notification to SW enabled */\n",
    "prefixes": [
        "next",
        "S56",
        "3/8"
    ]
}