netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch 05/13] remove last_rx update from loopback device
@ 2005-03-15 22:22 akpm
  2005-03-15 22:41 ` Jeff Garzik
  0 siblings, 1 reply; 8+ messages in thread
From: akpm @ 2005-03-15 22:22 UTC (permalink / raw)
  To: davem; +Cc: jgarzik, netdev, akpm, christoph, nirajk, christoph, Shai


From: Christoph Lameter <christoph@graphe.net>

The last_rx field in the loopback driver is updated on every xmit but is
not used otherwise.  Accesses to ->last_rx cause unecessary traffic on the
interlink for NUMA systems which limits the performance of the loopback
device.

The comment given at include/linux/netdevice.h says that last_rx may be
used for future network-power-down code, which is likely not relevant for
the loopback device (please let me know if it is otherwise ..).

Signed-off-by: Niraj Kumar <nirajk@calsoftinc.com>
Signed-off-by: Christoph Lameter <christoph@lameter.com>
Signed-off-by: Shai Fultheim <Shai@Scalex86.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
---

 25-akpm/drivers/net/loopback.c |    2 --
 1 files changed, 2 deletions(-)

diff -puN drivers/net/loopback.c~remove-last_rx-update-from-loopback-device drivers/net/loopback.c
--- 25/drivers/net/loopback.c~remove-last_rx-update-from-loopback-device	Tue Mar 15 14:19:53 2005
+++ 25-akpm/drivers/net/loopback.c	Tue Mar 15 14:19:53 2005
@@ -144,8 +144,6 @@ static int loopback_xmit(struct sk_buff 
 		return 0;
 	}
 
-	dev->last_rx = jiffies;
-
 	lb_stats = &per_cpu(loopback_stats, get_cpu());
 	lb_stats->rx_bytes += skb->len;
 	lb_stats->tx_bytes += skb->len;
_

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

end of thread, other threads:[~2005-03-16  1:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-15 22:22 [patch 05/13] remove last_rx update from loopback device akpm
2005-03-15 22:41 ` Jeff Garzik
2005-03-15 23:08   ` Andrew Morton
2005-03-16  0:53     ` David S. Miller
2005-03-16  1:04       ` Rick Jones
2005-03-16  1:17         ` David S. Miller
2005-03-16  1:23         ` Nivedita Singhvi
2005-03-16  1:49           ` Rick Jones

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