Skip to contentSkip to conversation

remove last_rx update from loopback device

PATCH New Christoph Lameter 1 participant 1 message Mar 7, 2005 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove last_rx update from loopback device

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

drivers/net/loopback.c +0 -2
@@ -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;