get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 742,
    "url": "http://patchwork.ozlabs.org/api/patches/742/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/1221947278-16715-2-git-send-email-ilpo.jarvinen@helsinki.fi/",
    "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": "<1221947278-16715-2-git-send-email-ilpo.jarvinen@helsinki.fi>",
    "list_archive_url": null,
    "date": "2008-09-20T21:47:44",
    "name": "[PATCHv2,net-next,01/15] tcp: Partial hint clearing has again become meaningless",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "5dfe77cde1988300d00f939ba81d0b26881c83b1",
    "submitter": {
        "id": 255,
        "url": "http://patchwork.ozlabs.org/api/people/255/?format=api",
        "name": "Ilpo Järvinen",
        "email": "ilpo.jarvinen@helsinki.fi"
    },
    "delegate": {
        "id": 34,
        "url": "http://patchwork.ozlabs.org/api/users/34/?format=api",
        "username": "davem",
        "first_name": "David",
        "last_name": "Miller",
        "email": "davem@davemloft.net"
    },
    "mbox": "http://patchwork.ozlabs.org/project/netdev/patch/1221947278-16715-2-git-send-email-ilpo.jarvinen@helsinki.fi/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/742/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/742/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<netdev-owner@vger.kernel.org>",
        "X-Original-To": "patchwork-incoming@ozlabs.org",
        "Delivered-To": "patchwork-incoming@ozlabs.org",
        "Received": [
            "from vger.kernel.org (vger.kernel.org [209.132.176.167])\n\tby ozlabs.org (Postfix) with ESMTP id 79F72DDE2A\n\tfor <patchwork-incoming@ozlabs.org>;\n\tSun, 21 Sep 2008 07:48:11 +1000 (EST)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751616AbYITVsG (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tSat, 20 Sep 2008 17:48:06 -0400",
            "(majordomo@vger.kernel.org) by vger.kernel.org id S1751658AbYITVsE\n\t(ORCPT <rfc822; netdev-outgoing>); Sat, 20 Sep 2008 17:48:04 -0400",
            "from courier.cs.helsinki.fi ([128.214.9.1]:39570 \"EHLO\n\tmail.cs.helsinki.fi\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1751392AbYITVsB (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Sat, 20 Sep 2008 17:48:01 -0400",
            "from wrl-59.cs.helsinki.fi (wrl-59.cs.helsinki.fi\n\t[128.214.166.179])\n\t(AUTH: PLAIN cs-relay, TLS: TLSv1/SSLv3,256bits,AES256-SHA)\n\tby mail.cs.helsinki.fi with esmtp; Sun, 21 Sep 2008 00:47:58 +0300\n\tid 0005BED7.48D56F8E.00004E13",
            "by wrl-59.cs.helsinki.fi (Postfix, from userid 50795)\n\tid 899A7A006C; Sun, 21 Sep 2008 00:47:58 +0300 (EEST)"
        ],
        "From": "\"=?ISO-8859-1?Q?Ilpo_J=E4rvinen?=\" <ilpo.jarvinen@helsinki.fi>",
        "To": "David Miller <davem@davemloft.net>",
        "Cc": "netdev@vger.kernel.org,\n\t\"=?utf-8?q?Ilpo=20J=E4rvinen?=\" <ilpo.jarvinen@helsinki.fi>",
        "Subject": "[PATCHv2 net-next 01/15] tcp: Partial hint clearing has again\n\tbecome meaningless",
        "Date": "Sun, 21 Sep 2008 00:47:44 +0300",
        "Message-Id": "<1221947278-16715-2-git-send-email-ilpo.jarvinen@helsinki.fi>",
        "X-Mailer": "git-send-email 1.5.4.2.156.ge3c5",
        "In-Reply-To": "<1221947278-16715-1-git-send-email-ilpo.jarvinen@helsinki.fi>",
        "References": "<1221947278-16715-1-git-send-email-ilpo.jarvinen@helsinki.fi>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=ISO-8859-1",
        "Content-Transfer-Encoding": "8bit",
        "Sender": "netdev-owner@vger.kernel.org",
        "Precedence": "bulk",
        "List-ID": "<netdev.vger.kernel.org>",
        "X-Mailing-List": "netdev@vger.kernel.org"
    },
    "content": "Ie., the difference between partial and all clearing doesn't\nexists anymore since the SACK optimizations got dropped by\nan sacktag rewrite.\n\nSigned-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>\n---\n include/net/tcp.h     |    7 +------\n net/ipv4/tcp_input.c  |    5 ++---\n net/ipv4/tcp_output.c |    4 ++--\n 3 files changed, 5 insertions(+), 11 deletions(-)",
    "diff": "diff --git a/include/net/tcp.h b/include/net/tcp.h\nindex 8983386..b716763 100644\n--- a/include/net/tcp.h\n+++ b/include/net/tcp.h\n@@ -1035,7 +1035,7 @@ static inline void tcp_mib_init(struct net *net)\n }\n \n /* from STCP */\n-static inline void tcp_clear_retrans_hints_partial(struct tcp_sock *tp)\n+static inline void tcp_clear_all_retrans_hints(struct tcp_sock *tp)\n {\n \ttp->lost_skb_hint = NULL;\n \ttp->scoreboard_skb_hint = NULL;\n@@ -1043,11 +1043,6 @@ static inline void tcp_clear_retrans_hints_partial(struct tcp_sock *tp)\n \ttp->forward_skb_hint = NULL;\n }\n \n-static inline void tcp_clear_all_retrans_hints(struct tcp_sock *tp)\n-{\n-\ttcp_clear_retrans_hints_partial(tp);\n-}\n-\n /* MD5 Signature */\n struct crypto_hash;\n \ndiff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c\nindex f79a516..7306bfb 100644\n--- a/net/ipv4/tcp_input.c\n+++ b/net/ipv4/tcp_input.c\n@@ -1883,7 +1883,7 @@ static void tcp_enter_frto_loss(struct sock *sk, int allowed_segments, int flag)\n \ttp->high_seq = tp->snd_nxt;\n \tTCP_ECN_queue_cwr(tp);\n \n-\ttcp_clear_retrans_hints_partial(tp);\n+\ttcp_clear_all_retrans_hints(tp);\n }\n \n static void tcp_clear_retrans_partial(struct tcp_sock *tp)\n@@ -1934,12 +1934,11 @@ void tcp_enter_loss(struct sock *sk, int how)\n \t\t/* Push undo marker, if it was plain RTO and nothing\n \t\t * was retransmitted. */\n \t\ttp->undo_marker = tp->snd_una;\n-\t\ttcp_clear_retrans_hints_partial(tp);\n \t} else {\n \t\ttp->sacked_out = 0;\n \t\ttp->fackets_out = 0;\n-\t\ttcp_clear_all_retrans_hints(tp);\n \t}\n+\ttcp_clear_all_retrans_hints(tp);\n \n \ttcp_for_write_queue(skb, sk) {\n \t\tif (skb == tcp_send_head(sk))\ndiff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c\nindex a00532d..2242c2c 100644\n--- a/net/ipv4/tcp_output.c\n+++ b/net/ipv4/tcp_output.c\n@@ -748,7 +748,7 @@ int tcp_fragment(struct sock *sk, struct sk_buff *skb, u32 len,\n \n \tBUG_ON(len > skb->len);\n \n-\ttcp_clear_retrans_hints_partial(tp);\n+\ttcp_clear_all_retrans_hints(tp);\n \tnsize = skb_headlen(skb) - len;\n \tif (nsize < 0)\n \t\tnsize = 0;\n@@ -1821,7 +1821,7 @@ static void tcp_retrans_try_collapse(struct sock *sk, struct sk_buff *skb,\n \ttp->packets_out -= tcp_skb_pcount(next_skb);\n \n \t/* changed transmit queue under us so clear hints */\n-\ttcp_clear_retrans_hints_partial(tp);\n+\ttcp_clear_all_retrans_hints(tp);\n \n \tsk_wmem_free_skb(sk, next_skb);\n }\n",
    "prefixes": [
        "PATCHv2",
        "net-next",
        "01/15"
    ]
}