[patch 1/1] remove last_rx update from loopback device
From: <hidden>
Date: 2005-03-08 00:22:41
From: Christoph Lameter <redacted> 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 <redacted> Signed-off-by: Christoph Lameter <redacted> Signed-off-by: Shai Fultheim <redacted> Signed-off-by: Andrew Morton <redacted> --- 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 Mon Mar 7 16:21:49 2005
+++ 25-akpm/drivers/net/loopback.c Mon Mar 7 16:21:49 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;
_