DPDK usage discussions
 help / color / mirror / Atom feed
From: Dharmesh Mehta <mehtadharmesh@yahoo.com>
To: "users@dpdk.org" <users@dpdk.org>
Subject: [dpdk-users] Error: While running vhost-switch current enabled port # is 0, but only 1 port can be enabled.
Date: Mon, 3 Apr 2017 22:27:18 +0000 (UTC)	[thread overview]
Message-ID: <28946267.10303304.1491258438407@mail.yahoo.com> (raw)
In-Reply-To: <28946267.10303304.1491258438407.ref@mail.yahoo.com>

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

           reply	other threads:[~2017-04-03 22:30 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <28946267.10303304.1491258438407.ref@mail.yahoo.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=28946267.10303304.1491258438407@mail.yahoo.com \
    --to=mehtadharmesh@yahoo.com \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).