From owner-freebsd-net@FreeBSD.ORG Thu Apr 4 13:41:37 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id A6A812F9 for ; Thu, 4 Apr 2013 13:41:37 +0000 (UTC) (envelope-from barney_cordoba@yahoo.com) Received: from nm11-vm2.bullet.mail.ne1.yahoo.com (nm11-vm2.bullet.mail.ne1.yahoo.com [98.138.90.159]) by mx1.freebsd.org (Postfix) with ESMTP id 173B7216 for ; Thu, 4 Apr 2013 13:41:36 +0000 (UTC) Received: from [98.138.226.176] by nm11.bullet.mail.ne1.yahoo.com with NNFMP; 04 Apr 2013 13:39:14 -0000 Received: from [98.138.89.196] by tm11.bullet.mail.ne1.yahoo.com with NNFMP; 04 Apr 2013 13:39:14 -0000 Received: from [127.0.0.1] by omp1054.mail.ne1.yahoo.com with NNFMP; 04 Apr 2013 13:39:14 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 617566.31629.bm@omp1054.mail.ne1.yahoo.com Received: (qmail 61347 invoked by uid 60001); 4 Apr 2013 13:39:14 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1365082754; bh=I6Zs/WujGx7BqMNxTw84g+lMob65cQXOysd9JbuPhGM=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=WGFOnyq6C5yot59iSB4LHVDt7gZJgKYZY5SmATpRiPqNyfLM401fNJMzm1cTGgbvNUnYh76u8iWKokYdeOlzESdwdS+qR5ab06IkkGJUd1R152g4hmPfam6DtJVKZeLA/e6Yen2xi4tqan2Ww4lSUE8q0IwMaWqBNY8lH2dZJl0= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=FnG45bUlLihMBFOflWaC3C9BDNE+UzLG94GC+UI4CBCKz2OZqay4kVGBLI33fnrzyVFUv5FkgS8l4yOBdxfKDtaFdtjZrZF+8DFLwhdRJydVmuOvkb5aYkjxv2BNkTYnvrbgLl07AFV020wXttpzPhYf7uf9fm+WQPrxaMb6gz8=; X-YMail-OSG: N2H5J0gVM1nr6vKncrBKCZm5o1YGet3oRnMSzVddYkO8Tez EoeOSTX4v.DjsERm2menC1Cu4Z5TGECEfUMNKdO49FlVh6GPU4xQ.75MRvqq Y3CeftCgWKurfB0p28W3cl2MsqDqNXGkPxQfEJjNIGR7_mkOz3YG7xjyi9dy PdXHn0m7.o9B5IhXjGf.5lXU7qTuOO1wHNqoMnaf7sqjAKS_AlLITYtd0cp1 uQyuOgZ.OaDQOPgZBdG4Z9oM0Trx7obRU5x8IVRQdLI8_WsLYoVZEpLW.Apf zYjxplbkGUuFsMOemy2vIxPkiHXqVSc6QmDYdFGC4YVSVesqM9vErdXxOvgM CQflH63n6LojVhsO58l0mEmXlg5lGsm1VxDo1cYppQMLDs3mdpUohBxVzUgi piu2MTGRFWhSPLlIsWGV2Wx8NewPm1_UhpcsqJRaE15t11ezNH.lipFKmHxV L87tmLEhZcEBHwRPHAyXSnJrtSuYCvPOi8VP0N7lKKBEJAWFynF7nBfS6Qhu 7AWF.72GQJYikV8j82XMsJDjf4xkWkg-- Received: from [98.203.118.124] by web121606.mail.ne1.yahoo.com via HTTP; Thu, 04 Apr 2013 06:39:10 PDT X-Rocket-MIMEInfo: 002.001, CgotLS0gT24gVHVlLCA0LzIvMTMsIEFkcmlhbiBDaGFkZCA8YWRyaWFuQGZyZWVic2Qub3JnPiB3cm90ZToKCj4gRnJvbTogQWRyaWFuIENoYWRkIDxhZHJpYW5AZnJlZWJzZC5vcmc.Cj4gU3ViamVjdDogUmU6IGlnYiBhbmQgQUxUUSBpbiA5LjEtcmMzCj4gVG86ICJOaWNrIFJvZ2VycyIgPG5jcm9nZXJzQGdtYWlsLmNvbT4KPiBDYzogIkthcmltIEZvZGlsLUxlbWVsaW4iIDxmb2RpbGxlbWxpbmthcmltQGdtYWlsLmNvbT4sICJmcmVlYnNkLW5ldEBmcmVlYnNkLm9yZyIgPGZyZWVic2QtbmV0QGZyZWVic2QBMAEBAQE- X-Mailer: YahooMailClassic/15.1.7 YahooMailWebService/0.8.140.532 Message-ID: <1365082750.44226.YahooMailClassic@web121606.mail.ne1.yahoo.com> Date: Thu, 4 Apr 2013 06:39:10 -0700 (PDT) From: Barney Cordoba Subject: Re: igb and ALTQ in 9.1-rc3 To: Nick Rogers , Adrian Chadd In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Karim Fodil-Lemelin , "freebsd-net@freebsd.org" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Apr 2013 13:41:37 -0000 --- On Tue, 4/2/13, Adrian Chadd wrote: > From: Adrian Chadd > Subject: Re: igb and ALTQ in 9.1-rc3 > To: "Nick Rogers" > Cc: "Karim Fodil-Lemelin" , "freebsd-net@freebsd.org" > Date: Tuesday, April 2, 2013, 6:39 PM > Yes: > > * you need to add it to conf/options - see if there's an > opt_igb.h to > add it to, otherwise you'll need to add one; > * Make sure the driver code includes opt_igb.h; > * Then make sure you make kernel modules using either make > buildkernel > KERNCONF=X, or you set the environment appropriately so the > build > scripts can find your kernel build directory (where it > populates all > the opt_xxx.h includes) and it'll have this module set. > > Hopefully Jack will do this. > > Yes, we need a better queue management discipline API in the > kernel. > Jacks' just falling afoul of the fact we don't have one. > It's not his > fault. That's not true at all. For a bridged system running a firewall or doing filtering, virtually all of the proper design can be done in the ethernet driver. Or course if you have 2 different drivers then you need a different scheme, but if the input and the output is the same driver you can manage virtually all of the contention. You can't just randomly do things; you have to design to minimize lock contention. Drivers that seem to work fine at low volume blow up quickly as contention increases. BC