Commit 28a7c030 authored by Stephen Hemminger's avatar Stephen Hemminger

[NET]: Add prefetch to skb_queue_walk.

parent 2c485362
...@@ -1154,9 +1154,9 @@ static inline void kunmap_skb_frag(void *vaddr) ...@@ -1154,9 +1154,9 @@ static inline void kunmap_skb_frag(void *vaddr)
} }
#define skb_queue_walk(queue, skb) \ #define skb_queue_walk(queue, skb) \
for (skb = (queue)->next; \ for (skb = (queue)->next, prefetch(skb->next); \
(skb != (struct sk_buff *)(queue)); \ (skb != (struct sk_buff *)(queue)); \
skb = skb->next) skb = skb->next, prefetch(skb->next))
extern struct sk_buff *skb_recv_datagram(struct sock *sk, unsigned flags, extern struct sk_buff *skb_recv_datagram(struct sock *sk, unsigned flags,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment