Re: [ovs-dev] [PATCH] dpctl: Fix jump through wild pointer in "dpctl/help".

2015-10-20 Thread Daniele Di Proietto
http-3A__openvswitch.org_piperm >ail_discuss_2015-2DOctober_019135.html&d=BQIGaQ&c=Sqcl0Ez6M0X8aeM67LKIiDJA >XVeAw-YihVMNtXt-uEs&r=SmB5nZacmXNq0gKCC1s_Cw5yUNjxgD4v5kJqZ2uWLlE&m=OrWGS3 >tQ3PzCvpaif3pjUIuOxAY8nQCTY_8Q_Qs_Wj8&s=TeEaw1_lnbTm

Re: [ovs-dev] [PATCH] Detailed documentation for configuring native userspace-tunneling in OVS with/without DPDK.

2015-10-20 Thread Daniele Di Proietto
Thanks for writing this up, it will definitely help many users. I'm not sure the appropriate place for this is the OVS source tree (given that's similar to README-native-tunneling.md), but this seems a perfect candidate for a configuration cookbook (http://openvswitch.org/support/config-cookbooks/

Re: [ovs-dev] [PATCH] netdev_dpdk.c: Add QoS functionality.

2015-10-13 Thread Daniele Di Proietto
On 12/10/2015 18:02, "Stokes, Ian" wrote: >Hi Daniele, > >Thanks for providing feedback, answers inline. > >> -Original Message- >> From: Daniele Di Proietto [mailto:diproiet...@vmware.com] >> Sent: Friday, October 09, 2015 6:53 PM >&

Re: [ovs-dev] [PATCH v5] dpif-netdev: proper tx queue id

2015-10-13 Thread Daniele Di Proietto
Hi Ilya, Sorry for the delay, One question inline On 11/09/2015 12:38, "Ilya Maximets" wrote: >Currently tx_qid is equal to pmd->core_id. This leads to unexpected >behavior if pmd-cpu-mask different from '/(0*)(1|3|7)?(f*)/', >e.g. if core_ids are not sequential, or doesn't start from 0, or bo

Re: [ovs-dev] [PATCH v5] dpif-netdev: proper tx queue id

2015-10-13 Thread Daniele Di Proietto
Hi Ben, I apologize for the delay, I can definitely review this. Thanks, Daniele On 12/10/2015 19:09, "Ben Pfaff" wrote: >Daniele, are you the right person to review this? If not, do you know >who should review it? ___ dev mailing list dev@openvsw

Re: [ovs-dev] [PATCH] netdev_dpdk.c: Add QoS functionality.

2015-10-09 Thread Daniele Di Proietto
Hi, Thanks for the patch, the implementation looks simpler than I expected. General questions: * It appears that we're using the srCTM, but * We're only sending the green packets and dropping the rest. * The `input_color` is always green. Therefore * `other-config:ebs` is ignored (isn't

Re: [ovs-dev] [PATCHv4 06/11] Add support for connection tracking.

2015-10-07 Thread Daniele Di Proietto
Hi Joe, I have a couple of minor comments inline On 02/10/2015 22:16, "Joe Stringer" wrote: >This patch adds a new action and fields to OVS that allow connection >tracking to be performed. This support works in conjunction with the >Linux kernel support merged into the Linux-4.3 development cyc

Re: [ovs-dev] [PATCHv3 11/11] system-traffic: Add ct tests using local stack.

2015-09-30 Thread Daniele Di Proietto
On 30/09/2015 17:59, "Joe Stringer" wrote: >On 30 September 2015 at 09:03, Ben Pfaff wrote: >> On Tue, Sep 29, 2015 at 01:40:34PM -0700, Joe Stringer wrote: >>> When interacting with the local stack, the kernel may provide packets >>> with existing ct state as they ingress OVS. These tests che

Re: [ovs-dev] [PATCH] travis: Install `bc` utility for kernel compilation

2015-09-29 Thread Daniele Di Proietto
On 29/09/2015 18:56, "Ben Pfaff" wrote: >On Tue, Sep 29, 2015 at 06:55:26PM +0100, Daniele Di Proietto wrote: >> Newer kernels appear to require `bc` to build all the headers >> >> Also, alphabetize the package list >> >> Tested-at: >>

Re: [ovs-dev] [RFC] travis: Use container infrastructure.

2015-09-29 Thread Daniele Di Proietto
On 29/09/2015 18:51, "Ben Pfaff" wrote: >On Tue, Sep 29, 2015 at 10:47:56AM -0700, Joe Stringer wrote: >> On 28 September 2015 at 20:27, Ben Pfaff wrote: >> > On Mon, Sep 28, 2015 at 07:36:37PM +0100, Daniele Di Proietto wrote: >> >> Recently some testc

[ovs-dev] [PATCH] travis: Install `bc` utility for kernel compilation

2015-09-29 Thread Daniele Di Proietto
Newer kernels appear to require `bc` to build all the headers Also, alphabetize the package list Tested-at: https://travis-ci.org/ddiproietto/ovs/builds/82757574 Signed-off-by: Daniele Di Proietto --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml

Re: [ovs-dev] [RFC] travis: Use container infrastructure.

2015-09-29 Thread Daniele Di Proietto
On 29/09/2015 04:27, "Ben Pfaff" wrote: >On Mon, Sep 28, 2015 at 07:36:37PM +0100, Daniele Di Proietto wrote: >> Recently some testcases have been failing in travis because of a warning >> related to the use of an L3 device (OpenVZ specific) inside the workers. &

[ovs-dev] [RFC] travis: Use container infrastructure.

2015-09-28 Thread Daniele Di Proietto
sudo access anymore, but we can install packages with the apt plugin, and we shouldn't use root for anything else Tested-at: https://travis-ci.org/ddiproietto/ovs/builds/81764972 Signed-off-by: Daniele Di Proietto CC: Joe Stringer --- .travis.yml| 11 ++- .travis/prepa

Re: [ovs-dev] [PATCH] dpif-netdev: move header prefetch earlier into the receive function

2015-09-25 Thread Daniele Di Proietto
I tested the patch, but I wasn't able to reproduce your measurements. On my test setup I noticed no difference in throughput for different packet sizes/flow tables. Could you describe your setup in more details? I'd be happy to improve prefetching if it a simple change like the this. Thanks, D

Re: [ovs-dev] [PATCHv2 1/6] Add support for connection tracking.

2015-09-18 Thread Daniele Di Proietto
Hi Joe, thanks for sending this! While doing some testing with my userspace connection tracker on top of your series I encountered some small issues that I was hoping you could squash in before pushing it to master. None of the comments is supposed to be a blocker, we can address them after merg

Re: [ovs-dev] [PATCH] docs: Expand performance tuning section in INSTALL.DPDK.md.

2015-09-16 Thread Daniele Di Proietto
Thanks for taking the time to write this up, it is really detailed! I think some of the information is more for developers than end users, but I don't think this means it shouldn't be in INSTALL.DPDK.md. I've fixed a couple of typos with a spell checker and applied this to master. Thanks On 09/

Re: [ovs-dev] [PATCH v3] dpif-netdev: Check for PKT_RX_RSS_HASH flag.

2015-09-11 Thread Daniele Di Proietto
On 10/09/2015 20:16, "Pravin Shelar" wrote: >On Thu, Sep 10, 2015 at 10:02 AM, Daniele Di Proietto > wrote: >> DPDK mbufs contain a valid RSS hash only if PKT_RX_RSS_HASH is >> set in 'ol_flags'. Otherwise the hash is garbage and doesn't >> rel

Re: [ovs-dev] [PATCH v4] dpif-netdev: proper tx queue id

2015-09-10 Thread Daniele Di Proietto
Sorry for the delay. There's still one problem with this patch: when a non-DPDK port is added to the datapath, its txqs are not added to the pmd threads. Can you confirm the issue? Thanks On 10/09/2015 07:52, "Ilya Maximets" wrote: >Ping. > >On 02.09.2015 14:44, Ilya Maximets wrote: >> Curre

Re: [ovs-dev] [PATCH v2] dpif-netdev: Check for PKT_RX_RSS_HASH flag.

2015-09-10 Thread Daniele Di Proietto
On 09/09/2015 18:56, "Pravin Shelar" wrote: >On Wed, Sep 9, 2015 at 8:45 AM, Daniele Di Proietto > wrote: >> DPDK mbufs contain a valid RSS hash only if PKT_RX_RSS_HASH is >> set in 'ol_flags'. Otherwise the hash is garbage and doesn't >> rel

[ovs-dev] [PATCH v3] dpif-netdev: Check for PKT_RX_RSS_HASH flag.

2015-09-10 Thread Daniele Di Proietto
io Leitner Acked-by: Kevin Traynor Signed-off-by: Daniele Di Proietto --- lib/dp-packet.h| 25 + lib/dpif-netdev.c | 5 +++-- lib/netdev-bsd.c | 2 +- lib/netdev-dpdk.c | 2 +- lib/netdev-dummy.c | 2 +- lib/netdev-linux.c | 2 +- 6 files changed, 32 insert

Re: [ovs-dev] [PATCH] travis: Fix build with --enable-shared and DPDK 2.1.

2015-09-09 Thread Daniele Di Proietto
On 09/09/2015 17:56, "Ben Pfaff" wrote: >On Wed, Sep 09, 2015 at 05:44:04PM +0100, Daniele Di Proietto wrote: >> When building OVS with --enable-shared, -fPIC should be used in DPDK >> CFLAGS. We used to add a custom option for this (CONFIG_RTE_BUILD_FPIC) >> t

Re: [ovs-dev] travis build failures--dpdk 2.1

2015-09-09 Thread Daniele Di Proietto
On 09/09/2015 17:38, "Ben Pfaff" wrote: >We're starting to get build failures in travis starting from "dpdk: add >support for v2.1.0", see >https://urldefense.proofpoint.com/v2/url?u=https-3A__travis-2Dci.org_openv >switch_ovs_builds_79313522-3A&d=BQIGaQ&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-Yih >VMN

[ovs-dev] [PATCH] travis: Fix build with --enable-shared and DPDK 2.1.

2015-09-09 Thread Daniele Di Proietto
of the file. Furthermore, since vhost support is enabled by default in DPDK 2.1 and vhost-user is OVS primary target, there's no need to customize the vhost related option anymore. Signed-off-by: Daniele Di Proietto --- .travis/build.sh | 4 +--- 1 file changed, 1 insertion(+), 3 dele

Re: [ovs-dev] [PATCH] dpif-netdev: Check for PKT_RX_RSS_HASH flag.

2015-09-09 Thread Daniele Di Proietto
On 08/09/2015 18:12, "Traynor, Kevin" wrote: > > >> -Original Message- > >> From: dev [mailto:dev-boun...@openvswitch.org] On Behalf Of Daniele Di > >> Proietto > >> Sent: Tuesday, June 16, 2015 7:39 PM > >> To: dev@openvswitch.

[ovs-dev] [PATCH v2] dpif-netdev: Check for PKT_RX_RSS_HASH flag.

2015-09-09 Thread Daniele Di Proietto
Leitner Signed-off-by: Daniele Di Proietto --- v1 -> v2: * Added a comment above dp_packet_get_rss_hash() * Added an OVS_UNUSED attribute on dp_packet_rss_valid() --- lib/dp-packet.h | 13 + lib/dpif-netdev.c | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git

Re: [ovs-dev] [PATCH v3] dpdk: add support for v2.1.0

2015-09-08 Thread Daniele Di Proietto
The patch looks good, I added you and Michal in AUTHORS and pushed it to master. Thanks On 08/09/2015 07:56, "Puha, TimoX" wrote: >Hi, > >> From: Puha, TimoX >> Subject: [PATCH v3] dpdk: add support for v2.1.0 >> >> Update relevant artifacts to add support for DPDK v2.1.0 >> - INSTALL.DPDK.md

Re: [ovs-dev] [PATCH V2 2/2] dpif-netdev: Purge all ukeys when reconfigure pmd.

2015-08-28 Thread Daniele Di Proietto
On 28/08/2015 18:51, "Joe Stringer" wrote: >On 28 August 2015 at 09:41, Daniele Di Proietto >wrote: >> I've tested it and it appears to correctly keep all the stats. >> >> Two comments inline, otherwise: >> >> Acked-by: Daniele Di Proietto &

Re: [ovs-dev] [PATCH V2 2/2] dpif-netdev: Purge all ukeys when reconfigure pmd.

2015-08-28 Thread Daniele Di Proietto
I've tested it and it appears to correctly keep all the stats. Two comments inline, otherwise: Acked-by: Daniele Di Proietto Thanks for fixing this Alex! On 28/08/2015 06:25, "Alex Wang" wrote: >When dpdk configuration changes, all pmd threads are recreated >and rx qu

Re: [ovs-dev] [PATCH V2 1/2] ofproto-dpif-upcall: Do not attribute stats when flow_del returns error.

2015-08-28 Thread Daniele Di Proietto
With the older version of this series I was able to reproduce the problem and this patch appears to fix it. Acked-by: Daniele Di Proietto Thanks! On 28/08/2015 06:25, "Alex Wang" wrote: >In the push_ukey_ops__(), when flow_del operation returns error, the >'struct

Re: [ovs-dev] [PATCH] dpdk: add support for v2.1.0

2015-08-27 Thread Daniele Di Proietto
The patch looks good, thanks. Two comments below On 26/08/2015 13:44, "Timo Puha" wrote: >Update relevant artifacts to add support for DPDK v2.1.0 > - INSTALL.DPDK.md > - acinclude.m4: Change DPDK library name > - netdev-dpdk: Add 16 bytes extra padding to mbuf size to adapt to DPDK >bug > fi

Re: [ovs-dev] [PATCH] coverage: Add coverage_try_clear() for performance-critical threads.

2015-08-24 Thread Daniele Di Proietto
Hi Alex, sorry for the delay and thanks for taking care of this. I couldn't experience any noticeable performance drop. Acked-by: Daniele Di Proietto On 22/08/2015 16:44, "Alex Wang" wrote: >Sorry for the delay of pushing this and related dpdk patches, > >Want to s

Re: [ovs-dev] [PATCH 1/2] dpif-netdev: Purge all ukeys when reconfigure pmd.

2015-08-17 Thread Daniele Di Proietto
The patch looks good to me. I think that losing some packets when the thread are reconfigured is unavoidable, considering that often the NIC must be stopped to change the number of rxqs. Does this make sense? Related to this, I've had an offline discussion with Ethan and we realized that ukeys a

Re: [ovs-dev] [PATCH v2] dpif-netdev: proper tx queue id

2015-08-17 Thread Daniele Di Proietto
Sorry about the long wait. I think this is the right direction, I like the idea of having a thread local map of the txqs. It will allow us to assign the txqs in a more sophisticated way. I see some unit tests failing with this patch applied. Could you try running the testsuite with 'make check'

Re: [ovs-dev] [PATCHv2 5/5] kmod-traffic: Add basic vxlan tunnel sanity test.

2015-08-17 Thread Daniele Di Proietto
It works both for userspace and kernel datapath, thanks! Acked-by: Daniele Di Proietto On 12/08/2015 22:01, "Joe Stringer" wrote: >This test is skipped if the 'ip' command cannot interpret the vxlan >'dstport' >option; this is used as a proxy for de

Re: [ovs-dev] [PATCHv2 4/5] system-macros: Don't explicitly remove bridge.

2015-08-17 Thread Daniele Di Proietto
Acked-by: Daniele Di Proietto On 12/08/2015 22:01, "Joe Stringer" wrote: >Depending on the kernel in use, manually removing a bridge during >OVS_VSWITCHD_STOP can cause the kernel to send a route update that >refers to the bridge device which is being deleted. OVS can

Re: [ovs-dev] [PATCHv2 2/5] system-traffic: Check ping-by-ping output.

2015-08-17 Thread Daniele Di Proietto
Acked-by: Daniele Di Proietto On 12/08/2015 22:01, "Joe Stringer" wrote: >Rather than saving all of the ping output to a file then checking at the >end, check each ping and fail as soon as there is a connectivity >failure. > >Signed-off-by: Joe Stringer >--- >

Re: [ovs-dev] [PATCHv2 1/5] system-common-macros: Allow quotes in NS_EXEC().

2015-08-17 Thread Daniele Di Proietto
Acked-by: Daniele Di Proietto On 12/08/2015 22:01, "Joe Stringer" wrote: >This allows arbitrary commands to be passed into the NS_EXEC macro to be >executed within a namespace, including commands that have quotes and >commands chained together. > >Signed-off-by: Jo

[ovs-dev] Status of Open vSwitch with DPDK

2015-08-12 Thread Daniele Di Proietto
There has been some discussion lately about the status of the Open vSwitch port to DPDK. While part of the code has been tested for quite some time, I think we can agree that there are a few rough spots that prevent it from being easily deployed and used. I was hoping to get some feedback from th

Re: [ovs-dev] [PATCH 2/5] system-common-macros: Don't use bash to exec in ns.

2015-08-11 Thread Daniele Di Proietto
. The ICMP related test in the conntrack branch has an >instance of this. > >Maybe the right solution is to have two variants: NS_CHECK_EXEC() and >NS_CHECK_EXEC_UNQUOTED(). I've seen this other places in OVS >testsuite. > >On 10 August 2015 at 11:40, Daniele Di Proietto >wrote: >

Re: [ovs-dev] [PATCH 4/5] system-macros: Create ADD_BR variant.

2015-08-10 Thread Daniele Di Proietto
My idea was to use ADD_BR inside the OVS_TRAFFIC_VSWITCHD_START() parameters, but I'm fine with this approach too. Acked-by: Daniele Di Proietto On 08/08/2015 00:28, "Joe Stringer" wrote: >This patch splits ADD_BR into two commands, so they can be used from >differen

Re: [ovs-dev] [PATCH 2/5] system-common-macros: Don't use bash to exec in ns.

2015-08-10 Thread Daniele Di Proietto
I guess you need this to use quotes("") inside 'command'. One effect of this change is that if 'command' contains a pipe (or &&, or ||) just the first command will be executed inside the namespace. I'm not sure if it's a big problem. What do you think? On 08/08/2015 00:28, "Joe Stringer" wrote

Re: [ovs-dev] [PATCH 1/5] system-kmod-macros: Fix VSWITCHD_STOP.

2015-08-10 Thread Daniele Di Proietto
I'm surprised as well that the tests were passing. Sorry about this and thanks for finding out Acked-by: Daniele Di Proietto On 08/08/2015 00:28, "Joe Stringer" wrote: >This was renamed. Surprisingly, the tests still pass without this, >however the extra checks that

[ovs-dev] [PATCH v2 3/4] tests: Add system-userspace-testsuite.

2015-08-07 Thread Daniele Di Proietto
ation) The userspace datapath is able to use system network interfaces via an AF_PACKET socket. Signed-off-by: Daniele Di Proietto --- tests/.gitignore| 1 + tests/automake.mk | 22 ++-- tests/system-common-macros.at | 3 ++- tests/s

Re: [ovs-dev] [PATCH 0/3] Vagrant userspace testsuite

2015-08-07 Thread Daniele Di Proietto
On 07/08/2015 19:15, "Joe Stringer" wrote: >On 4 August 2015 at 11:00, Daniele Di Proietto >wrote: >> This series adds a new testsuite for the userspace datapath that runs >> the already written kmod-sanity tests. The reason for this are >> explained in

[ovs-dev] [PATCH v2 4/4] Vagrantfile: Add test_ovs_system_userspace provision.

2015-08-07 Thread Daniele Di Proietto
ecause they interact with system networking. Suggested-by: Joe Stringer Signed-off-by: Daniele Di Proietto --- INSTALL.md | 7 +++ NEWS| 3 +++ Vagrantfile | 6 ++ 3 files changed, 16 insertions(+) diff --git a/INSTALL.md b/INSTALL.md index 3dc16aa..9dac430 100644 --- a/INSTALL

[ovs-dev] [PATCH v2 2/4] tests: Introduce NS_EXEC and NS_CHECK_EXEC for system tests.

2015-08-07 Thread Daniele Di Proietto
Instead of repeating every time "ip netns exec ..." it is better to introduce some macros. Signed-off-by: Daniele Di Proietto --- tests/system-common-macros.at | 27 +-- tests/system-traffic.at | 24 2 files changed, 33 inserti

[ovs-dev] [PATCH v2 0/4] Vagrant userspace testsuite

2015-08-07 Thread Daniele Di Proietto
t for running the system userspace testsuite. * Added ON_EXIT to remove port in ADD_VETH. * Introduced NS_EXEC and NS_CHECK_EXEC to abstract the namespace commands. * Added mention in NEWS. Daniele Di Proietto (4): tests: Rename kmod-testsuite to system-kmod-testsuite. tests: Introduce

[ovs-dev] [PATCH v2 1/4] tests: Rename kmod-testsuite to system-kmod-testsuite.

2015-08-07 Thread Daniele Di Proietto
The name makes more sense, especially with the addition of a userspace system testsuite. No functional change in this commit. Signed-off-by: Daniele Di Proietto --- tests/.gitignore | 2 +- tests/automake.mk | 24 - tests/kmod-macros.at | 35

Re: [ovs-dev] [PATCH 3/3] tests: Add userspace-testsuite.

2015-08-05 Thread Daniele Di Proietto
mespaces). I can move some more linux specific code into the macros (like the ip netns exec commands), but my goal for now would be to be able to test the userspace datapath as well as the kernel module. > >On 4 August 2015 at 11:00, Daniele Di Proietto >wrote: >> @@ -32,10

