netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: remove useless prefetch() call
@ 2009-03-20  8:32 Eric Dumazet
  2009-03-20  8:36 ` David Miller
  0 siblings, 1 reply; 7+ messages in thread
From: Eric Dumazet @ 2009-03-20  8:32 UTC (permalink / raw)
  To: David S. Miller; +Cc: Linux Netdev List

There is no point to use prefetch() call here.
start_xmit() is a function like others...

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>

diff --git a/net/core/dev.c b/net/core/dev.c
index c013031..c97e27d 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -1670,7 +1670,6 @@ int dev_hard_start_xmit(struct sk_buff *skb, struct net_device *dev,
 	const struct net_device_ops *ops = dev->netdev_ops;
 	int rc;
 
-	prefetch(&dev->netdev_ops->ndo_start_xmit);
 	if (likely(!skb->next)) {
 		if (!list_empty(&ptype_all))
 			dev_queue_xmit_nit(skb, dev);

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-03-21 20:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-20  8:32 [PATCH] net: remove useless prefetch() call Eric Dumazet
2009-03-20  8:36 ` David Miller
2009-03-20  9:44   ` [NET] net: reorder struct net_device_ops Eric Dumazet
2009-03-20 10:07     ` [PATCH] net: remove useless prefetch() call Eric Dumazet
2009-03-21 20:43       ` David Miller
2009-03-20 12:47     ` [NET] net: reorder struct net_device_ops Bjørn Mork
2009-03-20 12:53       ` Eric Dumazet

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).