Re: [ovs-dev] [wait for connection v2 2/3] test: add WAIT_FOR_DUMMY_PORTS helper macro for writing tests

2014-06-09 Thread Andy Zhou
On Mon, Jun 9, 2014 at 9:56 PM, YAMAMOTO Takashi wrote: >> On Mon, Jun 9, 2014 at 5:26 PM, YAMAMOTO Takashi >> wrote: Add a macro to waiting until all ports supplied are connected. CC: Jarno Rajahalme Signed-off-by: Andy Zhou --- tests/ofproto-macros.at | 9 +

Re: [ovs-dev] [wait for connection v2 2/3] test: add WAIT_FOR_DUMMY_PORTS helper macro for writing tests

2014-06-09 Thread YAMAMOTO Takashi
> On Mon, Jun 9, 2014 at 5:26 PM, YAMAMOTO Takashi > wrote: >>> Add a macro to waiting until all ports supplied are connected. >>> >>> CC: Jarno Rajahalme >>> Signed-off-by: Andy Zhou >>> --- >>> tests/ofproto-macros.at | 9 + >>> 1 file changed, 9 insertions(+) >>> >>> diff --git a/te

Re: [ovs-dev] [wait for connection v2 2/3] test: add WAIT_FOR_DUMMY_PORTS helper macro for writing tests

2014-06-09 Thread Andy Zhou
On Mon, Jun 9, 2014 at 5:26 PM, YAMAMOTO Takashi wrote: >> Add a macro to waiting until all ports supplied are connected. >> >> CC: Jarno Rajahalme >> Signed-off-by: Andy Zhou >> --- >> tests/ofproto-macros.at | 9 + >> 1 file changed, 9 insertions(+) >> >> diff --git a/tests/ofproto-ma

Re: [ovs-dev] [wait for connection v2 2/3] test: add WAIT_FOR_DUMMY_PORTS helper macro for writing tests

2014-06-09 Thread YAMAMOTO Takashi
> Add a macro to waiting until all ports supplied are connected. > > CC: Jarno Rajahalme > Signed-off-by: Andy Zhou > --- > tests/ofproto-macros.at | 9 + > 1 file changed, 9 insertions(+) > > diff --git a/tests/ofproto-macros.at b/tests/ofproto-macros.at > index b4b6dab..af1e4f8 10064

Re: [ovs-dev] [PATCH 16/16] Implement learned flow deletion.

2014-06-09 Thread Thomas Graf
On 06/05/14 at 10:02pm, Ben Pfaff wrote: > When a flow with a "learn" action is deleted, one often wants the flows > that it created (the "learned flows") to be deleted as well. This commit > makes that possible. > > I am aware of a race condition that could lead to a learned flow not being > pro

Re: [ovs-dev] [PATCH 15/16] ofproto: Reduce duplication in deletion logic.

2014-06-09 Thread Thomas Graf
On 06/05/14 at 10:02pm, Ben Pfaff wrote: > The delete_flow__() function had two callers, each of which had to > correctly call ofmonitor_flush() when completely done. An upcoming commit > will add another function that the callers need to call. This is easier > if delete_flow__() only has one cal

Re: [ovs-dev] [PATCH 14/16] ofproto: Make hole in struct rule_actions by not caching provider_meter_id.

2014-06-09 Thread Thomas Graf
On 06/05/14 at 10:02pm, Ben Pfaff wrote: > Nothing actually used it. > > An upcoming commit will use part of the hole for a new member. > > Signed-off-by: Ben Pfaff LGTM in general The commit description is slightly misleading as 'hole' suggests that none of struct rule_action's member offsets

Re: [ovs-dev] [PATCH 13/16] ofproto: Additional simplifications.

2014-06-09 Thread Thomas Graf
On 06/05/14 at 10:02pm, Ben Pfaff wrote: > This commit finishes the removal of asynchronous flow table operations > begun in the previous commit, by removing ofoperation and ofopgroup > entirely and all of the code that depended on them. Following this commit, > all the internal documentation and

Re: [ovs-dev] [PATCH] Fix log message weird suffixes.

