get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 728384,
    "url": "http://patchwork.ozlabs.org/api/patches/728384/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20170215110820.30052-1-tklauser@distanz.ch/",
    "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": "<20170215110820.30052-1-tklauser@distanz.ch>",
    "list_archive_url": null,
    "date": "2017-02-15T11:08:20",
    "name": "[net-next] ixgb: Omit private ndo_get_stats function",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "38a6e9753e6563eb67024a066e40dfc2dd5cd893",
    "submitter": {
        "id": 2451,
        "url": "http://patchwork.ozlabs.org/api/people/2451/?format=api",
        "name": "Tobias Klauser",
        "email": "tklauser@distanz.ch"
    },
    "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/20170215110820.30052-1-tklauser@distanz.ch/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/728384/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/728384/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 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 3vNsCP10Y1z9ryv\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 16 Feb 2017 08:01:21 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 6D3BC85A6D;\n\tWed, 15 Feb 2017 21:01:19 +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 9FbG5YfjrLvA; Wed, 15 Feb 2017 21:01:18 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 3753485A83;\n\tWed, 15 Feb 2017 21:01:17 +0000 (UTC)",
            "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ash.osuosl.org (Postfix) with ESMTP id E1ACC1C0D29\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 15 Feb 2017 11:08:24 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id DDD00869DC\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 15 Feb 2017 11:08:24 +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 0cAfiLOCqutB for <intel-wired-lan@lists.osuosl.org>;\n\tWed, 15 Feb 2017 11:08:23 +0000 (UTC)",
            "from mail.zhinst.com (mail.zhinst.com [212.126.164.98])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 4464C869A8\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 15 Feb 2017 11:08:23 +0000 (UTC)",
            "from ziws08.zhinst.com ([10.42.0.7])\n\tby mail.zhinst.com (Kerio Connect 9.2.1) with ESMTP;\n\tWed, 15 Feb 2017 12:08:20 +0100"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "from auto-whitelisted by SQLgrey-1.7.6",
        "From": "Tobias Klauser <tklauser@distanz.ch>",
        "To": "netdev@vger.kernel.org",
        "Date": "Wed, 15 Feb 2017 12:08:20 +0100",
        "Message-Id": "<20170215110820.30052-1-tklauser@distanz.ch>",
        "X-Mailer": "git-send-email 2.11.0",
        "X-Mailman-Approved-At": "Wed, 15 Feb 2017 21:01:15 +0000",
        "Cc": "Joe Perches <joe@perches.com>, intel-wired-lan@lists.osuosl.org",
        "Subject": "[Intel-wired-lan] [PATCH net-next] ixgb: Omit private ndo_get_stats\n\tfunction",
        "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": "ixgb_get_stats() just returns dev->stats so we can leave it\nout altogether and let dev_get_stats() do the job.\n\nSuggested-by: Joe Perches <joe@perches.com>\nSigned-off-by: Tobias Klauser <tklauser@distanz.ch>\n---\n drivers/net/ethernet/intel/ixgb/ixgb_main.c | 16 ----------------\n 1 file changed, 16 deletions(-)",
    "diff": "diff --git a/drivers/net/ethernet/intel/ixgb/ixgb_main.c b/drivers/net/ethernet/intel/ixgb/ixgb_main.c\nindex fbd220d137b3..5a713199653c 100644\n--- a/drivers/net/ethernet/intel/ixgb/ixgb_main.c\n+++ b/drivers/net/ethernet/intel/ixgb/ixgb_main.c\n@@ -86,7 +86,6 @@ static void ixgb_set_multi(struct net_device *netdev);\n static void ixgb_watchdog(unsigned long data);\n static netdev_tx_t ixgb_xmit_frame(struct sk_buff *skb,\n \t\t\t\t   struct net_device *netdev);\n-static struct net_device_stats *ixgb_get_stats(struct net_device *netdev);\n static int ixgb_change_mtu(struct net_device *netdev, int new_mtu);\n static int ixgb_set_mac(struct net_device *netdev, void *p);\n static irqreturn_t ixgb_intr(int irq, void *data);\n@@ -367,7 +366,6 @@ static const struct net_device_ops ixgb_netdev_ops = {\n \t.ndo_open \t\t= ixgb_open,\n \t.ndo_stop\t\t= ixgb_close,\n \t.ndo_start_xmit\t\t= ixgb_xmit_frame,\n-\t.ndo_get_stats\t\t= ixgb_get_stats,\n \t.ndo_set_rx_mode\t= ixgb_set_multi,\n \t.ndo_validate_addr\t= eth_validate_addr,\n \t.ndo_set_mac_address\t= ixgb_set_mac,\n@@ -1597,20 +1595,6 @@ ixgb_tx_timeout_task(struct work_struct *work)\n }\n \n /**\n- * ixgb_get_stats - Get System Network Statistics\n- * @netdev: network interface device structure\n- *\n- * Returns the address of the device statistics structure.\n- * The statistics are actually updated from the timer callback.\n- **/\n-\n-static struct net_device_stats *\n-ixgb_get_stats(struct net_device *netdev)\n-{\n-\treturn &netdev->stats;\n-}\n-\n-/**\n  * ixgb_change_mtu - Change the Maximum Transfer Unit\n  * @netdev: network interface device structure\n  * @new_mtu: new value for maximum frame size\n",
    "prefixes": [
        "net-next"
    ]
}