Re: [PATCH 1/2] NET: Multiple queue network device support

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Thomas Graf <tgraf@...>
Cc: Kok, Auke <auke-jan.h.kok@...>, David Miller <davem@...>, Garzik, Jeff <jgarzik@...>, <netdev@...>, <linux-kernel@...>, Peter Waskiewicz Jr <peter.p.waskiewicz.jr@...>, Brandeburg, Jesse <jesse.brandeburg@...>, Kok, Auke <auke@...>, Ronciak, John <john.ronciak@...>
Date: Monday, March 12, 2007 - 4:58 am

On 09-03-2007 14:40, Thomas Graf wrote:

I'm not sure Dave Miller thought about this place, when he proposed
to save the mapping, but I think this could be not enough. This place
is racy: ->map_queue() is called 2 times and with some filters (and
policies/actions) results could differ. And of course the subqueue
lock doesn't prevent any filter from a config change in the meantime.

After second reading of this patch I have doubts it's the proper way
to solve the problem: there are many subqueues but we need a top queue
(prio here) to mange them, anyway. So, why not to build this
functionality directly into the queue? There is no difference for a
device if skbs are going from the subqueue or a class, it is only
interested in the mapping result and a possibility to stop and start
a subqueue and to query its status. All this could be done by adding
the callbacks directly to any classful scheduler or, if not enough,
to write some specialized qdisc based on prio. The possibility to lock
only a subqueue instead of a queue could be analized independently -
current proposal doesn't solve this anyway.

Regards,
Jarek P.
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 1/2] NET: Multiple queue network device support, Jarek Poplawski, (Mon Mar 12, 4:58 am)
RE: [PATCH 1/2] NET: Multiple queue network device support, Waskiewicz Jr, Peter P, (Mon Mar 12, 4:21 pm)
RE: [PATCH 1/2] NET: Multiple queue network device support, Waskiewicz Jr, Peter P, (Fri Mar 9, 3:25 pm)
RE: [PATCH 1/2] NET: Multiple queue network device support, Waskiewicz Jr, Peter P, (Fri Mar 9, 7:27 pm)
RE: [PATCH 1/2] NET: Multiple queue network device support, Waskiewicz Jr, Peter P, (Sat Mar 10, 4:37 pm)
RE: [PATCH 1/2] NET: Multiple queue network device support, Waskiewicz Jr, Peter P, (Wed Mar 7, 6:18 pm)
Re: [PATCH 1/2] NET: Multiple queue network device support, Jarek Poplawski, (Fri Mar 9, 3:26 am)
RE: [PATCH 1/2] NET: Multiple queue network device support, Waskiewicz Jr, Peter P, (Tue Feb 27, 3:38 pm)