Re: [ovs-dev] [ovs-ofctl 05/10] ofp-parse: Factor out parse_ofp_add_flow_file() into new function.

2011-03-16 Thread Ben Pfaff
On Tue, Mar 15, 2011 at 06:37:12PM -0700, Ethan Jackson wrote: > >ofp-parse: Factor out parse_ofp_add_flow_file() into new function. > > This subject line doesn't make sense to me. Shouldn't it read: > "Factor out ds_get_preprocessed_line() into new function"? You're right, the subject line does

Re: [ovs-dev] [lacp 03/10] bridge: Pull monitoring out of bonding logic.

2011-03-16 Thread Ben Pfaff
On Tue, Mar 15, 2011 at 04:03:16PM -0700, Ethan Jackson wrote: > The monitoring logic and bonding code are unrelated. This commit > pulls the monitoring logic out. As a result all interfaces, not > just those participating in bonds, are monitored. This will be > required to run LACP on non-bonde

Re: [ovs-dev] [lacp 04/10] packets: create new compose_lacp_pdu() function.

2011-03-16 Thread Ben Pfaff
On Tue, Mar 15, 2011 at 04:03:17PM -0700, Ethan Jackson wrote: > Creates new compose_lacp_pdu() from the old compose_lacp_packet() > function. This will allow a LACP PDU to be created without > necessarily knowing the Ethernet Source Address required for > generating the packet. Will there be som

Re: [ovs-dev] [lacp 05/10] packets: Rename LACP portid and sysid to port_id and sys_id.

2011-03-16 Thread Ben Pfaff
On Tue, Mar 15, 2011 at 04:03:18PM -0700, Ethan Jackson wrote: > This seems more stylistically consistent with the rest of the > code base and the sys_priority and port_priority in the same > struct. Looks good, thanks. ___ dev mailing list dev@openvswit

Re: [ovs-dev] [lacp 06/10] vswitchd: Update lacp before bonding.

2011-03-16 Thread Ben Pfaff
Is this because LACP influences bonding but not vice versa? Makes sense, but you could add that to the commit message. Thanks, Ben. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [lacp 03/10] bridge: Pull monitoring out of bonding logic.

2011-03-16 Thread Ethan Jackson
Artifact of monitoring being done as part of bonding. I added the monitors neer port_update_bonding. No particular reason other than history. I will go ahead and change it. Ethan On Wed, Mar 16, 2011 at 9:24 AM, Ben Pfaff wrote: > On Tue, Mar 15, 2011 at 04:03:16PM -0700, Ethan Jackson wrote:

Re: [ovs-dev] [lacp 07/10] vswitchd: Modularize LACP.

2011-03-16 Thread Ben Pfaff
On Tue, Mar 15, 2011 at 04:03:20PM -0700, Ethan Jackson wrote: > This commit pulls LACP code out of the bridge into its own LACP > module. Currently this module is only used by the existing bonding > infrastructure. Thanks. Making this more modular makes the code easier to understand. I didn't

Re: [ovs-dev] [lacp 08/10] lacp: Transmit more judiciously.

2011-03-16 Thread Ben Pfaff
On Tue, Mar 15, 2011 at 04:03:21PM -0700, Ethan Jackson wrote: > Only transmit when the LACP partner needs to be updated instead of > whenever it might need to be updated. Thanks, this looks good to me. Now I understand the slave->tx = 0 assignments :-) In the second loop in lacp_run(), I think

Re: [ovs-dev] [lacp 09/10] lacp: Enable "fast" lacp timing mode.

2011-03-16 Thread Ben Pfaff
Looks good to me. Should we document that "slow" is the default mode? Presumably there is some disadvantage to "fast" mode, since it is not the default--I guess that a little latency somewhere can cause spurious port-down detection--and so maybe we should document that disadvantage. Thanks, Ben

Re: [ovs-dev] [lacp 10/10] lacp: Transmit upon slave unregister.

