Re: [ovs-dev] [PATCH] datapath: Memset executed packet's fields using memset.

2011-02-23 Thread Jesse Gross
On Wed, Feb 23, 2011 at 8:14 PM, Ben Pfaff wrote: > On Wed, Feb 23, 2011 at 8:07 PM, Jesse Gross wrote: >> Currently we explicitly zero out each of the fields in the OVS_CB for >> executed packets.  However, it seems simpler and more robust to just >> memset the whole thing to zero. >> >> Signed-

Re: [ovs-dev] [PATCH] datapath: Memset executed packet's fields using memset.

2011-02-23 Thread Ben Pfaff
On Wed, Feb 23, 2011 at 8:07 PM, Jesse Gross wrote: > Currently we explicitly zero out each of the fields in the OVS_CB for > executed packets.  However, it seems simpler and more robust to just > memset the whole thing to zero. > > Signed-off-by: Jesse Gross Acked-by: Ben Pfaff I don't know w

Re: [ovs-dev] [PATCH] datapath: Properly initialize ovs_skb_cb of packet from userspace.

2011-02-23 Thread Jesse Gross
On Tue, Feb 22, 2011 at 2:40 PM, Ben Pfaff wrote: > On Tue, Feb 22, 2011 at 02:33:13PM -0800, Jesse Gross wrote: >> On Fri, Feb 18, 2011 at 4:10 PM, Ben Pfaff wrote: >> > diff --git a/datapath/datapath.c b/datapath/datapath.c >> > index 940a581..dcff05f 100644 >> > --- a/datapath/datapath.c >> >

[ovs-dev] [PATCH] datapath: Memset executed packet's fields using memset.

2011-02-23 Thread Jesse Gross
Currently we explicitly zero out each of the fields in the OVS_CB for executed packets. However, it seems simpler and more robust to just memset the whole thing to zero. Signed-off-by: Jesse Gross --- datapath/datapath.c |8 +--- 1 files changed, 1 insertions(+), 7 deletions(-) diff --

Re: [ovs-dev] [PATCH] util: Make out_of_memory() call abort() instead of exit(EXIT_FAILURE).

2011-02-23 Thread Ben Pfaff
Thanks. I pushed this. On Wed, Feb 23, 2011 at 03:54:15PM -0800, Ethan Jackson wrote: > Looks Good. > > On Wed, Feb 23, 2011 at 3:43 PM, Ben Pfaff wrote: > > exit(EXIT_FAILURE) will make a monitoring process (the one created by > > --monitor) think that it should exit.  But the most likely reas

Re: [ovs-dev] [PATCH] util: Make out_of_memory() call abort() instead of exit(EXIT_FAILURE).

2011-02-23 Thread Ethan Jackson
Looks Good. On Wed, Feb 23, 2011 at 3:43 PM, Ben Pfaff wrote: > exit(EXIT_FAILURE) will make a monitoring process (the one created by > --monitor) think that it should exit.  But the most likely reason for > out_of_memory() to be called is a bug: probably, the process is trying > to allocate more

[ovs-dev] [PATCH] util: Make out_of_memory() call abort() instead of exit(EXIT_FAILURE).

2011-02-23 Thread Ben Pfaff
exit(EXIT_FAILURE) will make a monitoring process (the one created by --monitor) think that it should exit. But the most likely reason for out_of_memory() to be called is a bug: probably, the process is trying to allocate more memory than there is available address space, e.g. something like mallo

Re: [ovs-dev] [coverity3 13/13] ovsdb: Explicitly ignore sscanf() return value in is_valid_version().

2011-02-23 Thread Ben Pfaff
Thanks for all the reviews. I ran "make distcheck" and then pushed this. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev_openvswitch.org

Re: [ovs-dev] [coverity3 13/13] ovsdb: Explicitly ignore sscanf() return value in is_valid_version().

2011-02-23 Thread Ethan Jackson
Looks Fine. On Wed, Feb 23, 2011 at 1:24 PM, Ben Pfaff wrote: > The return value isn't interesting here: it will always be 0. > > Coverity #10698. > --- >  ovsdb/ovsdb.c |    2 +- >  1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/ovsdb/ovsdb.c b/ovsdb/ovsdb.c > index 2a54a7b..

Re: [ovs-dev] [coverity3 12/13] test-ovsdb: Check uuid_from_string() return value.

