Re: [ovs-dev] [PATCH] xcache: Remove unused field xc_entry.u.learn.ofproto.

2014-05-26 Thread Joe Stringer
Thanks, I applied this to master. On 23 May 2014 17:01, Alex Wang wrote: > Acked-by: Alex Wang > > > On Thu, May 22, 2014 at 9:35 PM, Joe Stringer wrote: > >> Signed-off-by: Joe Stringer >> --- >> ofproto/ofproto-dpif-xlate.c |2 -- >> 1 file cha

[ovs-dev] [PATCH 1/2] tests: Clean up idltest on distclean.

2014-05-26 Thread Joe Stringer
This was causing failures in 'make distcleancheck'. Signed-off-by: Joe Stringer --- tests/automake.mk |1 + 1 file changed, 1 insertion(+) diff --git a/tests/automake.mk b/tests/automake.mk index 9354fad..bf943ce 100644 --- a/tests/automake.mk +++ b/tests/automake.mk @@ -19

[ovs-dev] [PATCH 2/2] datapath: Clean up files on distclean.

2014-05-26 Thread Joe Stringer
This was causing failures in 'make distcleancheck'. Signed-off-by: Joe Stringer --- datapath/linux/Makefile.main.in |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/datapath/linux/Makefile.main.in b/datapath/linux/Makefile.main.in index 88f144c..7d18253 10

[ovs-dev] [branch-2.3] revalidator: Eliminate duplicate flow handling.

2014-05-27 Thread Joe Stringer
s create a ukey, allowing the ukey's mutex to be used as the basis for preventing a flow from being handled twice. This is expected to cause some minor performance regression for cases like TCP_CRR, in favour of correctness and readability. Bug #1252997. Signed-off-by: Joe Stringer --- ofprot

Re: [ovs-dev] [branch-2.3] revalidator: Eliminate duplicate flow handling.

2014-05-27 Thread Joe Stringer
Due to the differences between master and branch-2.3 and pressure to get this out, I've targetted this first at branch-2.3. I intend to prepare an equivalent patch for master, separately. On 28 May 2014 13:19, Joe Stringer wrote: > A series of bugs have been identified recently that ar

Re: [ovs-dev] [branch-2.3] revalidator: Eliminate duplicate flow handling.

2014-05-27 Thread Joe Stringer
Alex Wang wrote: > Acked-by: Alex Wang > > > For master, I'm about to refactor the datapath so that we never dump > duplicated flows. So, I think we should consider refactoring master after > that. > > > Thanks, > Alex Wang, > > > On Tue, May 27, 2014

Re: [ovs-dev] [branch-2.3] revalidator: Eliminate duplicate flow handling.

2014-05-27 Thread Joe Stringer
ewhere, but perhaps they aren't. > > Ethan > > On Tue, May 27, 2014 at 7:13 PM, Joe Stringer > wrote: > > Thanks for the Ack, I pushed this to branch-2.3. > > > > I'd like to send a patch for master anyway, in part so that we ensure to > > address this (

Re: [ovs-dev] [PATCH 1/2] tests: Clean up idltest on distclean.

2014-05-27 Thread Joe Stringer
03:11, Ben Pfaff wrote: > On Tue, May 27, 2014 at 01:46:59PM +1200, Joe Stringer wrote: > > This was causing failures in 'make distcleancheck'. > > > > Signed-off-by: Joe Stringer > > OVSIDL_BUILT is already in EXTRA_DIST. It doesn't make sense

Re: [ovs-dev] [PATCH 1/2] tests: Clean up idltest on distclean.

2014-05-28 Thread Joe Stringer
. I sent out a patch: > http://openvswitch.org/pipermail/dev/2014-May/040737.html > > I don't know why you would get different results. Are you running > distcleancheck separately from distcheck? I've never tried that. > > On Wed, May 28, 2014 at 05:34:28PM +1200, Joe St

Re: [ovs-dev] [PATCH] vtep: Don't try to both distribute and distclean the manpage.

2014-05-28 Thread Joe Stringer
Looks good to me. Acked-by: Joe Stringer On 29 May 2014 05:36, Ben Pfaff wrote: > Since the initial checkin of the vtep code, the manpage has been both > distributed and distcleaned. That's contradictory. This commit fixes it. > > This commit also moves the vtep manpag

Re: [ovs-dev] [PATCH 1/2] ovs-dev.py: Add option to specify which tests to run.

2014-05-29 Thread Joe Stringer
10:13 AM, Ben Pfaff wrote: > > Ethan, I think you should review this. > > > > On Sun, May 18, 2014 at 9:11 PM, Joe Stringer > wrote: > >> Signed-off-by: Joe Stringer > >> --- > >> utilities/ovs-dev.py | 10 ++ > >> 1 file changed, 10

Re: [ovs-dev] [PATCHv2] ovs-dev.py: Add option to run tests in parallel.

2014-05-29 Thread Joe Stringer
; >> On my system at leas,t the fact that we pass "-j 8" to make, > >> automagically causes the tests to run in parallel already. Does that > >> not work for you? > >> > >> Ethan > >> > >> On Thu, May 29, 2014 at 10:12 AM, Be

[ovs-dev] [PATCH 2/2] revalidator: Refactor ukey creation/lookup.

2014-05-29 Thread Joe Stringer
concurrently, which means the flow does not need to be handled anyway. Signed-off-by: Joe Stringer --- ofproto/ofproto-dpif-upcall.c | 86 ++--- 1 file changed, 37 insertions(+), 49 deletions(-) diff --git a/ofproto/ofproto-dpif-upcall.c b/ofproto/ofproto

[ovs-dev] [PATCH 1/2] revalidator: Eliminate duplicate flow handling.

2014-05-29 Thread Joe Stringer
s create a ukey, allowing the ukey's mutex to be used as the basis for preventing a flow from being handled twice. This improves code correctness and readability. Bug #1252997. Signed-off-by: Joe Stringer --- The original version of this patch has been merged to branch-2.3, and noted a pot

Re: [ovs-dev] [branch-2.3] revalidator: Eliminate duplicate flow handling.

2014-05-29 Thread Joe Stringer
I couldn't measure a difference in TCP_CRR. I dropped that part of the message from the patch that I sent for master: http://openvswitch.org/pipermail/dev/2014-May/040863.html On 28 May 2014 14:33, Joe Stringer wrote: > Yeah, I'd like to get a gauge of this as well. I'll

Re: [ovs-dev] [PATCH 2/2] datapath: Clean up files on distclean.

2014-05-29 Thread Joe Stringer
s and it's in the datapath > directory so I'll leave it to Pravin and Jesse. > > On Tue, May 27, 2014 at 01:47:00PM +1200, Joe Stringer wrote: > > This was causing failures in 'make distcleancheck'. > > > > Signed-off-by: Joe Stringer > > --- &

Re: [ovs-dev] [PATCHv2] ovs-dev.py: Add option to run tests in parallel.

2014-06-02 Thread Joe Stringer
On 31 May 2014 13:27, Ethan Jackson wrote: > > I agree with the sentiment that it shouldn't be optional; that was my > first > > thought. Although, feedback from V1 was concerned about additional system > > resources required to run it like that. > > > > Perhaps a compromise is to have it configu

Re: [ovs-dev] [PATCH 1/2] revalidator: Eliminate duplicate flow handling.

2014-06-02 Thread Joe Stringer
On 3 June 2014 08:41, Ethan Jackson wrote: > The comment over the trylock exceeds the line limit. > I'll fix that up. > I'm not sure if this is the right patch to fix it or not, but I don't > like how we're overloading the meaning of the 'mark'. I think the > code would be a lot clearer if we

Re: [ovs-dev] [PATCH 1/2] revalidator: Eliminate duplicate flow handling.

2014-06-02 Thread Joe Stringer
Sorry, I must have pushed the wrong version. I'll send a patch. On 3 June 2014 12:19, Jarno Rajahalme wrote: > > On Jun 2, 2014, at 4:55 PM, Joe Stringer wrote: > > On 3 June 2014 08:41, Ethan Jackson wrote: > >> The comment over the trylock exceeds the line limi

[ovs-dev] [PATCH] revalidator: Fix a build issue.

2014-06-02 Thread Joe Stringer
Commit acaa8dac490cc6c36026d45f3010ec75f38ee142 (revalidator: Eliminate duplicate flow handling.) introduced a build error. This fixes the bug. Reported-by: Jarno Rajahalme Signed-off-by: Joe Stringer --- ofproto/ofproto-dpif-upcall.c |2 +- 1 file changed, 1 insertion(+), 1 deletion

Re: [ovs-dev] [PATCH] revalidator: Fix a build issue.

2014-06-02 Thread Joe Stringer
Thanks, applied. I'll change the way I push to prevent this in future. On 3 June 2014 12:26, Jarno Rajahalme wrote: > Acked-by: Jarno Rajahalme > > On Jun 2, 2014, at 5:23 PM, Joe Stringer wrote: > > > Commit acaa8dac490cc6c36026d45f3010ec75f38ee142 (revalidator:

[ovs-dev] [PATCH 2/2] ofproto: Remove ofproto_refresh_rule().

2014-06-03 Thread Joe Stringer
The only user of this function was removed in the previous patch, so remove it. Signed-off-by: Joe Stringer --- ofproto/ofproto-dpif.c | 12 ofproto/ofproto-provider.h |2 -- ofproto/ofproto.c | 41 - 3 files changed, 55

[ovs-dev] [PATCH 1/2] ofproto-dpif-xlate: Cache full flowmod for learning.

2014-06-03 Thread Joe Stringer
cratch with the original flow, rather than simply refreshing the rule that was created during the creation of the xcache. Bug #1252997. Reported-by: Scott Hendricks Signed-off-by: Joe Stringer --- ofproto/ofproto-dpif-xlate.c | 58 ++ 1 file changed, 30 in

Re: [ovs-dev] [PATCH 1/2] ofproto-dpif-xlate: Cache full flowmod for learning.

2014-06-03 Thread Joe Stringer
On 4 June 2014 05:39, Alex Wang wrote: > I confirm this patch fix the bug, but have a high level concern, > > > Assume another learnt flow with hard_timeout=10 and was never hit after > install, now, if there is frequent change to the flow table and > need_revalidate > is constantly 'true', this

Re: [ovs-dev] [PATCH 1/2] ofproto-dpif-xlate: Cache full flowmod for learning.

2014-06-03 Thread Joe Stringer
t; need_revalidate >> is constantly 'true', this learnt flow will never timeout... since we >> always >> redo the flow_mod during revalidation, >> >> Let's discuss further on this scenario, I'm thinking about solutions, >> >> Thanks,

Re: [ovs-dev] [PATCH 1/2] ofproto-dpif-xlate: Cache full flowmod for learning.

2014-06-03 Thread Joe Stringer
8]; struct ofputil_flow_mod fm; struct ofpbuf ofpacts; On 4 June 2014 10:11, Ben Pfaff wrote: > On Wed, Jun 04, 2014 at 09:51:16AM +1200, Joe Stringer wrote: > > On 4 June 2014 05:39, Alex Wang wrote: > > > > > I confirm this patch fix the bug, but have a high l

