get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 831074,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/831074/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/20171027045510.5827-4-edumazet@google.com/",
    "project": {
        "id": 7,
        "url": "http://patchwork.ozlabs.org/api/1.2/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": "<20171027045510.5827-4-edumazet@google.com>",
    "list_archive_url": null,
    "date": "2017-10-27T04:54:58",
    "name": "[v2,net-next,03/15] tcp: Namespace-ify sysctl_tcp_thin_linear_timeouts",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "25a9792f244995111701986521036945f65368a9",
    "submitter": {
        "id": 13357,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/13357/?format=api",
        "name": "Eric Dumazet",
        "email": "edumazet@google.com"
    },
    "delegate": {
        "id": 34,
        "url": "http://patchwork.ozlabs.org/api/1.2/users/34/?format=api",
        "username": "davem",
        "first_name": "David",
        "last_name": "Miller",
        "email": "davem@davemloft.net"
    },
    "mbox": "http://patchwork.ozlabs.org/project/netdev/patch/20171027045510.5827-4-edumazet@google.com/mbox/",
    "series": [
        {
            "id": 10492,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/10492/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=10492",
            "date": "2017-10-27T04:54:55",
            "name": "tcp: move 14 sysctls to namespaces",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/10492/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/831074/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/831074/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>)",
            "ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=google.com header.i=@google.com\n\theader.b=\"Om7oIAhq\"; dkim-atps=neutral"
        ],
        "Received": [
            "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3yNWln16fxz9t30\n\tfor <patchwork-incoming@ozlabs.org>;\n\tFri, 27 Oct 2017 15:55:33 +1100 (AEDT)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751943AbdJ0Eza (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tFri, 27 Oct 2017 00:55:30 -0400",
            "from mail-io0-f193.google.com ([209.85.223.193]:49958 \"EHLO\n\tmail-io0-f193.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1751719AbdJ0EzW (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Fri, 27 Oct 2017 00:55:22 -0400",
            "by mail-io0-f193.google.com with SMTP id n137so10140526iod.6\n\tfor <netdev@vger.kernel.org>; Thu, 26 Oct 2017 21:55:22 -0700 (PDT)",
            "from localhost ([2620:15c:2c4:201:c5be:583d:61a8:d070])\n\tby smtp.gmail.com with ESMTPSA id\n\tk66sm475211ita.6.2017.10.26.21.55.20\n\t(version=TLS1_2 cipher=AES128-SHA bits=128/128);\n\tThu, 26 Oct 2017 21:55:21 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=google.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=heScs9eOGlc3WAf3lK1HfM/ybtiXPQoTtHT7V75Xr3M=;\n\tb=Om7oIAhq5mTpe+MTQpKuIndyWsandyeE+7Ce+cPz/JlTgcE6NdE/ZdDehylRj05s/9\n\tchPzDMXDaYHqmHuGFCgZ26ZmfC15Y3AV7hIvcC8KcPyIB4jFcLXbtUPhDpXRZvl006sF\n\tBpNRiQEfWcF3PEKhAIowqE/A16sMRNQcbrAy347V4mI/hYLTsZJGZlvixg3vO9Lphj6O\n\tvWbNj0d9jXZ/3L6g6rjMMOwFtm9FtTenArhryvymzNJxt48kA7xA5qqjqVqDcohIGglb\n\tNOFtWF8n2KzYnMW6Vvo45Pr7EcJfKq+KHM8LwwsIwZXkHJcA1EpBc8N6bZPiPb98rYcK\n\t2dnw==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=heScs9eOGlc3WAf3lK1HfM/ybtiXPQoTtHT7V75Xr3M=;\n\tb=VqjB7lzzlfKrVFdTd/oFlownMfgXtA1av864aUiXLY9RiVuc9EA7QRTkqjrYstC0LX\n\tKszx2Abe0y5S1zJh0aIE8ePi2v6/LQP4X5qHtNn3HN0FxssXn5iiiWMs4ljOTvFsHgvF\n\tvlJpPFx1VUK/yYebzR4vY3Kxzc/Was/pA6fnc0X6bCC5syt3/4uPS7ImLpgeojrJ2haA\n\tOcVkUmXht/J2sFpodK/cLmCerYlYhGsd2biVHkeGQFep3UhM3psbw8Et4QSDMuCGlEov\n\tL7obvrLpHexeJwasS2hszbNdRfVPJ0FyH9/Grez779Ye5LGoms2EnhsoWHNBgkoyoHEb\n\ti0XA==",
        "X-Gm-Message-State": "AMCzsaWHOGnRc1yqKMy/SwRyzhGQk8nrlFkhGB8ZQw0Z+8KteFrolj5s\n\tdlaBuSSgoheHeiGwgq2BM12fnQ==",
        "X-Google-Smtp-Source": "ABhQp+TCu/uKU2d2pQTLPAzt9Yo6cTJXbdfoQcmzAKRlt5s5oloTd0Yy6nibEXlLSvjwGbxdpOFyZA==",
        "X-Received": "by 10.36.249.4 with SMTP id l4mr1643839ith.20.1509080121657;\n\tThu, 26 Oct 2017 21:55:21 -0700 (PDT)",
        "From": "Eric Dumazet <edumazet@google.com>",
        "To": "\"David S . Miller\" <davem@davemloft.net>",
        "Cc": "netdev <netdev@vger.kernel.org>, Eric Dumazet <edumazet@google.com>,\n\tEric Dumazet <eric.dumazet@gmail.com>",
        "Subject": "[PATCH v2 net-next 03/15] tcp: Namespace-ify\n\tsysctl_tcp_thin_linear_timeouts",
        "Date": "Thu, 26 Oct 2017 21:54:58 -0700",
        "Message-Id": "<20171027045510.5827-4-edumazet@google.com>",
        "X-Mailer": "git-send-email 2.15.0.rc2.357.g7e34df9404-goog",
        "In-Reply-To": "<20171027045510.5827-1-edumazet@google.com>",
        "References": "<20171027045510.5827-1-edumazet@google.com>",
        "Sender": "netdev-owner@vger.kernel.org",
        "Precedence": "bulk",
        "List-ID": "<netdev.vger.kernel.org>",
        "X-Mailing-List": "netdev@vger.kernel.org"
    },
    "content": "Note that sysctl_tcp_thin_dupack was not used, I deleted it.\n\nSigned-off-by: Eric Dumazet <edumazet@google.com>\n---\n include/net/netns/ipv4.h   |  1 +\n include/net/tcp.h          |  2 --\n net/ipv4/sysctl_net_ipv4.c | 14 +++++++-------\n net/ipv4/tcp_timer.c       |  4 +---\n 4 files changed, 9 insertions(+), 12 deletions(-)",
    "diff": "diff --git a/include/net/netns/ipv4.h b/include/net/netns/ipv4.h\nindex d6ed718075d44cfc0e60995c1e938d588ad261a8..2a9f37b39c45fe451e45025790a4e5c45ece5cbc 100644\n--- a/include/net/netns/ipv4.h\n+++ b/include/net/netns/ipv4.h\n@@ -130,6 +130,7 @@ struct netns_ipv4 {\n \tint sysctl_tcp_timestamps;\n \tint sysctl_tcp_early_retrans;\n \tint sysctl_tcp_recovery;\n+\tint sysctl_tcp_thin_linear_timeouts;\n \tstruct inet_timewait_death_row tcp_death_row;\n \tint sysctl_max_syn_backlog;\n \tint sysctl_tcp_fastopen;\ndiff --git a/include/net/tcp.h b/include/net/tcp.h\nindex c7f51534fc44c61a95225e0adc0a1200ea5c0c1c..063a7a48b7fe23092023d053e26a967389628cdc 100644\n--- a/include/net/tcp.h\n+++ b/include/net/tcp.h\n@@ -263,8 +263,6 @@ extern int sysctl_tcp_moderate_rcvbuf;\n extern int sysctl_tcp_tso_win_divisor;\n extern int sysctl_tcp_workaround_signed_windows;\n extern int sysctl_tcp_slow_start_after_idle;\n-extern int sysctl_tcp_thin_linear_timeouts;\n-extern int sysctl_tcp_thin_dupack;\n \n #define TCP_RACK_LOSS_DETECTION  0x1 /* Use RACK to detect losses */\n \ndiff --git a/net/ipv4/sysctl_net_ipv4.c b/net/ipv4/sysctl_net_ipv4.c\nindex 78019adcae875a438264ee47723670f6b54cacf9..12003214f4d80b38d5f754ddd91be8a990168ade 100644\n--- a/net/ipv4/sysctl_net_ipv4.c\n+++ b/net/ipv4/sysctl_net_ipv4.c\n@@ -620,13 +620,6 @@ static struct ctl_table ipv4_table[] = {\n \t\t.mode\t\t= 0644,\n \t\t.proc_handler   = proc_allowed_congestion_control,\n \t},\n-\t{\n-\t\t.procname       = \"tcp_thin_linear_timeouts\",\n-\t\t.data           = &sysctl_tcp_thin_linear_timeouts,\n-\t\t.maxlen         = sizeof(int),\n-\t\t.mode           = 0644,\n-\t\t.proc_handler   = proc_dointvec\n-\t},\n \t{\n \t\t.procname\t= \"tcp_min_tso_segs\",\n \t\t.data\t\t= &sysctl_tcp_min_tso_segs,\n@@ -1145,6 +1138,13 @@ static struct ctl_table ipv4_net_table[] = {\n \t\t.mode\t\t= 0644,\n \t\t.proc_handler\t= proc_dointvec,\n \t},\n+\t{\n+\t\t.procname       = \"tcp_thin_linear_timeouts\",\n+\t\t.data           = &init_net.ipv4.sysctl_tcp_thin_linear_timeouts,\n+\t\t.maxlen         = sizeof(int),\n+\t\t.mode           = 0644,\n+\t\t.proc_handler   = proc_dointvec\n+\t},\n \t{ }\n };\n \ndiff --git a/net/ipv4/tcp_timer.c b/net/ipv4/tcp_timer.c\nindex 804a8d34ce86cc17472c918c00c25de88b85184f..035a1ef1f2d8462c1d19f364b599ffac538ef688 100644\n--- a/net/ipv4/tcp_timer.c\n+++ b/net/ipv4/tcp_timer.c\n@@ -22,8 +22,6 @@\n #include <linux/gfp.h>\n #include <net/tcp.h>\n \n-int sysctl_tcp_thin_linear_timeouts __read_mostly;\n-\n /**\n  *  tcp_write_err() - close socket and save error info\n  *  @sk:  The socket the error has appeared on.\n@@ -522,7 +520,7 @@ void tcp_retransmit_timer(struct sock *sk)\n \t * linear-timeout retransmissions into a black hole\n \t */\n \tif (sk->sk_state == TCP_ESTABLISHED &&\n-\t    (tp->thin_lto || sysctl_tcp_thin_linear_timeouts) &&\n+\t    (tp->thin_lto || net->ipv4.sysctl_tcp_thin_linear_timeouts) &&\n \t    tcp_stream_is_thin(tp) &&\n \t    icsk->icsk_retransmits <= TCP_THIN_LINEAR_RETRIES) {\n \t\ticsk->icsk_backoff = 0;\n",
    "prefixes": [
        "v2",
        "net-next",
        "03/15"
    ]
}