From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 781FA3787 for ; Tue, 29 Sep 2015 13:12:12 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP; 29 Sep 2015 04:12:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,607,1437462000"; d="scan'208";a="815370862" Received: from bricha3-mobl3.ger.corp.intel.com ([10.237.208.61]) by orsmga002.jf.intel.com with SMTP; 29 Sep 2015 04:12:10 -0700 Received: by (sSMTP sendmail emulation); Tue, 29 Sep 2015 12:12:08 +0025 Date: Tue, 29 Sep 2015 12:12:08 +0100 From: Bruce Richardson To: Pedro Sousa Message-ID: <20150929111208.GA6748@bricha3-MOBL3> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Shannon Ltd. User-Agent: Mutt/1.5.23 (2014-03-12) Cc: dev@dpdk.org Subject: Re: [dpdk-dev] newbie dpdk linux interfaces clarification 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: Tue, 29 Sep 2015 11:12:13 -0000 On Mon, Sep 28, 2015 at 09:12:36PM +0100, Pedro Sousa wrote: > Hi all, > > I'm looking at dpdk the first time, so I would like someone could clarify > me a little more about it. > > I'm using a KVM Virtualized Guest that runs CentOS 7.1. I'm using SRIOV > with bnx2x driver. When I bind my interface, as you can see below, to DPKD > Driver igb_uio, I lose the interface control in linux. > > My question is: > > - Can use it normally on the operating system and how this is done? Unfortunately not. An interface is either being used by the operating system or by userspace (DPDK). It cannot be used by both at the same time. > > - Can I use it only on my app? And if so, how do I bind an ip from this > dpdk interface to my app? An IP address implies the presence of an IP stack. The DPDK libraries work just on ethernet frames, and it's up to your app to provide an IP stack, and therefore an IP address if it needs one. Hope this clarifies things a bit for you. Regards, /Bruce > > > *# ./dpdk_nic_bind.py --status* > > *Network devices using DPDK-compatible driver* > *============================================* > *0000:00:08.0 'NetXtreme II BCM57810 10 Gigabit Ethernet Virtual Function' > drv=igb_uio unused=vfio-pci,uio_pci_generic* > > *Network devices using kernel driver* > *===================================* > *0000:00:07.0 'NetXtreme II BCM57810 10 Gigabit Ethernet Virtual Function' > if=ens7 drv=bnx2x unused=igb_uio,vfio-pci,uio_pci_generic *Active** > > > Thank you, > Pedro Sousa