Re: [ovs-dev] [PATCH 1/2] ofproto-dpif-xlate: Cache full flowmod for learning.

2014-06-03 Thread Joe Stringer
OK, thanks. I'll push this patchset to master and branch-2.3 soon. On 4 June 2014 10:33, Ben Pfaff wrote: > On Wed, Jun 04, 2014 at 10:30:13AM +1200, Joe Stringer wrote: > > Would this incremental alleviate your concerns? > > > > diff --git a/ofproto/ofproto-dpif-xlat

Re: [ovs-dev] [PATCH 1/2] ofproto-dpif-xlate: Cache full flowmod for learning.

2014-06-03 Thread Joe Stringer
Yes, Alex has helped a lot with this. Thanks Alex! On 4 June 2014 10:36, Ben Pfaff wrote: > Thank you! Also many thanks to Alex. > > On Wed, Jun 04, 2014 at 10:34:44AM +1200, Joe Stringer wrote: > > OK, thanks. I'll push this patchset to master and branch-2.3 soon. > &

Re: [ovs-dev] [PATCH 2/2] ofproto: Remove ofproto_refresh_rule().

2014-06-03 Thread Joe Stringer
Thanks, I pushed this series to master and branch-2.3. On 4 June 2014 10:06, Alex Wang wrote: > Acked-by: Alex Wang > > > On Tue, Jun 3, 2014 at 2:59 AM, Joe Stringer > wrote: > >> The only user of this function was removed in the previous patch, so >> remov

Re: [ovs-dev] [PATCH 2/2] revalidator: Refactor ukey creation/lookup.

