From owner-freebsd-net@FreeBSD.ORG Tue Jul 20 22:15:56 2010 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 031E9106564A for ; Tue, 20 Jul 2010 22:15:56 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id AB3CD8FC0A for ; Tue, 20 Jul 2010 22:15:55 +0000 (UTC) Received: by qyk30 with SMTP id 30so3146138qyk.13 for ; Tue, 20 Jul 2010 15:15:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=pY4NNof+DKR3vpNL6rHuJe9hO/rair9MxLS/6QHsGeU=; b=RDEljb74emE1shyWP117CWOWFTy9peHXjXapM1RA0tKsrPArDqS6sxz/qxaCDVmtwz RaL1O5eI/Q8yKbBcTeVnU2n6nNWpgAWtypSO8q/3YQRSWa/I9cScuWTJMvsu3vejHq8L US3jgQgWbNmbgxIEG5bENkkVbwYw5CVRycSUQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Uu206D9aL1JUGE1M5PYQ2RmjSWj7b3eKnTYML61LmDjBuo5Ykun9MGpItIcVMmSvIK lhDJ2yMTjld2M0lim6XnmRchk9m+TX9beC7V80ngGXZt9TlaDxtaupF9ZD7yDxWOQG8E Fvw5dSvGCkBOXFe7M8Gs2I5EFPayIevEPC/Wc= MIME-Version: 1.0 Received: by 10.224.37.78 with SMTP id w14mr4337398qad.75.1279664154697; Tue, 20 Jul 2010 15:15:54 -0700 (PDT) Received: by 10.229.26.15 with HTTP; Tue, 20 Jul 2010 15:15:54 -0700 (PDT) In-Reply-To: References: <201007202154.19448.pebu3op@googlemail.com> Date: Tue, 20 Jul 2010 15:15:54 -0700 Message-ID: From: Jack Vogel To: Ryan Stone Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-net@freebsd.org, pebu3op@googlemail.com Subject: Re: support for L3/L4-filters in ixgbe 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: Tue, 20 Jul 2010 22:15:56 -0000 Am working on SR-IOV support in the driver now, of course at the moment its only to provide the VF (guest) side of things. To use a controlling/host IOV driver I need support in the PCI subsystem and perhaps elsewhere. If the infrastructure is there I'd be happy to add PF support. Jack On Tue, Jul 20, 2010 at 2:55 PM, Ryan Stone wrote: > Currently there's interface for giving access to queues to userspace. > One problem that you're going to run into is that the registers for > all of the queues are mapped consecutively. There wouldn't be any way > of preventing the application from messing around with queues that > don't belong to it. Using the PCI SIG IOV mode would presumably > prevent that, but I'm not at all familiar with what would be necessary > to use IOV mode. Also if you don't enable a virtualization mode I > think that your userspace queue could get other flows, not just those > matching your filter, if those flows happen to hash to your queue. > > The 82599 supports up to 128 MAC address filters(I think that the one > gets reserved for use by the manageability interface). The RAH and > RAL registers are what you'll need to program. Note that these > registers direct packets to *pools* of queues, not directly to queues. > You'll also need to enable either VMDq mode or IOV mode to use pools > 1-63; if you don't then any traffic that passes a filter that directs > to a pool is implicitly directed to pool 0. > > I've done a lot of work on both the 82598 and the 82599 with VMDq mode > to present multiple virtual interfaces to the kernel(the code, sadly, > is not public). If you have any questions about the ixgbe driver or > the virtualization features of the 82599 I'll be happy to offer any > help I can. > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >