From owner-freebsd-net@FreeBSD.ORG Fri Jun 27 16:58: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 61C431065672 for ; Fri, 27 Jun 2008 16:58:05 +0000 (UTC) (envelope-from biancalana@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.233]) by mx1.freebsd.org (Postfix) with ESMTP id 3A4DE8FC18 for ; Fri, 27 Jun 2008 16:58:05 +0000 (UTC) (envelope-from biancalana@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so636203rvf.43 for ; Fri, 27 Jun 2008 09:57:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=BATOBJHsp9Nr6DxMePA8qtiNRC820XCc2EiSm0Q4kUU=; b=kp4SN6fEDGYTA+MPTgh2zfJFLjhRxeCEFkr4OmbkIn9fH8IhxldtGnF1amIo3vmPpv vgoHuHlruj/Eoijxu97wWW8OidWPVwOlltO3HoDbKfSh8nqByD/qi76lxt+liMJAkCAq Un8dSlBapNrkD1KkSZejhTyiaorcB+809w0n0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=ETHQyKrrAFM6wRaUkuqF0AcOv++UqnLmMHTm6uGXpxOWAaTDs+IXsrlK1si71qOPoX 21OizmpUH4GjatdTg+9ZpspzjpnG4EMweVVEb8meTi0qHHqw8BnaX6JB5Qtc2UFIQu9e 14oJsINUnegh4xLEfJwwPnwgt78RRbYiAzN2g= Received: by 10.141.29.18 with SMTP id g18mr924518rvj.162.1214585879605; Fri, 27 Jun 2008 09:57:59 -0700 (PDT) Received: by 10.141.171.21 with HTTP; Fri, 27 Jun 2008 09:57:59 -0700 (PDT) Message-ID: <8e10486b0806270957y439087a5ia0d4689ad2f24ce8@mail.gmail.com> Date: Fri, 27 Jun 2008 13:57:59 -0300 From: "Alexandre Biancalana" To: "Max Laier" In-Reply-To: <200806271036.12195.max@love2party.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4863FA62.2030703@zirakzigil.org> <200806271036.12195.max@love2party.net> Cc: freebsd-net@freebsd.org, 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 16:58:05 -0000 On 6/27/08, Max Laier wrote: > > > 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. But the patch simplify the cases where you need one queue per vlan.