From owner-freebsd-hackers@FreeBSD.ORG Wed Feb 6 16:55:05 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id C0B10E2C; Wed, 6 Feb 2013 16:55:05 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.59.238]) by mx1.freebsd.org (Postfix) with ESMTP id 8476094D; Wed, 6 Feb 2013 16:55:05 +0000 (UTC) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id 69ACC73027; Wed, 6 Feb 2013 17:55:03 +0100 (CET) Date: Wed, 6 Feb 2013 17:55:03 +0100 From: Luigi Rizzo To: George Neville-Neil Subject: Re: Make kernel aware of NIC queues Message-ID: <20130206165503.GA46925@onelab2.iet.unipi.it> References: <5112666F.3050904@FreeBSD.org> <20130206143714.GA45782@onelab2.iet.unipi.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-hackers@freebsd.org, "Alexander V. Chernikov" , net@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Feb 2013 16:55:05 -0000 On Wed, Feb 06, 2013 at 11:05:59AM -0500, George Neville-Neil wrote: > > On Feb 6, 2013, at 09:37 , Luigi Rizzo wrote: ... > > Linux has tried to come up with a common framework to implement > > this kind of controls using "ethtool", and we should probably > > have a look at their approach and reuse it (or at least the good ideas) > > to avoid reinventing the same thing. > > > And, though Luigi didn't say it, I will, this should integrate with netmap. i did not say it because it will work without any extra effort: - the netmap version i committed a few days ago already fetch the number of queues and the ring sizes at runtime; - ethtool (or whatever we will call it) only operates on the configuration/control plane (number of queues and slots, partitioning of packets onto input queues, etc.), whereas netmap operates only on the data plane cheers luigi