get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 790653,
    "url": "http://patchwork.ozlabs.org/api/patches/790653/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20170718140615.3250-1-alice.michael@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": "<20170718140615.3250-1-alice.michael@intel.com>",
    "list_archive_url": null,
    "date": "2017-07-18T14:06:15",
    "name": "[next,S76-V3,11/13] i40e: Add new phy types for 25G AOC and ACC support.",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": false,
    "hash": "67a20819a50f9686f751ad28acb20c836f0cbd50",
    "submitter": {
        "id": 71123,
        "url": "http://patchwork.ozlabs.org/api/people/71123/?format=api",
        "name": "Michael, Alice",
        "email": "alice.michael@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/20170718140615.3250-1-alice.michael@intel.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/790653/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/790653/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<intel-wired-lan-bounces@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"
        ],
        "Authentication-Results": "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=osuosl.org\n\t(client-ip=140.211.166.138; helo=whitealder.osuosl.org;\n\tenvelope-from=intel-wired-lan-bounces@osuosl.org;\n\treceiver=<UNKNOWN>)",
        "Received": [
            "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\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 3xBvVc4Jysz9s06\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 19 Jul 2017 08:10:31 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 721CA8478F;\n\tTue, 18 Jul 2017 22:10:29 +0000 (UTC)",
            "from whitealder.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id mLIFrsewS3aW; Tue, 18 Jul 2017 22:10:28 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 563E2846AF;\n\tTue, 18 Jul 2017 22:10:28 +0000 (UTC)",
            "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ash.osuosl.org (Postfix) with ESMTP id AC5E21BFCC3\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 18 Jul 2017 22:10:27 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id A0FD0870FE\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 18 Jul 2017 22:10:27 +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 a3Ap9PFzgzJQ for <intel-wired-lan@lists.osuosl.org>;\n\tTue, 18 Jul 2017 22:10:26 +0000 (UTC)",
            "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n\tby fraxinus.osuosl.org (Postfix) with ESMTPS id D749D85A1B\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 18 Jul 2017 22:10:26 +0000 (UTC)",
            "from orsmga003.jf.intel.com ([10.7.209.27])\n\tby fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t18 Jul 2017 15:10:26 -0700",
            "from unknown (HELO localhost.jf.intel.com) ([10.166.16.121])\n\tby orsmga003.jf.intel.com with ESMTP; 18 Jul 2017 15:10:26 -0700"
        ],
        "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.40,378,1496127600\"; d=\"scan'208\";a=\"994479703\"",
        "From": "Alice Michael <alice.michael@intel.com>",
        "To": "alice.michael@intel.com,\n\tintel-wired-lan@lists.osuosl.org",
        "Date": "Tue, 18 Jul 2017 10:06:15 -0400",
        "Message-Id": "<20170718140615.3250-1-alice.michael@intel.com>",
        "X-Mailer": "git-send-email 2.9.4",
        "Cc": "Krzysztof Malek <krzysztof.malek@intel.com>",
        "Subject": "[Intel-wired-lan] [next PATCH S76-V3 11/13] i40e: Add new phy types\n\tfor 25G AOC and ACC support.",
        "X-BeenThere": "intel-wired-lan@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.osuosl.org>",
        "List-Unsubscribe": "<https://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>",
        "List-Post": "<mailto:intel-wired-lan@osuosl.org>",
        "List-Help": "<mailto:intel-wired-lan-request@osuosl.org?subject=help>",
        "List-Subscribe": "<https://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@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@osuosl.org",
        "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@osuosl.org>"
    },
    "content": "From: Sudheer Mogilappagari <sudheer.mogilappagari@intel.com>\n\nThis patch adds support for 25G Active Optical Cables (AOC) and Active\nCopper Cables (ACC) phy types. \n\nSigned-off-by: Krzysztof Malek <krzysztof.malek@intel.com>\n---\n drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h   | 5 +++++\n drivers/net/ethernet/intel/i40e/i40e_common.c       | 2 ++\n drivers/net/ethernet/intel/i40e/i40e_ethtool.c      | 9 +++++++++\n drivers/net/ethernet/intel/i40evf/i40e_adminq_cmd.h | 5 +++++\n 4 files changed, 21 insertions(+)",
    "diff": "diff --git a/drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h b/drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h\nindex 5d5f422..6945510 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h\n+++ b/drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h\n@@ -1744,6 +1744,9 @@ enum i40e_aq_phy_type {\n \tI40E_PHY_TYPE_25GBASE_CR\t\t= 0x20,\n \tI40E_PHY_TYPE_25GBASE_SR\t\t= 0x21,\n \tI40E_PHY_TYPE_25GBASE_LR\t\t= 0x22,\n+\tI40E_PHY_TYPE_25GBASE_AOC\t\t= 0x23,\n+\tI40E_PHY_TYPE_25GBASE_ACC\t\t= 0x24,\n+\n \tI40E_PHY_TYPE_MAX\n };\n \n@@ -1801,6 +1804,8 @@ struct i40e_aq_get_phy_abilities_resp {\n #define I40E_AQ_PHY_TYPE_EXT_25G_CR\t0X02\n #define I40E_AQ_PHY_TYPE_EXT_25G_SR\t0x04\n #define I40E_AQ_PHY_TYPE_EXT_25G_LR\t0x08\n+#define I40E_AQ_PHY_TYPE_EXT_25G_AOC\t0x10\n+#define I40E_AQ_PHY_TYPE_EXT_25G_ACC\t0x20\n \tu8\tfec_cfg_curr_mod_ext_info;\n #define I40E_AQ_ENABLE_FEC_KR\t\t0x01\n #define I40E_AQ_ENABLE_FEC_RS\t\t0x02\ndiff --git a/drivers/net/ethernet/intel/i40e/i40e_common.c b/drivers/net/ethernet/intel/i40e/i40e_common.c\nindex 111426b..f1d8b5c 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_common.c\n+++ b/drivers/net/ethernet/intel/i40e/i40e_common.c\n@@ -1180,6 +1180,8 @@ static enum i40e_media_type i40e_get_media_type(struct i40e_hw *hw)\n \tcase I40E_PHY_TYPE_40GBASE_AOC:\n \tcase I40E_PHY_TYPE_10GBASE_AOC:\n \tcase I40E_PHY_TYPE_25GBASE_CR:\n+\tcase I40E_PHY_TYPE_25GBASE_AOC:\n+\tcase I40E_PHY_TYPE_25GBASE_ACC:\n \t\tmedia = I40E_MEDIA_TYPE_DA;\n \t\tbreak;\n \tcase I40E_PHY_TYPE_1000BASE_KX:\ndiff --git a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c\nindex 326fc18..6b07e90 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c\n+++ b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c\n@@ -665,6 +665,15 @@ static int i40e_get_link_ksettings(struct net_device *netdev,\n \t\tethtool_link_ksettings_add_link_mode(cmd, advertising,\n \t\t\t\t\t\t     Asym_Pause);\n \t\tbreak;\n+\tcase I40E_PHY_TYPE_25GBASE_AOC:\n+\tcase I40E_PHY_TYPE_25GBASE_ACC:\n+\t\tethtool_link_ksettings_add_link_mode(cmd, supported, Autoneg);\n+\t\tethtool_link_ksettings_add_link_mode(cmd, advertising, Autoneg);\n+\t\tethtool_link_ksettings_add_link_mode(cmd, supported,\n+\t\t\t\t\t\t     25000baseCR_Full);\n+\t\tethtool_link_ksettings_add_link_mode(cmd, advertising,\n+\t\t\t\t\t\t     25000baseCR_Full);\n+\t\tbreak;\n \tdefault:\n \t\tethtool_convert_link_mode_to_legacy_u32(\n \t\t\t&advertising, cmd->link_modes.advertising);\ndiff --git a/drivers/net/ethernet/intel/i40evf/i40e_adminq_cmd.h b/drivers/net/ethernet/intel/i40evf/i40e_adminq_cmd.h\nindex 83e63e5..77e6e06 100644\n--- a/drivers/net/ethernet/intel/i40evf/i40e_adminq_cmd.h\n+++ b/drivers/net/ethernet/intel/i40evf/i40e_adminq_cmd.h\n@@ -1740,6 +1740,9 @@ enum i40e_aq_phy_type {\n \tI40E_PHY_TYPE_25GBASE_CR\t\t= 0x20,\n \tI40E_PHY_TYPE_25GBASE_SR\t\t= 0x21,\n \tI40E_PHY_TYPE_25GBASE_LR\t\t= 0x22,\n+\tI40E_PHY_TYPE_25GBASE_AOC\t\t= 0x23,\n+\tI40E_PHY_TYPE_25GBASE_ACC\t\t= 0x24,\n+\n \tI40E_PHY_TYPE_MAX\n };\n \n@@ -1797,6 +1800,8 @@ struct i40e_aq_get_phy_abilities_resp {\n #define I40E_AQ_PHY_TYPE_EXT_25G_CR\t0X02\n #define I40E_AQ_PHY_TYPE_EXT_25G_SR\t0x04\n #define I40E_AQ_PHY_TYPE_EXT_25G_LR\t0x08\n+#define I40E_AQ_PHY_TYPE_EXT_25G_AOC\t0x10\n+#define I40E_AQ_PHY_TYPE_EXT_25G_ACC\t0x20\n \tu8\tfec_cfg_curr_mod_ext_info;\n #define I40E_AQ_ENABLE_FEC_KR\t\t0x01\n #define I40E_AQ_ENABLE_FEC_RS\t\t0x02\n",
    "prefixes": [
        "next",
        "S76-V3",
        "11/13"
    ]
}