Re: [ovs-dev] [PATCH 2/2] poll-loop: Remove static variable n_waiters.

2011-08-12 Thread Justin Pettit
It looks fine, but do we have an idea on the number of waiters that typically exist? --Justin On Aug 10, 2011, at 3:05 PM, Ben Pfaff wrote: > It's always a little risky to track the length of a list by hand, because > it is easy to miss a spot where the length can change. So it seems like > a

Re: [ovs-dev] [PATCH 1/2] dpif-netdev: Avoid pointlessly maintaining a port count.

2011-08-12 Thread Justin Pettit
Looks good. --Justin On Aug 10, 2011, at 3:05 PM, Ben Pfaff wrote: > 'n_ports' was only used for testing for nonzero, and we can rewrite the > code that does that to more straightforwardly use LIST_FOR_EACH_SAFE. > --- > lib/dpif-netdev.c |9 +++-- > 1 files changed, 3 insertions(+), 6 d

Re: [ovs-dev] [PATCH] connmgr: Remove unused function ofconn_n_pending_opgroups().

2011-08-12 Thread Justin Pettit
Looks fine to me. --Justin On Aug 10, 2011, at 3:05 PM, Ben Pfaff wrote: > --- > ofproto/connmgr.c |7 --- > ofproto/connmgr.h |1 - > 2 files changed, 0 insertions(+), 8 deletions(-) > > diff --git a/ofproto/connmgr.c b/ofproto/connmgr.c > index 38052ac..2d0b8c5 100644 > --- a/ofpro

Re: [ovs-dev] [PATCH] ofproto-dpif: Print register values in trace.

2011-08-12 Thread Ethan Jackson
Thanks for the review, I pushed this. Ethan On Fri, Aug 12, 2011 at 15:26, Ben Pfaff wrote: > On Fri, Aug 12, 2011 at 03:22:52PM -0700, Ethan Jackson wrote: >> I found this patch useful in tracking down a bug recently. > > Good idea. > > Regs have type uint32_t so the right format specifier is "

Re: [ovs-dev] [PATCH] ofproto-dpif: Print register values in trace.

2011-08-12 Thread Ben Pfaff
On Fri, Aug 12, 2011 at 03:22:52PM -0700, Ethan Jackson wrote: > I found this patch useful in tracking down a bug recently. Good idea. Regs have type uint32_t so the right format specifier is "%"PRIx32 (not %x). I think you probably don't want to make it print trailing white space in case we eve

[ovs-dev] [PATCH] ofproto-dpif: Print register values in trace.

2011-08-12 Thread Ethan Jackson
I found this patch useful in tracking down a bug recently. --- ofproto/ofproto-dpif.c | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index fdef4af..edc9ccb 100644 --- a/ofproto/ofproto-dpif.c +++ b/ofproto/ofp

Re: [ovs-dev] [PATCH 5/8] tests: test "load" and "move" actions.

2011-08-12 Thread Ben Pfaff
OK, it passes now that I pushed that commit: commit 72f7976600581cc9c57915dad150f7984c33e18b Author: Ben Pfaff Date: Fri Aug 12 14:59:11 2011 -0700 ofp-parse: Fix parsing of register values 2**31 and greater. Reported-by: Ethan Jackson On Fri, Aug 12, 2011 at 01:48:51PM -0700,

Re: [ovs-dev] [PATCH] ofp-parse: Fix parsing of register values 2**31 and greater.

2011-08-12 Thread Ben Pfaff
Thanks, I pushed this to master. On Fri, Aug 12, 2011 at 03:02:46PM -0700, Ethan Jackson wrote: > That fixes it, thanks. > > Ethan > > On Fri, Aug 12, 2011 at 15:00, Ben Pfaff wrote: > > Reported-by: Ethan Jackson > > --- > > Ethan, does this fix the problem that you reported? > > > > diff --g

Re: [ovs-dev] [PATCH] ofp-parse: Fix parsing of register values 2**31 and greater.

2011-08-12 Thread Ethan Jackson
Just reviewed it, looks good, thanks. Ethan On Fri, Aug 12, 2011 at 15:02, Ethan Jackson wrote: > That fixes it, thanks. > > Ethan > > On Fri, Aug 12, 2011 at 15:00, Ben Pfaff wrote: >> Reported-by: Ethan Jackson >> --- >> Ethan, does this fix the problem that you reported? >> >> diff --git a/

Re: [ovs-dev] [PATCH] ofp-parse: Fix parsing of register values 2**31 and greater.

2011-08-12 Thread Ethan Jackson
That fixes it, thanks. Ethan On Fri, Aug 12, 2011 at 15:00, Ben Pfaff wrote: > Reported-by: Ethan Jackson > --- > Ethan, does this fix the problem that you reported? > > diff --git a/lib/ofp-parse.c b/lib/ofp-parse.c > index e6a6af1..5c7feb2 100644 > --- a/lib/ofp-parse.c > +++ b/lib/ofp-parse.

[ovs-dev] [PATCH] ofp-parse: Fix parsing of register values 2**31 and greater.

