diff options
author | Gerrit Renker <gerrit@erg.abdn.ac.uk> | 2008-04-14 03:05:09 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-04-14 03:05:09 -0400 |
commit | 7de6c033367ab86f39c7723392caf73325cbf286 (patch) | |
tree | e05d84e6e02b7a0245bfa62e02835882ffdffa48 /include/linux/skbuff.h | |
parent | bf299275882624b1908521ee8074df85160e9679 (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.h | 12 |
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 | ||
700 | extern 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 | */ | ||
744 | extern void skb_append(struct sk_buff *old, struct sk_buff *newsk, struct sk_buff_head *list); | ||
745 | static 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 | */ |