2011-02-23 Thread Ethan Jackson
Looks Good. On Wed, Feb 23, 2011 at 1:24 PM, Ben Pfaff wrote: > Coverity #10699. > --- >  tests/test-ovsdb.c |    6 -- >  1 files changed, 4 insertions(+), 2 deletions(-) > > diff --git a/tests/test-ovsdb.c b/tests/test-ovsdb.c > index aca68dc..3a34c09 100644 > --- a/tests/test-ovsdb.c > +++

Re: [ovs-dev] [coverity3 11/13] dhcp-client: Remove useless call to timeout() from send_reliably().

2011-02-23 Thread Ethan Jackson
Looks Good. On Wed, Feb 23, 2011 at 1:24 PM, Ben Pfaff wrote: > timeout() has no side effects so calling it without looking at the return > value is pointless. > > Coverity #10700. > --- >  lib/dhcp-client.c |    1 - >  1 files changed, 0 insertions(+), 1 deletions(-) > > diff --git a/lib/dhcp-cl

Re: [ovs-dev] [coverity3 10/13] ovs-vsctl: Clarify that uuid_from_string() shouldn't fail in post_create().

2011-02-23 Thread Ethan Jackson
Looks Good. On Wed, Feb 23, 2011 at 1:24 PM, Ben Pfaff wrote: > Coverity #10701. > --- >  utilities/ovs-vsctl.c |    4 +++- >  1 files changed, 3 insertions(+), 1 deletions(-) > > diff --git a/utilities/ovs-vsctl.c b/utilities/ovs-vsctl.c > index 6db4362..b9981aa 100644 > --- a/utilities/ovs-vsct

Re: [ovs-dev] [coverity3 09/13] ovs-kill: Remove.

2011-02-23 Thread Ethan Jackson
Looks Good assuming it make distchecks. On Wed, Feb 23, 2011 at 1:24 PM, Ben Pfaff wrote: > This utility isn't used anywhere (except INSTALL.Linux), so remove it. > > Signed-off-by: Ben Pfaff > Coverity #10708. > --- >  INSTALL.Linux                      |    2 +- >  debian/openvswitch-switch.in

Re: [ovs-dev] [coverity3 08/13] ovs-vsctl: Simplify parse_column_key_value().

2011-02-23 Thread Ethan Jackson
Looks Good. On Wed, Feb 23, 2011 at 1:24 PM, Ben Pfaff wrote: > Coverity pointed out some inconsistencies on tests for whether columnp and > keyp were nonnull.  These tests were, at best, confusing, but in fact every > caller always passed nonnull for both parameters, so this commit drops all > o

Re: [ovs-dev] [coverity3 07/13] ovs-brcompatd: Simplify code in brc_recv_update().

2011-02-23 Thread Ethan Jackson
Looks Good. On Wed, Feb 23, 2011 at 1:24 PM, Ben Pfaff wrote: > This code was baffling and it confused Coverity, too. > > Coverity #11070. > --- >  vswitchd/ovs-brcompatd.c |   45 - >  1 files changed, 32 insertions(+), 13 deletions(-) > > diff --git a/

Re: [ovs-dev] [coverity3 06/13] ovsdb-idl: JSONRPC_REPLY message always has nonnull 'id'.

2011-02-23 Thread Ethan Jackson
Looks Good. On Wed, Feb 23, 2011 at 1:24 PM, Ben Pfaff wrote: > A JSONRPC_REPLY message always have a nonnull 'id' member, as ensured by > jsonrpc_msg_is_valid().  Checking for NULL here confused Coverity into > believing that the call to ovsdb_idl_txn_process_reply() just below could > cause a n

Re: [ovs-dev] [coverity3 05/13] rconn: Clarify rconn_run_wait().

2011-02-23 Thread Ethan Jackson
Looks Fine. On Wed, Feb 23, 2011 at 1:24 PM, Ben Pfaff wrote: > At first glance the vconn_wait() call looks risky because this function > checked whether rc->vconn is nonnull at the top.  In fact it's OK because > rc->state will be S_ACTIVE or S_IDLE only if rc->vconn is nonnull, but > there's no

Re: [ovs-dev] [coverity3 04/13] leak-checker: Avoid printing freed pointer.

2011-02-23 Thread Ethan Jackson
Seems fine to me. I don't quite understand what exactly we are worried will break with this approach. Ethan On Wed, Feb 23, 2011 at 1:24 PM, Ben Pfaff wrote: > I think that this will work OK, and it should avoid complaints from static > checkers about using a freed pointer. > > Coverity #11069.

