DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] Could virtio-net-pmd co-exist with virtio-net.ko?
@ 2014-11-06  2:24 GongJinrong
  2014-11-06  8:21 ` Matthew Hall
  0 siblings, 1 reply; 3+ messages in thread
From: GongJinrong @ 2014-11-06  2:24 UTC (permalink / raw)
  To: dev

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] Could virtio-net-pmd co-exist with virtio-net.ko?
  2014-11-06  2:24 [dpdk-dev] Could virtio-net-pmd co-exist with virtio-net.ko? GongJinrong
@ 2014-11-06  8:21 ` Matthew Hall
  2014-11-06  9:58   ` GongJinrong
  0 siblings, 1 reply; 3+ messages in thread
From: Matthew Hall @ 2014-11-06  8:21 UTC (permalink / raw)
  To: GongJinrong; +Cc: dev

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] Could virtio-net-pmd co-exist with virtio-net.ko?
  2014-11-06  8:21 ` Matthew Hall
@ 2014-11-06  9:58   ` GongJinrong
  0 siblings, 0 replies; 3+ messages in thread
From: GongJinrong @ 2014-11-06  9:58 UTC (permalink / raw)
  To: Matthew Hall; +Cc: dev

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-11-06  9:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-06  2:24 [dpdk-dev] Could virtio-net-pmd co-exist with virtio-net.ko? GongJinrong
2014-11-06  8:21 ` Matthew Hall
2014-11-06  9:58   ` GongJinrong

DPDK patches and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/dev/0 dev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dev dev/ https://inbox.dpdk.org/dev \
		dev@dpdk.org
	public-inbox-index dev

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dev


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git