2011-08-12 Thread Ben Pfaff
Reported-by: Ethan Jackson --- Ethan, does this fix the problem that you reported? diff --git a/lib/ofp-parse.c b/lib/ofp-parse.c index e6a6af1..5c7feb2 100644 --- a/lib/ofp-parse.c +++ b/lib/ofp-parse.c @@ -812,14 +812,20 @@ parse_field_value(struct cls_rule *rule, enum field_index index, stat

Re: [ovs-dev] [PATCH 5/8] tests: test "load" and "move" actions.

2011-08-12 Thread Ethan Jackson
I'm able to reproduce it now. It doesn't work with -m32 and does with -m64, I'll figure out whats wrong and fix it before merging, probably something minor. Ethan On Fri, Aug 12, 2011 at 13:45, Ben Pfaff wrote: > I used the latest version of your series.  I'm running 32-bit userspace > (2.6.32

Re: [ovs-dev] [PATCH 5/8] tests: test "load" and "move" actions.

2011-08-12 Thread Ben Pfaff
I used the latest version of your series. I'm running 32-bit userspace (2.6.32-5-686-bigmem). So you can compare what I tested against what you have, I pushed what I tested to a branch called "review" on openvswitch.org. (I'll delete it when we're done.) On Fri, Aug 12, 2011 at 12:40:44PM -0700

Re: [ovs-dev] [PATCH 8/8] nicra-ext: New action NXAST_OUTPUT_REG.

2011-08-12 Thread Ethan Jackson
No problem, changed. Ethan On Fri, Aug 12, 2011 at 12:13, Ben Pfaff wrote: > On Fri, Aug 12, 2011 at 11:53:01AM -0700, Ethan Jackson wrote: >> The NXAST_OUTPUT_REG action outputs to the OpenFlow port contained >> in a supplied NXM field. > > Here, "to zeroed" => "to be zeroed": >> + * The 'zero'

Re: [ovs-dev] [PATCH 6/8] nx-match: Update register check functions.

2011-08-12 Thread Ethan Jackson
Eh, silly mistake. Thanks. Ethan On Fri, Aug 12, 2011 at 12:06, Ben Pfaff wrote: > In bundle_check(), this: >> +            error = nxm_dst_check(nab->dst, ofs, n_bits, flow) || error; > will assign 'error' either 0 or 1, not 0 or an OpenFlow error code. > > Otherwise this looks good to me. > _

Re: [ovs-dev] [PATCH 5/8] tests: test "load" and "move" actions.

2011-08-12 Thread Ethan Jackson
Yep it passes for me. Very strange. Is this based on the latest version of the series I sent out? Are you running 32bit or 64 bit user space? I wonder if it has something to do with that? Ethan On Fri, Aug 12, 2011 at 12:02, Ben Pfaff wrote: > I applied patches 1-5 to the current "master" an

Re: [ovs-dev] [PATCH 0/8] Resend of the OUTPUT_REG series

2011-08-12 Thread Ben Pfaff
I sent some feedback on patches 5 through 8. The others look good to me. Thanks, Ben. On Fri, Aug 12, 2011 at 11:57:06AM -0700, Ethan Jackson wrote: > Just to be clear, before this is merged I think I need a review on the > following patches. > nx-match: Fix bug in "move" action. > test

Re: [ovs-dev] [PATCH 8/8] nicra-ext: New action NXAST_OUTPUT_REG.

2011-08-12 Thread Ben Pfaff
On Fri, Aug 12, 2011 at 11:53:01AM -0700, Ethan Jackson wrote: > The NXAST_OUTPUT_REG action outputs to the OpenFlow port contained > in a supplied NXM field. Here, "to zeroed" => "to be zeroed": > + * The 'zero' field is required to zeroed for forward compatibility. */ In the manpage, would you

Re: [ovs-dev] [PATCH 7/8] nx-match: New function nxm_read_field_bits().

2011-08-12 Thread Ben Pfaff
On Fri, Aug 12, 2011 at 11:53:00AM -0700, Ethan Jackson wrote: > nxm_read_field_bits() simplifies reading of NXM fields with an > ofs_nbits parameter. This patch updates nxm_execute_reg_move() to > use the new function. A user outside of the nx-match module will > be added in future patches. It

Re: [ovs-dev] [PATCH 6/8] nx-match: Update register check functions.

2011-08-12 Thread Ben Pfaff
In bundle_check(), this: > +error = nxm_dst_check(nab->dst, ofs, n_bits, flow) || error; will assign 'error' either 0 or 1, not 0 or an OpenFlow error code. Otherwise this looks good to me. ___ dev mailing list dev@openvswitch.org http://open

Re: [ovs-dev] [PATCH 5/8] tests: test "load" and "move" actions.

2011-08-12 Thread Ben Pfaff
I applied patches 1-5 to the current "master" and get the following test failure from the new test. Does it pass for you? ## -- ## ## openvswitch 1.2.90 test suite. ## ## -- ## 379. ofproto-dpif.at:21: testing ofproto-dpif - registers ... ..

Re: [ovs-dev] [PATCH 0/8] Resend of the OUTPUT_REG series

2011-08-12 Thread Ethan Jackson
Just to be clear, before this is merged I think I need a review on the following patches. nx-match: Fix bug in "move" action. tests: test "load" and "move" actions. And the updates to the following patches: nx-match: New function nxm_read_field_bits(). nicra-ext: New action NXAST_O

Re: [ovs-dev] [PATCH 6/6] nicra-ext: New action NXAST_OUTPUT_REG.

2011-08-12 Thread Ben Pfaff
On Fri, Aug 12, 2011 at 11:48:42AM -0700, Ethan Jackson wrote: > Thanks for the review. I've supplied an incremental below. The series has > changed enough that I'm going to resend the entire thing for completeness. Thanks, I would appreciate that. > > Let's add a requirement that pad[] in stru

[ovs-dev] [PATCH 8/8] nicra-ext: New action NXAST_OUTPUT_REG.

2011-08-12 Thread Ethan Jackson
The NXAST_OUTPUT_REG action outputs to the OpenFlow port contained in a supplied NXM field. --- NEWS |3 +++ include/openflow/nicira-ext.h | 33 - lib/ofp-parse.c | 23 ++- lib/ofp-print.c

[ovs-dev] [PATCH 6/8] nx-match: Update register check functions.

2011-08-12 Thread Ethan Jackson
This patch simplifies the API of nxm_dst_check() and adds a new function nxm_src_check() for checking source fields. --- lib/autopath.c | 11 - lib/bundle.c| 11 - lib/multipath.c |7 +- lib/nx-match.c | 62 --

[ovs-dev] [PATCH 7/8] nx-match: New function nxm_read_field_bits().

2011-08-12 Thread Ethan Jackson
nxm_read_field_bits() simplifies reading of NXM fields with an ofs_nbits parameter. This patch updates nxm_execute_reg_move() to use the new function. A user outside of the nx-match module will be added in future patches. --- lib/nx-match.c | 35 +-- lib/nx-matc

[ovs-dev] [PATCH 5/8] tests: test "load" and "move" actions.

2011-08-12 Thread Ethan Jackson
--- tests/ofproto-dpif.at | 25 + 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/tests/ofproto-dpif.at b/tests/ofproto-dpif.at index 846eccb..38ffc08 100644 --- a/tests/ofproto-dpif.at +++ b/tests/ofproto-dpif.at @@ -17,3 +17,28 @@ AT_CHECK([tail -1 stdou

[ovs-dev] [PATCH 4/8] nx-match: Fix bug in "move" action.

2011-08-12 Thread Ethan Jackson
This patch fixes a bug introduced in Commit 43edca57 "nx-match: New helpers.", which caused the "move" action to improperly handle bit ranges. --- lib/nx-match.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/nx-match.c b/lib/nx-match.c index ecc284e..cccf6fe 100644

[ovs-dev] [PATCH 3/8] flow: New FLOW_WC_SEQ build assertion.

2011-08-12 Thread Ethan Jackson
Changing "struct flow" or its wildcards requires minor adjustments in many places in the code. This patch adds a new FLOW_WC_SEQ sequence number which when incremented will cause build assertion failures aiding the developer in finding code which needs to change. --- lib/classifier.c |6 -

[ovs-dev] [PATCH 1/8] lib: Whitespace cleanup.

2011-08-12 Thread Ethan Jackson
--- lib/classifier.c |6 +++--- lib/flow.c |4 ++-- lib/learning-switch.c |2 +- lib/netdev.c |2 +- lib/odp-util.c |2 +- lib/util.c |2 +- ofproto/netflow.c |2 +- ofproto/ofproto-dpif.c |6 +++--- ofproto/ofpr

[ovs-dev] [PATCH 2/8] tests: Update gitignore.

2011-08-12 Thread Ethan Jackson
--- tests/.gitignore |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/tests/.gitignore b/tests/.gitignore index 9f939c2..1454dac 100644 --- a/tests/.gitignore +++ b/tests/.gitignore @@ -22,6 +22,7 @@ /test-list /test-lockfile /test-multipath +/test-odp /test-openflowd

[ovs-dev] [PATCH 0/8] Resend of the OUTPUT_REG series

2011-08-12 Thread Ethan Jackson
This series has changed enough that I decided to resend the entire thing. Pretty much all of this has been reviewed with the exception of a new patch "nx-match: Fix bug in "move" action.". We will likely want to backport that patch to 1.2. Ethan Jackson (8): lib: Whitespace cleanup. tests: U

[ovs-dev] Re: [ovs-dev] [PATCH 6/6] nicra-ext: New action NXAST_OUTPUT_REG.

2011-08-12 Thread Ethan Jackson
Thanks for the review. I've supplied an incremental below. The series has changed enough that I'm going to resend the entire thing for completeness. > Let's add a requirement that pad[] in struct nx_action_output_reg be > all-bytes-zero, in case we want to extend it later. I was wondering about

[ovs-dev] failure notice

2011-08-12 Thread MAILER-DAEMON
Hi. This is the qmail-send program at internet.moew.government.bg. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out. : Sorry, no mailbox here by that name. (#5.1.1) --- Below this line is a copy of the