Message ID | 20220602041028.95124-2-xiyou.wangcong@gmail.com (mailing list archive) |
---|---|
State | RFC |
Headers | show |
Series | net_sched: introduce eBPF based Qdisc | expand |
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index da96f0d3e753..857fd813c1bc 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h @@ -3929,6 +3929,11 @@ static inline int __skb_grow_rcsum(struct sk_buff *skb, unsigned int len) for (skb = skb_rb_first(root); skb != NULL; \ skb = skb_rb_next(skb)) +#define skb_rbtree_walk_safe(skb, tmp, root) \ + for (skb = skb_rb_first(root); \ + tmp = skb ? skb_rb_next(skb) : NULL, (skb != NULL); \ + skb = tmp) + #define skb_rbtree_walk_from(skb) \ for (; skb != NULL; \ skb = skb_rb_next(skb))