mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] remove last_rx update from loopback device
@ 2005-03-07 21:26 Christoph Lameter
  0 siblings, 0 replies; only message in thread
From: Christoph Lameter @ 2005-03-07 21:26 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, shai

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>

--- linux-2.6.9.clean/drivers/net/loopback.c	2005-02-28 21:54:20.000000000 -0800
+++ linux-2.6.9.clean-loop/drivers/net/loopback.c	2005-03-03 22:59:34.068607608 -0800
@@ -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] only message in thread

only message in thread, other threads:[~2005-03-07 22:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-07 21:26 [PATCH] remove last_rx update from loopback device Christoph Lameter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®