From owner-freebsd-net@FreeBSD.ORG Tue May 27 03:00:01 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A590D4F8 for ; Tue, 27 May 2014 03:00:01 +0000 (UTC) Received: from mail-ve0-x234.google.com (mail-ve0-x234.google.com [IPv6:2607:f8b0:400c:c01::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 637BF2467 for ; Tue, 27 May 2014 03:00:01 +0000 (UTC) Received: by mail-ve0-f180.google.com with SMTP id db12so9940550veb.39 for ; Mon, 26 May 2014 20:00:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=cv25YWAsFvESElHMNGub3gzjAayqBZFUay2DU46ZzvA=; b=TO/Cr3UHAmJrm3SH8nieoXmYAbkLtNkx7mBLJ/GzICF4ZN+26+fZLqsxIE/HYGkacO lF9s00fZiV+V9epeEOEP704gOKZlZM+ZFL8TJdSZePcwCpNZqMxIMokOJt6hwJix7ceV RDuI/W5hNpMNiqe7G0TRVTj8HraxPJ4NGts2zEc3QYRchMGhpfiACG1BM3q2usHdoWZ/ 3OllG8KfnyxBlB1q3NJWTbeB7CEMFZepb98CQu2iZ/A4geg5sCl7NeploLCnzM2pWUps 1uNapEL2lsXwAQDrSlHbJWGwgQ9o/A6bTRTSuFFlTRqPMZTamfN/RvcnS+G/NEkZ9wZw ArZg== MIME-Version: 1.0 X-Received: by 10.220.174.137 with SMTP id t9mr5125544vcz.12.1401159600395; Mon, 26 May 2014 20:00:00 -0700 (PDT) Received: by 10.221.5.74 with HTTP; Mon, 26 May 2014 20:00:00 -0700 (PDT) In-Reply-To: <20140526170643.GE40172@onelab2.iet.unipi.it> References: <20140526170643.GE40172@onelab2.iet.unipi.it> Date: Mon, 26 May 2014 20:00:00 -0700 Message-ID: Subject: Re: Regarding Netmap in VM From: Jack Vogel To: Luigi Rizzo Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.18 Cc: FreeBSD Net , Prashant Upadhyaya X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18 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, 27 May 2014 03:00:01 -0000 I don't think we've ever tried this at Intel either. I had meant to check the ixv code to see if it had your code in it Luigi but got distracted, if it doesn't then it obviously can't work for the case of a VM. I think with the new 40G VF driver, when that gets committed it might be desirable to have netmap support. And, although we don't have SRIOV yet... that should be changing before long :) Jack On Mon, May 26, 2014 at 10:06 AM, Luigi Rizzo wrote: > On Thu, May 22, 2014 at 09:28:45AM +0530, Prashant Upadhyaya wrote: > > Hi, > > > > Suppose I am on x86 with Intel 82599 NIC. > > Now I spawn a VM (running FreeBSD as guest OS with Netmap support) > > For better I/O performance, I have two main choices -- > > > > 1. Pass the 82599 NIC as a PCI passthrough device into the VM > > 2. Use SRIOV VF of 82599 into the VM > > > > Question is, will Netmap be able to utilize both the above environments > > when I run the userspace application in the guest OS in the VM, or will > > there be any issues. > > if i remember well we do not have sriov vf support yet in freebsd > so you should follow the pci-passthrough approach. > > It should probably work, i am not 100% sure who is in charge of > programming the IOMMU for the guest os when accessing a device > through pci passthrough. If this part is missing, the symptoms > you should see is that packets will have all bytes set to 0x00 > > cheers > luigi > _______________________________________________ > 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" >