Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1013/?format=api
{ "id": 1013, "url": "http://patchwork.ozlabs.org/api/patches/1013/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/20080922.221825.245591874.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": "<20080922.221825.245591874.davem@davemloft.net>", "list_archive_url": null, "date": "2008-09-23T05:18:25", "name": ": Make SCTP use SKB queue interfaces.", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "353226eabbdae21cdb497788666eb35997a95255", "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/20080922.221825.245591874.davem@davemloft.net/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/1013/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/1013/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 4CB08DDEFF\n\tfor <patchwork-incoming@ozlabs.org>;\n\tTue, 23 Sep 2008 15:18:42 +1000 (EST)", "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751472AbYIWFSh (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tTue, 23 Sep 2008 01:18:37 -0400", "(majordomo@vger.kernel.org) by vger.kernel.org id S1751465AbYIWFSh\n\t(ORCPT <rfc822; netdev-outgoing>); Tue, 23 Sep 2008 01:18:37 -0400", "from 74-93-104-97-Washington.hfc.comcastbusiness.net\n\t([74.93.104.97]:56855\n\t\"EHLO sunset.davemloft.net\" rhost-flags-OK-FAIL-OK-OK)\n\tby vger.kernel.org with ESMTP id S1751302AbYIWFSh (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Tue, 23 Sep 2008 01:18:37 -0400", "from localhost (localhost [127.0.0.1])\n\tby sunset.davemloft.net (Postfix) with ESMTP id 66977C8C181\n\tfor <netdev@vger.kernel.org>; Mon, 22 Sep 2008 22:18:25 -0700 (PDT)" ], "Date": "Mon, 22 Sep 2008 22:18:25 -0700 (PDT)", "Message-Id": "<20080922.221825.245591874.davem@davemloft.net>", "To": "netdev@vger.kernel.org", "Subject": "[PATCH]: Make SCTP use SKB queue interfaces.", "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": "Instead of pretending that SKB lists are already using\nstruct list_head :-/\n\nsctp: Use skb_queue_walk_safe() and skb_queue_split_tail_init().\n\nSigned-off-by: David S. Miller <davem@davemloft.net>\n---\n include/net/sctp/sctp.h | 10 ++--------\n 1 files changed, 2 insertions(+), 8 deletions(-)", "diff": "diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h\nindex 17b932b..703305d 100644\n--- a/include/net/sctp/sctp.h\n+++ b/include/net/sctp/sctp.h\n@@ -406,10 +406,7 @@ struct sctp_association *sctp_id2assoc(struct sock *sk, sctp_assoc_t id);\n \n /* A macro to walk a list of skbs. */\n #define sctp_skb_for_each(pos, head, tmp) \\\n-for (pos = (head)->next;\\\n- tmp = (pos)->next, pos != ((struct sk_buff *)(head));\\\n- pos = tmp)\n-\n+\tskb_queue_walk_safe(head, pos, tmp)\n \n /* A helper to append an entire skb list (list) to another (head). */\n static inline void sctp_skb_list_tail(struct sk_buff_head *list,\n@@ -420,10 +417,7 @@ static inline void sctp_skb_list_tail(struct sk_buff_head *list,\n \tsctp_spin_lock_irqsave(&head->lock, flags);\n \tsctp_spin_lock(&list->lock);\n \n-\tlist_splice((struct list_head *)list, (struct list_head *)head->prev);\n-\n-\thead->qlen += list->qlen;\n-\tlist->qlen = 0;\n+\tskb_queue_splice_tail_init(list, head);\n \n \tsctp_spin_unlock(&list->lock);\n \tsctp_spin_unlock_irqrestore(&head->lock, flags);\n", "prefixes": [] }