From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2] tools/dpdk_nic_bind: Fix can't bind virtio-pci issue Date: Thu, 05 Mar 2015 21:31:37 +0100 Message-ID: <118801828.6UbpCNZDcL@xps13> References: <1424926669-14202-1-git-send-email-changchun.ouyang@intel.com> <1425437735-20673-1-git-send-email-changchun.ouyang@intel.com> <533710CFB86FA344BFBF2D6802E60286CEE857@SHSMSX101.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev-VfR2kkLFssw@public.gmane.org To: "Ouyang, Changchun" Return-path: In-Reply-To: <533710CFB86FA344BFBF2D6802E60286CEE857-0J0gbvR4kThpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" > > The dpdk_nic_bind script will not allow ports to be bound or unbound if none of the > > kernel modules supported by DPDK is loaded. This patch relaxes this restriction by > > checking if a DPDK module is actually requested. The example below illustrates this > > problem: > > > > In virtio test, on the guest > > 1. Bind virtio port to igb_uio driver; > > 2. Remove igb_uio module; > > 3. Bind virtio port to virtio-pci driver, it fails and reports: > > "Error - no supported modules are loaded" > > > > The script should check the to-be-bound driver flag, if it is dpdk driver(igb_uio, vfio etc), > > and the corresponding module is not loaded, then exit, otherwise, just report a warning, > > and continue to bind the non-dpdk driver(like virtio-pci) to dev. > > > > Signed-off-by: Changchun Ouyang > Acked-by: Michael Qiu Applied, thanks