[SKB]: __skb_append = __skb_queue_after

This expresses __skb_append in terms of __skb_queue_after, exploiting that

  __skb_append(old, new, list) = __skb_queue_after(list, old, new).

Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Gerrit Renker
2008-04-14 00:05:09 -07:00
committed by David S. Miller
parent bf29927588
commit 7de6c03336
4 changed files with 6 additions and 12 deletions

View File

@@ -1860,7 +1860,7 @@ void skb_append(struct sk_buff *old, struct sk_buff *newsk, struct sk_buff_head
unsigned long flags;
spin_lock_irqsave(&list->lock, flags);
__skb_append(old, newsk, list);
__skb_queue_after(list, old, newsk);
spin_unlock_irqrestore(&list->lock, flags);
}