Re: [ovs-dev] [bondlib 15/19] bridge: Break bonding implementation out into library.

2011-03-29 Thread Ethan Jackson
Looks good to me. Only a few minor comments, and questions. This will really make it much easier to work on both the bridge and bonding so I think it's a huge win. Ethan > +    /* Tag set saved for next bond_run(). */ > +    struct tag_set tags; > +}; It wasn't entirely clear to me exactly wha

Re: [ovs-dev] [bondlib 14/19] bridge: Simplify and clean up bond slave enable/disable.

2011-03-29 Thread Ethan Jackson
>  static void >  bond_choose_active_iface(struct port *port) >  { >     static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(5, 20); > +    struct iface *old_active_iface = port->active_iface; > >     port->active_iface = bond_choose_iface(port); >     if (port->active_iface) { > -        VLOG_

[ovs-dev] [connmgr2 1/2] ofp-util: Remove flow_stats_iterator, flows_stats_first(), flow_stats_next()

2011-03-29 Thread Ben Pfaff
Nothing uses these anymore. ofputil_decode_flow_stats_reply() is a better alternative. --- lib/ofp-util.c | 45 - lib/ofp-util.h |7 --- 2 files changed, 0 insertions(+), 52 deletions(-) diff --git a/lib/ofp-util.c b/lib/ofp-util.c index d91f

[ovs-dev] [connmgr2 2/2] ofproto: Get rid of send_port_status() trivial wrapper function.

2011-03-29 Thread Ben Pfaff
--- ofproto/ofproto.c | 16 +--- 1 files changed, 5 insertions(+), 11 deletions(-) diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index ce8c99b..dc5c915 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -1124,13 +1124,6 @@ ofport_equal(const struct ofport *a_, const stru

[ovs-dev] [connmgr2 0/2] a few connmgr followup patches

2011-03-29 Thread Ben Pfaff
These patches follow up on the connmgr series with a few more minor improvements. Ben Pfaff (2): ofp-util: Remove flow_stats_iterator, flows_stats_first(), flow_stats_next() ofproto: Get rid of send_port_status() trivial wrapper function. lib/ofp-util.c| 45

Re: [ovs-dev] [connmgr 15/15] ofproto: Factor OpenFlow connection management into new "connmgr".

2011-03-29 Thread Ben Pfaff
On Tue, Mar 29, 2011 at 11:56:15AM -0700, Ethan Jackson wrote: > > +/* Frees 'mgr' and all of its resources. */ > > +void > > +connmgr_destroy(struct connmgr *mgr) > > +{ > > + ? ?struct ofservice *ofservice, *next_ofservice; > > + ? ?struct ofconn *ofconn, *next_ofconn; > > + ? ?size_t i; > > + >

Re: [ovs-dev] [connmgr 15/15] ofproto: Factor OpenFlow connection management into new "connmgr".

2011-03-29 Thread Ethan Jackson
> +/* Frees 'mgr' and all of its resources. */ > +void > +connmgr_destroy(struct connmgr *mgr) > +{ > +    struct ofservice *ofservice, *next_ofservice; > +    struct ofconn *ofconn, *next_ofconn; > +    size_t i; > + > +    if (!mgr) { > +        return; > +    } > + > +    LIST_FOR_EACH_SAFE (ofc

Re: [ovs-dev] [PATCH] ovs-vsctl: Remove dead assignment.

2011-03-29 Thread Ethan Jackson
Oh, I misunderstood your statement. I thought you meant remove that line of code entirely so the loop would be: for (a;;c) { I'm fine with moving it up. I'll do that and merge. On Tue, Mar 29, 2011 at 11:11 AM, Ben Pfaff wrote: > On Tue, Mar 29, 2011 at 11:08:18AM -0700, Ethan Jackson wro

Re: [ovs-dev] [PATCH] ovs-vsctl: Remove dead assignment.

2011-03-29 Thread Ben Pfaff
On Tue, Mar 29, 2011 at 11:08:18AM -0700, Ethan Jackson wrote: > > Optionally you could move "row != NULL" up a line, too. > > Can I? I can certainly change it to simply "row". If I remove it > entirely won't it either loop forever or null dereference at some > point? The following are equivale

Re: [ovs-dev] [PATCH] ovs-vsctl: Remove dead assignment.

2011-03-29 Thread Ethan Jackson
> Optionally you could move "row != NULL" up a line, too. Can I? I can certainly change it to simply "row". If I remove it entirely won't it either loop forever or null dereference at some point? Ethan ___ dev mailing list dev@openvswitch.org http://o

Re: [ovs-dev] [PATCH] ovs-vsctl: Remove dead assignment.

2011-03-29 Thread Ben Pfaff
On Tue, Mar 29, 2011 at 10:59:59AM -0700, Ethan Jackson wrote: > Noticed this last night while playing around with the clang static > analyzer. Looks good, thank you. Optionally you could move "row != NULL" up a line, too. ___ dev mailing list dev@openv

[ovs-dev] [PATCH] ovs-vsctl: Remove dead assignment.

2011-03-29 Thread Ethan Jackson
Noticed this last night while playing around with the clang static analyzer. --- utilities/ovs-vsctl.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/utilities/ovs-vsctl.c b/utilities/ovs-vsctl.c index 0068f64..b8c6d30 100644 --- a/utilities/ovs-vsctl.c +++ b/utilitie

Re: [ovs-dev] [PATCH] bridge: Always wait for MAC learning table and ports.

2011-03-29 Thread Ben Pfaff
Thanks, I pushed this. (That was fast!) On Tue, Mar 29, 2011 at 10:10:37AM -0700, Justin Pettit wrote: > Good catch. Makes sense to me. > > --Justin > > > On Mar 29, 2011, at 10:08 AM, Ben Pfaff wrote: > > > The test ofproto_has_primary_controller() is meaningless, since OFPP_NORMAL > > can

Re: [ovs-dev] [restart v2 2/3] daemon: Avoid redundant code in already_running().

2011-03-29 Thread Ben Pfaff
On Tue, Mar 29, 2011 at 09:56:49AM -0700, Justin Pettit wrote: > On Mar 29, 2011, at 9:36 AM, Ben Pfaff wrote: > > > +pid = read_pidfile_if_exists(_pidfile) > > +if pid > 0: > > if not _overwrite_pidfile: > > -msg = "%s: already running" % _pidfile > > -logg

Re: [ovs-dev] [PATCH] bridge: Always wait for MAC learning table and ports.

2011-03-29 Thread Justin Pettit
Good catch. Makes sense to me. --Justin On Mar 29, 2011, at 10:08 AM, Ben Pfaff wrote: > The test ofproto_has_primary_controller() is meaningless, since OFPP_NORMAL > can cause the MAC learning table and port bonding to be in use even when > there is a controller. > > I see that this bug has

[ovs-dev] [PATCH] bridge: Always wait for MAC learning table and ports.

2011-03-29 Thread Ben Pfaff
The test ofproto_has_primary_controller() is meaningless, since OFPP_NORMAL can cause the MAC learning table and port bonding to be in use even when there is a controller. I see that this bug has been here since early 2009, when the OFPP_NORMAL feature was introduced in the bridge. (Obviously it'

Re: [ovs-dev] [restart v2 2/3] daemon: Avoid redundant code in already_running().

2011-03-29 Thread Justin Pettit
On Mar 29, 2011, at 9:36 AM, Ben Pfaff wrote: > +pid = read_pidfile_if_exists(_pidfile) > +if pid > 0: > if not _overwrite_pidfile: > -msg = "%s: already running" % _pidfile > -logging.error(msg) > +msg = "%s: already running as pid %d" % (_pidfi

[ovs-dev] [restart v2 3/3] xenserver: Wait for ovs-xapi-sync to exit in "stop" command.

2011-03-29 Thread Ben Pfaff
It seems possible that "restart" or a quick application of "stop" then "start" could kill ovs-xapi-sync without starting it again, if ovs-xapi-sync takes a little while to die, long enough for the next instance of it to see that its pidfile is still open and locked. I hope that this fixes some odd

[ovs-dev] [restart v2 1/3] daemon: Write "already running" message to log also.

2011-03-29 Thread Ben Pfaff
Otherwise it's hard to diagnose later if the daemon failed to start because it thinks that it is already running. --- lib/daemon.c |2 ++ python/ovs/daemon.py |6 -- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/daemon.c b/lib/daemon.c index 2f6f081..17ec9f

[ovs-dev] [restart v2 2/3] daemon: Avoid redundant code in already_running().

2011-03-29 Thread Ben Pfaff
This function substantially duplicated read_pidfile(), so reuse that code instead. --- lib/daemon.c | 59 - lib/daemon.h |1 + python/ovs/daemon.py | 25 - 3 files changed, 49 insertions(+), 36 deletions(-)

Re: [ovs-dev] [restart 3/3] xenserver: Wait for ovs-xapi-sync to exit in "stop" command.

2011-03-29 Thread Ben Pfaff
On Mon, Mar 28, 2011 at 10:38:00PM -0700, Justin Pettit wrote: > Looks good. > > This wouldn't explain the restart issues we've seen that cause > ovsdb-server or ovs-vswitchd to not start (or run multiple > instances), would it? It would definitely explain why ovs-xapi-sync wasn't running (I'm pr

Re: [ovs-dev] [restart 2/3] daemon: Avoid redundant code in already_running().

2011-03-29 Thread Ben Pfaff
On Mon, Mar 28, 2011 at 10:27:58PM -0700, Justin Pettit wrote: > On Mar 28, 2011, at 4:24 PM, Ben Pfaff wrote: > > > diff --git a/python/ovs/daemon.py b/python/ovs/daemon.py > > index 6240e0d..c8af043 100644 > > --- a/python/ovs/daemon.py > > +++ b/python/ovs/daemon.py > > @@ -139,7 +139,10 @@ def

Re: [ovs-dev] [restart 1/3] daemon: Write "already running" message to log also.

2011-03-29 Thread Ben Pfaff
On Mon, Mar 28, 2011 at 10:18:28PM -0700, Justin Pettit wrote: > On Mar 28, 2011, at 4:24 PM, Ben Pfaff wrote: > > > @@ -141,7 +141,9 @@ def die_if_already_running(): > > ignore_existing_pidfile() has been called, terminate the program.""" > > if _already_running(): > > if not _ove

Re: [ovs-dev] [bondlib 07/19] vswitch: Improve schema documentation.

2011-03-29 Thread Ben Pfaff
On Mon, Mar 28, 2011 at 02:03:13PM -0700, Ethan Jackson wrote: > On Fri, Mar 25, 2011 at 10:35 AM, Ben Pfaff wrote: > > --- > > ?vswitchd/vswitch.xml | ? 17 + > > ?1 files changed, 13 insertions(+), 4 deletions(-) > > > > diff --git a/vswitchd/vswitch.xml b/vswitchd/vswitch.xml > >

Re: [ovs-dev] [bondlib 04/19] packets: Reserve headroom for VLAN header in eth_compose(), snap_compose().

2011-03-29 Thread Ben Pfaff
On Mon, Mar 28, 2011 at 01:43:41PM -0700, Ethan Jackson wrote: > Looks Good to me. > > It might be worth commenting why we are allocating and reserving > VLAN_HEADER_LEN extra bytes. That may confuse a future reader. That's reasonable. I folded this in: diff --git a/lib/packets.c b/lib/packets

Re: [ovs-dev] [bondlib 03/19] packets: New function eth_set_vlan_tci(), from dpif-netdev.

2011-03-29 Thread Ben Pfaff
On Mon, Mar 28, 2011 at 01:40:27PM -0700, Ethan Jackson wrote: > Looks Good to me. > > Is there any reason not to simply always set packet->l2? I think it's > fine how it is, just curious. I guess there isn't. I changed it to do that. ___ dev mailing

[ovs-dev] A dois passos do paraiso confira esta promocao

2011-03-29 Thread Promocao Cielo
Title: Paraiso ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

[ovs-dev] Directory here in Japan.

2011-03-29 Thread Mr.Susumu Tomita
Greetings, I am sorry to encroach into your privacy in this manner, I found your names listed in the Trade Center Chambers of Commerce directory here in Japan. I find it pleasurable to offer you my partnership in business, I only pray at this time that your address is still valid. I want to so