Re: [ovs-dev] [coverity3 03/13] stream: Make stream_report_content() tolerate negative size.

2011-02-23 Thread Ethan Jackson
Looks Good. On Wed, Feb 23, 2011 at 1:24 PM, Ben Pfaff wrote: > A negative size probably means that a system call failed.  The caller could > set that to 0 but we might as well just tolerate it in > stream_report_content() by making the parameter type signed. > > Coverity #10718. > --- >  lib/str

Re: [ovs-dev] [coverity3 02/13] process: Avoid late failure if /dev/null cannot be opened.

2011-02-23 Thread Ethan Jackson
Looks Good. On Wed, Feb 23, 2011 at 1:24 PM, Ben Pfaff wrote: > It is (very slightly) risky to open /dev/null every time that we need it, > because open can fail.  So this commit opens /dev/null in advance instead. > > Coverity #10719. > --- >  lib/process.c |   24 ++-- >  1 f

Re: [ovs-dev] [coverity3 01/13] bridge: Ethernet address is 6 bytes, not 4 or 8.

2011-02-23 Thread Ben Pfaff
Thanks, I pushed this one. On Wed, Feb 23, 2011 at 01:34:36PM -0800, Ethan Jackson wrote: > Ah oops, that's my bug. Thanks for fixing it, looks good. Go ahead and push. > > On Wed, Feb 23, 2011 at 1:24 PM, Ben Pfaff wrote: > > 'ea' here is a function parameter declared as an array, so "sizeof e

Re: [ovs-dev] [coverity3 01/13] bridge: Ethernet address is 6 bytes, not 4 or 8.

2011-02-23 Thread Ethan Jackson
Ah oops, that's my bug. Thanks for fixing it, looks good. Go ahead and push. On Wed, Feb 23, 2011 at 1:24 PM, Ben Pfaff wrote: > 'ea' here is a function parameter declared as an array, so "sizeof ea" is > sizeof(uint8_t *), which is either 4 or 8. > > Coverity #10689, 10735. > --- >  vswitchd/br

[ovs-dev] [coverity3 10/13] ovs-vsctl: Clarify that uuid_from_string() shouldn't fail in post_create().

2011-02-23 Thread Ben Pfaff
Coverity #10701. --- utilities/ovs-vsctl.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/utilities/ovs-vsctl.c b/utilities/ovs-vsctl.c index 6db4362..b9981aa 100644 --- a/utilities/ovs-vsctl.c +++ b/utilities/ovs-vsctl.c @@ -3126,7 +3126,9 @@ post_create(struct vsctl_

[ovs-dev] [coverity3 13/13] ovsdb: Explicitly ignore sscanf() return value in is_valid_version().

2011-02-23 Thread Ben Pfaff
The return value isn't interesting here: it will always be 0. Coverity #10698. --- ovsdb/ovsdb.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ovsdb/ovsdb.c b/ovsdb/ovsdb.c index 2a54a7b..e76544e 100644 --- a/ovsdb/ovsdb.c +++ b/ovsdb/ovsdb.c @@ -123,7 +123,7 @@ static

[ovs-dev] [coverity3 07/13] ovs-brcompatd: Simplify code in brc_recv_update().

2011-02-23 Thread Ben Pfaff
This code was baffling and it confused Coverity, too. Coverity #11070. --- vswitchd/ovs-brcompatd.c | 45 - 1 files changed, 32 insertions(+), 13 deletions(-) diff --git a/vswitchd/ovs-brcompatd.c b/vswitchd/ovs-brcompatd.c index fe953f4..6074462 100

[ovs-dev] [coverity3 02/13] process: Avoid late failure if /dev/null cannot be opened.

2011-02-23 Thread Ben Pfaff
It is (very slightly) risky to open /dev/null every time that we need it, because open can fail. So this commit opens /dev/null in advance instead. Coverity #10719. --- lib/process.c | 24 ++-- 1 files changed, 18 insertions(+), 6 deletions(-) diff --git a/lib/process.c b/

[ovs-dev] [coverity3 12/13] test-ovsdb: Check uuid_from_string() return value.

2011-02-23 Thread Ben Pfaff
Coverity #10699. --- tests/test-ovsdb.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test-ovsdb.c b/tests/test-ovsdb.c index aca68dc..3a34c09 100644 --- a/tests/test-ovsdb.c +++ b/tests/test-ovsdb.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2010 Nicira Netw

[ovs-dev] [coverity3 06/13] ovsdb-idl: JSONRPC_REPLY message always has nonnull 'id'.

