diff --git a/[refs] b/[refs] index c08be33c280d..d975a194c072 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: b5f61ab96dd093c5190c1540fed14f71ed821ce7 +refs/heads/master: fc7ebb212d3e51d1188948d975aa93dbb0f58b25 diff --git a/trunk/include/linux/skbuff.h b/trunk/include/linux/skbuff.h index 4a144e8d0538..3a5838da160e 100644 --- a/trunk/include/linux/skbuff.h +++ b/trunk/include/linux/skbuff.h @@ -472,6 +472,19 @@ static inline int skb_queue_empty(const struct sk_buff_head *list) return list->next == (struct sk_buff *)list; } +/** + * skb_queue_is_last - check if skb is the last entry in the queue + * @list: queue head + * @skb: buffer + * + * Returns true if @skb is the last buffer on the list. + */ +static inline bool skb_queue_is_last(const struct sk_buff_head *list, + const struct sk_buff *skb) +{ + return (skb->next == (struct sk_buff *) list); +} + /** * skb_get - reference buffer * @skb: buffer to reference