[NET]: Improve cache line coherency of ingress qdisc

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git-commits-head@...>
Date: Friday, February 15, 2008 - 6:01 pm

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=d5bd01...
Commit:     d5bd0146f0d61f7dc9904a7cc6d5cb9832034de4
Parent:     d8b2a4d21e0b37b9669b202867bfef19f68f786a
Author:     Neil Turton <nturton@solarflare.com>
AuthorDate: Tue Feb 12 23:13:48 2008 -0800
Committer:  David S. Miller <davem@davemloft.net>
CommitDate: Tue Feb 12 23:13:48 2008 -0800

    [NET]: Improve cache line coherency of ingress qdisc
    
    Move the ingress qdisc members of struct net_device from the transmit
    cache line to the receive cache line to avoid cache line ping-pong.
    These members are only used on the receive path.
    
    Signed-off-by: Neil Turton <nturton@solarflare.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
---
 include/linux/netdevice.h |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 047d432..4ffa49d 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -604,6 +604,10 @@ struct net_device
 
 	unsigned char		broadcast[MAX_ADDR_LEN];	/* hw bcast add	*/
 
+	/* ingress path synchronizer */
+	spinlock_t		ingress_lock;
+	struct Qdisc		*qdisc_ingress;
+
 /*
  * Cache line mostly used on queue transmit path (qdisc)
  */
@@ -617,10 +621,6 @@ struct net_device
 	/* Partially transmitted GSO packet. */
 	struct sk_buff		*gso_skb;
 
-	/* ingress path synchronizer */
-	spinlock_t		ingress_lock;
-	struct Qdisc		*qdisc_ingress;
-
 /*
  * One part is mostly used on xmit path (device)
  */
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[NET]: Improve cache line coherency of ingress qdisc, Linux Kernel Mailing List..., (Fri Feb 15, 6:01 pm)