2014-06-03 Thread Joe Stringer
. > > lock_hmap() > ukey = ukey_lookup() > if (!ukey) { > //create and insert > } else { > // trylock > } > unlock_hmap() > > What do you think? > > > > On Thu, May 29, 2014 at 6:38 PM, Joe Stringer > wrote: > > This patch refactors the co

[ovs-dev] [PATCHv3 1/2] ovs-dev.py: Add option to specify which tests to run.

2014-06-03 Thread Joe Stringer
Signed-off-by: Joe Stringer --- v3: Don't require users to specify "-k" for searches. v2: No change. v1: First post. --- utilities/ovs-dev.py | 14 ++ 1 file changed, 14 insertions(+) diff --git a/utilities/ovs-dev.py b/utilities/ovs-dev.py index 814a9d0..2c3af

[ovs-dev] [PATCHv3 2/2] ovs-dev.py: Add option to run tests in parallel.

2014-06-03 Thread Joe Stringer
Signed-off-by: Joe Stringer --- v3: Set the default to -j8. v2: Make it configurable. v1: First post. --- utilities/ovs-dev.py |6 ++ 1 file changed, 6 insertions(+) diff --git a/utilities/ovs-dev.py b/utilities/ovs-dev.py index 2c3af19..fa74d57 100755 --- a/utilities/ovs-dev.py +++ b

[ovs-dev] [PATCHv2 3/3] revalidator: Use xcache when revalidation is required.

2014-06-03 Thread Joe Stringer
xlate_cache to attribute stats when full revalidation is required. Furthermore, rather than deleting the xcache when revalidating, keep it around. Signed-off-by: Joe Stringer --- v2: Don't delete the old xcache when revalidating. Removed extraneous "ukey->xcache = NULL". --

[ovs-dev] [PATCHv2 1/3] revalidator: Refactor ukey creation/lookup.

2014-06-03 Thread Joe Stringer
concurrently, which means the flow does not need to be handled anyway. Signed-off-by: Joe Stringer --- v2: Make ukey_create() return the ukey locked. Rearrange the logic in ukey_acquire(). --- ofproto/ofproto-dpif-upcall.c | 95 +++-- 1 file changed, 43

[ovs-dev] [PATCHv2 2/3] revalidator: Replace ukey->mark with dump_seq.

2014-06-03 Thread Joe Stringer
Rather than setting and resetting the 'mark' field in the ukey, this patch introduces a seq to track whether a flow has been seen during the most recent dump. This tidies the code and simplifies the logic for detecting when flows are duplicated from the datapath. Signed-off-by: Jo

Re: [ovs-dev] [PATCHv3 2/2] ovs-dev.py: Add option to run tests in parallel.

2014-06-03 Thread Joe Stringer
014 12:45, Ethan Jackson wrote: > Sorry to nit pick, but could we change the option name to "--jobs" and > the abbreviated option to "-j". This is consistent with how make does > it. > > Acked-by: Ethan Jackson > > > On Tue, Jun 3, 2014 at 5:41 PM, Jo

Re: [ovs-dev] [PATCH 2/2] datapath: Clean up files on distclean.

2014-06-03 Thread Joe Stringer
Thanks Pravin, I applied this to master. On 31 May 2014 07:33, Pravin Shelar wrote: > On Mon, May 26, 2014 at 6:47 PM, Joe Stringer > wrote: > > This was causing failures in 'make distcleancheck'. > > > > Signed-off-by: Joe Stringer &g

Re: [ovs-dev] [PATCHv3 1/2] ovs-dev.py: Add option to specify which tests to run.

2014-06-03 Thread Joe Stringer
Thanks, pushed to master. On 4 June 2014 12:44, Ethan Jackson wrote: > Acked-by: Ethan Jackson > > > On Tue, Jun 3, 2014 at 5:41 PM, Joe Stringer > wrote: > > Signed-off-by: Joe Stringer > > --- > > v3: Don't require users to specify "-k" for

[ovs-dev] [PATCH] tests: Rename "ofproto-if"->"ofproto-dpif"

2014-06-03 Thread Joe Stringer
It's unclear why these tests are named "ofproto-if..." unlike all of the other ofproto-dpif tests. Rename them to be more consistent. Signed-off-by: Joe Stringer --- tests/ofproto-dpif.at |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/of

Re: [ovs-dev] [PATCHv2 2/3] revalidator: Replace ukey->mark with dump_seq.

2014-06-04 Thread Joe Stringer
udpif->dump_seq already exists in master, and is changed by the leader revalidator thread. On 5 June 2014 06:29, Ethan Jackson wrote: > Maybe I'm missing something. But I'm not seeing where the dump seq is > incremented > > > On Tuesday, June 3, 2014, Joe Strin

Re: [ovs-dev] [PATCHv2 3/3] revalidator: Use xcache when revalidation is required.

2014-06-04 Thread Joe Stringer
tats to it rather than fixing it when we revalidate. So, I think that the xcache should be used before revalidation, then cleared/re-built. On 5 June 2014 06:32, Ethan Jackson wrote: > Acked > > > On Tuesday, June 3, 2014, Joe Stringer wrote: > >> One of the reasons that

[ovs-dev] [PATCHv3] revalidator: Use xcache when revalidation is required.

2014-06-04 Thread Joe Stringer
xlate_cache to attribute stats when full revalidation is required, as the statistics belong to the old ruleset. However, when revalidating, the rules may have changed while leaving the datapath flows intact, so we still re-create the xcache at that point. Signed-off-by: Joe Stringer --- v3: Clear

Re: [ovs-dev] [PATCH] tests: Rename "ofproto-if"->"ofproto-dpif"

2014-06-04 Thread Joe Stringer
Thanks, I applied this to master. On 4 June 2014 15:26, Simon Horman wrote: > On Wed, Jun 04, 2014 at 02:54:27PM +1200, Joe Stringer wrote: > > It's unclear why these tests are named "ofproto-if..." unlike all of the > > other ofproto-dpif tests. Ren

Re: [ovs-dev] [PATCH 2/2] revalidator: Refactor ukey creation/lookup.

2014-06-04 Thread Joe Stringer
Thanks, applied to master. On 5 June 2014 06:26, Ethan Jackson wrote: > Acked > > > On Tuesday, June 3, 2014, Joe Stringer wrote: > >> This patch refactors the code around ukey creation and lookup to >> simplify the code for callers. A new function ukey_acquire()

Re: [ovs-dev] [PATCHv3] revalidator: Use xcache when revalidation is required.

2014-06-04 Thread Joe Stringer
Thanks, applied to master. On 5 June 2014 11:48, Alex Wang wrote: > Looks good to me, > > > Acked-by: Alex Wang > > > On Wed, Jun 4, 2014 at 3:08 PM, Joe Stringer > wrote: > >> One of the reasons that xlate_cache was introduced was to ensure that >> st

Re: [ovs-dev] [PATCHv2 2/3] revalidator: Replace ukey->mark with dump_seq.

2014-06-05 Thread Joe Stringer
Recieved a verbal ack, so I applied this to master. On 5 June 2014 09:26, Joe Stringer wrote: > udpif->dump_seq already exists in master, and is changed by the leader > revalidator thread. > > > On 5 June 2014 06:29, Ethan Jackson wrote: > >> Maybe I'm missi

Re: [ovs-dev] [PATCH] ofproto: Initialise return value of modify_flows__

2014-06-12 Thread Joe Stringer
This looks good to me, although I'm not too familiar with the code. Tested-by: Joe Stringer On 13 June 2014 14:06, Simon Horman wrote: > dd51dae29bccca3 ("ofproto: Move logic for collecting read-only rules into > rule_criteria.") modifies modify_flows__ such that the

[ovs-dev] [PATCH] revalidator: Add command to wait for revalidation.

2014-06-12 Thread Joe Stringer
This allows us to remove some of the sleeps from the testsuite. Signed-off-by: Joe Stringer --- There are still two other common cases that require sleeps: * Waiting for handler threads to create flows. * Waiting for the log writer to output. However, this at least removes a few sleeps

[ovs-dev] [PATCH] revalidator: Selectively perform xlate side-effects.

2014-06-15 Thread Joe Stringer
revalidation is necessary, and the flow is invalid, then attribute stats using the old xcache, and do not perform side-effects. VMware-BZ: #1268574 Reported-by: Len Gao Signed-off-by: Joe Stringer --- ofproto/ofproto-dpif-upcall.c | 10 -- ofproto/ofproto-dpif-xlate.c | 73

[ovs-dev] [PATCH 1/2] revalidator: Simplify push_dump_ops__().

2014-06-17 Thread Joe Stringer
. Signed-off-by: Joe Stringer --- ofproto/ofproto-dpif-upcall.c | 31 +-- 1 file changed, 13 insertions(+), 18 deletions(-) diff --git a/ofproto/ofproto-dpif-upcall.c b/ofproto/ofproto-dpif-upcall.c index 281955f..bd5c07a 100644 --- a/ofproto/ofproto-dpif-upcall.c +++ b

[ovs-dev] [PATCH 2/2] revalidator: Don't use xcache side-effects on delete.

2014-06-17 Thread Joe Stringer
for performing side-effects. Perform side-effects by flow translation instead. Signed-off-by: Joe Stringer --- ofproto/ofproto-dpif-upcall.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ofproto/ofproto-dpif-upcall.c b/ofproto/ofproto-dpif-upcall.c index bd5c07a

Re: [ovs-dev] [PATCH] dpif-netdev: Implement batched flow dumping.

2014-06-19 Thread Joe Stringer
Hi Ryan, a few broad comments: Could you split this into two patches, the dpif interface change and the dpif-netdev implementation change? I'm a little uneasy about the change to the dpif_flow_dump_next() interface, just because the size of the output parameter was previously paired with the outp

Re: [ovs-dev] [branch-2.0] ofproto-dpif: Configure datapath max-idle through ovs-vsctl.

2014-06-20 Thread Joe Stringer
LGTM (branches 1.10-.2.0) Acked-by: Joe Stringer On 20 June 2014 16:22, Alex Wang wrote: > This patch adds a new configuration option, "max-idle" to the > Open_vSwitch "other-config" column. This sets how long datapath flows > are cached in the datapath before ov

Re: [ovs-dev] [branch-2.1 1/2] upcall: Add appctl call to set flow_limit.

2014-06-20 Thread Joe Stringer
I assume these two backported cleanly? Looks good, not sure if you want to mention that it's a backport in the commit message. Acked-by: Joe Stringer On 20 June 2014 16:23, Alex Wang wrote: > From: Joe Stringer > > This should assist testing of datapath performance, as i

Re: [ovs-dev] [branch-2.1 2/2] upcall: Configure datapath max-idle through ovs-vsctl.

2014-06-20 Thread Joe Stringer
Same comment about the commit message. Acked-by: Joe Stringer On 20 June 2014 16:23, Alex Wang wrote: > From: Joe Stringer > > This patch adds a new configuration option, "max-idle" to the > Open_vSwitch "other-config" column. This sets how long datapath fl

[ovs-dev] [PATCH] tests: Remove extraneous parenthesis from test name.

2014-06-22 Thread Joe Stringer
This could cause configuration failure on earlier versions of autoconf. Reported-by: Lin Shaopeng Signed-off-by: Joe Stringer --- tests/ofp-print.at |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ofp-print.at b/tests/ofp-print.at index cfb604e..f2b896f 100644

Re: [ovs-dev] [PATCH] revalidator: Selectively perform xlate side-effects.

2014-06-22 Thread Joe Stringer
taken into account. However, such information is unavailable, and would be non-trivial to collect and maintain. So I propose that this solution as a slightly better effort than what we had previously. On 16 June 2014 17:09, Joe Stringer wrote: > Commit a48c85b2d6 (revalidator: Use xcache when re

[ovs-dev] [PATCH] Revert "revalidator: Use xcache when revalidation is required."

2014-06-23 Thread Joe Stringer
This reverts commit a48c85b2d672505b89e488d28066538705b94942. The commit was causing intermittent testsuite failures and unexpected re-install of stale mac-learning entries. VMware-BZ: 1268574 Reported-by: Len Gao Signed-off-by: Joe Stringer --- I'd like to take another stab at gettin

Re: [ovs-dev] [PATCH] revalidator: Selectively perform xlate side-effects.

2014-06-23 Thread Joe Stringer
On second thought, I noticed that this doesn't fix odd behaviour in the netflow expiration test. I sent out a patch to revert the original patch: http://openvswitch.org/pipermail/dev/2014-June/041868.html On 23 June 2014 18:29, Joe Stringer wrote: > Alex, could you review this serie

Re: [ovs-dev] [PATCH] Revert "revalidator: Use xcache when revalidation is required."

2014-06-23 Thread Joe Stringer
Thanks, I pushed this to master. I'll follow up on the original discussion in the other thread. On 24 June 2014 05:35, Alex Wang wrote: > Acked-by: Alex Wang > > > > On Mon, Jun 23, 2014 at 12:52 AM, Joe Stringer > wrote: > >> This reverts commit a48c85b2d6725

Re: [ovs-dev] [PATCH] revalidator: Selectively perform xlate side-effects.

2014-06-23 Thread Joe Stringer
On 24 June 2014 05:26, Alex Wang wrote: > (snip) > > Totally agree, > > So, I'm thinking this solution, > > - in revalidate_ukey(), if need_revalidate is set, we always: > 1. save the current xcache to old_xcache pointers. > 2. conduct full revalidation (but never push stats during revalidation)

[ovs-dev] [PATCH] lib: Fix FreeBSD build.

2014-06-24 Thread Joe Stringer
Various recent commits have introduced build failures on FreeBSD. This patch fixes them. Signed-off-by: Joe Stringer --- lib/bfd.c|1 + lib/netdev-bsd.c |4 +++- lib/signals.h|1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/bfd.c b/lib/bfd.c index

[ovs-dev] [PATCH] udpif: Add command to wait for revalidation.

2014-06-24 Thread Joe Stringer
This allows us to remove some of the sleeps from the testsuite. Signed-off-by: Joe Stringer --- v2: Add udpif_run(), manage connection from main thread. v1: First post. --- ofproto/ofproto-dpif-upcall.c | 45 + ofproto/ofproto-dpif-upcall.h |1

Re: [ovs-dev] [PATCH] revalidator: Add command to wait for revalidation.

2014-06-24 Thread Joe Stringer
Jun 13, 2014 at 05:00:40PM +1200, Joe Stringer wrote: > > This allows us to remove some of the sleeps from the testsuite. > > > > Signed-off-by: Joe Stringer > > --- > > There are still two other common cases that require sleeps: > > * Waiting for handler threads

Re: [ovs-dev] [PATCH] tests: Remove extraneous parenthesis from test name.

2014-06-24 Thread Joe Stringer
Thanks, I applied this to master. On 25 June 2014 06:22, Ben Pfaff wrote: > On Mon, Jun 23, 2014 at 09:33:56AM +1200, Joe Stringer wrote: > > This could cause configuration failure on earlier versions of autoconf. > > > > Reported-by: Lin Shaopeng > > Signed-off-by:

[ovs-dev] [PATCH] datapath: Remove redundant tcp_flags code.

2014-06-25 Thread Joe Stringer
These two cases used to be treated differently for IPv4/IPv6, but they are now identical. Signed-off-by: Joe Stringer --- datapath/flow_netlink.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/datapath/flow_netlink.c b/datapath/flow_netlink.c index 5a978f0

Re: [ovs-dev] [PATCH] lib: Fix FreeBSD build.

2014-06-26 Thread Joe Stringer
On 27 June 2014 09:51, Ben Pfaff wrote: > > Assuming you did a test build, > > Acked-by: Ben Pfaff > Yes, I checked again before pushing. Thanks, applied to master. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH] datapath: Remove redundant tcp_flags code.

2014-06-26 Thread Joe Stringer
Thanks, also received private ack from Pravin. I pushed this to master. On 26 June 2014 21:55, Jarno Rajahalme wrote: > Acked-by: Jarno Rajahalme > > On Jun 25, 2014, at 8:24 PM, Joe Stringer wrote: > > > These two cases used to be treated differently for IPv4/IPv6, bu

Re: [ovs-dev] [PATCH] lib: Fix FreeBSD build.

2014-06-26 Thread Joe Stringer
I realised that branch-2.3 also needed this fix, so I also pushed it there. On 27 June 2014 10:46, Joe Stringer wrote: > On 27 June 2014 09:51, Ben Pfaff wrote: >> >> Assuming you did a test build, >> >> Acked-by: Ben Pfaff >> > > Yes, I checked again

Re: [ovs-dev] [PATCH] udpif: Add command to wait for revalidation.

2014-06-29 Thread Joe Stringer
Thanks, I pushed this to master. On 27 June 2014 11:07, Ben Pfaff wrote: > On Wed, Jun 25, 2014 at 06:02:45PM +1200, Joe Stringer wrote: > > This allows us to remove some of the sleeps from the testsuite. > > > > Signed-off-by: Joe Stringer > > --- > > v2: A

[ovs-dev] [PATCH] revalidator: Simplify push_dump_ops__().

2014-06-30 Thread Joe Stringer
. Signed-off-by: Joe Stringer --- ofproto/ofproto-dpif-upcall.c | 39 ++- 1 file changed, 18 insertions(+), 21 deletions(-) diff --git a/ofproto/ofproto-dpif-upcall.c b/ofproto/ofproto-dpif-upcall.c index 87c2200..f0ddf63 100644 --- a/ofproto/ofproto-dpif-upcall.c

[ovs-dev] [PATCH 1/2] ovs-dev.py: Split out checking for program existence.

2014-06-30 Thread Joe Stringer
Signed-off-by: Joe Stringer --- utilities/ovs-dev.py | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/utilities/ovs-dev.py b/utilities/ovs-dev.py index 74143ca..91732e1 100755 --- a/utilities/ovs-dev.py +++ b/utilities/ovs-dev.py @@ -47,6 +47,14

[ovs-dev] [PATCH 2/2] ovs-dev.py: Add command to generate coverage info.

2014-06-30 Thread Joe Stringer
dev.py conf" to remove the coverage configuration. Signed-off-by: Joe Stringer --- I've uploaded an initial run of the test coverage here for a sample: http://joestringer.github.io/openvswitch/index.html If people are interested in having a coverage site like this accessible all the time,

Re: [ovs-dev] [PATCH v2] Extend OVS IPFIX exporter to export tunnel headers

2014-06-30 Thread Joe Stringer
Is there any chance we could get some unit tests written for IPFIX as part of this effort? The netflow tests occasionally help to prevent regressions, so it would be good to have something similar for IPFIX. ___ dev mailing list dev@openvswitch.org http:

[ovs-dev] [PATCH] revalidator: Improve optimization to skip revalidation.

2014-07-01 Thread Joe Stringer
we are likely to handle full revalidation, and attempt that instead. * Secondly, fall back to the existing flow throughput estimations to determine whether to revalidate the flow or just delete it. VMware-BZ: #1271926 Signed-off-by: Joe Stringer --- ofproto/ofproto-dpif-upcall.c | 17

Re: [ovs-dev] [PATCH] revalidator: Improve optimization to skip revalidation.

2014-07-01 Thread Joe Stringer
Thanks Alex, I've pushed applied this patch to master and branch-2.3. On 2 July 2014 16:02, Alex Wang wrote: > Thanks for the fix, > > Acked-by: Alex Wang > ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

[ovs-dev] [RFC 0/3] Improve revalidator accuracy in corner cases.

2014-07-02 Thread Joe Stringer
rom keeping incorrect flows in the datapath. * Secondly, improve the dpif interface and perform flow_get if the flow is missed and udpif->need_revalidate is set. In this case, perform revalidation and decide whether to keep or delete the flow. This may be related to VMware-BZ: #1271926. Joe St

[ovs-dev] [RFC 2/3] dpif: Allow batching flow_get.

2014-07-02 Thread Joe Stringer
This patch adds support for batching flow_get operations to the dpif. As part of this, it also now allows fetching the mask (this was previously not possible using a 'get' operation). Signed-off-by: Joe Stringer --- lib/dpif-linux.c| 70 +++

[ovs-dev] [RFC 1/3] revalidator: Don't delete missed dp flows immediately.

2014-07-02 Thread Joe Stringer
such "missed flows" immediately. This patch gives those flows a chance to be dumped, which should improve jitter/ latency for flows in this corner case. Signed-off-by: Joe Stringer --- ofproto/ofproto-dpif-upcall.c | 33 + 1 file changed, 21 insertions(+

[ovs-dev] [RFC 3/3] revalidator: Revalidate missed flows.

2014-07-02 Thread Joe Stringer
If the datapath doesn't dump a flow for some reason, and the current dump is expected to revalidate all flows in the datapath, then perform revalidation for those flows by fetching them during the sweep phase. Signed-off-by: Joe Stringer --- This relies on the mask dumping from the pre

Re: [ovs-dev] [RFC 1/3] revalidator: Don't delete missed dp flows immediately.

2014-07-02 Thread Joe Stringer
Thanks for the discussion. Given the time constraints, I will prepare a fresh version for branch-2.3 first, then address the issues on master separately. On 3 July 2014 08:56, Ben Pfaff wrote: > On Wed, Jul 02, 2014 at 08:14:13PM +1200, Joe Stringer wrote: > > There is no guara

[ovs-dev] [PATCHv2 1/2] dpif: Support fetching flow mask via dpif_flow_get().

2014-07-02 Thread Joe Stringer
Change the interface to allow implementations to pass back a buffer, and allow callers to specify which of actions, mask, and stats they wish to receive. This will be used in the next commit. Signed-off-by: Joe Stringer --- lib/dpif-linux.c| 23 +-- lib/dpif-netdev.c

[ovs-dev] [PATCHv2 2/2] revalidator: Revalidate missed flows.

2014-07-02 Thread Joe Stringer
don't revalidate it. Signed-off-by: Joe Stringer --- v2: Make the revalidator_sweep__() logic easier to read. Rebase. RFC: First post. --- ofproto/ofproto-dpif-upcall.c | 55 +++-- 1 file changed, 42 insertions(+), 13 deletions(-) diff --git a/ofproto/of

Re: [ovs-dev] [PATCHv2 1/2] dpif: Support fetching flow mask via dpif_flow_get().

2014-07-02 Thread Joe Stringer
Woops, I forgot to indicate that this series is for branch-2.3. On 3 July 2014 12:29, Joe Stringer wrote: > Change the interface to allow implementations to pass back a buffer, and > allow callers to specify which of actions, mask, and stats they wish to > receive. This will be us

Re: [ovs-dev] [PATCHv2 2/2] revalidator: Revalidate missed flows.

2014-07-02 Thread Joe Stringer
issed_revalidation(revalidator, ukey))) { struct dump_op *op = &ops[n_ops++]; dump_op_init(op, ukey->key, ukey->key_len, ukey); On 3 July 2014 12:29, Joe Stringer wrote: > If the datapath doesn't dump a flow for some reason, and the current &

Re: [ovs-dev] [RFC 2/3] dpif: Allow batching flow_get.

2014-07-02 Thread Joe Stringer
I appreciate the expedient review. This series doesn't actually depend on the batched flow_get, but this was a starting point/RFC for discussion. On 3 July 2014 09:24, Ben Pfaff wrote: > On Wed, Jul 02, 2014 at 08:14:14PM +1200, Joe Stringer wrote: > > This patch adds suppor

Re: [ovs-dev] [RFC 3/3] revalidator: Revalidate missed flows.

2014-07-02 Thread Joe Stringer
On 3 July 2014 10:30, Ben Pfaff wrote: > On Wed, Jul 02, 2014 at 08:14:15PM +1200, Joe Stringer wrote: > > If the datapath doesn't dump a flow for some reason, and the current > > dump is expected to revalidate all flows in the datapath, then perform > > revalidation f

Re: [ovs-dev] [PATCH] revalidator: Simplify push_dump_ops__().

2014-07-02 Thread Joe Stringer
Thanks, I pushed this to master. On 3 July 2014 08:42, Ben Pfaff wrote: > On Tue, Jul 01, 2014 at 01:54:18PM +1200, Joe Stringer wrote: > > Commit acaa8dac49 (revalidator: Eliminate duplicate flow handling.) > > ensured that a ukey will always exist for a given flow, even if it

Re: [ovs-dev] [RFC 2/3] dpif: Allow batching flow_get.

2014-07-03 Thread Joe Stringer
On 3 July 2014 18:27, Jarno Rajahalme wrote: > > On Jul 2, 2014, at 8:22 PM, Joe Stringer wrote: > > In dpif_linux_operate__(), I think that it is unnecessary to put > > NLM_F_ECHO in the message flags. > > I do not think that the code in dpif_linux_operate__() is safe

[ovs-dev] [PATCH] tests: Fix race in 'balance-tcp bonding' test.

2014-07-03 Thread Joe Stringer
Occasionally, this test would fail, with some of the ports reporting "may_enable: false" in the bond/show output. This commit fixes the race condition by waiting for may_enable to be true for all bond ports. Signed-off-by: Joe Stringer --- Running the test in a tight loop could

Re: [ovs-dev] [PATCHv2 1/2] dpif: Support fetching flow mask via dpif_flow_get().

2014-07-03 Thread Joe Stringer
Thanks for the review, On 4 July 2014 11:53, Ben Pfaff wrote: > On Thu, Jul 03, 2014 at 12:29:25PM +1200, Joe Stringer wrote: > > Change the interface to allow implementations to pass back a buffer, and > > allow callers to specify which of actions, mask, and stats they wish

[ovs-dev] [PATCHv3] dpif: Support fetching flow mask via dpif_flow_get().

2014-07-03 Thread Joe Stringer
Change the interface to allow implementations to pass back a buffer, and allow callers to specify which of actions, mask, and stats they wish to receive. This will be used in the next commit. Signed-off-by: Joe Stringer --- v3: Set *bufp to NULL before calling ->flow_get(). Allocate

Re: [ovs-dev] [PATCH] util: fix compile warnings

2014-07-06 Thread Joe Stringer
I feel like this is easier to follow if there's only one #ifdef block. We could combine the blocks and make the two platforms more aligned with something like this (based against master): diff --git a/lib/util.c b/lib/util.c index 4f9b079..c65051d 100644 --- a/lib/util.c +++ b/lib/util.c @@ -43,7

Re: [ovs-dev] [PATCHv2] util: fix compile warnings

2014-07-07 Thread Joe Stringer
Even better. Thanks! Acked-by: Joe Stringer ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCHv2] util: fix compile warnings