2011-03-16 Thread Ben Pfaff
On Tue, Mar 15, 2011 at 04:03:23PM -0700, Ethan Jackson wrote: > When a slave may no longer participate in a LACP bond, it is polite > to transmit a notification indicating so. This will allow the > remote partner to adapt more quickly. The specification does not > indicate what to do in this sit

Re: [ovs-dev] [lacp 07/10] vswitchd: Modularize LACP.

2011-03-16 Thread Ben Pfaff
Also: This commit leaves LACP_ACTIVE and a few other macros in vswitchd/bridge.c, but nothing uses them anymore, so I guess that you can delete them. Thanks, Ben. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [lacp 07/10] vswitchd: Modularize LACP.

2011-03-16 Thread Ethan Jackson
Sorry about that. Intended to clean these patches up a bit before sending them out. I'll get rid of them. Ethan On Wed, Mar 16, 2011 at 12:38 PM, Ben Pfaff wrote: > Also: This commit leaves LACP_ACTIVE and a few other macros in > vswitchd/bridge.c, but nothing uses them anymore, so I guess tha

Re: [ovs-dev] [lacp 09/10] lacp: Enable "fast" lacp timing mode.

2011-03-16 Thread Ben Pfaff
Also: as with the lacp_active member of struct port, I suspect that the lacp_fast member can be implemented entirely in struct lacp. It could initially be set as a parameter to lacp_create(), for example. ___ dev mailing list dev@openvswitch.org http://o

[ovs-dev] E8K.net wants to keep up with you on Twitter

2011-03-16 Thread Twitter
Twitter connects you with everything you want to know, right now. Short bursts of information are readily available from news organizations, corporate entities, politicians, celebrities, local businesses - even your close friends and family. Also, if you have something to share with the world, T

[ovs-dev] E8K.net wants to keep up with you on Twitter

2011-03-16 Thread Twitter
Twitter connects you with everything you want to know, right now. Short bursts of information are readily available from news organizations, corporate entities, politicians, celebrities, local businesses - even your close friends and family. Also, if you have something to share with the world, T

[ovs-dev] E8K.net wants to keep up with you on Twitter

2011-03-16 Thread Twitter
Twitter connects you with everything you want to know, right now. Short bursts of information are readily available from news organizations, corporate entities, politicians, celebrities, local businesses - even your close friends and family. Also, if you have something to share with the world, T

Re: [ovs-dev] [connmgr 02/15] ofproto: Fix comment on send_packet_in().

2011-03-16 Thread Andrew Evans
On Tue, Mar 15, 2011 at 11:36 AM, Ben Pfaff wrote: > --- >  ofproto/ofproto.c |    3 ++- >  1 files changed, 2 insertions(+), 1 deletions(-) Looks good to me, thanks. -Andrew ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listi

Re: [ovs-dev] [connmgr 03/15] ofproto: Fix obsolete comments.

2011-03-16 Thread Andrew Evans
On Tue, Mar 15, 2011 at 11:36 AM, Ben Pfaff wrote: > "secchan" is long gone. Looks good to me, thanks. -Andrew ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH] Support vlan_group workaround implemented in XenServer kernels.

2011-03-16 Thread Jesse Gross
On Tue, Mar 15, 2011 at 12:18 PM, Ben Pfaff wrote: > Some Linux network drivers support a feature called "VLAN acceleration", > associated with a data structure called a "vlan_group".  A vlan_group is, > abstractly, a dictionary that maps from a VLAN ID (in the range 0...4095) > to a VLAN device,

Re: [ovs-dev] [connmgr 04/15] ofproto: Get rid of archaic "switch status" OpenFlow extension.

2011-03-16 Thread Andrew Evans
On 3/15/11 11:36 AM, Ben Pfaff wrote: > Back in 2008 or so, I introduced this extension as a way to provide > information about switch status to the new "switch UI" program. Since > then, the switch UI program has been removed and the important information > that was provided by the switch status

[ovs-dev] (no subject)

2011-03-16 Thread Ben Pfaff
___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

[ovs-dev] [cfm 0/3] move cfm from vswitchd into ofproto

