get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 818834,
    "url": "http://patchwork.ozlabs.org/api/patches/818834/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/20170926211535.21273-5-vivien.didelot@savoirfairelinux.com/",
    "project": {
        "id": 7,
        "url": "http://patchwork.ozlabs.org/api/projects/7/?format=api",
        "name": "Linux network development",
        "link_name": "netdev",
        "list_id": "netdev.vger.kernel.org",
        "list_email": "netdev@vger.kernel.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20170926211535.21273-5-vivien.didelot@savoirfairelinux.com>",
    "list_archive_url": null,
    "date": "2017-09-26T21:15:34",
    "name": "[net-next,4/5] net: dsa: use phy_ethtool_set_link_ksettings",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "61cc9774a665bc64962d4ba5d9514d2bd43795b1",
    "submitter": {
        "id": 15889,
        "url": "http://patchwork.ozlabs.org/api/people/15889/?format=api",
        "name": "Vivien Didelot",
        "email": "vivien.didelot@savoirfairelinux.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/netdev/patch/20170926211535.21273-5-vivien.didelot@savoirfairelinux.com/mbox/",
    "series": [
        {
            "id": 5231,
            "url": "http://patchwork.ozlabs.org/api/series/5231/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=5231",
            "date": "2017-09-26T21:15:33",
            "name": "net: dsa: use generic slave phydev",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/5231/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/818834/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/818834/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<netdev-owner@vger.kernel.org>",
        "X-Original-To": "patchwork-incoming@ozlabs.org",
        "Delivered-To": "patchwork-incoming@ozlabs.org",
        "Authentication-Results": "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=netdev-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)",
        "Received": [
            "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3y1v590C5jz9sRq\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed, 27 Sep 2017 07:21:01 +1000 (AEST)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S937331AbdIZVT0 (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tTue, 26 Sep 2017 17:19:26 -0400",
            "from mail.savoirfairelinux.com ([208.88.110.44]:41174 \"EHLO\n\tmail.savoirfairelinux.com\" rhost-flags-OK-OK-OK-OK) by\n\tvger.kernel.org with ESMTP id S936408AbdIZVTZ (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Tue, 26 Sep 2017 17:19:25 -0400",
            "from localhost (localhost [127.0.0.1])\n\tby mail.savoirfairelinux.com (Postfix) with ESMTP id C20FF9C2DA5;\n\tTue, 26 Sep 2017 17:19:23 -0400 (EDT)",
            "from mail.savoirfairelinux.com ([127.0.0.1])\n\tby localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavisd-new,\n\tport 10032)\n\twith ESMTP id cAF6l5VM65jy; Tue, 26 Sep 2017 17:19:23 -0400 (EDT)",
            "from localhost (localhost [127.0.0.1])\n\tby mail.savoirfairelinux.com (Postfix) with ESMTP id 376E99C2D7B;\n\tTue, 26 Sep 2017 17:19:23 -0400 (EDT)",
            "from mail.savoirfairelinux.com ([127.0.0.1])\n\tby localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavisd-new,\n\tport 10026)\n\twith ESMTP id X1vaz2H4J846; Tue, 26 Sep 2017 17:19:23 -0400 (EDT)",
            "from weeman.mtl.sfl (unknown [192.168.49.104])\n\tby mail.savoirfairelinux.com (Postfix) with ESMTPSA id EB79B9C2DA4;\n\tTue, 26 Sep 2017 17:19:22 -0400 (EDT)"
        ],
        "X-Virus-Scanned": "amavisd-new at mail.savoirfairelinux.com",
        "From": "Vivien Didelot <vivien.didelot@savoirfairelinux.com>",
        "To": "netdev@vger.kernel.org",
        "Cc": "linux-kernel@vger.kernel.org, kernel@savoirfairelinux.com,\n\t\"David S. Miller\" <davem@davemloft.net>,\n\tFlorian Fainelli <f.fainelli@gmail.com>, Andrew Lunn <andrew@lunn.ch>,\n\tVivien Didelot <vivien.didelot@savoirfairelinux.com>",
        "Subject": "[PATCH net-next 4/5] net: dsa: use phy_ethtool_set_link_ksettings",
        "Date": "Tue, 26 Sep 2017 17:15:34 -0400",
        "Message-Id": "<20170926211535.21273-5-vivien.didelot@savoirfairelinux.com>",
        "X-Mailer": "git-send-email 2.14.1",
        "In-Reply-To": "<20170926211535.21273-1-vivien.didelot@savoirfairelinux.com>",
        "References": "<20170926211535.21273-1-vivien.didelot@savoirfairelinux.com>",
        "Sender": "netdev-owner@vger.kernel.org",
        "Precedence": "bulk",
        "List-ID": "<netdev.vger.kernel.org>",
        "X-Mailing-List": "netdev@vger.kernel.org"
    },
    "content": "Use phy_ethtool_set_link_ksettings now that dsa_slave_set_link_ksettings\ndoes exactly the same.\n\nSigned-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>\n---\n net/dsa/slave.c | 12 +-----------\n 1 file changed, 1 insertion(+), 11 deletions(-)",
    "diff": "diff --git a/net/dsa/slave.c b/net/dsa/slave.c\nindex bb0f64f47ae7..d2b632cae468 100644\n--- a/net/dsa/slave.c\n+++ b/net/dsa/slave.c\n@@ -421,16 +421,6 @@ static netdev_tx_t dsa_slave_xmit(struct sk_buff *skb, struct net_device *dev)\n \n /* ethtool operations *******************************************************/\n \n-static int\n-dsa_slave_set_link_ksettings(struct net_device *dev,\n-\t\t\t     const struct ethtool_link_ksettings *cmd)\n-{\n-\tif (!dev->phydev)\n-\t\treturn -ENODEV;\n-\n-\treturn phy_ethtool_ksettings_set(dev->phydev, cmd);\n-}\n-\n static void dsa_slave_get_drvinfo(struct net_device *dev,\n \t\t\t\t  struct ethtool_drvinfo *drvinfo)\n {\n@@ -910,8 +900,8 @@ static const struct ethtool_ops dsa_slave_ethtool_ops = {\n \t.get_wol\t\t= dsa_slave_get_wol,\n \t.set_eee\t\t= dsa_slave_set_eee,\n \t.get_eee\t\t= dsa_slave_get_eee,\n-\t.set_link_ksettings\t= dsa_slave_set_link_ksettings,\n \t.get_link_ksettings\t= phy_ethtool_get_link_ksettings,\n+\t.set_link_ksettings\t= phy_ethtool_set_link_ksettings,\n \t.get_rxnfc\t\t= dsa_slave_get_rxnfc,\n \t.set_rxnfc\t\t= dsa_slave_set_rxnfc,\n };\n",
    "prefixes": [
        "net-next",
        "4/5"
    ]
}