Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 111784
b: refs/heads/master
c: 3d09274
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Sep 23, 2008
1 parent 72a0544 commit bcf5942
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1d4a31dde95af56edac4dee268249a29a21fa7c0
refs/heads/master: 3d09274cc9d816d62945408840a9cb76a5e7aac7
10 changes: 2 additions & 8 deletions trunk/include/net/sctp/sctp.h
Original file line number Diff line number Diff line change
Expand Up @@ -406,10 +406,7 @@ struct sctp_association *sctp_id2assoc(struct sock *sk, sctp_assoc_t id);

/* A macro to walk a list of skbs. */
#define sctp_skb_for_each(pos, head, tmp) \
for (pos = (head)->next;\
tmp = (pos)->next, pos != ((struct sk_buff *)(head));\
pos = tmp)

skb_queue_walk_safe(head, pos, tmp)

/* A helper to append an entire skb list (list) to another (head). */
static inline void sctp_skb_list_tail(struct sk_buff_head *list,
Expand All @@ -420,10 +417,7 @@ static inline void sctp_skb_list_tail(struct sk_buff_head *list,
sctp_spin_lock_irqsave(&head->lock, flags);
sctp_spin_lock(&list->lock);

list_splice((struct list_head *)list, (struct list_head *)head->prev);

head->qlen += list->qlen;
list->qlen = 0;
skb_queue_splice_tail_init(list, head);

sctp_spin_unlock(&list->lock);
sctp_spin_unlock_irqrestore(&head->lock, flags);
Expand Down

0 comments on commit bcf5942

Please sign in to comment.