2014-06-09 Thread Pritesh Kothari (pritkoth)
Acked-by: Pritesh Kothari On Jun 9, 2014, at 3:58 PM, Ben Pfaff wrote: > I think these were leftovers from the removal of %z for MSVC that happened > some time ago. > > VMware-BZ: 1265762 > Signed-off-by: Ben Pfaff > --- > lib/netdev-bsd.c |4 ++-- > lib/netdev-linux.c |2 +- > li

[ovs-dev] [PATCH] Fix log message weird suffixes.

2014-06-09 Thread Ben Pfaff
I think these were leftovers from the removal of %z for MSVC that happened some time ago. VMware-BZ: 1265762 Signed-off-by: Ben Pfaff --- lib/netdev-bsd.c |4 ++-- lib/netdev-linux.c |2 +- lib/netlink-socket.c |2 +- lib/netlink.c|2 +- 4 files changed, 5 insertion

Re: [ovs-dev] [PATCH 16/16] ovs-benchmark: Compile for windows.

2014-06-09 Thread Ben Pfaff
On Fri, May 30, 2014 at 12:06:24PM -0700, Gurucharan Shetty wrote: > This just makes ovs-benchmark compile on windows. > This lets us go ahead with just a 'make' instead of > picking and choosing executables that are tested to work on > windows as arguments for make. > > This commit does not make

Re: [ovs-dev] [PATCH 15/16] unixctl-py.at: Skip tests for Windows.

2014-06-09 Thread Ben Pfaff
On Fri, May 30, 2014 at 12:06:23PM -0700, Gurucharan Shetty wrote: > We do not yet have a port for unixctl in Python. Till > deemed necessary, there is no plan to port it. > > Signed-off-by: Gurucharan Shetty Same comment about splitting AT_SKIP_IF into two cases. Acked-by: Ben Pfaff _

Re: [ovs-dev] [PATCH 14/16] lockfile: Modify tests for Windows.

2014-06-09 Thread Ben Pfaff
On Fri, May 30, 2014 at 12:06:22PM -0700, Gurucharan Shetty wrote: > Some of the tests in test-lockfile.c uses fork to test a > child's ability to acquire lock. We do not fork in Windows. > We also do not support symlinks on Windows. So, comment out > those tests. > > The error messages output is

Re: [ovs-dev] [PATCH 13/16] test-jsonrpc: Add the ability to detach on Windows.

2014-06-09 Thread Ben Pfaff
On Fri, May 30, 2014 at 12:06:21PM -0700, Gurucharan Shetty wrote: > And also disable the corresponding python tests. Same comment as before for AT_SKIP_IF. Do we want to skip every Python test on Windows? If so, should we change tests/atlocal.at to set HAVE_PYTHON=no if IS_WIN32=yes? Acked-by:

Re: [ovs-dev] [mask array v4 2/2] datapath: keep mask array compact when deleting mask

2014-06-09 Thread Thomas Graf
On 06/09/14 at 03:26pm, Andy Zhou wrote: > On Mon, Jun 9, 2014 at 2:58 PM, Thomas Graf wrote: > > On 06/06/14 at 02:37pm, Andy Zhou wrote: > >> +static void tbl_mask_array_delete_mask(struct mask_array *ma, > >> +const struct sw_flow_mask *mask) > >> +{ > >> +

Re: [ovs-dev] [PATCH 12/16] .gitignore: Update with couple of Windows specific creations.

2014-06-09 Thread Ben Pfaff
On Fri, May 30, 2014 at 12:06:20PM -0700, Gurucharan Shetty wrote: > Signed-off-by: Gurucharan Shetty Acked-by: Ben Pfaff ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 11/16] file_name.at: Disable Posix specific tests on Windows.

2014-06-09 Thread Ben Pfaff
On Fri, May 30, 2014 at 12:06:19PM -0700, Gurucharan Shetty wrote: > file_name.at tests dirname(), basename() and symlinks tests > that are POSIX related. > > Though we run the unit tests on msys, msys > automatically converts '/' to a Windows equivalent 'C:/foo/bar' > So, dirname() and basename()

Re: [ovs-dev] [mask array v4 2/2] datapath: keep mask array compact when deleting mask

