Date: Fri, 27 Jun 2008 10:36:12 +0200 From: Max Laier <max@love2party.net> To: freebsd-net@freebsd.org Cc: Giulio Ferro <auryn@zirakzigil.org> Subject: Re: altq on vlan Message-ID: <200806271036.12195.max@love2party.net> In-Reply-To: <4863FA62.2030703@zirakzigil.org> References: <4863FA62.2030703@zirakzigil.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200806271036.12195.max>