Re: [ovs-dev] [PATCH] dpif-netdev: proper tx queue id

2015-08-05 Thread Daniele Di Proietto
On 05/08/2015 17:47, "Ilya Maximets" wrote: > > >On 05.08.2015 19:26, Daniele Di Proietto wrote: >> >> >> On 05/08/2015 16:42, "Ilya Maximets" wrote: >> >>> Sorry, I agree that example is incorrect. It is really no

Re: [ovs-dev] [PATCH] dpif-netdev: proper tx queue id

2015-08-05 Thread Daniele Di Proietto
ly one thread > with core_id = 0. See dp_netdev_configure_pmd(). > > So, > pmd1 will call netdev_send(netdev=dpdk0, tx_qid= *pmd1->core_id* ) > pmd2 will call netdev_send(netdev=dpdk0, tx_qid= *pmd2->core_id* ) I agree, on current master they can't. I

Re: [ovs-dev] [PATCH] dpif-netdev: proper tx queue id

2015-08-05 Thread Daniele Di Proietto
On 05/08/2015 13:28, "Ilya Maximets" wrote: >Currently tx_qid is equal to pmd->core_id. This leads to wrong >behavior if pmd-cpu-mask different from '/(0*)(1|3|7)?(f*)/', >e.g. if core_ids are not sequential, or doesn't start from 0, or both. > >Example(just one of possible wrong scenarios): >

