Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1024/?format=api
{ "id": 1024, "url": "http://patchwork.ozlabs.org/api/patches/1024/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/20080923.003612.02645173.davem@davemloft.net/", "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": "<20080923.003612.02645173.davem@davemloft.net>", "list_archive_url": null, "date": "2008-09-23T07:36:12", "name": ": tcp: Use skb_queue_is_last() instead of by-hand version.", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "54852d80ad2bca5e42cd38369f4ce3b45c8ec9a3", "submitter": { "id": 15, "url": "http://patchwork.ozlabs.org/api/people/15/?format=api", "name": "David Miller", "email": "davem@davemloft.net" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/netdev/patch/20080923.003612.02645173.davem@davemloft.net/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/1024/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/1024/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 DC27FDDEFB\n\tfor <patchwork-incoming@ozlabs.org>;\n\tTue, 23 Sep 2008 17:36:43 +1000 (EST)", "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1753157AbYIWHg0 (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tTue, 23 Sep 2008 03:36:26 -0400", "(majordomo@vger.kernel.org) by vger.kernel.org id S1754221AbYIWHgY\n\t(ORCPT <rfc822; netdev-outgoing>); Tue, 23 Sep 2008 03:36:24 -0400", "from 74-93-104-97-Washington.hfc.comcastbusiness.net\n\t([74.93.104.97]:35501\n\t\"EHLO sunset.davemloft.net\" rhost-flags-OK-FAIL-OK-OK)\n\tby vger.kernel.org with ESMTP id S1754187AbYIWHgX (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Tue, 23 Sep 2008 03:36:23 -0400", "from localhost (localhost [127.0.0.1])\n\tby sunset.davemloft.net (Postfix) with ESMTP id 364F8C8C181\n\tfor <netdev@vger.kernel.org>; Tue, 23 Sep 2008 00:36:12 -0700 (PDT)" ], "Date": "Tue, 23 Sep 2008 00:36:12 -0700 (PDT)", "Message-Id": "<20080923.003612.02645173.davem@davemloft.net>", "To": "netdev@vger.kernel.org", "Subject": "[PATCH]: tcp: Use skb_queue_is_last() instead of by-hand version.", "From": "David Miller <davem@davemloft.net>", "X-Mailer": "Mew version 6.1 on Emacs 22.1 / Mule 5.0 (SAKAKI)", "Mime-Version": "1.0", "Content-Type": "Text/Plain; charset=us-ascii", "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": "tcp: Use skb_queue_is_last() instead of by-hand version.\n\nSigned-off-by: David S. Miller <davem@davemloft.net>\n---\n include/net/tcp.h | 6 +++---\n 1 files changed, 3 insertions(+), 3 deletions(-)", "diff": "diff --git a/include/net/tcp.h b/include/net/tcp.h\nindex f857c3e..5c5327e 100644\n--- a/include/net/tcp.h\n+++ b/include/net/tcp.h\n@@ -1284,10 +1284,10 @@ static inline void tcp_unlink_write_queue(struct sk_buff *skb, struct sock *sk)\n \t__skb_unlink(skb, &sk->sk_write_queue);\n }\n \n-static inline int tcp_skb_is_last(const struct sock *sk,\n-\t\t\t\t const struct sk_buff *skb)\n+static inline bool tcp_skb_is_last(const struct sock *sk,\n+\t\t\t\t const struct sk_buff *skb)\n {\n-\treturn skb->next == (struct sk_buff *)&sk->sk_write_queue;\n+\treturn skb_queue_is_last(&sk->sk_write_queue, skb);\n }\n \n static inline int tcp_write_queue_empty(struct sock *sk)\n", "prefixes": [] }