netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* gianfar: multiqueue, vlan pbits -> qos?
@ 2008-03-29 19:47 Randy Macleod
  2008-03-31 18:33 ` Waskiewicz Jr, Peter P
  2008-04-01  2:04 ` Andy Fleming
  0 siblings, 2 replies; 3+ messages in thread
From: Randy Macleod @ 2008-03-29 19:47 UTC (permalink / raw)
  To: netdev; +Cc: afleming

Hey Netdevers...

  I'm looking into extending the gianfar driver to
make use of multiple rx (and maybe tx) queues.
I've started to read the gianfar source, the Freescale docs and netdev.

Has anyone done this already?

My interest is in LAN network QOS,
primarily selective discard under overload.
I'm thinking that I'll create several vlans in my
network and do a strict vlan priority bit based servicing.

I'm also poking at the multi-queue work that has been
done and wondering how that might fit into a solution.
I haven't read the e1000 multiqueue driver yet...

Any tips, flames or code?

Thanks,
// Randy


^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: gianfar: multiqueue, vlan pbits -> qos?
  2008-03-29 19:47 gianfar: multiqueue, vlan pbits -> qos? Randy Macleod
@ 2008-03-31 18:33 ` Waskiewicz Jr, Peter P
  2008-04-01  2:04 ` Andy Fleming
  1 sibling, 0 replies; 3+ messages in thread
From: Waskiewicz Jr, Peter P @ 2008-03-31 18:33 UTC (permalink / raw)
  To: Randy Macleod, netdev; +Cc: afleming

> Has anyone done this already?

Take a look at the ixgbe driver (multiple Tx queues, multiple Rx with
RSS queues) in the net-2.6.26 tree.

> I'm also poking at the multi-queue work that has been done and
wondering how that might fit into a solution.
> I haven't read the e1000 multiqueue driver yet...

E1000 was my original target for multiqueue, but ixgbe made more sense
while the e1000/e1000e driver split was happening.  Basically the way
the multiqueue kernel side works is to use a multiqueue-aware qdisc
(prio or round-robin).  When you filter (via tc, iptables and tc), the
packet's skb->queue_mapping field is populated.  Then use that field in
your driver to select which Tx queue to use.

As for Rx, you'll need some sort of hardware support to truly filter off
the wire without heavy driver lifting.  Look at e1000, e1000e, igb, or
ixgbe, for the RSS setup for Rx.  I'm not sure what your hardware
supports, but this might be there already.

Hope this helps.  Feel free to ping me about the Tx multiqueue stuff if
you have additional questions,

Cheers,
-PJ Waskiewicz

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: gianfar: multiqueue, vlan pbits -> qos?
  2008-03-29 19:47 gianfar: multiqueue, vlan pbits -> qos? Randy Macleod
  2008-03-31 18:33 ` Waskiewicz Jr, Peter P
@ 2008-04-01  2:04 ` Andy Fleming
  1 sibling, 0 replies; 3+ messages in thread
From: Andy Fleming @ 2008-04-01  2:04 UTC (permalink / raw)
  To: Randy Macleod; +Cc: netdev


On Mar 29, 2008, at 14:47, Randy Macleod wrote:

> Hey Netdevers...
>
>  I'm looking into extending the gianfar driver to
> make use of multiple rx (and maybe tx) queues.
> I've started to read the gianfar source, the Freescale docs and  
> netdev.
>
> Has anyone done this already?
>
> My interest is in LAN network QOS,
> primarily selective discard under overload.
> I'm thinking that I'll create several vlans in my
> network and do a strict vlan priority bit based servicing.
>
> I'm also poking at the multi-queue work that has been
> done and wondering how that might fit into a solution.
> I haven't read the e1000 multiqueue driver yet...
>
> Any tips, flames or code?

Excellent!  I've been wanting to do this for some time, but haven't  
managed to get it to the front of my queue (pun retroactively  
intended).  Feel free to contact me if you have any questions.

Andy

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-04-01  2:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-29 19:47 gianfar: multiqueue, vlan pbits -> qos? Randy Macleod
2008-03-31 18:33 ` Waskiewicz Jr, Peter P
2008-04-01  2:04 ` Andy Fleming

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).