Re: [ovs-dev] [PATCH 1/3] tests: Expand kernel sanity tests.

2015-08-04 Thread Daniele Di Proietto
On 04/08/2015 02:38, "Joe Stringer" wrote: >On 30 July 2015 at 11:21, Daniele Di Proietto >wrote: >> Acked-by: Daniele Di Proietto >> >> On 30/07/2015 00:52, "Joe Stringer" wrote: >> >>>The initial sanity test only checked IPv4 w

[ovs-dev] [PATCH 1/3] tests: Rename kmod-traffic.at to traffic.at.

2015-08-04 Thread Daniele Di Proietto
The file will be part of two different testsuites: one for the kernel datapath and another for the userspace datapath. No functional change in this commit. Signed-off-by: Daniele Di Proietto --- tests/automake.mk | 2 +- tests/kmod-testsuite.at | 2 +- tests/kmod-traffic.at | 107

[ovs-dev] [PATCH 3/3] tests: Add userspace-testsuite.

2015-08-04 Thread Daniele Di Proietto
space datapath is able to use system network interfaces via an AF_PACKET socket. Signed-off-by: Daniele Di Proietto --- tests/.gitignore | 1 + tests/automake.mk | 21 +++-- tests/kmod-macros.at | 19 --- tests/traffic-common-macr

