get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 772707,
    "url": "http://patchwork.ozlabs.org/api/patches/772707/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20170607213621.18256-4-anthony.l.nguyen@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": "<20170607213621.18256-4-anthony.l.nguyen@intel.com>",
    "list_archive_url": null,
    "date": "2017-06-07T21:36:20",
    "name": "[4/5] ixgbe: Do not support flow control autonegotiation for X553",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "707173ef4df877c419d4816dce5c91795949680b",
    "submitter": {
        "id": 68875,
        "url": "http://patchwork.ozlabs.org/api/people/68875/?format=api",
        "name": "Tony Nguyen",
        "email": "anthony.l.nguyen@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/20170607213621.18256-4-anthony.l.nguyen@intel.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/772707/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/772707/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"
        ],
        "Received": [
            "from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\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 3wjhlx1KXNz9s8Y\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu,  8 Jun 2017 07:39:41 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id 93A7E302D9;\n\tWed,  7 Jun 2017 21:39:39 +0000 (UTC)",
            "from silver.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 9o87Mq3aM3kj; Wed,  7 Jun 2017 21:39:38 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby silver.osuosl.org (Postfix) with ESMTP id 5170F2680A;\n\tWed,  7 Jun 2017 21:39:38 +0000 (UTC)",
            "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\tby ash.osuosl.org (Postfix) with ESMTP id DF5921C0DFA\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed,  7 Jun 2017 21:39:34 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id CDB38821EA\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed,  7 Jun 2017 21:39:34 +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 dtYCNoBWTX2x for <intel-wired-lan@lists.osuosl.org>;\n\tWed,  7 Jun 2017 21:39:33 +0000 (UTC)",
            "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby whitealder.osuosl.org (Postfix) with ESMTPS id A0E4E82238\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed,  7 Jun 2017 21:39:33 +0000 (UTC)",
            "from orsmga004.jf.intel.com ([10.7.209.38])\n\tby orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t07 Jun 2017 14:39:32 -0700",
            "from anguy11-linux.jf.intel.com ([134.134.145.139])\n\tby orsmga004.jf.intel.com with ESMTP; 07 Jun 2017 14:39:32 -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.39,311,1493708400\"; d=\"scan'208\";a=\"95714306\"",
        "From": "Tony Nguyen <anthony.l.nguyen@intel.com>",
        "To": "intel-wired-lan@lists.osuosl.org",
        "Date": "Wed,  7 Jun 2017 14:36:20 -0700",
        "Message-Id": "<20170607213621.18256-4-anthony.l.nguyen@intel.com>",
        "X-Mailer": "git-send-email 2.9.3",
        "In-Reply-To": "<20170607213621.18256-1-anthony.l.nguyen@intel.com>",
        "References": "<20170607213621.18256-1-anthony.l.nguyen@intel.com>",
        "Subject": "[Intel-wired-lan] [PATCH 4/5] ixgbe: Do not support flow control\n\tautonegotiation for X553",
        "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": "Flow control autonegotiation is not supported for fiber on X553.  Add\ndevice ID checks in ixgbe_device_supports_autoneg_fc() to return the\nappropriate value.\n\nSigned-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>\nSigned-off-by: Emil Tantilov <emil.s.tantilov@intel.com>\n---\n drivers/net/ethernet/intel/ixgbe/ixgbe_common.c | 25 +++++++++++++++++++------\n 1 file changed, 19 insertions(+), 6 deletions(-)",
    "diff": "diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c\nindex 4e35e70..40ae7db 100644\n--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c\n+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c\n@@ -79,13 +79,22 @@ bool ixgbe_device_supports_autoneg_fc(struct ixgbe_hw *hw)\n \n \tswitch (hw->phy.media_type) {\n \tcase ixgbe_media_type_fiber:\n-\t\thw->mac.ops.check_link(hw, &speed, &link_up, false);\n-\t\t/* if link is down, assume supported */\n-\t\tif (link_up)\n-\t\t\tsupported = speed == IXGBE_LINK_SPEED_1GB_FULL ?\n+\t\t/* flow control autoneg black list */\n+\t\tswitch (hw->device_id) {\n+\t\tcase IXGBE_DEV_ID_X550EM_A_SFP:\n+\t\tcase IXGBE_DEV_ID_X550EM_A_SFP_N:\n+\t\t\tsupported = false;\n+\t\t\tbreak;\n+\t\tdefault:\n+\t\t\thw->mac.ops.check_link(hw, &speed, &link_up, false);\n+\t\t\t/* if link is down, assume supported */\n+\t\t\tif (link_up)\n+\t\t\t\tsupported = speed == IXGBE_LINK_SPEED_1GB_FULL ?\n \t\t\t\ttrue : false;\n-\t\telse\n-\t\t\tsupported = true;\n+\t\t\telse\n+\t\t\t\tsupported = true;\n+\t\t}\n+\n \t\tbreak;\n \tcase ixgbe_media_type_backplane:\n \t\tsupported = true;\n@@ -111,6 +120,10 @@ bool ixgbe_device_supports_autoneg_fc(struct ixgbe_hw *hw)\n \t\tbreak;\n \t}\n \n+\tif (!supported)\n+\t\thw_dbg(hw, \"Device %x does not support flow control autoneg\\n\",\n+\t\t       hw->device_id);\n+\n \treturn supported;\n }\n \n",
    "prefixes": [
        "4/5"
    ]
}