Traffic doesn't forward on virtual devices
Quoted 34 lines · Bala Sankaran
Perfect!
Thanks for the help.
----- Original Message -----
Quoted 29 lines
From: "Keith Wiles" <[email protected]>
To: "Bala Sankaran" <[email protected]>
Cc: [email protected], "Aaron Conole" <[email protected]>
Sent: Thursday, July 5, 2018 11:41:46 AM
Subject: Re: [dpdk-users] Traffic doesn't forward on virtual devicesQuoted 7 lines · Bala Sankaran
Greetings,
I am currently using dpdk version 17.11.2. I see that there are a few other revisions in 17.11.3, followed by the latest stable version of 18.02.2.
Quoted 7 lines
Based on the issues I have faced so far (see Original Message below), would you suggest that I go for
another version? If yes, which one? In essence, my question is, would resorting to a different version of dpdk solve my current issue of virtqueue id being invalid?Any help is much appreciated.
From a support perspective using the latest version 18.05 or the long term supported version 17.11.3 is easier for most to help. I would pick the latest release 18.05 myself. As for fixing this problem I do not know. You can look into the
MAINTAINERSfile and find the maintainers of area(s) and include them in the CC line on your questions as sometimes they miss the emails as the volume can be high at times.
Thanks Keith.
I took a quick look and it seems like the queues are not setting up correctly between OvS and testpmd? Probably there's a step missing somewhere, although nothing in either the netdev-dpdk.c from OvS nor the rte_ethdev was obvious to stand out to me.
I've CC'd Maxime, Ian, and Ciara - maybe they have a better idea to try?
Quoted 85 lines
Quoted 72 lines
Quoted 72 lines
Thanks
----- Original Message -----
Quoted 68 lines
From: "Bala Sankaran" <[email protected]>
To: [email protected]
Cc: "Aaron Conole" <[email protected]>
Sent: Thursday, June 28, 2018 3:18:13 PM
Subject: Traffic doesn't forward on virtual devicesHello team,
I am working on a project to do PVP tests on dpdk. As a first step, I would
like to get traffic flow between tap devices. I'm in process of setting up the architecture, in which I've used testpmd to forward traffic between two
virtual devices(tap and vhost users) over a bridge.While I'm at it, I've identified that the internal
dev_attachedflag never gets set to 1 from therte_eth_vhost.cfile. I've tried to manually set it to 1 in the start routine, but I just see that the queue index being referenced is out of range.I'm not sure how to proceed. Has anyone had luck using testpmd to communicate with vhost-user devices? If yes, any hints on a workaround?
Here's how I configured my setup after installing dpdk and openvswitch:
1. To start ovs-ctl:
/usr/local/share/openvswitch/scripts/ovs-ctlstart2. Setup hugepages:
echo '2048' >/proc/sys/vm/nr_hugepages3. Add a new network namespace:
ip netns add ns14. Add and set a bridge:
ovs-vsctl add-br dpdkbr0 -- set Bridge dpdkbr0 datapath_type=netdev options:vhost-server-path=/usr/local/var/run/openvswitch/vhu0 ovs-vsctl show5. Add a vhost user to the bridge created:
ovs-vsctl add-port dpdkbr0 vhu0 -- set Interface vhu0 type=dpdkvhostuserclient6. Execute bash on the network namespace:
ip netns exec ns1 bash7. Use testpmd and connect the namespaces:
testpmd --socket-mem=512 --vdev='eth_vhost0,iface=/usr/local/var/run/openvswitch/vhu0,queues=1' --vdev='net_tap0,iface=tap0' --file-prefix page0 -- -iI repeated steps 3 - 7 for another network namespace on the same bridge. Following this, in fresh terminals, I assigned IP addresses to the tap devices created and tried pinging them. From port statistics, I identified the above mentioned issue with the
dev_attachedand queue statistics.I would greatly appreciate any help from your end.
Thanks.
-------------------------------------------------
Bala Sankaran
Networking Services Intern
Red Hat Inc .,Quoted 8 lines
Quoted 3 lines
-------------------------------------------------
Bala Sankaran
Networking Services InternRegards,
Keith--------------------------------------------------
Bala Sankaran
Networking Services Intern
Red Hat Inc .,
Quoted 41 lines
Quoted 14 lines · Bala Sankaran
Perfect!
Thanks for the help.
----- Original Message -----
Quoted 9 lines
From: "Keith Wiles" <[email protected]>
To: "Bala Sankaran" <[email protected]>
Cc: [email protected], "Aaron Conole" <[email protected]>
Sent: Thursday, July 5, 2018 11:41:46 AM
Subject: Re: [dpdk-users] Traffic doesn't forward on virtual devicesQuoted 1 line
On Jul 5, 2018, at 9:53 AM, Bala Sankaran <[email protected]>
Quoted 4 lines · wrote:
Quoted 4 lines
Quoted 4 lines
Greetings,
I am currently using dpdk version 17.11.2. I see that there are a few
other
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
revisions in 17.11.3, followed by the latest stable version of 18.02.2.
Based on the issues I have faced so far (see Original Message below), would you suggest that I go for
another version? If yes, which one? In essence, my question is, would resorting to a different version of dpdk solve my current issue of virtqueue id being invalid?Quoted 6 lines
Quoted 6 lines
Quoted 1 line
Any help is much appreciated.
From a support perspective using the latest version 18.05 or the long term supported version 17.11.3 is easier for most to help. I would pick the latest release 18.05 myself. As for fixing this problem I do not know. You can look into the
MAINTAINERSfile and find the maintainers of area(s)and
Quoted 2 lines
Quoted 2 lines
include them in the CC line on your questions as sometimes they miss the emails as the volume can be high at times.
Quoted 8 lines
Thanks Keith.
I took a quick look and it seems like the queues are not setting up correctly between OvS and testpmd? Probably there's a step missing somewhere, although nothing in either the
netdev-dpdk.cfrom OvS nor therte_ethdevwas obvious to stand out to me.I've CC'd Maxime, Ian, and Ciara - maybe they have a better idea to try?
Hi,
I think the appropriate driver to use in this test on the test-pmd side might be virtio-user. Follow the same steps just change your vdev test-pmd arguments to:
--vdev='net_virtio_user0,path=/usr/local/var/run/openvswitch/vhu0'
Thanks,
Ciara
Quoted 92 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Thanks
----- Original Message -----
Quoted 7 lines
From: "Bala Sankaran" <[email protected]>
To: [email protected]
Cc: "Aaron Conole" <[email protected]>
Sent: Thursday, June 28, 2018 3:18:13 PM
Subject: Traffic doesn't forward on virtual devicesQuoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Hello team,
I am working on a project to do PVP tests on dpdk. As a first step, I would
like to get traffic flow between tap devices. I'm in process of setting up the architecture, in which I've used testpmd to forward trafficbetween
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
two
virtual devices(tap and vhost users) over a bridge.While I'm at it, I've identified that the internal
dev_attachedflag never gets set to 1 from therte_eth_vhost.cfile. I've tried to manually set it to 1 in the start routine, but I just see that the queue index being referenced is out of range.I'm not sure how to proceed. Has anyone had luck using testpmd to communicate with vhost-user devices? If yes, any hints on a
workaround?
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Here's how I configured my setup after installing dpdk and
openvswitch:
Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
1. To start ovs-ctl:
/usr/local/share/openvswitch/scripts/ovs-ctlstart2. Setup hugepages:
echo '2048' >/proc/sys/vm/nr_hugepages3. Add a new network namespace:
ip netns add ns14. Add and set a bridge:
ovs-vsctl add-br dpdkbr0 -- set Bridge dpdkbr0 datapath_type=netdev options:vhost-server-path=/usr/local/var/run/openvswitch/vhu0 ovs-vsctl show5. Add a vhost user to the bridge created:
ovs-vsctl add-port dpdkbr0 vhu0 -- set Interface vhu0 type=dpdkvhostuserclientQuoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
6. Execute bash on the network namespace:
ip netns exec ns1 bash7. Use testpmd and connect the namespaces:
testpmd --socket-mem=512
--vdev='eth_vhost0,iface=/usr/local/var/run/openvswitch/vhu0,queues=1'
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
--vdev='net_tap0,iface=tap0' --file-prefix page0 -- -i
I repeated steps 3 - 7 for another network namespace on the same
bridge.
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Following this, in fresh terminals, I assigned IP addresses to the tap devices created and tried pinging them. From port statistics, I identified the above mentioned issue with the
dev_attachedandqueue
Quoted 24 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
statistics.
I would greatly appreciate any help from your end.
Thanks.
-------------------------------------------------
Bala Sankaran
Networking Services Intern
Red Hat Inc .,Quoted 8 lines
Quoted 3 lines
-------------------------------------------------
Bala Sankaran
Networking Services InternRegards,
Keith--------------------------------------------------
Bala Sankaran
Networking Services Intern
Red Hat Inc .,
----- Original Message -----
Quoted 62 lines
From: "Ciara Loftus" <[email protected]>
To: "Aaron Conole" <[email protected]>, "Bala Sankaran" <[email protected]>
Cc: "Keith Wiles" <[email protected]>, [email protected], [email protected], "Maxime Coquelin" <[email protected]>, "Ian Stokes" <[email protected]>
Sent: Tuesday, July 10, 2018 4:20:31 AM
Subject: RE: [dpdk-users] Traffic doesn't forward on virtual devicesQuoted 44 lines
Quoted 14 lines · Bala Sankaran
Perfect!
Thanks for the help.
----- Original Message -----
Quoted 9 lines
From: "Keith Wiles" <[email protected]>
To: "Bala Sankaran" <[email protected]>
Cc: [email protected], "Aaron Conole" <[email protected]>
Sent: Thursday, July 5, 2018 11:41:46 AM
Subject: Re: [dpdk-users] Traffic doesn't forward on virtual devicesQuoted 1 line
On Jul 5, 2018, at 9:53 AM, Bala Sankaran <[email protected]>
Quoted 4 lines · wrote:
Quoted 4 lines
Quoted 4 lines
Greetings,
I am currently using dpdk version 17.11.2. I see that there are a few
other
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
revisions in 17.11.3, followed by the latest stable version of 18.02.2.
Based on the issues I have faced so far (see Original Message below), would you suggest that I go for
another version? If yes, which one? In essence, my question is, would resorting to a different version of dpdk solve my current issue of virtqueue id being invalid?Quoted 8 lines
Quoted 8 lines
Quoted 1 line
Any help is much appreciated.
From a support perspective using the latest version 18.05 or the long term
supported version 17.11.3 is easier for most to help. I would pick the latest release 18.05 myself. As for fixing this problem I do not know. You
can look into theMAINTAINERSfile and find the maintainers of area(s)and
Quoted 2 lines
Quoted 2 lines
include them in the CC line on your questions as sometimes they miss the emails as the volume can be high at times.
Quoted 8 lines
Thanks Keith.
I took a quick look and it seems like the queues are not setting up correctly between OvS and testpmd? Probably there's a step missing somewhere, although nothing in either the
netdev-dpdk.cfrom OvS nor therte_ethdevwas obvious to stand out to me.I've CC'd Maxime, Ian, and Ciara - maybe they have a better idea to try?
Hi,
Quoted 8 lines
I think the appropriate driver to use in this test on the test-pmd side might be virtio-user.
Follow the same steps just change your vdev test-pmd arguments to:
--vdev='net_virtio_user0,path=/usr/local/var/run/openvswitch/vhu0'Thanks,
Ciara
Thank you for your response.
I tried using virtio-user, but I face an error that says: Failed to prepare memory for vhost-user. The command I ran is as below:
[root@localhost openvswitch]# testpmd --socket-mem=1024 --vdev='net_virtio_user1,path=/usr/local/var/run/openvswitch/vhu1,server=1' --vdev='net_tap1,iface=tap1' --file-prefix page1 -- -i
EAL: Detected 4 lcore(s)
EAL: Detected 1 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/page1/mp_socket
EAL: Probing VFIO support...
EAL: WARNING: cpu flags constant_tsc=yes nonstop_tsc=no -> using unreliable clock cycles !rte_pmd_tap_probe(): Initializing pmd_tap for net_tap1 as tap1
Interactive-mode selected
Warning: NUMA should be configured manually by using --port-numa-config and --ring-numa-config parameters along with --numa.
testpmd: create a new mbuf pool <mbuf_pool_socket_0>: n=171456, size=2176, socket=0
testpmd: preferred mempool ops selected: ring_mp_mc
Configuring Port 0 (socket 0)virtio_user_server_reconnect(): WARNING: Some features 0x1801 are not supported by vhost-user!get_hugepage_file_info(): Exceed maximum of 8prepare_vhost_memory_user(): Failed to prepare memory for vhost-user
Port 0: DA:60:01:0C:4B:29
Configuring Port 1 (socket 0)
Port 1: D2:5A:94:68:AF:B3
Checking link statuses...
Port 0: LSC event
Done
I tried increasing the socket-memory, I checked /proc/meminfo and found there were over 1280 free hugepages.
So my understanding is that this is not an issue where I don't have enough hugepages.
Can you provide leads on what's wrong here?
Quoted 92 lines
Quoted 92 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Thanks
----- Original Message -----
Quoted 7 lines
From: "Bala Sankaran" <[email protected]>
To: [email protected]
Cc: "Aaron Conole" <[email protected]>
Sent: Thursday, June 28, 2018 3:18:13 PM
Subject: Traffic doesn't forward on virtual devicesQuoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Hello team,
I am working on a project to do PVP tests on dpdk. As a first step, I would
like to get traffic flow between tap devices. I'm in process of setting up
the architecture, in which I've used testpmd to forward trafficbetween
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
two
virtual devices(tap and vhost users) over a bridge.While I'm at it, I've identified that the internal
dev_attachedflag never
gets set to 1 from therte_eth_vhost.cfile. I've tried to manually set it
to 1 in the start routine, but I just see that the queue index being referenced is out of range.Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
I'm not sure how to proceed. Has anyone had luck using testpmd to communicate with vhost-user devices? If yes, any hints on a
workaround?
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Here's how I configured my setup after installing dpdk and
openvswitch:
Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
1. To start ovs-ctl:
/usr/local/share/openvswitch/scripts/ovs-ctlstart2. Setup hugepages:
echo '2048' >/proc/sys/vm/nr_hugepages3. Add a new network namespace:
ip netns add ns14. Add and set a bridge:
ovs-vsctl add-br dpdkbr0 -- set Bridge dpdkbr0 datapath_type=netdev options:vhost-server-path=/usr/local/var/run/openvswitch/vhu0 ovs-vsctl show5. Add a vhost user to the bridge created:
ovs-vsctl add-port dpdkbr0 vhu0 -- set Interface vhu0 type=dpdkvhostuserclientQuoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
6. Execute bash on the network namespace:
ip netns exec ns1 bash7. Use testpmd and connect the namespaces:
testpmd --socket-mem=512
--vdev='eth_vhost0,iface=/usr/local/var/run/openvswitch/vhu0,queues=1'
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
--vdev='net_tap0,iface=tap0' --file-prefix page0 -- -i
I repeated steps 3 - 7 for another network namespace on the same
bridge.
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Following this, in fresh terminals, I assigned IP addresses to the tap
devices created and tried pinging them. From port statistics, I identified the above mentioned issue with thedev_attachedandqueue
Quoted 20 lines
Quoted 19 lines
Quoted 6 lines
Quoted 6 lines
statistics.
I would greatly appreciate any help from your end.
Thanks.
Quoted 8 lines
Quoted 5 lines
-------------------------------------------------
Bala Sankaran
Networking Services Intern
Red Hat Inc .,-------------------------------------------------
Bala Sankaran
Networking Services InternRegards,
Keith
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
--------------------------------------------------
Bala Sankaran
Networking Services Intern
Red Hat Inc .,
Thanks.
Bala.
Quoted 102 lines
Quoted 21 lines
Quoted 21 lines
Quoted 14 lines · Bala Sankaran
Perfect!
Thanks for the help.
----- Original Message -----
Quoted 9 lines
From: "Keith Wiles" <[email protected]>
To: "Bala Sankaran" <[email protected]>
Cc: [email protected], "Aaron Conole" <[email protected]>
Sent: Thursday, July 5, 2018 11:41:46 AM
Subject: Re: [dpdk-users] Traffic doesn't forward on virtual devicesQuoted 1 line
On Jul 5, 2018, at 9:53 AM, Bala Sankaran <[email protected]>
Quoted 3 lines · wrote:
Quoted 3 lines
Quoted 3 lines
Greetings,
Quoted 8 lines
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
I am currently using dpdk version 17.11.2. I see that there are a few
other
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
revisions in 17.11.3, followed by the latest stable version of 18.02.2.
Based on the issues I have faced so far (see Original Message below), would you suggest that I go for another version? If yes, which one? In essence, my question is,
would
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
resorting to a different version of dpdk solve my current issue of virtqueue id being invalid?
Any help is much appreciated.
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines
Quoted 6 lines
From a support perspective using the latest version 18.05 or the long term
supported version 17.11.3 is easier for most to help. I would pick the latest release 18.05 myself. As for fixing this problem I do not know. You
can look into theMAINTAINERSfile and find the maintainers of area(s)and
Quoted 1 line
Quoted 1 line
include them in the CC line on your questions as sometimes they miss
the
Quoted 7 lines
Quoted 7 lines
Quoted 1 line
Quoted 1 line
emails as the volume can be high at times.
Thanks Keith.
I took a quick look and it seems like the queues are not setting up correctly between OvS and testpmd? Probably there's a step missing somewhere, although nothing in either the
netdev-dpdk.cfrom OvS northe
Quoted 6 lines
Quoted 3 lines
rte_ethdevwas obvious to stand out to me.I've CC'd Maxime, Ian, and Ciara - maybe they have a better idea to try?
Hi,
Quoted 8 lines
I think the appropriate driver to use in this test on the test-pmd side might be virtio-user.
Follow the same steps just change your vdev test-pmd arguments to:
--vdev='net_virtio_user0,path=/usr/local/var/run/openvswitch/vhu0'Thanks,
CiaraThank you for your response.
I tried using virtio-user, but I face an error that says: Failed to prepare memory for vhost-user.
The command I ran is as below:[root@localhost openvswitch]# testpmd --socket-mem=1024 -- vdev='net_virtio_user1,path=/usr/local/var/run/openvswitch/vhu1,server= 1' --vdev='net_tap1,iface=tap1' --file-prefix page1 -- -i
EAL: Detected 4 lcore(s)
EAL: Detected 1 NUMA nodes
EAL: Multi-process socket/var/run/dpdk/page1/mp_socket
EAL: Probing VFIO support...
EAL: WARNING: cpu flags constant_tsc=yes nonstop_tsc=no -> using unreliable clock cycles !rte_pmd_tap_probe(): Initializingpmd_tapfornet_tap1as tap1 Interactive-mode selected
Warning: NUMA should be configured manually by using --port-numa-config and --ring-numa-config parameters along with --numa.
testpmd: create a new mbuf pool <mbuf_pool_socket_0>: n=171456, size=2176, socket=0
testpmd: preferred mempool ops selected:ring_mp_mcConfiguring Port 0 (socket 0)virtio_user_server_reconnect(): WARNING: Some features0x1801are not supported by vhost-user!get_hugepage_file_info(): Exceed maximum of 8prepare_vhost_memory_user(): Failed to prepare memory for vhost-user Port 0: DA:60:01:0C:4B:29
Configuring Port 1 (socket 0)
Port 1: D2:5A:94:68:AF:B3
Checking link statuses...Port 0: LSC event
Done
Quoted 7 lines
I tried increasing the socket-memory, I checked
/proc/meminfoand found there were over
1280 free hugepages.
So my understanding is that this is not an issue where I don't have enough hugepages.Can you provide leads on what's wrong here?
Hi,
The limitations section for Virtio User https://doc.dpdk.org/guides/howto/virtio_user_for_container_networking.html#limitations states that:
" Cannot work when there are more than VHOST_MEMORY_MAX_NREGIONS(8) hugepages. If you have more regions (especially when 2MB hugepages are used), the option, --single-file-segments, can help to reduce the number of shared files."
Suggest using the --single-file-segments option on the test-pmd command line or failing that increasing your hugepage size to 1G https://doc.dpdk.org/guides/linux_gsg/sys_reqs.html#use-of-hugepages-in-the-linux-environment
Thanks,
Ciara
Quoted 104 lines
Quoted 24 lines
Quoted 24 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Thanks
----- Original Message -----
Quoted 7 lines
From: "Bala Sankaran" <[email protected]>
To: [email protected]
Cc: "Aaron Conole" <[email protected]>
Sent: Thursday, June 28, 2018 3:18:13 PM
Subject: Traffic doesn't forward on virtual devicesQuoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Hello team,
I am working on a project to do PVP tests on dpdk. As a first step, I would
like to get traffic flow between tap devices. I'm in process of setting up
the architecture, in which I've used testpmd to forward trafficbetween
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
two
virtual devices(tap and vhost users) over a bridge.Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
While I'm at it, I've identified that the internal
dev_attachedflag never
gets set to 1 from therte_eth_vhost.cfile. I've tried to manually set it
to 1 in the start routine, but I just see that the queue index being referenced is out of range.I'm not sure how to proceed. Has anyone had luck using testpmd
to
Quoted 9 lines
Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
communicate with vhost-user devices? If yes, any hints on a
workaround?
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Here's how I configured my setup after installing dpdk and
openvswitch:
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
1. To start ovs-ctl:
/usr/local/share/openvswitch/scripts/ovs-ctlstartQuoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
2. Setup hugepages:
echo '2048' >/proc/sys/vm/nr_hugepages3. Add a new network namespace:
ip netns add ns14. Add and set a bridge:
ovs-vsctl add-br dpdkbr0 -- set Bridge dpdkbr0datapath_type=netdev
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
options:vhost-server-path=/usr/local/var/run/openvswitch/vhu0 ovs-vsctl show
5. Add a vhost user to the bridge created:
ovs-vsctl add-port dpdkbr0 vhu0 -- set Interface vhu0 type=dpdkvhostuserclientQuoted 7 lines
Quoted 7 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
6. Execute bash on the network namespace:
ip netns exec ns1 bash7. Use testpmd and connect the namespaces:
testpmd --socket-mem=512
--vdev='eth_vhost0,iface=/usr/local/var/run/openvswitch/vhu0,queues=1'
Quoted 30 lines
Quoted 30 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
--vdev='net_tap0,iface=tap0' --file-prefix page0 -- -i
I repeated steps 3 - 7 for another network namespace on the same
bridge.
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Following this, in fresh terminals, I assigned IP addresses to the tap
devices created and tried pinging them. From port statistics, I identified the above mentioned issue with thedev_attachedandqueue
Quoted 20 lines
Quoted 19 lines
Quoted 6 lines
Quoted 6 lines
statistics.
I would greatly appreciate any help from your end.
Thanks.
Quoted 8 lines
Quoted 5 lines
-------------------------------------------------
Bala Sankaran
Networking Services Intern
Red Hat Inc .,-------------------------------------------------
Bala Sankaran
Networking Services InternRegards,
KeithQuoted 5 lines
Quoted 4 lines
Quoted 4 lines
--------------------------------------------------
Bala Sankaran
Networking Services Intern
Red Hat Inc .,Thanks.
Bala.
----- Original Message -----
Quoted 135 lines
From: "Ciara Loftus" <[email protected]>
To: "Bala Sankaran" <[email protected]>
Cc: "Aaron Conole" <[email protected]>, "Keith Wiles" <[email protected]>, [email protected], [email protected], "Maxime Coquelin" <[email protected]>, "Ian Stokes" <[email protected]>
Sent: Wednesday, July 11, 2018 4:12:38 AM
Subject: RE: [dpdk-users] Traffic doesn't forward on virtual devicesQuoted 109 lines
Quoted 23 lines
Quoted 23 lines
Quoted 14 lines · Bala Sankaran
Perfect!
Thanks for the help.
----- Original Message -----
Quoted 9 lines
From: "Keith Wiles" <[email protected]>
To: "Bala Sankaran" <[email protected]>
Cc: [email protected], "Aaron Conole" <[email protected]>
Sent: Thursday, July 5, 2018 11:41:46 AM
Subject: Re: [dpdk-users] Traffic doesn't forward on virtual devicesQuoted 1 line
On Jul 5, 2018, at 9:53 AM, Bala Sankaran <[email protected]>
Quoted 5 lines · wrote:
Quoted 5 lines
Quoted 5 lines
Greetings,
I am currently using dpdk version 17.11.2. I see that there are a few
Quoted 7 lines
Quoted 7 lines
other
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
revisions in 17.11.3, followed by the latest stable version of 18.02.2.
Based on the issues I have faced so far (see Original Message below), would you suggest that I go for another version? If yes, which one? In essence, my question is,
would
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 4 lines
resorting to a different version of dpdk solve my current issue of virtqueue id being invalid?
Any help is much appreciated.
From a support perspective using the latest version 18.05 or the long
term
supported version 17.11.3 is easier for most to help. I would pick the
latest release 18.05 myself. As for fixing this problem I do not know.
You
can look into theMAINTAINERSfile and find the maintainers of area(s)Quoted 2 lines
Quoted 2 lines
and
Quoted 1 line
Quoted 1 line
include them in the CC line on your questions as sometimes they miss
the
Quoted 7 lines
Quoted 7 lines
Quoted 1 line
Quoted 1 line
emails as the volume can be high at times.
Thanks Keith.
I took a quick look and it seems like the queues are not setting up correctly between OvS and testpmd? Probably there's a step missing somewhere, although nothing in either the
netdev-dpdk.cfrom OvS northe
Quoted 7 lines
Quoted 4 lines
rte_ethdevwas obvious to stand out to me.I've CC'd Maxime, Ian, and Ciara - maybe they have a better idea to try?
Hi,
Quoted 9 lines
I think the appropriate driver to use in this test on the test-pmd side might
be virtio-user.
Follow the same steps just change your vdev test-pmd arguments to:
--vdev='net_virtio_user0,path=/usr/local/var/run/openvswitch/vhu0'Thanks,
CiaraThank you for your response.
I tried using virtio-user, but I face an error that says: Failed to prepare memory for vhost-user.
The command I ran is as below:[root@localhost openvswitch]# testpmd --socket-mem=1024 -- vdev='net_virtio_user1,path=/usr/local/var/run/openvswitch/vhu1,server= 1' --vdev='net_tap1,iface=tap1' --file-prefix page1 -- -i
EAL: Detected 4 lcore(s)
EAL: Detected 1 NUMA nodes
EAL: Multi-process socket/var/run/dpdk/page1/mp_socket
EAL: Probing VFIO support...
EAL: WARNING: cpu flags constant_tsc=yes nonstop_tsc=no -> using unreliable clock cycles !rte_pmd_tap_probe(): Initializingpmd_tapfornet_tap1as tap1 Interactive-mode selected
Warning: NUMA should be configured manually by using --port-numa-config and --ring-numa-config parameters along with --numa.
testpmd: create a new mbuf pool <mbuf_pool_socket_0>: n=171456, size=2176, socket=0
testpmd: preferred mempool ops selected:ring_mp_mcConfiguring Port 0 (socket 0)virtio_user_server_reconnect(): WARNING: Some features0x1801are not supported by vhost-user!get_hugepage_file_info(): Exceed maximum of 8prepare_vhost_memory_user(): Failed to prepare memory for vhost-user Port 0: DA:60:01:0C:4B:29
Configuring Port 1 (socket 0)
Port 1: D2:5A:94:68:AF:B3
Checking link statuses...Port 0: LSC event
DoneQuoted 7 lines
I tried increasing the socket-memory, I checked
/proc/meminfoand found there were over
1280 free hugepages.
So my understanding is that this is not an issue where I don't have enough hugepages.Can you provide leads on what's wrong here?
Hi,
The limitations section for Virtio User
https://doc.dpdk.org/guides/howto/virtio_user_for_container_networking.html#limitations
states that:" Cannot work when there are more than
VHOST_MEMORY_MAX_NREGIONS(8)hugepages. If you have more regions (especially when 2MB hugepages are used), the option, --single-file-segments, can help to reduce the number of shared files."
Quoted 6 lines
Suggest using the --single-file-segments option on the test-pmd command line or failing that increasing your hugepage size to 1G
https://doc.dpdk.org/guides/linux_gsg/sys_reqs.html#use-of-hugepages-in-the-linux-environmentThanks,
Ciara
Thanks a ton.
Looks like I had just missed out on adding the single-file-segments argument. After addition to my existing command structure, testpmd is setup and further, I am able to ping the tap devices.
Thanks
Bala.
Quoted 111 lines
Quoted 110 lines
Quoted 36 lines
Quoted 36 lines
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Thanks
----- Original Message -----
Quoted 7 lines
From: "Bala Sankaran" <[email protected]>
To: [email protected]
Cc: "Aaron Conole" <[email protected]>
Sent: Thursday, June 28, 2018 3:18:13 PM
Subject: Traffic doesn't forward on virtual devicesQuoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Hello team,
I am working on a project to do PVP tests on dpdk. As a first step, I
would
like to get traffic flow between tap devices. I'm in process of setting up
the architecture, in which I've used testpmd to forward trafficbetween
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
two
virtual devices(tap and vhost users) over a bridge.While I'm at it, I've identified that the internal
dev_attachedflag
never
gets set to 1 from therte_eth_vhost.cfile. I've tried to manually
set it
to 1 in the start routine, but I just see that the queue index being
referenced is out of range.Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
I'm not sure how to proceed. Has anyone had luck using testpmd
to
Quoted 9 lines
Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
communicate with vhost-user devices? If yes, any hints on a
workaround?
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Here's how I configured my setup after installing dpdk and
openvswitch:
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
1. To start ovs-ctl:
/usr/local/share/openvswitch/scripts/ovs-ctlstartQuoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
2. Setup hugepages:
echo '2048' >/proc/sys/vm/nr_hugepages3. Add a new network namespace:
ip netns add ns14. Add and set a bridge:
ovs-vsctl add-br dpdkbr0 -- set Bridge dpdkbr0datapath_type=netdev
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
options:vhost-server-path=/usr/local/var/run/openvswitch/vhu0 ovs-vsctl show
5. Add a vhost user to the bridge created:
ovs-vsctl add-port dpdkbr0 vhu0 -- set Interface vhu0 type=dpdkvhostuserclientQuoted 7 lines
Quoted 7 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
6. Execute bash on the network namespace:
ip netns exec ns1 bash7. Use testpmd and connect the namespaces:
testpmd --socket-mem=512
--vdev='eth_vhost0,iface=/usr/local/var/run/openvswitch/vhu0,queues=1'
Quoted 31 lines
Quoted 31 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
--vdev='net_tap0,iface=tap0' --file-prefix page0 -- -i
I repeated steps 3 - 7 for another network namespace on the same
bridge.
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Following this, in fresh terminals, I assigned IP addresses to the
tap
devices created and tried pinging them. From port statistics, I identified the above mentioned issue with thedev_attachedandqueue
Quoted 20 lines
Quoted 19 lines
Quoted 6 lines
Quoted 6 lines
statistics.
I would greatly appreciate any help from your end.
Thanks.
Quoted 8 lines
Quoted 5 lines
-------------------------------------------------
Bala Sankaran
Networking Services Intern
Red Hat Inc .,-------------------------------------------------
Bala Sankaran
Networking Services InternRegards,
KeithQuoted 5 lines
Quoted 4 lines
Quoted 4 lines
--------------------------------------------------
Bala Sankaran
Networking Services Intern
Red Hat Inc .,Thanks.
Bala.