From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.tuxdriver.com (charlotte.tuxdriver.com [70.61.120.58]) by dpdk.org (Postfix) with ESMTP id 1526A7EC4 for ; Fri, 7 Nov 2014 14:52:47 +0100 (CET) Received: from hmsreliant.think-freely.org ([2001:470:8:a08:7aac:c0ff:fec2:933b] helo=localhost) by smtp.tuxdriver.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1Xmk70-0004YL-BB; Fri, 07 Nov 2014 09:02:08 -0500 Date: Fri, 7 Nov 2014 09:02:01 -0500 From: Neil Horman To: Nicolas Pernas Maradei Message-ID: <20141107140201.GE25469@hmsreliant.think-freely.org> References: <545CBCE0.2030806@emutex.com> <2085190.a5sr9ou3P7@xps13> <545CC581.40309@emutex.com> <20141107132618.GD25469@hmsreliant.think-freely.org> <545CCBA8.7030900@emutex.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <545CCBA8.7030900@emutex.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Score: -2.9 (--) X-Spam-Status: No Cc: dev@dpdk.org Subject: Re: [dpdk-dev] White listing a virtual device X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Nov 2014 13:52:47 -0000 On Fri, Nov 07, 2014 at 01:39:52PM +0000, Nicolas Pernas Maradei wrote: > > On 07/11/14 13:26, Neil Horman wrote: > >Then you create the pcap device with --vdev, and simply don't load the pmds for > >any of your physical devices (or just don't use pci-whitelist at all if you're > >doing a static build). If you do that, then the corresponding niantic driver > >won't initialize any of the hardware, you'll only get the pcap port. > > > >Neil > > Hi Neil, > > What you are saying is just another way to black list the ports I don't want > to use. I'm aware of that option (as well as using the -b option) but in our > particular case we have several systems under test with different > configurations and we want to use this virtual port only. Which seems to be > a perfect use case for white listing rather than black listing or modifying > the system configuration. > > As far as I remember this option was available in previous versions. > > Thanks, > Nico. > Ah, you want the -w option then, it still appears in the short options list in my tree. That sets up the option parsing for all pci devices to require whitelisting to be initalized. virtual devices are exempt from this process because declaring them with --vdev implicitly means you want to use them. Neil