[ovs-dev] [PATCH 2/3] kmod-macros: Move some code to traffic-common-macros.

2015-08-04 Thread Daniele Di Proietto
These macros will also be used by userspace datapath testing in following commits. No functional change in this commit. Signed-off-by: Daniele Di Proietto --- tests/automake.mk | 1 + tests/kmod-macros.at | 54 -- tests/kmod

[ovs-dev] [PATCH 0/3] Vagrant userspace testsuite

2015-08-04 Thread Daniele Di Proietto
testsuite is called `userspace-testsuite` and can be launched with `make check-userspace`. Daniele Di Proietto (3): tests: Rename kmod-traffic.at to traffic.at. kmod-macros: Move some code to traffic-common-macros. tests: Add userspace-testsuite. tests/.gitignore | 1 + tests

Re: [ovs-dev] [PATCH 3/3] tests: Add basic vxlan tunnel sanity test.

2015-07-31 Thread Daniele Di Proietto
On 31/07/2015 01:30, "Joe Stringer" wrote: >On 30 July 2015 at 11:37, Daniele Di Proietto >wrote: >> I get a warning in the OVS log that causes this test to fail. >> >> It appears that when br0 is removed (in OVS_KMOD_VSWITCHD_STOP) >> OVS gets a rtnet

Re: [ovs-dev] [PATCH 3/3] tests: Add basic vxlan tunnel sanity test.