2011-02-23 Thread Ben Pfaff
A JSONRPC_REPLY message always have a nonnull 'id' member, as ensured by jsonrpc_msg_is_valid(). Checking for NULL here confused Coverity into believing that the call to ovsdb_idl_txn_process_reply() just below could cause a null pointer dereference, since ovsdb_idl_txn_process_reply() uses the 'i

[ovs-dev] [coverity3 11/13] dhcp-client: Remove useless call to timeout() from send_reliably().

2011-02-23 Thread Ben Pfaff
timeout() has no side effects so calling it without looking at the return value is pointless. Coverity #10700. --- lib/dhcp-client.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/lib/dhcp-client.c b/lib/dhcp-client.c index e59dc34..a0999bf 100644 --- a/lib/dhcp-client.c

[ovs-dev] [coverity3 04/13] leak-checker: Avoid printing freed pointer.

2011-02-23 Thread Ben Pfaff
I think that this will work OK, and it should avoid complaints from static checkers about using a freed pointer. Coverity #11069. --- lib/leak-checker.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/lib/leak-checker.c b/lib/leak-checker.c index 8b78182..42b3818 100644

[ovs-dev] [coverity3 01/13] bridge: Ethernet address is 6 bytes, not 4 or 8.

2011-02-23 Thread Ben Pfaff
'ea' here is a function parameter declared as an array, so "sizeof ea" is sizeof(uint8_t *), which is either 4 or 8. Coverity #10689, 10735. --- vswitchd/bridge.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index c2c4579..a448e05

[ovs-dev] [coverity3 00/13] another series of coverity fixes

2011-02-23 Thread Ben Pfaff
I believe that this finishes out all of the Coverity-related issues. Only the first 3 of these fix actual bugs, as far as I can tell. The rest are nice (and generally minor) code improvements. Ben Pfaff (13): bridge: Ethernet address is 6 bytes, not 4 or 8. process: Avoid late failure if /de

[ovs-dev] [coverity3 09/13] ovs-kill: Remove.

2011-02-23 Thread Ben Pfaff
This utility isn't used anywhere (except INSTALL.Linux), so remove it. Signed-off-by: Ben Pfaff Coverity #10708. --- INSTALL.Linux |2 +- debian/openvswitch-switch.install |1 - debian/openvswitch-switch.manpages |1 - utilities/.gitignore |2 -

[ovs-dev] [coverity3 03/13] stream: Make stream_report_content() tolerate negative size.

2011-02-23 Thread Ben Pfaff
A negative size probably means that a system call failed. The caller could set that to 0 but we might as well just tolerate it in stream_report_content() by making the parameter type signed. Coverity #10718. --- lib/stream.c |4 ++-- lib/stream.h |5 +++-- 2 files changed, 5 insertions(+

[ovs-dev] [coverity3 05/13] rconn: Clarify rconn_run_wait().

2011-02-23 Thread Ben Pfaff
At first glance the vconn_wait() call looks risky because this function checked whether rc->vconn is nonnull at the top. In fact it's OK because rc->state will be S_ACTIVE or S_IDLE only if rc->vconn is nonnull, but there's no harm in putting that check inside the block that only runs if rc->vconn

[ovs-dev] [coverity3 08/13] ovs-vsctl: Simplify parse_column_key_value().

2011-02-23 Thread Ben Pfaff
Coverity pointed out some inconsistencies on tests for whether columnp and keyp were nonnull. These tests were, at best, confusing, but in fact every caller always passed nonnull for both parameters, so this commit drops all of those tests. Coverity #10715, 10710. --- utilities/ovs-vsctl.c | 6

Re: [ovs-dev] [PATCH] ovsdb: Warn when result of ovsdb_txn_commit() is ignored and fix caller.

2011-02-23 Thread Justin Pettit
On Feb 23, 2011, at 10:48 AM, Ben Pfaff wrote: > On Wed, Feb 23, 2011 at 10:47:00AM -0800, Justin Pettit wrote: >> ovsdb_txn_commit() may return a ovsdb_error structure, which should be >> freed by the caller. The only remaining caller that discards the result >> is in ovsdb_file_open__(), which

Re: [ovs-dev] [coverity2 0/7] More Coverity Fixes

2011-02-23 Thread Justin Pettit
On Feb 23, 2011, at 9:30 AM, Ben Pfaff wrote: > On Tue, Feb 22, 2011 at 10:18 PM, Justin Pettit wrote: >> Here are some additional fixes for issues that Coverity flagged. With >> this series, the remaining issues Coverity marks as "High Impact" that >> appear to me to be real are addressed.* Th

