mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Christoph Lameter <christoph@graphe.net>
To: akpm@osdl.org
Cc: linux-kernel@vger.kernel.org, shai@scalex86.org
Subject: [PATCH] remove last_rx update from loopback device
Date: Mon, 7 Mar 2005 13:26:35 -0800 (PST)	[thread overview]
Message-ID: <Pine.LNX.4.58.0503071324260.8946@server.graphe.net> (raw)

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;

                 reply	other threads:[~2005-03-07 22:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.58.0503071324260.8946@server.graphe.net \
    --to=christoph@graphe.net \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=shai@scalex86.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®