2014-06-09 Thread Andy Zhou
On Mon, Jun 9, 2014 at 2:58 PM, Thomas Graf wrote: > On 06/06/14 at 02:37pm, Andy Zhou wrote: >> +static void tbl_mask_array_delete_mask(struct mask_array *ma, >> +const struct sw_flow_mask *mask) >> +{ >> + int i = 0; >> + >> + /* Delete a mask pointer

Re: [ovs-dev] [PATCH 10/16] daemon-py.at: Skip tests for Windows.

2014-06-09 Thread Ben Pfaff
On Fri, May 30, 2014 at 12:06:18PM -0700, Gurucharan Shetty wrote: > Python daemon functions haven't been ported for Windows. As of now, > there is no use for it on Windows. If such a use case comes up, > we will have to port them. Till then don't run those tests on > Windows. > > Signed-off-by: G

Re: [ovs-dev] [PATCH 09/16] daemon.at: Make changes for Windows.

2014-06-09 Thread Ben Pfaff
On Fri, May 30, 2014 at 12:06:17PM -0700, Gurucharan Shetty wrote: > Skip some of the tests that uses '--monitor' as an option as > it is not implemented on Windows. > > When a 'kill pid' is done on windows (through 'taskkill //F'), > pidfiles are not deleted (because it is force kill), so use > '

Re: [ovs-dev] [PATCH 08/16] daemon-windows: unlink pidfile before stopping the service.

2014-06-09 Thread Ben Pfaff
On Fri, May 30, 2014 at 12:06:16PM -0700, Gurucharan Shetty wrote: > When a OVS daemon is configured to run as a Windows service, > when the service is stopped by calling service_stop(), the > windows services manager does not give enough time to do > everything in the atexit handler. So call the e

Re: [ovs-dev] [PATCH 12/16] ofproto: Do straightforward removal of asynchronous flow operations.

2014-06-09 Thread Thomas Graf
On 06/05/14 at 10:02pm, Ben Pfaff wrote: > Open vSwitch has supported datapaths that cannot update their flow tables > synchronously for many versions. In that time, I have talked to many > hardware implementers. None of them has ever mentioned the asynchronous > interface. Furthermore, the only

Re: [ovs-dev] [PATCH 07/16] socket-util: Disable dscp setting on Windows.

2014-06-09 Thread Ben Pfaff
On Fri, May 30, 2014 at 12:06:15PM -0700, Gurucharan Shetty wrote: > According to msdn documentation, one is discouraged from using > IP_TOS for ipv4 sockets (it apparently does not actually set > anything). Also, IPV6_TCLASS does not exist in > Windows. Looks like Microsoft recommends QoS2 APIs to

Re: [ovs-dev] [PATCH 06/16] testsuite.at: pids can have zero after first character.

2014-06-09 Thread Ben Pfaff
On Fri, May 30, 2014 at 12:06:14PM -0700, Gurucharan Shetty wrote: > Fix the bug which did not kill the processes with pids that had > a zero in them. Also, some tests do a AT_CHECK([kill `cat pid`]) which > on windows prints something on the stdout causing the tests to fail. > So supress it. > >

Re: [ovs-dev] [PATCH 05/16] test-flows: Change the way flows are read.

2014-06-09 Thread Ben Pfaff
On Fri, May 30, 2014 at 12:06:13PM -0700, Gurucharan Shetty wrote: > With Visual Studio and Msys combination, something is going > wrong when we do a '3 fails. I do not know the exact reason for the failure. But the > workaround is straightforward. > > Signed-off-by: Gurucharan Shetty I remember

Re: [ovs-dev] [PATCH 04/16] test-util: Changes for 'assert' test on Windows.

2014-06-09 Thread Ben Pfaff
On Fri, May 30, 2014 at 12:06:12PM -0700, Gurucharan Shetty wrote: > There is no 'kill -l' type functionality available on Windows. > So instead of looking for the string 'ABRT', check for the exit > code which when run on msys (unit test environment) is 9. We could unify this a bit: on Unix-like

Re: [ovs-dev] [dev master 3/3] bridge: Re-try iface status update if the previous transaction fails.

2014-06-09 Thread Alex Wang
Yes it will work. I'll do check-all on transaction failure. I'll also combine this commit with the previous one for clarity. Thanks, Alex Wang, On Mon, Jun 9, 2014 at 2:39 PM, Ben Pfaff wrote: > On Sun, Jun 01, 2014 at 10:04:30PM -0700, Alex Wang wrote: > > This commit adds logic that marks

Re: [ovs-dev] [dev master 2/3] bridge: Make ovs-vswitchd run again if status_txn commit fails.

2014-06-09 Thread Alex Wang
On Mon, Jun 9, 2014 at 2:36 PM, Ben Pfaff wrote: > On Sun, Jun 01, 2014 at 10:04:29PM -0700, Alex Wang wrote: > > This commit adds logic that checks the return value of status_txn > > transaction and runs the update again if the transaction fails. > > > > Signed-off-by: Alex Wang > > I am not su

[ovs-dev] [PATCH v2] lib/classifier: Fix use of uninitialized memory.

2014-06-09 Thread Jarno Rajahalme
When reaching the end of a prefix trie, we checked one bit off the end to the intended data. However, since the trie node in that case has NULLs for both edge links, this did not result in incorrect functionality. Found via check-valgrind. Reported-by: Ben Pfaff Signed-off-by: Jarno Rajahalme

Re: [ovs-dev] [PATCH 02/16] socket-util-windows: Make WSAStartup available outside stream.c.

2014-06-09 Thread Ben Pfaff
On Mon, Jun 09, 2014 at 02:58:40PM -0700, Ben Pfaff wrote: > On Fri, May 30, 2014 at 12:06:10PM -0700, Gurucharan Shetty wrote: > > There are a couple of upcoming users. > > > > Signed-off-by: Gurucharan Shetty > > Acked-by: Ben Pfaff Should we call WSAStartup() from an OVS_CONSTRUCTOR()? (We

Re: [ovs-dev] [PATCH 03/16] tests: Port test-sflow and test-netflow to Windows.

2014-06-09 Thread Ben Pfaff
On Fri, May 30, 2014 at 12:06:11PM -0700, Gurucharan Shetty wrote: > After the change, both of them compile. test-netflow related > unit tests pass. > > test-sflow related tests do not pass because > of LOOPBACK_INTERFACE constraints for 'agent'. > (It should be revisited later.) > > Signed-off-b

Re: [ovs-dev] [PATCH 02/16] socket-util-windows: Make WSAStartup available outside stream.c.

2014-06-09 Thread Ben Pfaff
On Fri, May 30, 2014 at 12:06:10PM -0700, Gurucharan Shetty wrote: > There are a couple of upcoming users. > > Signed-off-by: Gurucharan Shetty Acked-by: Ben Pfaff ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [mask array v4 2/2] datapath: keep mask array compact when deleting mask

2014-06-09 Thread Thomas Graf
On 06/06/14 at 02:37pm, Andy Zhou wrote: > +static void tbl_mask_array_delete_mask(struct mask_array *ma, > +const struct sw_flow_mask *mask) > +{ > + int i = 0; > + > + /* Delete a mask pointer from the valid section. > + * > + * Also move the

Re: [ovs-dev] [PATCH 01/16] cmap: Rename a enum constant.

2014-06-09 Thread Ben Pfaff
On Fri, May 30, 2014 at 12:06:09PM -0700, Gurucharan Shetty wrote: > The constant MAX_PATH is already defined in Windows. > > Signed-off-by: Gurucharan Shetty The name MAXPATH will just make me wonder why there's a missing _. How about MAX_DEPTH? ___ d

Re: [ovs-dev] [PATCH 10/16] ofproto: Move logic for collecting read-only rules into rule_criteria.

2014-06-09 Thread Ben Pfaff
On Mon, Jun 09, 2014 at 10:28:25PM +0100, Thomas Graf wrote: > On 06/06/14 at 03:25pm, Ben Pfaff wrote: > > On Fri, Jun 06, 2014 at 11:11:57AM +0100, Thomas Graf wrote: > > > On 06/05/14 at 10:02pm, Ben Pfaff wrote: > > > > +/* By default, criteria initialized by rule_criteria_init() will match >

Re: [ovs-dev] [dev master 2/3] bridge: Make ovs-vswitchd run again if status_txn commit fails.

2014-06-09 Thread Ben Pfaff
On Sun, Jun 01, 2014 at 10:04:29PM -0700, Alex Wang wrote: > This commit adds logic that checks the return value of status_txn > transaction and runs the update again if the transaction fails. > > Signed-off-by: Alex Wang I am not sure that you understand what TXN_INCOMPLETE means. It means tha

Re: [ovs-dev] [PATCH 07/16] ofproto: Merge do_add_flow() and oftable_insert_rule() into add_flow().

2014-06-09 Thread Ben Pfaff
On Mon, Jun 9, 2014 at 2:09 PM, Thomas Graf wrote: > Acked-by: Thomas Graf Thanks! ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [dev master 3/3] bridge: Re-try iface status update if the previous transaction fails.

2014-06-09 Thread Ben Pfaff
On Sun, Jun 01, 2014 at 10:04:30PM -0700, Alex Wang wrote: > This commit adds logic that marks the 'struct iface's when their > status need to be updated but the current status update transaction > fails. So, the main thread can re-try the update in the next run. > > Bug #1256577 > > Signed-off-

Re: [ovs-dev] [dev master 1/3] ofproto: Add separate functions for checking bfd/cfm status change.

2014-06-09 Thread Ben Pfaff
On Sun, Jun 01, 2014 at 10:04:28PM -0700, Alex Wang wrote: > Currently, ofproto_port_get_bfd/cfm_status() is used to check the > bfd/cfm status change and query the status change. Users decide > what to do with the filled status struct based on the return value > of the funciton. Such design is c

Re: [ovs-dev] [PATCH 10/16] ofproto: Move logic for collecting read-only rules into rule_criteria.

2014-06-09 Thread Thomas Graf
On 06/06/14 at 03:25pm, Ben Pfaff wrote: > On Fri, Jun 06, 2014 at 11:11:57AM +0100, Thomas Graf wrote: > > On 06/05/14 at 10:02pm, Ben Pfaff wrote: > > > +/* By default, criteria initialized by rule_criteria_init() will match > > > flows > > > + * that are read-only, on the assumption that the co

[ovs-dev] [PATCH V2] ovs-thread: Implement OVS specific barrier.

2014-06-09 Thread Alex Wang
Non-leader revalidator thread uses pthread_barrier_* functions in their main loop to synchronize with leader thread. However, since those threads only call poll_block() intermittently, the poll interval check in poll_block() can wrongly take the time since last call as poll interval and issue the

Re: [ovs-dev] [PATCH 07/16] ofproto: Merge do_add_flow() and oftable_insert_rule() into add_flow().

2014-06-09 Thread Thomas Graf
On 06/06/14 at 02:59pm, Ben Pfaff wrote: > I only changed it for cosmetic reasons, because I thought that the > code "looked better" that way, so that's a good question. > > I do not think that the order matters because both of these are used > only with ofproto_mutex held: > > * The list

Re: [ovs-dev] [RFC] ovs-thread: Implement OVS specific barrier.

2014-06-09 Thread Alex Wang
On Mon, Jun 9, 2014 at 1:59 PM, Ben Pfaff wrote: > On Mon, Jun 09, 2014 at 12:40:46PM -0700, Ben Pfaff wrote: > > On Thu, May 29, 2014 at 04:15:46PM -0700, Alex Wang wrote: > > > Non-leader revalidator thread uses pthread_barrier_* functions in their > > > main loop to synchronize with leader thr

Re: [ovs-dev] [RFC] ovs-thread: Implement OVS specific barrier.

2014-06-09 Thread Ben Pfaff
On Mon, Jun 09, 2014 at 12:40:46PM -0700, Ben Pfaff wrote: > On Thu, May 29, 2014 at 04:15:46PM -0700, Alex Wang wrote: > > Non-leader revalidator thread uses pthread_barrier_* functions in their > > main loop to synchronize with leader thread. However, since those threads > > only call poll_block

Re: [ovs-dev] [mask array v3 1/2] Datapath: Simplify ovs_flow_tbl_lookup_stats()

2014-06-09 Thread Thomas Graf
On 06/06/14 at 01:59pm, Andy Zhou wrote: > On Fri, Jun 6, 2014 at 3:46 AM, Thomas Graf wrote: > > On 06/04/14 at 01:53pm, Andy Zhou wrote: > >> Signed-off-by: Andy Zhou > > > > I would personally value a commit message here since this looks like > > more than just a simplification ;-) > > The al

Re: [ovs-dev] [RFC] ovs-thread: Implement OVS specific barrier.

2014-06-09 Thread Ben Pfaff
On Thu, May 29, 2014 at 04:15:46PM -0700, Alex Wang wrote: > Non-leader revalidator thread uses pthread_barrier_* functions in their > main loop to synchronize with leader thread. However, since those threads > only call poll_block() intermittently, the poll interval check in > poll_block() can wr

[ovs-dev] [PATCH 5/8] lib/classifier: Optimize megaflows for single rule case.

2014-06-09 Thread Jarno Rajahalme
When, during a classifier lookup, we narrow down to a single potential rule, it is enough to match on ("unwildcard") one bit that differs between the packet and the rule. This is a special case of the more general algorithm, where it is sufficient to match on enough bits that separates the packet

[ovs-dev] [PATCH 8/8] lib/classifier: Use cmap.

2014-06-09 Thread Jarno Rajahalme
Use cmap instead of hmap & hindex in classifier. Performance impact with current locking strategy is not yet tested. Later patches will introduce RCU into the classifer. Signed-off-by: Jarno Rajahalme --- lib/classifier.c| 194 +-- lib/class

[ovs-dev] [PATCH 3/8] lib/cmap: Simplify iteration with C99 loop declaration.

2014-06-09 Thread Jarno Rajahalme
This further eases porting existing hmap code to use cmap instead. The iterator variants taking an explicit cursor are retained (renamed) as they are needed when iteration is to be continued from the last iterated node. Signed-off-by: Jarno Rajahalme --- lib/cmap.h| 43 +++

[ovs-dev] [PATCH 7/8] lib/classifier: Clarify find_match_wc().

2014-06-09 Thread Jarno Rajahalme
Reduce the number of goto statements by returning via a new helper fill_range_wc() when no match is found. Signed-off-by: Jarno Rajahalme --- lib/classifier.c | 37 ++--- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/lib/classifier.c b/lib/clas

[ovs-dev] [PATCH 1/8] lib/classifier: Fix incorrect pointer type.

2014-06-09 Thread Jarno Rajahalme
This bug did not manifest due to 'hmap_node' being in the same offset in both struct cls_partition and struct cls_subtable. Signed-off-by: Jarno Rajahalme --- lib/classifier.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/classifier.c b/lib/classifier.c index 00d47ac

[ovs-dev] [PATCH 4/8] lib/pvector: Non-intrusive RCU priority vector.

2014-06-09 Thread Jarno Rajahalme
Factor out the priority vector code from the classifier. Making the classifier use RCU instead of locking requires parallel access to the priority vector, pointing to subtables in descending priority order. When a new subtable is added, a new copy of the priority vector is allocated, while the cu

[ovs-dev] [PATCH 2/8] lib/classifier: Clean up includes.

2014-06-09 Thread Jarno Rajahalme
Remove unnecessary includes from lib/classifier.h and add them to lib/classifier.c as needed. Signed-off-by: Jarno Rajahalme --- lib/classifier.c |5 + lib/classifier.h |9 - 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/lib/classifier.c b/lib/classifier.c in

[ovs-dev] [PATCH 6/8] lib/classifier: Add miniflow_and_mask_matches_flow_wc.

2014-06-09 Thread Jarno Rajahalme
miniflow_and_mask_matches_flow_wc() fills in the masks in flow wildcards, so a separate step to that effect is no longer needed. Signed-off-by: Jarno Rajahalme --- lib/classifier.c | 57 + tests/ofproto-dpif.at |6 +++--- 2 files changed

Re: [ovs-dev] [PATCH] acinclude.m4: dpdk: link with -ldl if necessary

2014-06-09 Thread Ben Pfaff
On Tue, Jun 03, 2014 at 11:29:53AM -0700, Daniele Di Proietto wrote: > On some systems libintel_dpdk.a fails to link with libopenvswitch > unless -ldl is used. This should address the issue > > Signed-off-by: Daniele Di Proietto Applied, thanks! ___ de

Re: [ovs-dev] [PATCH] tests: Report core dumps during tests as failures.

2014-06-09 Thread Ben Pfaff
The most common time that I get core dumps is when I'm developing new code and a new test. Usually when I do that I'm only running a single test at a time. So I don't think that this would help enough. I wish there were a way to run some code after autotest was done. There's a "hook" for running

Re: [ovs-dev] [PATCH] tests: Report core dumps during tests as failures.

2014-06-09 Thread Ben Pfaff
On Thu, May 29, 2014 at 05:16:09PM -0700, Jarno Rajahalme wrote: > On May 29, 2014, at 3:06 PM, Ben Pfaff wrote: > > > Jarno, you might want to take a look at this, since it is a simple > > patch that improves the test cases in a way that you suggested. > > > > And I wondered why was this not i

Re: [ovs-dev] [PATCH 1/1] netflow: Modify netflow_flow_clear() to do netflow_expire__

2014-06-09 Thread Ben Pfaff
Sorry about the delay. I took a few minutes to properly understand the situation this morning. I applied the following form of your patch to master and branch-2.[123]: --8<--cut here-->8-- From: Anoob Soman Date: Tue, 20 May 2014 12:40:35 +0100 S

[ovs-dev] [PATCH v4 3/3] dpif-netdev: batch packet processing

2014-06-09 Thread Daniele Di Proietto
This change in dpif-netdev allows faster packet processing for devices which implement batching (netdev-dpdk currently). Signed-off-by: Daniele Di Proietto --- lib/dpif-netdev.c| 352 +++ lib/dpif.c | 12 +- lib/odp-execute.c

[ovs-dev] [PATCH v4 2/3] netdev: netdev_send accepts multiple packets

2014-06-09 Thread Daniele Di Proietto
The netdev_send function has been modified to accept multiple packets, to allow netdev providers to amortize locking and queuing costs. This is especially true for netdev-dpdk. Later commits exploit the new API. Signed-off-by: Daniele Di Proietto --- lib/dpif-netdev.c | 4 +- lib/netdev-b

[ovs-dev] [PATCH v4 0/3] DPDK batch packet processing

2014-06-09 Thread Daniele Di Proietto
Changes from v3: struct dpif_packet has its own header removed many dpif_packet functions (using ofpbuf directly instead) avoided copying in dpif_execute() Changes from v2: introduce struct dpif_packet for storing non-shared packet metadata Daniele Di Proietto (3): dpif-netdev: use dpif_packe

[ovs-dev] [PATCH v4 1/3] dpif-netdev: use dpif_packet structure for packets

2014-06-09 Thread Daniele Di Proietto
This commit introduces a new data structure used for receiving packets from netdevs and passing them to dpifs. The purpose of this change is to allow storing some private data for each packet. The subsequent commits make use of it. Signed-off-by: Daniele Di Proietto --- lib/automake.mk

Re: [ovs-dev] [mask array v4 1/2] Datapath: Simplify ovs_flow_tbl_lookup_stats()

2014-06-09 Thread Pravin Shelar
On Fri, Jun 6, 2014 at 2:37 PM, Andy Zhou wrote: > Simplify flow mask cache replacement without using expensive atomic > memory access to the mask pointers. > > Signed-off-by: Andy Zhou > --- > datapath/flow_table.c | 52 > --- > 1 file changed, 2

[ovs-dev] [wait for connection v2 3/3] test: Remove explicit sleeps from ofproto-dpif bond tests

2014-06-09 Thread Andy Zhou
Ofproto-dpif bond tests relies on netdev-dummy ports to set up socket connection before actual tests. The time required for socket connection varies depends on system load, making the test prone to failure with simple sleep calls. On the other hand, conservative sleep value for the slowest machine

[ovs-dev] [wait for connection v2 1/3] netdev-dummy: add appctl netdev-dummy/conn-state command

2014-06-09 Thread Andy Zhou
Using without any parameter, this command list the connection state of all netdev-dummy devices that are configured to make active connections. Optionally, the name of the netdev-dummy device can be supplied as a parameter. The states will be displayed as: "connected": The socket has been connec

[ovs-dev] [wait for connection v2 2/3] test: add WAIT_FOR_DUMMY_PORTS helper macro for writing tests

2014-06-09 Thread Andy Zhou
Add a macro to waiting until all ports supplied are connected. CC: Jarno Rajahalme Signed-off-by: Andy Zhou --- tests/ofproto-macros.at | 9 + 1 file changed, 9 insertions(+) diff --git a/tests/ofproto-macros.at b/tests/ofproto-macros.at index b4b6dab..af1e4f8 100644 --- a/tests/ofprot

Re: [ovs-dev] [PATCH 1/3] netdev-dummy: add appctl netdev-dummy/conn-state command

2014-06-09 Thread Andy Zhou
On Sun, Jun 8, 2014 at 1:32 PM, Jarno Rajahalme wrote: > > > Sent from my iPhone > > On Jun 8, 2014, at 12:32 AM, Andy Zhou wrote: > >>> What needs locking here? Could the locking be moved closer into the new >>> function? >> >> >> The conn member is declared with OVS_GUARDED in netdev_dummy. T

[ovs-dev] Patch [ 1/1] User space dpdk setup documentation addition, rev 2

2014-06-09 Thread Polehn, Mike A
Added details to dpdk poll mode setup and use to make it easier for some not familiar to get it operating. Signed-off-by: Mike A. Polehn diff --git a/INSTALL.DPDK b/INSTALL.DPDK index 3e0247a..df497fb 100644 --- a/INSTALL.DPDK +++ b/INSTALL.DPDK @@ -17,7 +17,8 @@ Building and Installing: Recom

Re: [ovs-dev] Patch [ 1/1] User space dpdk setup documentation addition

2014-06-09 Thread Polehn, Mike A
Yes, good catch! Mike Polehn -Original Message- From: John W. Linville [mailto:linvi...@tuxdriver.com] Sent: Monday, June 09, 2014 8:16 AM To: Polehn, Mike A Cc: dev@openvswitch.org Subject: Re: [ovs-dev] Patch [ 1/1] User space dpdk setup documentation addition On Mon, Jun 09, 2014 at

Re: [ovs-dev] Patch [ 1/1] User space dpdk setup documentation addition

2014-06-09 Thread John W. Linville
On Mon, Jun 09, 2014 at 02:47:05PM +, Polehn, Mike A wrote: > @@ -69,11 +123,72 @@ Now you can add dpdk devices. OVS expect DPDK device > name start with dpdk > and end with portid. vswitchd should print number of dpdk devices found. > > ovs-vsctl add-port br0 dpdk0 -- set Interface d

[ovs-dev] Patch [ 1/1] User space dpdk setup documentation addition, rev 1

2014-06-09 Thread Polehn, Mike A
Added details to dpdk poll mode setup and use to make it easier for some not familiar to get it operating. Signed-off-by: Mike A. Polehn diff --git a/INSTALL.DPDK b/INSTALL.DPDK index 3e0247a..689d95d 100644 --- a/INSTALL.DPDK +++ b/INSTALL.DPDK @@ -17,7 +17,8 @@ Building and Installing: Recom

[ovs-dev] Patch [ 1/1] User space dpdk setup documentation addition

2014-06-09 Thread Polehn, Mike A
Added details to dpdk poll mode setup and use to make it easier for some not familiar to get it operating. Signed-off-by: Mike A. Polehn diff --git a/INSTALL.DPDK b/INSTALL.DPDK index 3e0247a..f55ae8b 100644 --- a/INSTALL.DPDK +++ b/INSTALL.DPDK @@ -17,7 +17,8 @@ Building and Installing: Recom