Re: [ovs-dev] [coverity2 4/7] test-ovsdb: Don't leak return value from ovsdb_txn_commit().

2011-02-23 Thread Justin Pettit
On Feb 23, 2011, at 9:19 AM, Ben Pfaff wrote: > On Tue, Feb 22, 2011 at 10:18:30PM -0800, Justin Pettit wrote: >> Coverity #10727 > > This looks good but we should also add WARN_UNUSED_RESULT to the > prototype for ovsdb_txn_commit() in transaction.h. I just sent a new patch that does that and f

Re: [ovs-dev] [coverity2 1/7] table: Free "error" in cell_to_text().

2011-02-23 Thread Justin Pettit
On Feb 23, 2011, at 9:15 AM, Ben Pfaff wrote: > On Tue, Feb 22, 2011 at 10:18:27PM -0800, Justin Pettit wrote: >> Coverity #10722 >> --- >> lib/table.c |1 + >> 1 files changed, 1 insertions(+), 0 deletions(-) >> >> diff --git a/lib/table.c b/lib/table.c >> index 86366d0..a503bcc 100644 >> ---

Re: [ovs-dev] [PATCH] ovsdb: Warn when result of ovsdb_txn_commit() is ignored and fix caller.

2011-02-23 Thread Ben Pfaff
On Wed, Feb 23, 2011 at 10:47:00AM -0800, Justin Pettit wrote: > ovsdb_txn_commit() may return a ovsdb_error structure, which should be > freed by the caller. The only remaining caller that discards the result > is in ovsdb_file_open__(), which this fixes. > > Suggested-by: Ben Pfaff Thanks, th

[ovs-dev] [PATCH] ovsdb: Warn when result of ovsdb_txn_commit() is ignored and fix caller.

2011-02-23 Thread Justin Pettit
ovsdb_txn_commit() may return a ovsdb_error structure, which should be freed by the caller. The only remaining caller that discards the result is in ovsdb_file_open__(), which this fixes. Suggested-by: Ben Pfaff --- ovsdb/file.c|2 +- ovsdb/transaction.h |3 ++- 2 files changed,

Re: [ovs-dev] netdev: netdev_*_cache_cb() & netdev_dev_get_devices()

2011-02-23 Thread Ben Pfaff
On Wed, Feb 23, 2011 at 04:06:01PM +0100, Gaetano Catalli wrote: > I am reading the netdev_linux_cache_cb() function. In the 'else' > branch, the cached values for all the netdev_devs need to be > invalidated. > To do so, you use the netdev_dev_get_devices() function to store in a > temporary shash

Re: [ovs-dev] [bug4462 2/3] ofp-parse: Don't segfault when an OpenFlow action's argument is missing.

2011-02-23 Thread Ben Pfaff
Thanks. I added that to the log message and I'll push this series soon. On Tue, Feb 22, 2011 at 11:03:33PM -0800, Justin Pettit wrote: > Looks good. Thanks for fixing Coverity issue #10712, too. :-) > > --Justin > > > On Feb 22, 2011, at 4:28 PM, Ben Pfaff wrote: > > > Some actions checked

Re: [ovs-dev] switch local port

2011-02-23 Thread Ben Pfaff
On Wed, Feb 23, 2011 at 04:30:12PM +0100, Gaetano Catalli wrote: > On Fri, Feb 11, 2011 at 6:09 PM, Ben Pfaff wrote: > > On Fri, Feb 11, 2011 at 06:05:08PM +0100, Gaetano Catalli wrote: > >> I have some doubts to resolve about switch local port. > >> Firstly, in the ovs-openflowd manpage I can rea

Re: [ovs-dev] [coverity2 0/7] More Coverity Fixes

2011-02-23 Thread Ben Pfaff
On Tue, Feb 22, 2011 at 10:18 PM, Justin Pettit wrote: > Here are some additional fixes for issues that Coverity flagged.  With > this series, the remaining issues Coverity marks as "High Impact" that > appear to me to be real are addressed.*  This also addresses most of the > issues that Coverity

Re: [ovs-dev] [coverity2 7/7] ovsdb-idl: Remove deadcode related to "reply" in ovsdb_idl_run().

2011-02-23 Thread Ben Pfaff
On Tue, Feb 22, 2011 at 10:18:33PM -0800, Justin Pettit wrote: > Coverity #10705 Looks good, thank you. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev_openvswitch.org

