* [dpdk-users] Error: While running vhost-switch current enabled port # is 0, but only 1 port can be enabled.
[not found] <28946267.10303304.1491258438407.ref@mail.yahoo.com>
@ 2017-04-03 22:27 ` Dharmesh Mehta
0 siblings, 0 replies; only message in thread
From: Dharmesh Mehta @ 2017-04-03 22:27 UTC (permalink / raw)
To: users
Hello,
I am running QEMU (in client mode) and vhost-user-bridge - test app from QEMU in server mode. That is working ok, both communicate over socket /tmp/vubr.sock.
Now I wanted to replace vhost-user-bridge with DPDK vhost-switch application.When I try to run I get error VHOST_PORT: Current enabled port number is 0,but only 1 portcan be enabled
EAL: Error - exiting with code: 1
Cause: Invalidargument
So It looks like I am doing something wrong with passing arguments.
Here I am launching vhost-bridge test app.sudo $RTE_SDK/examples/vhost/build/vhost-switch -c f -n 4
I also tried ./vhost-switch -l 0-3 -n 4 --socket-mem 1024 \ -- --socket-file /tmp/vubr.sockkBut it still fails.Here is my setup.brctl show
bridge name bridgeid STPenabled interfaces
br0 8000.000000000000 no
br1 8000.000000000000 no
br10 8000.000000000000 no
br11 8000.000000000000 no
br12 8000.000000000000 no
br13 8000.000000000000 no
br14 8000.000000000000 no
br15 8000.000000000000 no
br2 8000.000000000000 no
br3 8000.000000000000 no
br4 8000.000000000000 no
br5 8000.000000000000 no
br6 8000.000000000000 no
br7 8000.000000000000 no
br8 8000.000000000000 no
br9 8000.000000000000 no
br_backplane 8000.fe5400a4ba7d no vnet1
br_gateway 8000.246e963c1a1c no eth0
vnet0
virbr0 8000.525400938e6d yes virbr0-nic
ifconfigbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 inet 20.0.0.100 netmask 255.255.255.0 broadcast 20.0.0.255 ether 00:00:00:00:00:00 txqueuelen 0 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0br1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 inet 20.10.0.100 netmask 255.255.255.0 broadcast 20.10.0.255 ether 00:00:00:00:00:00 txqueuelen 0 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0br2: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 inet 20.20.0.100 netmask 255.255.255.0 broadcast 20.20.0.255 ether 00:00:00:00:00:00 txqueuelen 0 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0br3: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 inet 20.30.0.100 netmask 255.255.255.0 broadcast 20.30.0.255 ether 00:00:00:00:00:00 txqueuelen 0 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0br4: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 inet 20.40.0.100 netmask 255.255.255.0 broadcast 20.40.0.255 ether 00:00:00:00:00:00 txqueuelen 0 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0br5: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 inet 20.50.0.100 netmask 255.255.255.0 broadcast 20.50.0.255 ether 00:00:00:00:00:00 txqueuelen 0 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0br6: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 inet 20.60.0.100 netmask 255.255.255.0 broadcast 20.60.0.255 ether 00:00:00:00:00:00 txqueuelen 0 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0br7: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 inet 20.70.0.100 netmask 255.255.255.0 broadcast 20.70.0.255 ether 00:00:00:00:00:00 txqueuelen 0 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0br8: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 inet 20.80.0.100 netmask 255.255.255.0 broadcast 20.80.0.255 ether 00:00:00:00:00:00 txqueuelen 0 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0br9: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 inet 20.90.0.100 netmask 255.255.255.0 broadcast 20.90.0.255 ether 00:00:00:00:00:00 txqueuelen 0 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0br10: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 inet 20.100.0.100 netmask 255.255.255.0 broadcast 20.100.0.255 ether 00:00:00:00:00:00 txqueuelen 0 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0br11: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 inet 20.110.0.100 netmask 255.255.255.0 broadcast 20.110.0.255 ether 00:00:00:00:00:00 txqueuelen 0 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0br12: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 inet 20.120.0.100 netmask 255.255.255.0 broadcast 20.120.0.255 ether 00:00:00:00:00:00 txqueuelen 0 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0br13: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 inet 20.130.0.100 netmask 255.255.255.0 broadcast 20.130.0.255 ether 00:00:00:00:00:00 txqueuelen 0 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0br14: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 inet 20.140.0.100 netmask 255.255.255.0 broadcast 20.140.0.255 ether 00:00:00:00:00:00 txqueuelen 0 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0br15: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 inet 20.150.0.100 netmask 255.255.255.0 broadcast 20.150.0.255 ether 00:00:00:00:00:00 txqueuelen 0 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0br_backplane: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 40.40.0.100 netmask 255.255.255.0 broadcast 40.40.0.255 ether fe:54:00:a4:ba:7d txqueuelen 0 (Ethernet) RX packets 1216 bytes 72562 (70.8 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0br_gateway: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 158.140.43.158 netmask 255.255.255.0 broadcast 158.140.43.255 ether 24:6e:96:3c:1a:1c txqueuelen 0 (Ethernet) RX packets 8812835 bytes 2023373716 (1.8 GiB) RX errors 0 dropped 121719 overruns 0 frame 0 TX packets 2024588 bytes 13681036017 (12.7 GiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 158.140.41.96 netmask 255.255.255.0 broadcast 158.140.41.255 ether 24:6e:96:3c:1a:1c txqueuelen 1000 (Ethernet) RX packets 9609071 bytes 2212116053 (2.0 GiB) RX errors 0 dropped 17597 overruns 0 frame 0 TX packets 10638642 bytes 14269731874 (13.2 GiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 device memory 0x92200000-922fffff lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 loop txqueuelen 0 (Local Loopback) RX packets 200074 bytes 142792548 (136.1 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 200074 bytes 142792548 (136.1 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255 ether 52:54:00:93:8e:6d txqueuelen 0 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0vnet0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 ether fe:54:00:c6:31:86 txqueuelen 500 (Ethernet) RX packets 32629 bytes 71095782 (67.8 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 345449 bytes 44113179 (42.0 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0vnet1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 ether fe:54:00:a4:ba:7d txqueuelen 500 (Ethernet) RX packets 28491 bytes 10033744 (9.5 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 20755 bytes 11822012 (11.2 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0dmehta@hsv-vse-vesb:/home-local/dmehta/bmc/trunk/dpdk$
sudo $RTE_SDK/examples/vhost/build/vhost-switch -c f -n 4
EAL: Detected 72 lcore(s)
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: PCI device 0000:01:00.0 on NUMA socket 0
EAL: probe driver:8086:1521 net_e1000_igb
EAL: PCI device 0000:01:00.1 on NUMA socket 0
EAL: probe driver:8086:1521 net_e1000_igb
EAL: PCI device 0000:01:00.2 on NUMA socket 0
EAL: probe driver:8086:1521 net_e1000_igb
EAL: PCI device 0000:01:00.3 on NUMA socket 0
EAL: probe driver:8086:1521 net_e1000_igb
EAL: PCI device 0000:03:00.0 on NUMA socket 0
EAL: probe driver:8086:1521 net_e1000_igb
EAL: PCI device 0000:03:00.1 on NUMA socket 0
EAL: probe driver:8086:1521 net_e1000_igb
EAL: PCI device 0000:03:00.2 on NUMA socket 0
EAL: probe driver:8086:1521 net_e1000_igb
EAL: PCI device 0000:03:00.3 on NUMA socket 0
EAL: probe driver:8086:1521 net_e1000_igb
EAL: PCI device 0000:04:00.0 on NUMA socket 0
EAL: probe driver:8086:1521 net_e1000_igb
EAL: PCI device 0000:04:00.1 on NUMA socket 0
EAL: probe driver:8086:1521 net_e1000_igb
EAL: PCI device 0000:04:00.2 on NUMA socket 0
EAL: probe driver:8086:1521 net_e1000_igb
EAL: PCI device 0000:04:00.3 on NUMA socket 0
EAL: probe driver:8086:1521 net_e1000_igb
EAL: PCI device 0000:05:00.0 on NUMA socket 0
EAL: probe driver:8086:1521 net_e1000_igb
EAL: PCI device 0000:05:00.1 on NUMA socket 0
EAL: probe driver:8086:1521 net_e1000_igb
EAL: PCI device 0000:05:00.2 on NUMA socket 0
EAL: probe driver:8086:1521 net_e1000_igb
EAL: PCI device 0000:05:00.3 on NUMA socket 0
EAL: probe driver:8086:1521 net_e1000_igb
EAL: PCI device 0000:82:00.0 on NUMA socket 1
EAL: probe driver:8086:1521 net_e1000_igb
EAL: PCI device 0000:82:00.1 on NUMA socket 1
EAL: probe driver:8086:1521 net_e1000_igb
EAL: PCI device 0000:82:00.2 on NUMA socket 1
EAL: probe driver:8086:1521 net_e1000_igb
EAL: PCI device 0000:82:00.3 on NUMA socket 1
EAL: probe driver:8086:1521 net_e1000_igb
VHOST_PORT: Current enabled port number is 0,but only 1 portcan be enabled
EAL: Error - exiting with code: 1
Cause: Invalidargument
Thanks in advance,
Dharmesh
^ permalink raw reply [flat|nested] only message in thread