2011-03-16 Thread Ben Pfaff
This set of patches moves the CFM implementation from ovs-vswitchd into ofproto. This is one step toward my goal of getting rid of the hooks from ofproto back into vswitchd. Ben Pfaff (3): cfm: Immediately signal a fault upon receiving an unexpected MPID. ofproto: Specialize ofproto_send_pack

[ovs-dev] [cfm 1/3] cfm: Immediately signal a fault upon receiving an unexpected MPID.

2011-03-16 Thread Ben Pfaff
An unexpected MPID is always a fault, but the CFM code didn't signal the fault until the next time cfm_run() was called. In one experiment I saw a visible lag in the database (although I wasn't able to reproduce it again within a few tries). --- lib/cfm.c |3 ++- 1 files changed, 2 insertions

[ovs-dev] [cfm 2/3] ofproto: Specialize ofproto_send_packet() for uses the callers really want.

2011-03-16 Thread Ben Pfaff
The callers of ofproto_send_packet() actually just want to send a packet out on a port, possibly tagged with a VLAN, but the interface forced them to compose a set of OpenFlow actions, which made it harder to use than necessary. This commit specializes the interface for the purposes that the calle

[ovs-dev] [cfm 3/3] ofproto: Take responsibility for configuration fault management (CFM).

2011-03-16 Thread Ben Pfaff
This takes one step toward the larger goal of getting rid of all of the hooks from ofproto back into vswitchd, by eliminating one of the reasons that they are required. --- ofproto/ofproto.c | 132 +--- ofproto/ofproto.h | 11 - vswitchd/bridg

Re: [ovs-dev] [PATCH] Support vlan_group workaround implemented in XenServer kernels.

2011-03-16 Thread Ben Pfaff
On Wed, Mar 16, 2011 at 02:18:55PM -0700, Jesse Gross wrote: > On Tue, Mar 15, 2011 at 12:18 PM, Ben Pfaff wrote: > > Some Linux network drivers support a feature called "VLAN acceleration", > > associated with a data structure called a "vlan_group". ?A vlan_group is, > > abstractly, a dictionary

Re: [ovs-dev] [connmgr 05/15] ofproto: Remove controller discovery support.

2011-03-16 Thread Andrew Evans
On 3/15/11 11:36 AM, Ben Pfaff wrote: > I've never heard of anyone actually using controller discovery. > It adds a great deal of code to the source tree, and a little > bit of complication to ofproto, so this commit removes it. Looks good to me, thanks. -Andrew __

Re: [ovs-dev] [ovs-ofctl 05/10] ofp-parse: Factor out parse_ofp_add_flow_file() into new function.

2011-03-16 Thread Ben Pfaff
I pushed this series up to this point. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [connmgr 05/15] ofproto: Remove controller discovery support.

2011-03-16 Thread Ben Pfaff
On Wed, Mar 16, 2011 at 02:45:43PM -0700, Andrew Evans wrote: > On 3/15/11 11:36 AM, Ben Pfaff wrote: > > I've never heard of anyone actually using controller discovery. > > It adds a great deal of code to the source tree, and a little > > bit of complication to ofproto, so this commit removes it.

[ovs-dev] [PATCH] tests: Fix up interface-reconfigure test and results.

2011-03-16 Thread Ben Pfaff
I forgot to update the test when I added the VLAN bug workaround. --- I already pushed this test fix, but I'm emailing it to the list anyway for completeness, and in case anyone sees anything that could be done better. diff --git a/tests/interface-reconfigure.at b/tests/interface-reconfigure.at in

Re: [ovs-dev] [cfm 0/3] move cfm from vswitchd into ofproto

2011-03-16 Thread Ethan Jackson
I'll review this series as I wrote the CFM code originally. Ethan On Wed, Mar 16, 2011 at 2:37 PM, Ben Pfaff wrote: > This set of patches moves the CFM implementation from ovs-vswitchd > into ofproto.  This is one step toward my goal of getting rid of the > hooks from ofproto back into vswitchd.

Re: [ovs-dev] [cfm 1/3] cfm: Immediately signal a fault upon receiving an unexpected MPID.

