From owner-freebsd-net@FreeBSD.ORG Fri Jun 27 08:38:05 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C7B72106567D for ; Fri, 27 Jun 2008 08:38:05 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.186]) by mx1.freebsd.org (Postfix) with ESMTP id 678308FC19 for ; Fri, 27 Jun 2008 08:38:05 +0000 (UTC) (envelope-from max@love2party.net) Received: from vampire.homelinux.org (dslb-088-066-012-241.pools.arcor-ip.net [88.66.12.241]) by mrelayeu.kundenserver.de (node=mrelayeu2) with ESMTP (Nemesis) id 0MKwtQ-1KC9T143Z0-0006RP; Fri, 27 Jun 2008 10:38:04 +0200 Received: (qmail 41736 invoked from network); 27 Jun 2008 08:35:45 -0000 Received: from myhost.laiers.local (192.168.4.151) by laiers.local with SMTP; 27 Jun 2008 08:35:45 -0000 From: Max Laier Organization: FreeBSD To: freebsd-net@freebsd.org Date: Fri, 27 Jun 2008 10:36:12 +0200 User-Agent: KMail/1.9.9 References: <4863FA62.2030703@zirakzigil.org> In-Reply-To: <4863FA62.2030703@zirakzigil.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200806271036.12195.max@love2party.net> X-Provags-ID: V01U2FsdGVkX1/aHomHN4H3ftftcAw0+io1SoQk2xtpmx5InD5 YEdjeaCo02pzxioeabeZx/c6vv1zW8trzVWk0Ci1KKkpF4HN0E 8YuQGZfWdh1PqMI/3Nrug== Cc: Giulio Ferro Subject: Re: altq on vlan X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jun 2008 08:38:05 -0000 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