aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/skbuff.h
diff options
context:
space:
mode:
authorGerrit Renker <gerrit@erg.abdn.ac.uk>2008-04-14 03:05:09 -0400
committerDavid S. Miller <davem@davemloft.net>2008-04-14 03:05:09 -0400
commit7de6c033367ab86f39c7723392caf73325cbf286 (patch)
treee05d84e6e02b7a0245bfa62e02835882ffdffa48 /include/linux/skbuff.h
parentbf299275882624b1908521ee8074df85160e9679 (diff)
[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>
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r--include/linux/skbuff.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index bb107ab675fc..83c851846829 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -697,6 +697,9 @@ static inline void __skb_queue_after(struct sk_buff_head *list,
697 __skb_insert(newsk, prev, prev->next, list); 697 __skb_insert(newsk, prev, prev->next, list);
698} 698}
699 699
700extern void skb_append(struct sk_buff *old, struct sk_buff *newsk,
701 struct sk_buff_head *list);
702
700/** 703/**
701 * __skb_queue_head - queue a buffer at the list head 704 * __skb_queue_head - queue a buffer at the list head
702 * @list: list to use 705 * @list: list to use
@@ -739,15 +742,6 @@ static inline void __skb_queue_tail(struct sk_buff_head *list,
739} 742}
740 743
741/* 744/*
742 * Place a packet after a given packet in a list.
743 */
744extern void skb_append(struct sk_buff *old, struct sk_buff *newsk, struct sk_buff_head *list);
745static inline void __skb_append(struct sk_buff *old, struct sk_buff *newsk, struct sk_buff_head *list)
746{
747 __skb_insert(newsk, old, old->next, list);
748}
749
750/*
751 * remove sk_buff from list. _Must_ be called atomically, and with 745 * remove sk_buff from list. _Must_ be called atomically, and with
752 * the list known.. 746 * the list known..
753 */ 747 */