2011-03-16 Thread Ethan Jackson
Looks Good to me. The fault won't get registered until the database dumps again but this is an improvement. Ethan On Wed, Mar 16, 2011 at 2:37 PM, Ben Pfaff wrote: > An unexpected MPID is always a fault, but the CFM code didn't signal the > fault until the next time cfm_run() was called.  In on

[ovs-dev] [PATCH] ovs-vsctl: Back out garbage collection changes.

2011-03-16 Thread Ethan Jackson
Garbage collection introduced in d3643fc5989f88b1eda701d8aefca0ed3ff9dcdc changed ovs-vsctl so that it would allow the garbage collector to reclaim unused tables instead of manually deleting them itself. Since garbage collection runs at transaction completion, undeleted tables would hang around an

Re: [ovs-dev] [PATCH] ovs-vsctl: Back out garbage collection changes.

2011-03-16 Thread Ethan Jackson
Note. I did not actually test that this fixes the xenserver issue we've been seeing. It passes make check. I'll test xenserver before merging. Ethan On Wed, Mar 16, 2011 at 3:24 PM, Ethan Jackson wrote: > Garbage collection introduced in > d3643fc5989f88b1eda701d8aefca0ed3ff9dcdc changed ovs-

Re: [ovs-dev] [connmgr 06/15] ofproto: Factor building of flow_removed messages out into ofp-util.

2011-03-16 Thread Andrew Evans
On 3/15/11 11:36 AM, Ben Pfaff wrote: > This removes some code from ofproto.c. Thanks, looks good to me. -Andrew ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH] ovs-vsctl: Back out garbage collection changes.

2011-03-16 Thread Ethan Jackson
This does in fact fix the xenserver issue we were seeing. On Wed, Mar 16, 2011 at 3:25 PM, Ethan Jackson wrote: > Note.  I did not actually test that this fixes the xenserver issue > we've been seeing.  It passes make check.  I'll test xenserver before > merging. > > Ethan > > On Wed, Mar 16, 201

Re: [ovs-dev] [PATCH] ovs-vsctl: Back out garbage collection changes.

2011-03-16 Thread Ben Pfaff
On Wed, Mar 16, 2011 at 03:24:22PM -0700, Ethan Jackson wrote: > Garbage collection introduced in > d3643fc5989f88b1eda701d8aefca0ed3ff9dcdc changed ovs-vsctl so that > it would allow the garbage collector to reclaim unused tables > instead of manually deleting them itself. Since garbage collectio

Re: [ovs-dev] [PATCH] ovs-vsctl: Back out garbage collection changes.

2011-03-16 Thread Ethan Jackson
Oops about the commit. I'll go ahead and add a test case and resubmit. Ethan On Wed, Mar 16, 2011 at 3:34 PM, Ben Pfaff wrote: > On Wed, Mar 16, 2011 at 03:24:22PM -0700, Ethan Jackson wrote: >> Garbage collection introduced in >> d3643fc5989f88b1eda701d8aefca0ed3ff9dcdc changed ovs-vsctl so th

[ovs-dev] [PATCH] utilities: Fix typo in makefile that caused RPM build failure.

2011-03-16 Thread Ben Pfaff
I tested this against our autobuilder and it passed. --- utilities/automake.mk |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/utilities/automake.mk b/utilities/automake.mk index 1233762..147e650 100644 --- a/utilities/automake.mk +++ b/utilities/automake.mk @@ -63,7 +63,

Re: [ovs-dev] [PATCH] utilities: Fix typo in makefile that caused RPM build failure.

2011-03-16 Thread Ethan Jackson
Looks Good. On Wed, Mar 16, 2011 at 3:45 PM, Ben Pfaff wrote: > I tested this against our autobuilder and it passed. > --- >  utilities/automake.mk |    2 +- >  1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/utilities/automake.mk b/utilities/automake.mk > index 1233762..147e650

Re: [ovs-dev] [PATCH] utilities: Fix typo in makefile that caused RPM build failure.

