Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/617352/?format=api
{ "id": 617352, "url": "http://patchwork.ozlabs.org/api/patches/617352/?format=api", "web_url": "http://patchwork.ozlabs.org/project/openwrt/patch/owrt-patch-20160502-12@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-patch-20160502-12@vittgam.net>", "list_archive_url": null, "date": "2016-05-02T04:20:14", "name": "[OpenWrt-Devel,CC] ramips: Backport changes to 07_set_preinit_iface_ramips from trunk.", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": false, "hash": "654a11bae68e2644883a05c68933af10ff4653c8", "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-patch-20160502-12@vittgam.net/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/617352/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/617352/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", "<openwrt-devel@lists.openwrt.org>" ], "Received": [ "from arrakis.dune.hu (caladan.dune.hu [78.24.191.180])\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 3qyrgr1XGWz9t5c\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 2 May 2016 14:20:24 +1000 (AEST)", "from arrakis.dune.hu (localhost [127.0.0.1])\n\tby arrakis.dune.hu (Postfix) with ESMTP id EC86DB917C7;\n\tMon, 2 May 2016 06:20:17 +0200 (CEST)", "from arrakis.dune.hu (localhost [127.0.0.1])\n\tby arrakis.dune.hu (Postfix) with ESMTP;\n\tMon, 2 May 2016 06:20:17 +0200 (CEST)", "from arrakis.dune.hu (localhost [127.0.0.1])\n\tby arrakis.dune.hu (Postfix) with ESMTP id 3B5FCB917C3\n\tfor <openwrt-devel@lists.openwrt.org>;\n\tMon, 2 May 2016 06:20:16 +0200 (CEST)", "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\tMon, 2 May 2016 06:20:15 +0200 (CEST)", "from vl3 (vl3.r12.network.mietitrebbia.rocks [10.48.6.117])\n\tby mail.vittgam.net with SMTP id u424KElk185803\n\tfor <openwrt-devel@lists.openwrt.org>; Mon, 2 May 2016 06:20:14 +0200" ], "Authentication-Results": "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (4096-bit key;\n\tunprotected) header.d=vittgam.net header.i=@vittgam.net\n\theader.b=PUUgQua/; dkim-atps=neutral", "X-Spam-Checker-Version": "SpamAssassin 3.4.1 (2015-04-28) on arrakis.dune.hu", "X-Spam-Level": "", "X-Spam-Status": "No, score=-1.5 required=5.0 tests=BAYES_00,T_DKIM_INVALID\n\tautolearn=unavailable autolearn_force=no version=3.4.1", "X-policyd-weight": "using cached result; rate:hard: -6.1", "X-DKIM": "OpenDKIM Filter v2.4.2 mail.vittgam.net u424KElk185803", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=vittgam.net;\n\ts=20150519; t=1462162815;\n\tbh=LslAwxZS0/FiMoV1O96sOfzgYwGT1OCb1KzlSOF4hlo=;\n\th=From:To:Subject:Content-Type:Message-ID;\n\tb=PUUgQua/m0Ga+HaTTCPeQShH7RS9rKOEKLf6DRHxC6OSnrD2+R0nWME3XS+YfY6yR\n\toenp7xTzjPM6lmlwlbUo8kOfw0ndxB5JMLKHrPxGhDJoUQpqDMgi5vhtGkexXz1hdT\n\teiz/tSifwocimOm7OVTk/WAuGYLw0x7F0czP0D89MYAc06p7lmtD0blRoW14dR52U/\n\tiCNwFvSuyA1UCRIEtM4wtBCmTEiqmNetNGnytMf3akPDHxqcgTG6KtDX7/pEQhYq6Z\n\tTEJPVpf36kN7SrpF36eI65Vlc6BFILePnPlZW1oJccchVBpWLGG2ScMwJDqE0fE+gq\n\tSUqJdF3IZhL8+//j4SyXmCWhNQnvyR+9TZn6eoOiSqnptNHSvaQBIl6DbYlIW3Ns8S\n\tukHe1N3MwYcV5xEpr0AG3B+B0EW83VNLWQN/DQ/YGMSvvLFYEVQaY7HyQpHfw5lHUJ\n\tjUxbkYW3j/E2MNs1dpHY1LN2GWqn8ZX0lRIgaQsbwrIuofuLAKIJ9e09zFXVh60y1Y\n\tuREr/rprtz3nd88rkz3/r5zom58bdQUFOU2m082Av3doZsbgyWXkgP5lFIqQ3nNdb3\n\tJXmhUVxVaCfThUEn1w9KPD6cODjF2mYs7A/+s4GUCODPBZ5+UTaIJUwm14SEiyquxA\n\t50g5Ah7QEtXBd35OWWyIm8ZQ=", "Date": "Mon, 2 May 2016 06:20:14 +0200", "From": "\"Vittorio Gambaletta (VittGam)\" <openwrt@vittgam.net>", "To": "<openwrt-devel@lists.openwrt.org>", "Message-ID": "<owrt-patch-20160502-12@vittgam.net>", "Subject": "[OpenWrt-Devel] [PATCH] [CC] ramips: Backport changes to\n\t07_set_preinit_iface_ramips from trunk.", "X-BeenThere": "openwrt-devel@lists.openwrt.org", "X-Mailman-Version": "2.1.20", "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=\"utf-8\"", "Content-Transfer-Encoding": "base64", "Errors-To": "openwrt-devel-bounces@lists.openwrt.org", "Sender": "\"openwrt-devel\" <openwrt-devel-bounces@lists.openwrt.org>" }, "content": "Fix failsafe for all rt3050 routers where the LAN port is not wired\nto port 0 of the internal switch.\n\nFix failsafe for MT7620-based routers.\n\nFix ticket #18768.\n\nSigned-off-by: Vittorio Gambaletta <openwrt@vittgam.net>\n---", "diff": "--- 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@@ -6,29 +6,24 @@\n . /lib/ramips.sh\n \n ramips_set_preinit_iface() {\n-\tRT3X5X=`cat /proc/cpuinfo | egrep \"(RT3.5|RT5350|MT7628|MT7688)\"`\n+\tRT3X5X=`cat /proc/cpuinfo | egrep \"(RT3.5|RT5350|MT7628|MT7688|MT7620)\"`\n+\n \tif [ -n \"${RT3X5X}\" ]; then\n-\t\tswconfig dev rt305x set reset 1\n+\t\t# The ethernet switch driver enables VLAN by default, but\n+\t\t# failsafe uses eth0, making the device unreachable:\n+\t\t# https://dev.openwrt.org/ticket/18768\n+\t\tralink_switchdev=rt305x\n+\t\tcase \"${RT3X5X}\" in\n+\t\t*MT7620*)\n+\t\t\tralink_switchdev=mt7620\n+\t\t\t;;\n+\t\tesac\n+\t\tswconfig dev $ralink_switchdev set reset 1\n+\t\tswconfig dev $ralink_switchdev set enable_vlan 0\n+\t\tswconfig dev $ralink_switchdev set apply 1\n \tfi\n \n-\tif echo $RT3X5X | egrep -q \"(RT5350|MT7628|MT7688)\"; 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", "CC" ] }