Re: altq on vlan



On Thursday 26 June 2008 22:21:54 Giulio Ferro wrote:
I've tried to set altq bandwidth control on a vlan interface, but this
feature
doesn't seem to be supported by the vlan driver.

I've googled around and I've found that there should be a trivial patch
to enable this feature:
http://people.yandex-team.ru/~sem/FreeBSD/vlan+altq.patch

If this is so trivial, why hasn't it been included in the freebsd
source tree?

Anyway has anybody tried that? How does that work? Are there other
(better) patches around?

You don't need a patch at all. What you do is: Queue on the physical
interface, classify on the vlan interface. It is broken to allow ALTQ on
a virtual interface if you can do it otherwise.

in pf.conf speak:

If you have "ifconfig vlanX vlandev bge0 ..."

altq on bge0 .... queue { vlan0, vlan1, ... }
queue vlan0 ... { vlan0_foo, vlan0_bar, ... }
queue vlan0_foo
queue vlan0_bar
...

pass on vlanX ... queue vlanX_foobar

And there you go. No patch - whatsoever - required here.

--
/"\ Best regards, | mlaier@xxxxxxxxxxx
\ / Max Laier | ICQ #67774661
X http://pf4freebsd.love2party.net/ | mlaier@EFnet
/ \ ASCII Ribbon Campaign | Against HTML Mail and News
_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: is there any Hard-disk shock-protection for 2.6.18 and above?
    ... Since this feature is actually drive ... forcing an idle immediate with unload feature on a drive which doesn't ... have no idea as to how drives might react if they don't support it. ... +the block layer queue for the specified number of seconds. ...
    (Linux-Kernel)
  • Re: Lahman, how ya doing?
    ... There can be times when the queue is completely comatose. ... and code reuse was at the bottom. ... >provided with the object for the original client. ... >use the access interface provided with the service rather than the one ...
    (comp.object)
  • Re: Interfaces and Events
    ... you have the queue as the focus point. ... William Stacey [MVP] ... Instead of using delegates and events, ...
    (microsoft.public.dotnet.languages.csharp)
  • altq and IPsec - queue on incoming interface
    ... Sometimes there is really need for ALTQ on incoming traffic: ... There is problem on queue on $ext_if. ... Use route-to loopback interface ... Then apply queue on outgoing traffic from lo0. ...
    (comp.unix.bsd.openbsd.misc)
  • Re: C# equivalent of some SML code
    ... elements and the type of queue because they have members like: ... IQueue<ELT, QUEUE> as QUEUE ... Apparently you cannot put anything static in an interface. ... The fact is, your requirement that the _interface_ provide a "static value representing the polymorphic empty queue" just seems wrong to me, at least in a language like C#. ...
    (microsoft.public.dotnet.languages.csharp)