From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from COL004-OMC4S9.hotmail.com (col004-omc4s9.hotmail.com [65.55.34.211]) by dpdk.org (Postfix) with ESMTP id BB77F5907 for ; Thu, 6 Nov 2014 10:49:03 +0100 (CET) Received: from COL402-EAS97 ([65.55.34.199]) by COL004-OMC4S9.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.22751); Thu, 6 Nov 2014 01:58:29 -0800 X-TMN: [U2w2LS+5E+ywQLNr1fXXvqKnz18FZExa] X-Originating-Email: [jinronggong@hotmail.com] Message-ID: From: GongJinrong To: "'Matthew Hall'" References: <20141106082100.GA16643@mhcomputing.net> In-Reply-To: <20141106082100.GA16643@mhcomputing.net> Date: Thu, 6 Nov 2014 17:58:21 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 15.0 Thread-Index: AQABAgMEPdKr2SJgXRvGiCGBuOSHKwAcd6WFn/BoVQA= Content-Language: zh-cn X-OriginalArrivalTime: 06 Nov 2014 09:58:29.0151 (UTC) FILETIME=[371D1AF0:01CFF9A8] Cc: dev@dpdk.org Subject: Re: [dpdk-dev] Could virtio-net-pmd co-exist with virtio-net.ko? 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, 06 Nov 2014 09:49:04 -0000 Hi, Matthew, Thanks a lot, I will try it. -----Original Message----- From: Matthew Hall [mailto:mhall@mhcomputing.net] Sent: Thursday, November 06, 2014 4:21 PM To: GongJinrong Cc: dev@dpdk.org Subject: Re: [dpdk-dev] Could virtio-net-pmd co-exist with virtio-net.ko? On Thu, Nov 06, 2014 at 10:24:11AM +0800, GongJinrong wrote: > Hi, Guys > > When I run virtio-net-pmd in VM, I got "virtio-net device is > already used by another driver" error message, after I removed the > virtio-net.ko, it worked, but now I cannot use the virio-net driver > for another virtual NIC, this cost that normal network > performance(non-DPDK application) drops a lot, could the virtio-net-pmd co-exist with standard virio-net driver? > > BR > John Gong I have no proof it will work perfectly, as I never got to use the virtio PMDs because neither works in VirtualBox (developer-friendly / desktop virtualization). But there is a script included in DPDK, dpdk_nic_bind.py, which should let you configure this more intelligently on a per-VNIC basis. You could try something similar to this: export RTE_SDK="${build_directory}/external/dpdk" export RTE_TOOLS="${RTE_SDK}/tools" export RTE_NIC_BIND="${RTE_TOOLS}/dpdk_nic_bind.py" "${RTE_NIC_BIND}" --status | fgrep "${PCI_ID}" "${RTE_NIC_BIND}" -b none "${PCI_ID}" "${RTE_NIC_BIND}" -b igb_uio "${PCI_ID}" "${RTE_NIC_BIND}" --status | fgrep "${PCI_ID}" Good Luck! Matthew.