Re: [PATCH 1/13]: netdev: Allocate multiple queues for TX.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Miller
Date: Tuesday, July 15, 2008 - 2:45 am

From: Eric Dumazet <dada1@cosmosbay.com>
Date: Fri, 11 Jul 2008 23:19:39 +0200


Yes.


Nope.

I've added the ____cacheline_aligned_in_smp annotations to my
tree, thanks!

@@ -463,7 +463,7 @@ struct netdev_queue {
 	struct Qdisc		*qdisc_sleeping;
 	struct list_head	qdisc_list;
 	struct netdev_queue	*next_sched;
-};
+} ____cacheline_aligned_in_smp;
 ...
@@ -641,7 +641,9 @@ struct net_device
 	unsigned char		broadcast[MAX_ADDR_LEN];	/* hw bcast add	*/
 
 	struct netdev_queue	rx_queue;
-	struct netdev_queue	tx_queue ____cacheline_aligned_in_smp;
+
+	struct netdev_queue	*_tx ____cacheline_aligned_in_smp;
+	unsigned int		num_tx_queues;
 	unsigned long		tx_queue_len;	/* Max frames per queue allowed */
 ...
--
To unsubscribe from this list: send the line "unsubscribe netdev" 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:
[PATCH 1/13]: netdev: Allocate multiple queues for TX., David Miller, (Thu Jul 10, 3:56 am)
Re: [PATCH 1/13]: netdev: Allocate multiple queues for TX., David Miller, (Tue Jul 15, 2:45 am)
Re: [PATCH 1/13]: netdev: Allocate multiple queues for TX., Jarek Poplawski, (Wed Jul 16, 12:01 am)
Re: [PATCH 1/13]: netdev: Allocate multiple queues for TX., Jarek Poplawski, (Wed Jul 16, 1:00 am)