2015-07-30 Thread Daniele Di Proietto
| grep "transmitted" | sed 's/time.*ms$/time 0ms/'], [ 3 packets transmitted, 3 received, 0% packet loss, time 0ms ]) +AT_CHECK([ip addr del dev br0 "10.1.1.100/24"]) +AT_CHECK([ip addr del dev br-ovs-p0 "172.31.1.100/24"]) + OVS_KMOD_VSWITCHD_STOP AT_CLEANUP I&#

Re: [ovs-dev] [PATCH 2/3] kmod-macros: Don't unload kmod in VSWITCHD_STOP.

2015-07-30 Thread Daniele Di Proietto
Acked-by: Daniele Di Proietto On 30/07/2015 00:52, "Joe Stringer" wrote: >We already queue the removal of the kernel module in OVS_VSWITCHD_START, >via an ON_EXIT() call. This redundant removal also doesn't interact very >well with usage of vports: If the datapath st

Re: [ovs-dev] [PATCH 1/3] tests: Expand kernel sanity tests.

2015-07-30 Thread Daniele Di Proietto
Acked-by: Daniele Di Proietto On 30/07/2015 00:52, "Joe Stringer" wrote: >The initial sanity test only checked IPv4 without IP fragments. This patch >adds additional tests using IPv6 and VLANs with IP fragments and expands >the existing test to be more strict. > >Si

Re: [ovs-dev] [PATCH] netdev-dpdk: add support for rings in secondary processes in IVSHMEM setups

2015-07-28 Thread Daniele Di Proietto
This is interesting, thanks for the patch. I'm definitely not a IVSHMEM expert, but I have a concern: what happens if the secondary OVS process allocates or frees some mbufs? (e.g because a packet is sent to multiple destinations or is dropped) I found this in the DPDK documentation: http://dpdk.

Re: [ovs-dev] [PATCH v3] dpif-netdev: fix race for queues between pmd threads

2015-07-28 Thread Daniele Di Proietto
Acked-by: Daniele Di Proietto Thanks! On 28/07/2015 07:55, "Ilya Maximets" wrote: >Currently pmd threads select queues in pmd_load_queues() according to >get_n_pmd_threads_on_numa(). This behavior leads to race between pmds, >beacause dp_netdev_set_pmds_on_numa() starts