Re: [ovs-dev] [coverity2 6/7] nx-match: Don't fall through case when handling dest mcast mac addresses.

2011-02-23 Thread Ben Pfaff
On Tue, Feb 22, 2011 at 10:18:32PM -0800, Justin Pettit wrote: > When an NXM wildcard entry that includes a multicast address is parsed, > it would fall through to the next case statement, which would also set > an inappropriate source mac address match. > > Coverity #10717 Ouch. Thank you, this

Re: [ovs-dev] [coverity2 5/7] ovsdb-tool: Close "log" in do_show_log().

2011-02-23 Thread Ben Pfaff
On Tue, Feb 22, 2011 at 10:18:31PM -0800, Justin Pettit wrote: > Coverity #10726 Looks good, thank you. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev_openvswitch.org

Re: [ovs-dev] [coverity2 4/7] test-ovsdb: Don't leak return value from ovsdb_txn_commit().

2011-02-23 Thread Ben Pfaff
On Tue, Feb 22, 2011 at 10:18:30PM -0800, Justin Pettit wrote: > Coverity #10727 This looks good but we should also add WARN_UNUSED_RESULT to the prototype for ovsdb_txn_commit() in transaction.h. Thanks, Ben. ___ dev mailing list dev@openvswitch.org

Re: [ovs-dev] [coverity2 3/7] ovs-vsctl: Free "columns" in cmd_find().

2011-02-23 Thread Ben Pfaff
On Tue, Feb 22, 2011 at 10:18:29PM -0800, Justin Pettit wrote: > Coverity #10730 Looks good, thank you. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev_openvswitch.org

Re: [ovs-dev] [coverity2 2/7] netdev-linux: Zero-out "sin" in netdev_linux_arp_lookup().

2011-02-23 Thread Ben Pfaff
On Tue, Feb 22, 2011 at 10:18:28PM -0800, Justin Pettit wrote: > Coverity complains that we're copying the unitialized "sin_zero" member > from "sin" into "r". I don't think this is an actual problem, but > there's no harm in zeroing out the structure, either. > > Coverity #10916 Can't hurt. Th

Re: [ovs-dev] [coverity2 1/7] table: Free "error" in cell_to_text().

2011-02-23 Thread Ben Pfaff
On Tue, Feb 22, 2011 at 10:18:27PM -0800, Justin Pettit wrote: > Coverity #10722 > --- > lib/table.c |1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/lib/table.c b/lib/table.c > index 86366d0..a503bcc 100644 > --- a/lib/table.c > +++ b/lib/table.c > @@ -55,6 +55,7 @@

Re: [ovs-dev] [PATCH] ovs-vsctl: --bootstrap only has an effect if the ca cert is missing.

2011-02-23 Thread Ben Pfaff
Thanks, pushed. On Tue, Feb 22, 2011 at 05:23:28PM -0800, Justin Pettit wrote: > Looks good to me. > > --Justin > > > On Feb 22, 2011, at 4:58 PM, Ben Pfaff wrote: > > > Someone (I can't remember who) asked me about this a while ago. I hope > > this clarifies. > > --- > > utilities/ovs-vsctl.

Re: [ovs-dev] switch local port

2011-02-23 Thread Gaetano Catalli
On Fri, Feb 11, 2011 at 6:09 PM, Ben Pfaff wrote: > On Fri, Feb 11, 2011 at 06:05:08PM +0100, Gaetano Catalli wrote: >> I have some doubts to resolve about switch local port. >> Firstly, in the ovs-openflowd manpage I can read: "...The Open???Flow >> local port is a virtual network port that ovs-o

[ovs-dev] netdev: netdev_*_cache_cb() & netdev_dev_get_devices()

2011-02-23 Thread Gaetano Catalli
Hi all, I am reading the netdev_linux_cache_cb() function. In the 'else' branch, the cached values for all the netdev_devs need to be invalidated. To do so, you use the netdev_dev_get_devices() function to store in a temporary shash structure the list of devices and then you walk through this list

[ovs-dev] netdev: netdev_*_cache_cb() & netdev_dev_get_devices()

2011-02-23 Thread Gaetano Catalli
Hi all, I am reading the netdev_linux_cache_cb() function. In the 'else' branch, the cached values for all the netdev_devs need to be invalidated. To do so, you use the netdev_dev_get_devices() function to store in a temporary shash structure the list of devices and then you walk through this list