2014-07-07 Thread Joe Stringer
I pushed this to master and branch-2.3. On 8 July 2014 09:53, Joe Stringer wrote: > Even better. Thanks! > > Acked-by: Joe Stringer > ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH] tests: Fix race in 'balance-tcp bonding' test.

2014-07-07 Thread Joe Stringer
Thanks, I adjusted the commit message and pushed to master: Running the test in a tight loop could cause this test to fail after about 5 runs, with some of the ports reporting "may_enable: false" in the "ovs-appctl bond/show" output. This commit fixes the race condition by waiting

[ovs-dev] [PATCHv4 1/2] dpif: Support fetching flow mask via dpif_flow_get().

2014-07-07 Thread Joe Stringer
Change the interface to allow implementations to pass back a buffer, and allow callers to specify which of actions, mask, and stats they wish to receive. This will be used in the next commit. Signed-off-by: Joe Stringer --- v4: Rebase against master. v3: Set *bufp to NULL before calling

[ovs-dev] [PATCHv4 2/2] revalidator: Revalidate missed flows.

2014-07-07 Thread Joe Stringer
don't revalidate it. Signed-off-by: Joe Stringer --- v4: Minor adjustments to base against master. v3: No change. v2: Make the revalidator_sweep__() logic easier to read. Rebase. RFC: First post. --- ofproto/ofproto-dpif-upcall.c | 34 +- 1 file changed, 29 insert

[ovs-dev] [PATCHv4 0/2] Revalidate missed flows - master

2014-07-07 Thread Joe Stringer
for branch-2.3. Note that I have dropped the flow_get batching code from this version, as the revalidator code doesn't make use of this feature. v4: Rebase against master. v3: Address buffer safety feedback. v2: Drop batching. RFC: Initial post. Joe Stringer (2): dpif: Support fetching flow

Re: [ovs-dev] [PATCHv3] dpif: Support fetching flow mask via dpif_flow_get().

2014-07-07 Thread Joe Stringer
> > This is for branch-2.3, I think. > > Acked-by: Ben Pfaff > Yes, thanks. I've pushed this to branch-2.3. A version of this series for master is available here: http://mail.openvswitch.org/pipermail/dev/2014-July/042507.html ___ dev mailing list dev

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