* [dpdk-dev] examples/vhost: how to use vhost-switch between VMs? Anybody who can help?
@ 2016-12-27 5:33 wang.yong19
0 siblings, 0 replies; only message in thread
From: wang.yong19 @ 2016-12-27 5:33 UTC (permalink / raw)
To: dev
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="GB2312", Size: 1677 bytes --]
There are some descriptions in
dpdk-16.11\doc\guides\sample_app_ug\vhost.rst,
"The sample application performs simple packet switching between virtual
machines based on Media Access Control (MAC) address or Virtual Local Area
Network (VLAN) tag." So, we want to use vhost-switch between two VMs, one
work as server and another as client.
We runned the vhost-switch sample in a VM with three virtio ports.
First, we
binded one virtio port to igb_uio. Then we runned the command
"./vhost-switch -c f -n 4 --socket-mem 1024 -- --socket-file /tmp/sock0
¨C-vm2vm 1 ¨C-dequeue-zero-copy"
And then error occured. We found that the 'dev_info.max_vmdq_pools' of the
virtio
port was 0, and division by zero error occured at the statement
'queues_per_pool = dev_info.vmdq_queue_num / dev_info.max_vmdq_pools;'
We fixed this by assigning 'queues_per_pool' to 0 if
'dev_info.max_vmdq_pools'
was 0, but there were still other errors when running vhost-switch.
After we fixed all the errors while running vhost-switch as server, we
didn't
know how to run the vhost-switch as client in another VM, how could the
client
get the socket, the netdev and the virtio port that the server
vhost-switch
created?
So, we doubted whether we use the vhost-switch in a wrong way. Could you
please give us some advice that how to use the vhost-switch between two or
more
VMs?
Anybody who can help us with this?
\x16º&Êæ§
©åébìb×¥r¹àÞsnôë9Ûm5é\x17º¹ÏjØr¹©ájybºX§»\x18§µé\¢d^qè¯y×ë¢i kNâ×¥r¦;{^Ê&×~5ßwë]4o'ivJ+ú,µø±Â+a\x11#\x13>'{\f\x106Ø\x1fu~Ýz÷ivJ+;Û°Þsm5ëN¹ó¾Ó]4\bDÑyÇ¢½ç_®¨®É kM9ø§µé\¢mtïm=ãVò¢»&tæ7â×¥r°ØDHÄÏÛ Þsm5ëmyótóM\x17\x13^[K¢uÕr+¢sè®Ð\x15
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-12-27 5:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-27 5:33 [dpdk-dev] examples/vhost: how to use vhost-switch between VMs? Anybody who can help? wang.yong19
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).