Re: [ovs-dev] [PATCH v2] dpif-netdev: fix race for queues between pmd threads

2015-07-27 Thread Daniele Di Proietto
core 1 --> port 1, port 2 >core 2 --> port 2 > >Fix this by starting pmd threads only after all of them have >been configured. > >Cc: Daniele Di Proietto >Cc: Dyasly Sergey >Signed-off-by: Ilya Maximets >--- > lib/dpif-netdev.c | 21 ++--- &

Re: [ovs-dev] [PATCH] dpif-netdev: fix race for queues between pmd threads

2015-07-27 Thread Daniele Di Proietto
nfigured >>>pmd >>> + * threads on the same numa node. That's why we call >>> + * 'dp_netdev_configure_pmd()' on all the threads and then we >>>actually >>> + * start them. */ >>> +for (i = 0; i <

Re: [ovs-dev] [PATCH] dpif-netdev: fix race for queues between pmd threads

2015-07-24 Thread Daniele Di Proietto
That's a bad race condition, thanks for reporting it! Regarding the fix, I agree that reloading the threads would restore the correct mapping, but it would still allow the threads to run with the incorrect mapping for a brief interval. How about postponing the actual threads creation until all th

Re: [ovs-dev] [PATCH 1/2] netdev-dpdk: Restore txq/rxq number if initialization fails.

2015-07-24 Thread Daniele Di Proietto
>Today I am working on confirming that this is the patch. > >Luis E. P. > >Sent from my iPhone > >On Jul 23, 2015, at 15:38, Ethan Jackson >mailto:et...@nicira.com>> wrote: > >Ben, Justin, should this be backported? I'm not up on the policy at the >moment.

[ovs-dev] [PATCH 1/2] netdev-dpdk: Restore txq/rxq number if initialization fails.

2015-07-16 Thread Daniele Di Proietto
there's no work to be done. This commit fixes the problem by restoring the old values if dpdk_eth_dev_init() fails. Reported-by: Ian Stokes Signed-off-by: Daniele Di Proietto --- lib/netdev-dpdk.c | 9 + 1 file changed, 9 insertions(+) diff --git a/lib/netdev-dpdk.c b/lib/netdev-d

[ovs-dev] [PATCH 2/2] netdev-dpdk: Retry tx/rx queue setup until we don't get any failure.

2015-07-16 Thread Daniele Di Proietto
issue by retrying the device initialization with a smaller number of queues, if a queue fails to setup. Reported-by: Ian Stokes Signed-off-by: Daniele Di Proietto --- lib/netdev-dpdk.c | 100 +++--- 1 file changed, 73 insertions(+), 27 deletions

Re: [ovs-dev] [PATCH] Fix detection of vhost_cuse in dpdk rte_config.h

2015-07-09 Thread Daniele Di Proietto
The patch makes sense for branch-2.4 and master. Thanks! Acked-by: Daniele Di Proietto On 06/07/2015 22:41, "Mussar, Gary" wrote: >Fix detection of vhost_cuse in dpdk rte_config.h > >Dpdk allows users to create a config that includes other config files and >then

Re: [ovs-dev] [PATCH] netdev-dpdk: Add some missing statistics.

2015-07-06 Thread Daniele Di Proietto
On 01/07/2015 11:49, "Timo Puha" wrote: >New stats for vhost ports are rx_bytes, tx_bytes, multicast, rx_errors and >rx_length_errors. New stats for PMD ports are rx_dropped, >rx_length_errors, >rx_crc_errors and rx_missed_errors. DPDK imissed packets are now >classified >as dropped instead of e

Re: [ovs-dev] [PATCH] Detecting dpdk vhost_cuse when building ovs

2015-07-06 Thread Daniele Di Proietto
Hi Gary, I wasn't able to apply the patch, it appears to be corrupt. Would you mind resending it, perhaps using get send-email? I also think that it would be useful to include the first part of the email in the commit message, for future reference. Otherwise the patch seems fine to me, thanks!

[ovs-dev] [PATCH] acinclude: Require libfuse only for DPDK with vhost-cuse.

2015-06-25 Thread Daniele Di Proietto
DPDK with vhost-user doesn't require libfuse, so we shouldn't link OVS with libfuse unless DPDK is built with vhost-cuse support. CC: Rapelly, Varun Signed-off-by: Daniele Di Proietto --- acinclude.m4 | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/acin

Re: [ovs-dev] [PATCH] INSTALL.DPDK: remove experimental statement

2015-06-24 Thread Daniele Di Proietto
On 24/06/2015 02:48, "Pravin Shelar" wrote: >On Tue, Jun 23, 2015 at 11:42 AM, Ben Pfaff wrote: >> Do you two have an opinion on this? If DPDK support is pretty solid now >> then it makes sense to apply this to master and backport it to >> branch-2.4. > >Personally I would like to have better

Re: [ovs-dev] [PATCH] dpif-netdev: Check for PKT_RX_RSS_HASH flag.

2015-06-24 Thread Daniele Di Proietto
e: > >> >> On Mon, Jun 22, 2015 at 8:08 PM, Pravin Shelar >>wrote: > >> >>> On Fri, Jun 19, 2015 at 11:24 AM, Daniele Di Proietto > >> >>> wrote: > >> >>>> > >> >>>> > >> &g

[ovs-dev] [PATCH 2/2] netdev-dpdk: Reset RSS hash when receiving from a vhost device.

2015-06-24 Thread Daniele Di Proietto
A vhost device, being a virtual interface, doesn't provide a valid RSS hash. As a workaround we set the value to 0, which suggests the datapath to recompute the hash in software. Reported-by: Dongjun CC: Traynor, Kevin CC: Flavio Leitner Signed-off-by: Daniele Di Proietto --- lib/n

