From: Hauke Mehrtens Date: Tue, 29 May 2012 22:41:46 +0000 (+0200) Subject: comapt: add skb_queue_walk_from X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=257909c222631cd09dc07182abe7cceed0bb4064;p=~aditr%2Fcompat.git comapt: add skb_queue_walk_from Signed-off-by: Hauke Mehrtens Signed-off-by: Luis R. Rodriguez --- diff --git a/include/linux/compat-2.6.28.h b/include/linux/compat-2.6.28.h index 3980989..9b6b958 100644 --- a/include/linux/compat-2.6.28.h +++ b/include/linux/compat-2.6.28.h @@ -214,6 +214,10 @@ static inline void skb_queue_splice_tail(const struct sk_buff_head *list, } } +#define skb_queue_walk_from(queue, skb) \ + for (; skb != (struct sk_buff *)(queue); \ + skb = skb->next) + #ifndef DECLARE_TRACE #define TP_PROTO(args...) args