get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 424017,
    "url": "http://patchwork.ozlabs.org/api/patches/424017/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/openwrt/patch/owrt-patches-20141225-4@vittgam.net/",
    "project": {
        "id": 45,
        "url": "http://patchwork.ozlabs.org/api/projects/45/?format=api",
        "name": "OpenWrt development",
        "link_name": "openwrt",
        "list_id": "openwrt-devel.lists.openwrt.org",
        "list_email": "openwrt-devel@lists.openwrt.org",
        "web_url": "http://openwrt.org/",
        "scm_url": "git://git.openwrt.org/openwrt.git",
        "webscm_url": "https://dev.openwrt.org/browser",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<owrt-patches-20141225-4@vittgam.net>",
    "list_archive_url": null,
    "date": "2014-12-25T01:29:49",
    "name": "[OpenWrt-Devel] ramips: revert failsafe switch workaround for RT5350 introduced in r42179.",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": false,
    "hash": "4945535aa6130837c75397298a07c670813f1db9",
    "submitter": {
        "id": 65409,
        "url": "http://patchwork.ozlabs.org/api/people/65409/?format=api",
        "name": "Vittorio Gambaletta",
        "email": "openwrt@vittgam.net"
    },
    "delegate": {
        "id": 54613,
        "url": "http://patchwork.ozlabs.org/api/users/54613/?format=api",
        "username": "blogic",
        "first_name": "John",
        "last_name": "Crispin",
        "email": "blogic@openwrt.org"
    },
    "mbox": "http://patchwork.ozlabs.org/project/openwrt/patch/owrt-patches-20141225-4@vittgam.net/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/424017/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/424017/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<openwrt-devel-bounces@lists.openwrt.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Received": [
            "from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176])\n\t(using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 186991400DD\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 25 Dec 2014 12:30:21 +1100 (AEDT)",
            "from arrakis.dune.hu (localhost [127.0.0.1])\n\tby arrakis.dune.hu (Postfix) with ESMTP id 01FDC28BD56;\n\tThu, 25 Dec 2014 02:28:18 +0100 (CET)",
            "from arrakis.dune.hu (localhost [127.0.0.1])\n\tby arrakis.dune.hu (Postfix) with ESMTP id 39B0328BD56\n\tfor <openwrt-devel@lists.openwrt.org>;\n\tThu, 25 Dec 2014 02:28:13 +0100 (CET)",
            "from mail.vittgam.net (server1.vittgam.net [213.239.197.142])\n\tby arrakis.dune.hu (Postfix) with ESMTPS\n\tfor <openwrt-devel@lists.openwrt.org>;\n\tThu, 25 Dec 2014 02:28:12 +0100 (CET)",
            "from mail2.vittgam.net ([10.48.0.5])\n\tby mail.vittgam.net (8.14.4/8.14.4/Debian-2ubuntu2) with ESMTP id\n\tsBP1U7YK132251\n\t(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);\n\tThu, 25 Dec 2014 02:30:08 +0100",
            "from VittGamLaptop2 (VittGamLaptop2.router1net.VittGam.net\n\t[10.48.3.146])\n\tby mail2.vittgam.net (8.14.4/8.14.4/Debian-2ubuntu2) with SMTP id\n\tsBP1SGpw018051; Thu, 25 Dec 2014 02:29:49 +0100"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-1.5 required=5.0 tests=BAYES_00,T_DKIM_INVALID,\n\tT_RP_MATCHES_RCVD autolearn=unavailable version=3.3.2",
        "X-policyd-weight": "using cached result; rate:hard: -7.6",
        "X-DKIM": "OpenDKIM Filter v2.4.2 mail.vittgam.net sBP1U7YK132251",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=vittgam.net;\n\ts=20110809; t=1419471008;\n\tbh=Nm3vqJC8HeJ1eGb+dG/MWyz6pEY7FaPoZ2T4z69jeLE=;\n\th=Date:Content-Type:From:Message-Id:To:Cc:Subject;\n\tb=iorvRttPQhKUmEqKIHphULz6A2U+frxufOCMI72YD0MF3j28C68/PVxj0GBwc3ydF\n\tIBOByFVnDlzcoqjKHL50o/fJNH2tEYsPNLt2p3OoiNH3/IInpQb3LD72CQuEi5yk1s\n\t7Dtlxsv0RD4eAd+9qKkkMx+VpCYX5v9p3hxerggI=",
        "Date": "Thu, 25 Dec 2014 02:29:49 +0100",
        "From": "\"Vittorio G (VittGam)\" <openwrt@vittgam.net>",
        "Message-Id": "<owrt-patches-20141225-4@vittgam.net>",
        "To": "<blogic@openwrt.org>",
        "Cc": "openwrt-devel@lists.openwrt.org",
        "Subject": "[OpenWrt-Devel] [PATCH] ramips: revert failsafe switch workaround\n\tfor RT5350 introduced in r42179.",
        "X-BeenThere": "openwrt-devel@lists.openwrt.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "OpenWrt Development List <openwrt-devel.lists.openwrt.org>",
        "List-Unsubscribe": "<https://lists.openwrt.org/cgi-bin/mailman/options/openwrt-devel>,\n\t<mailto:openwrt-devel-request@lists.openwrt.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.openwrt.org/pipermail/openwrt-devel/>",
        "List-Post": "<mailto:openwrt-devel@lists.openwrt.org>",
        "List-Help": "<mailto:openwrt-devel-request@lists.openwrt.org?subject=help>",
        "List-Subscribe": "<https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel>,\n\t<mailto:openwrt-devel-request@lists.openwrt.org?subject=subscribe>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "openwrt-devel-bounces@lists.openwrt.org",
        "Sender": "\"openwrt-devel\" <openwrt-devel-bounces@lists.openwrt.org>"
    },
    "content": "It is not needed anymore as TCP packets get passed correctly now even when VLAN is disabled.\n\nThis piece of code also broke routers where the LAN port is not wired to port 0 of the internal switch.\n\nSigned-off-by: Vittorio Gambaletta <openwrt@vittgam.net>",
    "diff": "diff --git a/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips b/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips\nindex cae6396..386b527 100644\n--- a/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips\n+++ b/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips\n@@ -11,24 +11,7 @@ ramips_set_preinit_iface() {\n \t\tswconfig dev rt305x set reset 1\n \tfi\n \n-\tif echo $RT3X5X | egrep -q \"(RT5350|MT7628)\"; then\n-\t\t# This is a dirty hack to get by while the switch\n-\t\t# problem is investigated. When VLAN is disabled, ICMP\n-\t\t# pings work as expected, but TCP connections time\n-\t\t# out, so telnetting in failsafe is impossible. The\n-\t\t# likely reason is TCP checksumming hardware getting\n-\t\t# disabled:\n-\t\t# https://www.mail-archive.com/openwrt-devel@lists.openwrt.org/msg19870.html\n-\t\tswconfig dev rt305x set enable_vlan 1\n-\t\tswconfig dev rt305x vlan 1 set ports \"0 6\"\n-\t\tswconfig dev rt305x port 6 set untag 0\n-\t\tswconfig dev rt305x set apply 1\n-\t\tvconfig add eth0 1\n-\t\tifconfig eth0 up\n-\t\tifname=eth0.1\n-\telse\n-\t\tifname=eth0\n-\tfi\n+\tifname=eth0\n }\n \n boot_hook_add preinit_main ramips_set_preinit_iface\n",
    "prefixes": [
        "OpenWrt-Devel"
    ]
}