[ovs-dev] [PATCH 1/2] netdev-dpdk: Fix sparse and clang warnings

2015-06-24 Thread Daniele Di Proietto
Signed-off-by: Daniele Di Proietto --- lib/netdev-dpdk.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c index 3af1ee7..c03ff3d 100644 --- a/lib/netdev-dpdk.c +++ b/lib/netdev-dpdk.c @@ -93,8 +93,8 @@ BUILD_ASSERT_DECL

Re: [ovs-dev] [PATCH] dpif-netdev: Check for PKT_RX_RSS_HASH flag.

2015-06-19 Thread Daniele Di Proietto
On 18/06/2015 23:57, "Traynor, Kevin" wrote: > > >> -Original Message- > >> From: dev [mailto:dev-boun...@openvswitch.org] On Behalf Of Daniele Di > >> Proietto > >> Sent: Tuesday, June 16, 2015 7:39 PM > >> To: dev@openvswitch.

Re: [ovs-dev] [PATCH] dpif-netdev: Check for PKT_RX_RSS_HASH flag.

2015-06-18 Thread Daniele Di Proietto
On 17/06/2015 19:08, "Flavio Leitner" wrote: >On Tue, Jun 16, 2015 at 07:39:00PM +0100, Daniele Di Proietto wrote: >> DPDK mbufs contain a valid RSS hash only if PKT_RX_RSS_HASH is >> set in 'ol_flags'. Otherwise the hash is garbage and doesn't >&

Re: [ovs-dev] Is this an issue for DPDK vhost rss?

2015-06-18 Thread Daniele Di Proietto
On 17/06/2015 14:18, "Traynor, Kevin" wrote: > >> -Original Message- >> From: Traynor, Kevin >> Sent: Wednesday, June 17, 2015 10:12 AM >> To: Flavio Leitner; Daniele Di Proietto >> Cc: dev@openvswitch.org; Gray, Mark D >> Subject:

Re: [ovs-dev] Is this an issue for DPDK vhost rss?

2015-06-16 Thread Daniele Di Proietto
On 16/06/2015 18:27, "Flavio Leitner" wrote: >On Mon, Jun 15, 2015 at 05:55:13PM +0000, Daniele Di Proietto wrote: >> On 15/06/2015 12:16, "Traynor, Kevin" wrote: >> >There is a dpdk patchset that contains a potential fix for this and >>lots >&g

[ovs-dev] [PATCH] dpif-netdev: Check for PKT_RX_RSS_HASH flag.

2015-06-16 Thread Daniele Di Proietto
t set the PKT_RX_RSS_HASH, forcing OVS to compute an hash is software. This has a significant impact on performance (-30% throughput in a single flow setup) which can be mitigated in the CPU supports crc32c instructions. Reported-by: Dongjun Suggested-by: Flavio Leitner Signed-off-by: Daniele

Re: [ovs-dev] [PATCH v2] Do not flush tx queue which is shared among CPUs since it is always flushed

2015-06-16 Thread Daniele Di Proietto
On 16/06/2015 07:40, "Pravin Shelar" wrote: >On Mon, Jun 8, 2015 at 7:42 PM, Pravin Shelar wrote: >> On Mon, Jun 8, 2015 at 6:13 PM, Wei li wrote: >>> When tx queue is shared among CPUS,the pkts always be flush in >>>'netdev_dpdk_eth_send' >>> So it is unnecessarily for flushing in netdev_dpd

Re: [ovs-dev] [PATCH] dpif-netdev: Prefetch next packet before miniflow_extract().

2015-06-16 Thread Daniele Di Proietto
On 16/06/2015 09:55, "Gray, Mark D" wrote: >> > >> Acked-by: Ethan Jackson > >> > >> One question I had for a future patch. Have you considered prefetching > >> more packets at once? I.E. 4 at a time or something? > >> That's how these things are typically written, though I don't know if >>

Re: [ovs-dev] [PATCH v2] ovs-vtep: Support userspace datapaths.

