Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/814436/?format=api
{ "id": 814436, "url": "http://patchwork.ozlabs.org/api/1.2/patches/814436/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/1505519262.29839.5.camel@edumazet-glaptop3.roam.corp.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": "<1505519262.29839.5.camel@edumazet-glaptop3.roam.corp.google.com>", "list_archive_url": null, "date": "2017-09-15T23:47:42", "name": "[net] tcp: fix data delivery rate", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "92727b49b243d49e7d5b397bf7cf743297f7e17e", "submitter": { "id": 2404, "url": "http://patchwork.ozlabs.org/api/1.2/people/2404/?format=api", "name": "Eric Dumazet", "email": "eric.dumazet@gmail.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/1505519262.29839.5.camel@edumazet-glaptop3.roam.corp.google.com/mbox/", "series": [ { "id": 3401, "url": "http://patchwork.ozlabs.org/api/1.2/series/3401/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=3401", "date": "2017-09-15T23:47:42", "name": "[net] tcp: fix data delivery rate", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/3401/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/814436/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/814436/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=gmail.com header.i=@gmail.com\n\theader.b=\"edO0FCqB\"; dkim-atps=neutral" ], "Received": [ "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xvBsb64PLz9sPm\n\tfor <patchwork-incoming@ozlabs.org>;\n\tSat, 16 Sep 2017 09:47:47 +1000 (AEST)", "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751388AbdIOXrp (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tFri, 15 Sep 2017 19:47:45 -0400", "from mail-pg0-f67.google.com ([74.125.83.67]:34958 \"EHLO\n\tmail-pg0-f67.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1751197AbdIOXro (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Fri, 15 Sep 2017 19:47:44 -0400", "by mail-pg0-f67.google.com with SMTP id j16so2036649pga.2\n\tfor <netdev@vger.kernel.org>; Fri, 15 Sep 2017 16:47:44 -0700 (PDT)", "from ?IPv6:2620:15c:2c1:100:a152:36a5:194b:d6c7?\n\t([2620:15c:2c1:100:a152:36a5:194b:d6c7])\n\tby smtp.googlemail.com with ESMTPSA id\n\ts184sm3997143pfb.123.2017.09.15.16.47.42\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tFri, 15 Sep 2017 16:47:42 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=gmail.com; s=20161025;\n\th=message-id:subject:from:to:cc:date:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=gNdqU4fjfCkSb5X5a9CduNbvkfsr8iOmlDCLSYb5VSo=;\n\tb=edO0FCqBcM1tmCkdXPFN/utqEr6NhcTNSoA/wKPMdDlntH3UM/DAqGlZE76hbFWQJt\n\tYhScsc7DBqhgJYU63qEw1y6VMRTccL1hdOpFjDqKi6GBGDZc3OErH4MUErTujOzG5RYA\n\tjfHx+z3CzkjTYPCdmNKDw2NYO2p5b3MhYe6zQ2WRS3g0EWTHvN4SRnWnP1ZiLao6eEL6\n\tbaPGuR6m9dfic8+WaPEOghc8NzyWuFGeexh0edE5O+9zWeBTdDqZCSrXVp/2RXn5Rd64\n\tuAPhUaxKaQ25zR9zVvaRMmBrIP13Rdk8v//3RqndkvDz/kcKKkFz2qADnGPnXLaIqaS3\n\t32/A==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to\n\t:references:mime-version:content-transfer-encoding;\n\tbh=gNdqU4fjfCkSb5X5a9CduNbvkfsr8iOmlDCLSYb5VSo=;\n\tb=QY8rXN5li1n6wBmGF2DXEjwiFmtMitfqQ1ledu+ORsS2uXGeOywUVgQBz5UalGCT4G\n\twEzvbysjA1whWapIsO3WDBTB+g002MUUfLbOoJNM2dYi6JdKLCHTD3IVFRXL1apb1tiP\n\t8QD0qf0Vybqwz9YnOyg/FhJ9E5yctiqohApbfF2JT+Xfgihno5R6IIHM+z+EgnzGHOMw\n\tQAh3E0oegBaafHWdy4Hq8tiABWLQ6lnUn3mOFyXAbm0pvQbLevxQj/zc5ptbg+GrGEyh\n\t9OjsMG+f8eYi6kdiajkrNaR2kxJYrqTVGYVY1TPp2Hh7cK0dJnTF04Ho6mhRzItbsc2B\n\t9+Bg==", "X-Gm-Message-State": "AHPjjUh0UXSgnadkL/mq4WxTY6fiFwGw81RgBA1VwVgt4YxFmmI1t1Ak\n\tw787Q9+9NJeKksQt", "X-Google-Smtp-Source": "ADKCNb4JZ2knxOWnJwnJKo4I7lIq4o1KMy28r8yAfo0hywDbsZOvj7R2KwwSFlrqPiBENKEl++S8rg==", "X-Received": "by 10.98.57.196 with SMTP id u65mr26374951pfj.196.1505519263729; \n\tFri, 15 Sep 2017 16:47:43 -0700 (PDT)", "Message-ID": "<1505519262.29839.5.camel@edumazet-glaptop3.roam.corp.google.com>", "Subject": "[PATCH net] tcp: fix data delivery rate", "From": "Eric Dumazet <eric.dumazet@gmail.com>", "To": "David Miller <davem@davemloft.net>", "Cc": "liujian56@huawei.com, edumazet@google.com, ycheng@google.com,\n\thkchu@google.com, netdev@vger.kernel.org, weiyongjun1@huawei.com,\n\twangkefeng.wang@huawei.com", "Date": "Fri, 15 Sep 2017 16:47:42 -0700", "In-Reply-To": "<1505517411.29839.1.camel@edumazet-glaptop3.roam.corp.google.com>", "References": "<3c750ac3-8739-89ed-ce41-d4cde755171e@huawei.com>\n\t<1505313647.15310.165.camel@edumazet-glaptop3.roam.corp.google.com>\n\t<1505359839.15310.209.camel@edumazet-glaptop3.roam.corp.google.com>\n\t<20170915.143706.992734259378949259.davem@davemloft.net>\n\t<1505517411.29839.1.camel@edumazet-glaptop3.roam.corp.google.com>", "Content-Type": "text/plain; charset=\"UTF-8\"", "X-Mailer": "Evolution 3.10.4-0ubuntu2 ", "Mime-Version": "1.0", "Content-Transfer-Encoding": "7bit", "Sender": "netdev-owner@vger.kernel.org", "Precedence": "bulk", "List-ID": "<netdev.vger.kernel.org>", "X-Mailing-List": "netdev@vger.kernel.org" }, "content": "From: Eric Dumazet <edumazet@google.com>\n\nNow skb->mstamp_skb is updated later, we also need to call\ntcp_rate_skb_sent() after the update is done.\n\nFixes: 8c72c65b426b (\"tcp: update skb->skb_mstamp more carefully\")\nSigned-off-by: Eric Dumazet <edumazet@google.com>\n---\n net/ipv4/tcp_output.c | 7 +++----\n 1 file changed, 3 insertions(+), 4 deletions(-)", "diff": "diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c\nindex a85a8c2948e54b931f8cd956aa7938f7efd355bd..1c839c99114cd22bbfbd181cf702acccb3aeb61b 100644\n--- a/net/ipv4/tcp_output.c\n+++ b/net/ipv4/tcp_output.c\n@@ -1002,8 +1002,6 @@ static int tcp_transmit_skb(struct sock *sk, struct sk_buff *skb, int clone_it,\n \tif (clone_it) {\n \t\tTCP_SKB_CB(skb)->tx.in_flight = TCP_SKB_CB(skb)->end_seq\n \t\t\t- tp->snd_una;\n-\t\ttcp_rate_skb_sent(sk, skb);\n-\n \t\toskb = skb;\n \t\tif (unlikely(skb_cloned(skb)))\n \t\t\tskb = pskb_copy(skb, gfp_mask);\n@@ -1128,9 +1126,10 @@ static int tcp_transmit_skb(struct sock *sk, struct sk_buff *skb, int clone_it,\n \t\ttcp_enter_cwr(sk);\n \t\terr = net_xmit_eval(err);\n \t}\n-\tif (!err && oskb)\n+\tif (!err && oskb) {\n \t\toskb->skb_mstamp = tp->tcp_mstamp;\n-\n+\t\ttcp_rate_skb_sent(sk, oskb);\n+\t}\n \treturn err;\n }\n \n", "prefixes": [ "net" ] }