From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [119.145.14.66]) by dpdk.org (Postfix) with ESMTP id E36867E99 for ; Thu, 23 Oct 2014 07:45:59 +0200 (CEST) Received: from 172.24.2.119 (EHLO szxeml462-hub.china.huawei.com) ([172.24.2.119]) by szxrg03-dlp.huawei.com (MOS 4.4.3-GA FastPath queued) with ESMTP id AVY37803; Thu, 23 Oct 2014 13:54:19 +0800 (CST) Received: from [127.0.0.1] (10.177.19.236) by szxeml462-hub.china.huawei.com (10.82.67.205) with Microsoft SMTP Server id 14.3.158.1; Thu, 23 Oct 2014 13:54:15 +0800 Message-ID: <54489802.6030706@huawei.com> Date: Thu, 23 Oct 2014 13:54:10 +0800 From: Lilijun User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: "Dong, Binghua" , "dev@dpdk.org" References: <544877B0.4030905@huawei.com> <87AA51EDE124984B9C1CABE77679F9B2117CC675@SHSMSX103.ccr.corp.intel.com> In-Reply-To: <87AA51EDE124984B9C1CABE77679F9B2117CC675@SHSMSX103.ccr.corp.intel.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.19.236] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020207.5448980B.00CF, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2013-05-26 15:14:31, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: f2dbee08db34f116c56bdccb4bfe771f Subject: Re: [dpdk-dev] Problems when testing l2fwd with ixgbevf pmd dirver 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: Thu, 23 Oct 2014 05:46:01 -0000 On 2014/10/23 13:37, Dong, Binghua wrote: > Hi Lilijun, > > I think you need unbind the device 02:10.0 from driver ixgbevf first; In Host Linux, you also need ifconfig up the PF eth of this VF; The script dpdk_nic_bind.py will unbind ixgbevf automatically when doing dpdk_nic_bind.py -b igb_uio 02:10.0. As you said, the problem is fixed by executing ifconfig up my PF eth. Thanks very much. > Please ref my script to unbind a VF device and pass into VM, such as: > PCI_eth="0000:02:10.0" > ID_eth="ffff ffff" > PCIX_eth=" -device pci-assign,host="${PCI_eth} > echo $ID_eth > /sys/bus/pci/drivers/pci-stub/new_id > echo ${PCI_eth} > /sys/bus/pci/devices/${PCI_eth}/driver/unbind > echo ${PCI_eth} > /sys/bus/pci/drivers/pci-stub/bind > CMD=${CMD}${PCIX_eth} > > ============================================================================================== > #!/bin/bash > ID="8086 0442" > PCI="0000:83:01" > IMG="/root/test_image/sles11sp2.img" > HOST=" -vnc 172.16.200.166:1 " > PCIX=" -device pci-assign,host="${PCI} > CDROM=" -cdrom /root/QAT/driver.iso " > > > CMD="qemu-system-x86_64 -m 2048 -smp 4 -hda "${IMG}${HOST}" -enable-kvm " > #ADD CCK > if [ 1 -eq 0 ];then > echo $ID > /sys/bus/pci/drivers/pci-stub/new_id > for i in 4 5 6 7 > do > echo ${PCI}"."$i > /sys/bus/pci/devices/${PCI}"."$i/driver/unbind > echo ${PCI}"."$i > /sys/bus/pci/drivers/pci-stub/bind > CMD=${CMD}${PCIX}.$i > done > fi > > #ADD ETH > if [ 1 -eq 0 ];then > PCI_eth="0000:02:00.1" > ID_eth="8086 1521" > PCIX_eth=" -device pci-assign,host="${PCI_eth} > echo $ID_eth > /sys/bus/pci/drivers/pci-stub/new_id > echo ${PCI_eth} > /sys/bus/pci/devices/${PCI_eth}/driver/unbind > echo ${PCI_eth} > /sys/bus/pci/drivers/pci-stub/bind > CMD=${CMD}${PCIX_eth} > fi > > #ADD CDROM > #CMD=${CMD}${CDROM} > echo $CMD > > #rmmod kvm_intel > #rmmod kvm > modprobe kvm > modprobe kvm_intel > $CMD > > > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Lilijun > Sent: Thursday, October 23, 2014 11:36 AM > To: dev@dpdk.org > Subject: [dpdk-dev] Problems when testing l2fwd with ixgbevf pmd dirver > > Hi all, > > I am testing the example l2fwd of dpdk-1.7.0 using intel 82599 VF NICs. > But the VF can't be used when doing probe pmd driver with following error: > > EAL: PCI device 0000:02:10.0 on NUMA socket -1 > EAL: probe driver: 8086:10ed rte_ixgbevf_pmd > EAL: PCI memory mapped at 0x7f78b181f000 > EAL: PCI memory mapped at 0x7f78b181b000 > EAL: Error - exiting with code: 1 > Cause: Requested device 0000:02:10.0 cannot be used > > Any suggestions? > > Thanks, > Jerry > > > . >