2015-06-16 Thread Daniele Di Proietto
On 16/06/2015 15:39, "Gurucharan Shetty" wrote: > >> >> +global ps_type >> +ps_type = ovs_vsctl("get Bridge %s datapath_type" % ps_name) >> +if ps_type == "\"\"": >> +ps_type = "" >Else where in the code, this is handled by calling strip(). >e.g: port_type = ovs_vsctl("get In

[ovs-dev] [PATCH v3] ovs-vtep: Support userspace datapaths.

2015-06-16 Thread Daniele Di Proietto
With this commit, the VTEP emulator detects the datapath_type of the bridge used as a "physical" switch, and creates subsequent bridges with the same type. This allows ovs-vtep to work with the userspace datapath. Signed-off-by: Daniele Di Proietto --- v2 - v3: * Use strip('&q

[ovs-dev] [PATCH v2] ovs-vtep: Support userspace datapaths.

2015-06-16 Thread Daniele Di Proietto
With this commit, the VTEP emulator detects the datapath_type of the bridge used as a "physical" switch, and creates subsequent bridges with the same type. This allows ovs-vtep to work with the userspace datapath. Signed-off-by: Daniele Di Proietto --- v1 - v2: Applied Guru

Re: [ovs-dev] [PATCH] ovs-vtep: Support userspace datapaths.

2015-06-16 Thread Daniele Di Proietto
n, Jun 15, 2015 at 11:28:12AM -0700, Gurucharan Shetty wrote: >> > On Mon, Jun 15, 2015 at 11:09 AM, Daniele Di Proietto >> > wrote: >> > > With this commit, the VTEP emulator detects the datapath_type of the >> > > bridge used as a "physical"

Re: [ovs-dev] [PATCH] ovs-vtep: Support userspace datapaths.

2015-06-16 Thread Daniele Di Proietto
On 15/06/2015 19:28, "Gurucharan Shetty" wrote: >On Mon, Jun 15, 2015 at 11:09 AM, Daniele Di Proietto > wrote: >> With this commit, the VTEP emulator detects the datapath_type of the >> bridge used as a "physical" switch, and creates subsequent bridges &

[ovs-dev] [PATCH] ovs-vtep: Support userspace datapaths.

2015-06-15 Thread Daniele Di Proietto
With this commit, the VTEP emulator detects the datapath_type of the bridge used as a "physical" switch, and creates subsequent bridges with the same type. This allows ovs-vtep to work with the userspace datapath. Signed-off-by: Daniele Di Proietto --- vtep/ovs-vtep | 12 ++

[ovs-dev] [PATCH] dpif-netdev: Prefetch next packet before miniflow_extract().

2015-06-15 Thread Daniele Di Proietto
ange has a much smaller effect (~0.5% improvement) Signed-off-by: Daniele Di Proietto --- lib/dpif-netdev.c | 5 + 1 file changed, 5 insertions(+) diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index 5b82c8b..f13169c 100644 --- a/lib/dpif-netdev.c +++ b/lib/dpif-netdev.c @@ -3150,

Re: [ovs-dev] Is this an issue for DPDK vhost rss?

2015-06-15 Thread Daniele Di Proietto
On 15/06/2015 12:16, "Traynor, Kevin" wrote: > >> -Original Message- >> From: Traynor, Kevin >> Sent: Thursday, June 11, 2015 4:55 PM >> To: Daniele Di Proietto; Flavio Leitner >> Cc: dev@openvswitch.org; Gray, Mark D >> Subject:

Re: [ovs-dev] Is this an issue for DPDK vhost rss?

2015-06-11 Thread Daniele Di Proietto
On 11/06/2015 15:23, "Flavio Leitner" wrote: >On Thu, Jun 11, 2015 at 12:45:10PM +0000, Daniele Di Proietto wrote: >> >> >> On 11/06/2015 04:25, "Flavio Leitner" wrote: >> >> >On Wed, Jun 10, 2015 at 03:13:21PM +, Daniele Di

Re: [ovs-dev] Is this an issue for DPDK vhost rss?

2015-06-11 Thread Daniele Di Proietto
On 11/06/2015 04:25, "Flavio Leitner" wrote: >On Wed, Jun 10, 2015 at 03:13:21PM +0000, Daniele Di Proietto wrote: >> >> >> On 10/06/2015 12:48, "Gray, Mark D" wrote: >> > >> >The vhost port won't generate an RSS hash becaus

Re: [ovs-dev] Is this an issue for DPDK vhost rss?

2015-06-10 Thread Daniele Di Proietto
On 10/06/2015 12:48, "Gray, Mark D" wrote: > >The vhost port won't generate an RSS hash because it is a virtual NIC. > >> > >> It doesn't cause a problem, just make the pkt fall into a slow path, >>should we > >> fix it? Thanks for investigating this. We should definitely fix it. > >> The fl

Re: [ovs-dev] [PATCH 1/2] flow: Add 'const' qualifiers in flow extraction.

2015-06-08 Thread Daniele Di Proietto
For other reasons I have (almost) the exact same commit in my local repository! Minor style nitpick below, otherwise: Acked-by: Daniele Di Proietto On 08/06/2015 17:36, "Ben Pfaff" wrote: >Signed-off-by: Ben Pfaff >--- > lib/flow.c | 18 +- > 1 file

Re: [ovs-dev] [PATCH] netdev-dpdk: Do not flush tx queue which is shared among CPUs since it is always flushed

2015-06-08 Thread Daniele Di Proietto
Thanks for figuring out this bug and for providing the patch! I did a quick phy-phy test and the throughput looks the same. I would be nice to fix the typo, as suggested by Mark. Otherwise Acked-by: Daniele Di Proietto On 05/06/2015 13:27, "Gray, Mark D" wrote: >> >

Re: [ovs-dev] [PATCH v3] dpif-netdev: Fix non-pmd thread queue id.

2015-06-04 Thread Daniele Di Proietto
Thanks for the reviews! On 03/06/2015 23:35, "Ethan Jackson" wrote: >Acked-by: Ethan Jackson > >Merged. > >Ethan > >On Wed, Jun 3, 2015 at 10:45 AM, Flavio Leitner wrote: >> On Wed, Jun 03, 2015 at 03:55:16PM +0100, Daniele Di Proietto wrote: >>>

Re: [ovs-dev] [PATCH v2] dpif-netdev: Fix non-pmd thread queue id.

2015-06-03 Thread Daniele Di Proietto
I sent a v3 that uses an alternative mapping computed when the pmd thread is created. I hope it's clearer Thanks! On 02/06/2015 18:33, "Flavio Leitner" wrote: >On Fri, May 29, 2015 at 12:42:00PM +0100, Mark D. Gray wrote: >> From: Daniele Di Proietto >> >

[ovs-dev] [PATCH v3] dpif-netdev: Fix non-pmd thread queue id.

2015-06-03 Thread Daniele Di Proietto
Non pmd threads have a core_id == UINT32_MAX, while queue ids used by netdevs range from 0 to the number of CPUs. Therefore core ids cannot be used directly to select a queue. This commit introduces a simple mapping to fix the problem: pmd threads continue using queues 0 to N (where N is the numb

<    4   5   6   7   8   9   10   11   12   13   >