From: Stephen Hemminger <shemminger@osdl.org>
To: "David S. Miller" <davem@redhat.com>
Cc: netdev@oss.sgi.com
Subject: [PATCH] add prefetch to skb_queue_walk
Date: Thu, 19 Jun 2003 12:13:25 -0700 [thread overview]
Message-ID: <20030619121325.0a2059ee.shemminger@osdl.org> (raw)
skb_queue_walk macro can use prefetch's (like list_for_each)
--- include/linux/skbuff.h.orig 2003-06-19 12:08:17.000000000 -0700
+++ include/linux/skbuff.h 2003-06-19 12:08:43.000000000 -0700
@@ -1149,9 +1149,9 @@
}
#define skb_queue_walk(queue, skb) \
- for (skb = (queue)->next; \
+ for (skb = (queue)->next, prefetch(skb->next); \
(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,
next reply other threads:[~2003-06-19 19:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-19 19:13 Stephen Hemminger [this message]
2003-06-19 19:34 ` [PATCH] add prefetch to skb_queue_walk David S. Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030619121325.0a2059ee.shemminger@osdl.org \
--to=shemminger@osdl.org \
--cc=davem@redhat.com \
--cc=netdev@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).