aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/skbuff.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r--include/linux/skbuff.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index f3cf43de3c2a..c11a44ea1bf4 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -877,6 +877,24 @@ static inline struct sk_buff *skb_peek(const struct sk_buff_head *list_)
877} 877}
878 878
879/** 879/**
880 * skb_peek_next - peek skb following the given one from a queue
881 * @skb: skb to start from
882 * @list_: list to peek at
883 *
884 * Returns %NULL when the end of the list is met or a pointer to the
885 * next element. The reference count is not incremented and the
886 * reference is therefore volatile. Use with caution.
887 */
888static inline struct sk_buff *skb_peek_next(struct sk_buff *skb,
889 const struct sk_buff_head *list_)
890{
891 struct sk_buff *next = skb->next;
892 if (next == (struct sk_buff *)list_)
893 next = NULL;
894 return next;
895}
896
897/**
880 * skb_peek_tail - peek at the tail of an &sk_buff_head 898 * skb_peek_tail - peek at the tail of an &sk_buff_head
881 * @list_: list to peek at 899 * @list_: list to peek at
882 * 900 *