2011-03-16 Thread Ben Pfaff
Thanks, I pushed this. On Wed, Mar 16, 2011 at 03:47:15PM -0700, Ethan Jackson wrote: > Looks Good. > > On Wed, Mar 16, 2011 at 3:45 PM, Ben Pfaff wrote: > > I tested this against our autobuilder and it passed. > > --- > > ?utilities/automake.mk | ? ?2 +- > > ?1 files changed, 1 insertions(+), 1

Re: [ovs-dev] [lacp 08/10] lacp: Transmit more judiciously.

2011-03-16 Thread Ben Pfaff
I noticed one more thing. After this patch, lacp_slave_enable() is reduced to just: void lacp_slave_enable(struct lacp *lacp, void *slave_, bool enabled) { struct slave *slave = slave_lookup(lacp, slave_); if (slave->enabled != enabled) { slave->enabled = enabled; } } which

Re: [ovs-dev] [lacp 08/10] lacp: Transmit more judiciously.

2011-03-16 Thread Ethan Jackson
Haha this is why I didn't want to send the series out yet =). Ethan On Wed, Mar 16, 2011 at 4:22 PM, Ben Pfaff wrote: > I noticed one more thing.  After this patch, lacp_slave_enable() is > reduced to just: > > void > lacp_slave_enable(struct lacp *lacp, void *slave_, bool enabled) > { >    stru

Re: [ovs-dev] [lacp 08/10] lacp: Transmit more judiciously.

2011-03-16 Thread Ben Pfaff
Well it's been very helpful to look at it so thanks for humoring me. On Wed, Mar 16, 2011 at 04:47:45PM -0700, Ethan Jackson wrote: > Haha this is why I didn't want to send the series out yet =). > > Ethan > > On Wed, Mar 16, 2011 at 4:22 PM, Ben Pfaff wrote: > > I noticed one more thing. ?Afte

Re: [ovs-dev] [lacp 08/10] lacp: Transmit more judiciously.

2011-03-16 Thread Ethan Jackson
No problem =). On Wed, Mar 16, 2011 at 4:49 PM, Ben Pfaff wrote: > Well it's been very helpful to look at it so thanks for humoring me. > > On Wed, Mar 16, 2011 at 04:47:45PM -0700, Ethan Jackson wrote: >> Haha this is why I didn't want to send the series out yet =). >> >> Ethan >> >> On Wed, Ma

[ovs-dev] [PATCH] ovs-vsctl: Back out garbage collection changes.

2011-03-16 Thread Ethan Jackson
Garbage collection introduced in c5f341ab193b9126dffef8c77bf8ed35e91290fd changed ovs-vsctl so that it would allow the garbage collector to reclaim unused tables instead of manually deleting them itself. Since garbage collection runs at transaction completion, undeleted tables would hang around an

Re: [ovs-dev] [PATCH] ovs-vsctl: Back out garbage collection changes.

2011-03-16 Thread Ethan Jackson
David wants this in as soon as possible. Could someone please have a look at the lastest version of the patch. Simply changed the commit message and added tests. Ethan On Wed, Mar 16, 2011 at 4:52 PM, Ethan Jackson wrote: > Garbage collection introduced in > c5f341ab193b9126dffef8c77bf8ed35e91

Re: [ovs-dev] [PATCH] ovs-vsctl: Back out garbage collection changes.

2011-03-16 Thread Ben Pfaff
On Wed, Mar 16, 2011 at 5:23 PM, Ethan Jackson wrote: > David wants this in as soon as possible.  Could someone please have a > look at the lastest version of the patch.  Simply changed the commit > message and added tests. It's fine. Thanks for the updates. _

Re: [ovs-dev] [PATCH] ovs-vsctl: Back out garbage collection changes.

2011-03-16 Thread Ethan Jackson
Thanks. I pushed this. On Wednesday, March 16, 2011, Ben Pfaff wrote: > On Wed, Mar 16, 2011 at 5:23 PM, Ethan Jackson wrote: >> David wants this in as soon as possible.  Could someone please have a >> look at the lastest version of the patch.  Simply changed the commit >> message and added test