[ovs-dev] Business proposal

2011-09-15 Thread Goh Eng Eam Francis
Hello! I am Goh Eng Eam Francis, attorney at law with many years of practice. I was an attorney to a late client of mine who died in Malay-sia of a heart related condition in 2008. My reason of sending you this email is to help secure the amount left behind by my client before it is confiscate

Re: [ovs-dev] [PATCH v2] Always use generic stats for devices (vports)

2011-09-15 Thread Pravin Shelar
On Thu, Sep 15, 2011 at 6:37 PM, Jesse Gross wrote: > On Thu, Sep 15, 2011 at 6:17 PM, Pravin Shelar wrote: >> diff --git a/include/openvswitch/datapath-protocol.h >> b/include/openvswitch/datapath-protocol.h >> index 5d765b1..3c79c0f 100644 >> --- a/include/openvswitch/datapath-protocol.h >> ++

Re: [ovs-dev] [PATCH v2] Always use generic stats for devices (vports)

2011-09-15 Thread Jesse Gross
On Thu, Sep 15, 2011 at 6:17 PM, Pravin Shelar wrote: > diff --git a/include/openvswitch/datapath-protocol.h > b/include/openvswitch/datapath-protocol.h > index 5d765b1..3c79c0f 100644 > --- a/include/openvswitch/datapath-protocol.h > +++ b/include/openvswitch/datapath-protocol.h >  struct ovs_vp

[ovs-dev] [PATCH v2] Always use generic stats for devices (vports)

2011-09-15 Thread Pravin Shelar
This is incremental to previous patch. It is fixed according to comments from Jesse. It removes dipf_port->stat as aggregate stats are only available at netdev layer. Signed-off-by: Pravin B Shelar --- include/openvswitch/datapath-protocol.h | 16 +++--- lib/dpif-linux.c

Re: [ovs-dev] [mcgroup 2/4] datapath: Hardcode vport multicast group ID on older kernels.

2011-09-15 Thread Jesse Gross
On Thu, Sep 15, 2011 at 5:55 PM, Ethan Jackson wrote: > Older kernels do not advertise the multicast groups of families > when requested by userspace.  As a workaround, this patch hardcodes > the multicast group ID of the ovs_vport family on these kernels. > Userspace will be able to fall back to

[ovs-dev] [mcgroup 4/4] dpif-linux: Handle nl_lookup_genl_mcgroup() failures.

2011-09-15 Thread Ethan Jackson
The nl_lookup_genl_mcgroup() function can fail on older kernels which do not support the required netlink interface. Before this patch, dpif-linux would refuse to create a datapath when this happened. With this patch, it attempts to use a workaround. If the workaround fails it simply disables th

[ovs-dev] [PATCH v2] datapath: Fully initialize datapath before local port.

2011-09-15 Thread Jesse Gross
It's possible to start receiving packets on a datapath as soon as the internal device is created. It's therefore important that the datapath be fully initialized before this, which it currently isn't. In particularly, the fact that dp->stats_percpu is not yet set is potentially fatal. In addition

[ovs-dev] [mcgroup 2/4] datapath: Hardcode vport multicast group ID on older kernels.

2011-09-15 Thread Ethan Jackson
Older kernels do not advertise the multicast groups of families when requested by userspace. As a workaround, this patch hardcodes the multicast group ID of the ovs_vport family on these kernels. Userspace will be able to fall back to this hardcoded value if the standard mechanism is unavailable.

Re: [ovs-dev] [mcgroup 2/4] datapath: Hardcode vport multicast group ID on older kernels.

2011-09-15 Thread Ethan Jackson
> I'm going to consider this patch reviewed. With one minor adjustment (copied into gmail): diff --git a/include/openvswitch/automake.mk b/include/openvswitch/automake.mk index b7c6723..24a6826 100644 --- a/include/openvswitch/automake.mk +++ b/include/openvswitch/automake.mk @@ -1,5 +1,6 @@ noi

Re: [ovs-dev] [PATCH] datapath: Fully initialize datapath before local port.

2011-09-15 Thread Jesse Gross
On Thu, Sep 15, 2011 at 4:57 PM, Ben Pfaff wrote: > On Thu, Sep 15, 2011 at 04:52:39PM -0700, Jesse Gross wrote: >> It's possible to start receiving packets on a datapath as soon as >> the internal device is created.  It's therefore important that the >> datapath be fully initialized before this,

Re: [ovs-dev] [mcgroup 2/4] datapath: Hardcode vport multicast group ID on older kernels.

2011-09-15 Thread Ethan Jackson
33 it is! I'm going to consider this patch reviewed. Ethan On Thu, Sep 15, 2011 at 17:11, Jesse Gross wrote: > I don't really think this all that important.  Neither moving the > range that we allocate from nor making it discontinuous is that hard. > Like I said before, I don't really care that

Re: [ovs-dev] [mcgroup 2/4] datapath: Hardcode vport multicast group ID on older kernels.

2011-09-15 Thread Jesse Gross
I don't really think this all that important. Neither moving the range that we allocate from nor making it discontinuous is that hard. Like I said before, I don't really care that much. 33 is fine. On Thu, Sep 15, 2011 at 5:06 PM, Ben Pfaff wrote: > I can't argue with that.  We could add a way

Re: [ovs-dev] [mcgroup 2/4] datapath: Hardcode vport multicast group ID on older kernels.

2011-09-15 Thread Ben Pfaff
I can't argue with that. We could add a way to query it, I guess, if really necessary. On Thu, Sep 15, 2011 at 05:04:16PM -0700, Jesse Gross wrote: > I meant moving the group of fallback IDs would break things. > > On Thu, Sep 15, 2011 at 5:01 PM, Ben Pfaff wrote: > > It wouldn't break the ABI

Re: [ovs-dev] [mcgroup 2/4] datapath: Hardcode vport multicast group ID on older kernels.

2011-09-15 Thread Jesse Gross
I meant moving the group of fallback IDs would break things. On Thu, Sep 15, 2011 at 5:01 PM, Ben Pfaff wrote: > It wouldn't break the ABI to move either pool around, because those > aren't hardcoded in userspace, only in the kernel.  A discontinuous > range would also work but wouldn't be necess

Re: [ovs-dev] [mcgroup 2/4] datapath: Hardcode vport multicast group ID on older kernels.

2011-09-15 Thread Ben Pfaff
It wouldn't break the ABI to move either pool around, because those aren't hardcoded in userspace, only in the kernel. A discontinuous range would also work but wouldn't be necessary. On Thu, Sep 15, 2011 at 04:55:56PM -0700, Jesse Gross wrote: > I guess the other thing is if we want to increase

Re: [ovs-dev] [PATCH] datapath: Fully initialize datapath before local port.

2011-09-15 Thread Ben Pfaff
On Thu, Sep 15, 2011 at 04:52:39PM -0700, Jesse Gross wrote: > It's possible to start receiving packets on a datapath as soon as > the internal device is created. It's therefore important that the > datapath be fully initialized before this, which it currently isn't. > In particularly, the fact th

Re: [ovs-dev] [mcgroup 2/4] datapath: Hardcode vport multicast group ID on older kernels.

2011-09-15 Thread Jesse Gross
I guess the other thing is if we want to increase our pool of preallocated multicast groups, we have to either break the ABI or make the current pool discontinuous. On Thu, Sep 15, 2011 at 4:48 PM, Ben Pfaff wrote: > Personally I'd suggest 33 for this one and increment for each > succeeding famil

[ovs-dev] [PATCH] datapath: Fully initialize datapath before local port.

2011-09-15 Thread Jesse Gross
It's possible to start receiving packets on a datapath as soon as the internal device is created. It's therefore important that the datapath be fully initialized before this, which it currently isn't. In particularly, the fact that dp->stats_percpu is not yet set is potentially fatal. In addition

Re: [ovs-dev] [mcgroup 2/4] datapath: Hardcode vport multicast group ID on older kernels.

2011-09-15 Thread Ben Pfaff
Personally I'd suggest 33 for this one and increment for each succeeding family. No one's ever mentioned a problem with our use of genetlink groups. Since RHEL5 is probably declining rather than increasing in deployment, my guess is that no one ever will. On Thu, Sep 15, 2011 at 04:44:53PM -0700

Re: [ovs-dev] [mcgroup 2/4] datapath: Hardcode vport multicast group ID on older kernels.

2011-09-15 Thread Jesse Gross
Not really, I don't have any particular opinion on the actual number. The only thing that I was concerned about is what it would look like if we want to do this with the multicast groups for other families. On Thu, Sep 15, 2011 at 4:40 PM, Ethan Jackson wrote: > Based on my offline discussions wi

Re: [ovs-dev] [mcgroup 2/4] datapath: Hardcode vport multicast group ID on older kernels.

2011-09-15 Thread Ethan Jackson
Based on my offline discussions with Jesse I arrived, rather arbitrarily, at the number 214. I don't know enough about the kernel to judge what a good number choice would be. Jesse seemed to think larger was better. I'll use whatever the two of you think is best. Ethan On Thu, Sep 15, 2011 at

Re: [ovs-dev] [mcgroup 3/4] dpif-linux: Open dpif despite notifier failures.

2011-09-15 Thread Ben Pfaff
On Thu, Sep 15, 2011 at 04:27:03PM -0700, Ethan Jackson wrote: > > "Draconian"? ?Like torturing kittens or something? > > Haha, yes exactly like torturing kittens, assuming rhel 5 is a kitten, > and a broken vswitch install is torture. > > > Do we at least get a VLOG_ERR if we can't register the

Re: [ovs-dev] [mcgroup 2/4] datapath: Hardcode vport multicast group ID on older kernels.

2011-09-15 Thread Ben Pfaff
On Thu, Sep 15, 2011 at 04:10:55PM -0700, Ethan Jackson wrote: > > Where does the number 214 come from? > > Experimentally I found that the number had to be fairly small. I > wanted it to be large enough to be unlikely conflict to values the > proper way. I also wanted a number which was arbitra

Re: [ovs-dev] [PATCH] Set MTU in userspace rather than kernel.

2011-09-15 Thread Justin Pettit
On Sep 15, 2011, at 4:24 PM, Jesse Gross wrote: > On Thu, Sep 15, 2011 at 3:53 PM, Justin Pettit wrote: >> Currently the kernel automatically sets the MTU of any internal >> interfaces to the minimum of all attached interfaces because the Linux >> bridge does this. Userspace can do this with mor

Re: [ovs-dev] [mcgroup 4/4] dpif-linux: Handle nl_lookup_genl_mcgroup() failures.

2011-09-15 Thread Ethan Jackson
> In the future, it is possible that we will want a fallback for other > multicast groups as well.  Would it make sense to make the fallback > group an argument to nl_lookup_genl_mcgroup(), with zero to disable > fallback?  (Of course nl_lookup_genl_mcgroup() would still log a > message that the fa

Re: [ovs-dev] [mcgroup 3/4] dpif-linux: Open dpif despite notifier failures.

2011-09-15 Thread Ethan Jackson
> "Draconian"?  Like torturing kittens or something? Haha, yes exactly like torturing kittens, assuming rhel 5 is a kitten, and a broken vswitch install is torture. > Do we at least get a VLOG_ERR if we can't register the notifier?  I > don't see one in this patch but there might be one lower dow

Re: [ovs-dev] [PATCH] Set MTU in userspace rather than kernel.

2011-09-15 Thread Jesse Gross
On Thu, Sep 15, 2011 at 3:53 PM, Justin Pettit wrote: > Currently the kernel automatically sets the MTU of any internal > interfaces to the minimum of all attached interfaces because the Linux > bridge does this.  Userspace can do this with more knowledge and > flexibility. > > Feature #7323 > > S

Re: [ovs-dev] [PATCH v2] Always use generic stats for devices (vports)

2011-09-15 Thread Ben Pfaff
On Thu, Sep 15, 2011 at 04:18:06PM -0700, Jesse Gross wrote: > On Tue, Sep 13, 2011 at 6:11 PM, Pravin Shelar wrote: > > Fixed according to comments from Jesse. > > > > -- > > Currently ovs is using device stats for Linux devices and count them > > itself in other situations. This leads to ove

[ovs-dev] [mcgroup 2/4] datapath: Hardcode vport multicast group ID on older kernels.

2011-09-15 Thread Ethan Jackson
Older kernels do not advertise the multicast groups of families when requested by userspace. As a workaround, this patch hardcodes the multicast group ID of the ovs_vport family on these kernels. Userspace will be able to fall back to this hardcoded value if the standard mechanism is unavailable.

Re: [ovs-dev] [notifier 2/2] notifiers: Create and destroy nln_notifiers.

2011-09-15 Thread Ben Pfaff
On Thu, Sep 15, 2011 at 04:17:27PM -0700, Ethan Jackson wrote: > > EINVAL is pretty generic. ?Is there something lower down in the stack > > that will log the actual error should one occur? > > Yes, nln_notifier_create() logs. > > Also, only two callers payed attention to the error, one of those

Re: [ovs-dev] [PATCH v2] Always use generic stats for devices (vports)

2011-09-15 Thread Jesse Gross
On Tue, Sep 13, 2011 at 6:11 PM, Pravin Shelar wrote: > Fixed according to comments from Jesse. > > -- > Currently ovs is using device stats for Linux devices and count them > itself in other situations. This leads to overlap with hardware stats, > inconsistencies, etc. It's much better to jus

Re: [ovs-dev] [notifier 2/2] notifiers: Create and destroy nln_notifiers.

2011-09-15 Thread Ethan Jackson
> EINVAL is pretty generic.  Is there something lower down in the stack > that will log the actual error should one occur? Yes, nln_notifier_create() logs. Also, only two callers payed attention to the error, one of those will be ignoring it in a future patch. The EINVAL makes me a tad uncomfort

Re: [ovs-dev] [notifier 2/2] notifiers: Create and destroy nln_notifiers.

2011-09-15 Thread Ben Pfaff
On Thu, Sep 15, 2011 at 04:06:22PM -0700, Ethan Jackson wrote: > This patch changes the interface of netlink-notifier and > rtnetlink-link. Now nln_notifiers are allocated and destroyed by > the module instead of passed in by callers. This allows the > definition of nln_notifier to be hidden, and

Re: [ovs-dev] [mcgroup 2/4] datapath: Hardcode vport multicast group ID on older kernels.

2011-09-15 Thread Ethan Jackson
> Where does the number 214 come from? Experimentally I found that the number had to be fairly small. I wanted it to be large enough to be unlikely conflict to values the proper way. I also wanted a number which was arbitrary to avoid conflicting with other people who may be improperly hardcodin

Re: [ovs-dev] [vlans 2/5] ofproto-dpif: Fix behavior when a subset of VLANs is trunked.

2011-09-15 Thread Ethan Jackson
Looks good, Ethan On Fri, Aug 26, 2011 at 13:19, Ben Pfaff wrote: > Reported-by: Philippe Jung > --- >  ofproto/ofproto-dpif.c |    2 +- >  1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c > index f09c230..c05ca9e 100644 > --- a/o

Re: [ovs-dev] [notifier 1/2] notifiers: Rename run and wait functions.

2011-09-15 Thread Ben Pfaff
On Thu, Sep 15, 2011 at 04:06:21PM -0700, Ethan Jackson wrote: > It makes more sense to call nln_notifier_run() and > nln_notifier_wait() simply nln_run() and nln_wait() since they > don't operate on notifiers but the entire nln object. This patch > changes the nln and the rtnetlink-link modules t

Re: [ovs-dev] [mcgroup 1/4] nln: Allow unregister when register fails.

2011-09-15 Thread Ethan Jackson
> A different approach, that seems to me more conventional, would be for > nln_notifier_register() to allocate the struct nln_notifier and return > it as a pointer (probably through a struct nln_notifier ** parameter). > Then nln_notifier_unregister() would just ignore a null pointer.  If > we do i

[ovs-dev] [notifier 2/2] notifiers: Create and destroy nln_notifiers.

2011-09-15 Thread Ethan Jackson
This patch changes the interface of netlink-notifier and rtnetlink-link. Now nln_notifiers are allocated and destroyed by the module instead of passed in by callers. This allows the definition of nln_notifier to be hidden, and generally cleans up the code. --- lib/dpif-linux.c | 16 +++

[ovs-dev] [notifier 1/2] notifiers: Rename run and wait functions.

2011-09-15 Thread Ethan Jackson
It makes more sense to call nln_notifier_run() and nln_notifier_wait() simply nln_run() and nln_wait() since they don't operate on notifiers but the entire nln object. This patch changes the nln and the rtnetlink-link modules to the new convention. --- lib/dpif-linux.c |4 ++-- lib/ne

Re: [ovs-dev] [vlans 2/5] ofproto-dpif: Fix behavior when a subset of VLANs is trunked.

2011-09-15 Thread Ben Pfaff
It would be good to get at least this trivial bug fix in soon, since it affects master and branch-1.2. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [ovs-discuss] Port not deleted from fake bridge if tap is deleted. Works on regular bridge.

2011-09-15 Thread Ben Pfaff
Thanks a lot for testing this patch. I committed this to master and branch-1.2, so the bug fix will appear in 1.2.2 and in 1.3.0 (when they are released). On Wed, Sep 14, 2011 at 07:31:11PM -0500, Tyler Coumbes wrote: > Sorry for the delay. I totally missed your email. I have tested the patch on

[ovs-dev] [PATCH] Set MTU in userspace rather than kernel.

2011-09-15 Thread Justin Pettit
Currently the kernel automatically sets the MTU of any internal interfaces to the minimum of all attached interfaces because the Linux bridge does this. Userspace can do this with more knowledge and flexibility. Feature #7323 Signed-off-by: Justin Pettit --- datapath/datapath.c | 4

Re: [ovs-dev] [PATCH] Set MTU in userspace rather than kernel.

2011-09-15 Thread Justin Pettit
On Sep 15, 2011, at 10:28 AM, Ben Pfaff wrote: > This makes adding N ports to a bridge take N**2 time by checking the > MTU of every existing port whenever a new port is added. I see that > the kernel datapath did the same thing, so maybe it's OK given > caching. As we discussed in person, this

Re: [ovs-dev] [PATCH] Set MTU in userspace rather than kernel.

2011-09-15 Thread Justin Pettit
On Sep 15, 2011, at 10:42 AM, Jesse Gross wrote: > I think that we can actually kill off the entire vport_set_mtu() > function and all of the vport implementations because there are no > longer any callers. Good point. I'll send out a revised version soon. --Justin __

Re: [ovs-dev] [PATCH] cfm: Delete spurious blank line.

2011-09-15 Thread Ben Pfaff
Thanks, pushed. On Thu, Sep 15, 2011 at 03:48:10PM -0700, Ethan Jackson wrote: > Looks good. > > Ethan > > On Thu, Sep 15, 2011 at 15:45, Ben Pfaff wrote: > > --- > > ?lib/cfm.c | ? ?1 - > > ?1 files changed, 0 insertions(+), 1 deletions(-) > > > > diff --git a/lib/cfm.c b/lib/cfm.c > > index b

Re: [ovs-dev] [PATCH] cfm: Delete spurious blank line.

2011-09-15 Thread Ethan Jackson
Looks good. Ethan On Thu, Sep 15, 2011 at 15:45, Ben Pfaff wrote: > --- >  lib/cfm.c |    1 - >  1 files changed, 0 insertions(+), 1 deletions(-) > > diff --git a/lib/cfm.c b/lib/cfm.c > index bc59b62..c3d96d8 100644 > --- a/lib/cfm.c > +++ b/lib/cfm.c > @@ -357,7 +357,6 @@ cfm_compose_ccm(struc

[ovs-dev] [PATCH] cfm: Delete spurious blank line.

2011-09-15 Thread Ben Pfaff
--- lib/cfm.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/lib/cfm.c b/lib/cfm.c index bc59b62..c3d96d8 100644 --- a/lib/cfm.c +++ b/lib/cfm.c @@ -357,7 +357,6 @@ cfm_compose_ccm(struct cfm *cfm, struct ofpbuf *packet, void cfm_wait(struct cfm *cfm) { - timer_wa

Re: [ovs-dev] [PATCH] ovs-vsctl: Improve usage message.

2011-09-15 Thread Ben Pfaff
Thanks, I pushed it. On Thu, Sep 15, 2011 at 03:13:24PM -0700, Ethan Jackson wrote: > haha this is fine. > > Ethan > > On Thu, Sep 15, 2011 at 13:31, Ben Pfaff wrote: > > On Thu, Sep 15, 2011 at 01:24:52PM -0700, Ethan Jackson wrote: > >> > + ?del-controller BRIDGE ? ? ?delete the controllers f

Re: [ovs-dev] [PATCH] ofproto-dpif: Revalidate on cfm and lacp addition.

2011-09-15 Thread Ben Pfaff
On Thu, Sep 15, 2011 at 03:29:50PM -0700, Ethan Jackson wrote: > The introduction of cfm or lacp objects to ofproto, requires the > removal of all flows which originate from the newly "special" > in_port. Looks good to me, thanks. I don't think it's necessary now, but if we start setting up kerne

[ovs-dev] [PATCH] ofproto-dpif: Revalidate on cfm and lacp addition.

2011-09-15 Thread Ethan Jackson
The introduction of cfm or lacp objects to ofproto, requires the removal of all flows which originate from the newly "special" in_port. --- ofproto/ofproto-dpif.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index 88ec

Re: [ovs-dev] [PATCH] ovs-vsctl: Improve usage message.

2011-09-15 Thread Ethan Jackson
haha this is fine. Ethan On Thu, Sep 15, 2011 at 13:31, Ben Pfaff wrote: > On Thu, Sep 15, 2011 at 01:24:52PM -0700, Ethan Jackson wrote: >> > + ?del-controller BRIDGE ? ? ?delete the controllers for BRIDGE\n\ >> > + ?set-controller BRIDGE TARGET... ?set the controller(s) for BRIDGE\n\ >> >> Loo

Re: [ovs-dev] [PATCH] ovs-vsctl: Improve usage message.

2011-09-15 Thread Ben Pfaff
On Thu, Sep 15, 2011 at 01:24:52PM -0700, Ethan Jackson wrote: > > + ?del-controller BRIDGE ? ? ?delete the controllers for BRIDGE\n\ > > + ?set-controller BRIDGE TARGET... ?set the controller(s) for BRIDGE\n\ > > Looks good, > > I think the del-controller needs parens around it's s. I may be wr

Re: [ovs-dev] [PATCH] ovs-vsctl: Improve usage message.

2011-09-15 Thread Ethan Jackson
> +  del-controller BRIDGE      delete the controllers for BRIDGE\n\ > +  set-controller BRIDGE TARGET...  set the controller(s) for BRIDGE\n\ Looks good, I think the del-controller needs parens around it's s. I may be wrong though. Ethan >   get-fail-mode BRIDGE       print the fail-mode for

Re: [ovs-dev] [PATCH] ovs-vsctl: Improve usage message.

2011-09-15 Thread Ben Pfaff
On Thu, Sep 15, 2011 at 01:09:28PM -0700, Ethan Jackson wrote: > > + ?get-controller BRIDGE ? ? ?print all controller(s) for BRIDGE\n\ > > + ?del-controller BRIDGE ? ? ?delete all controllers for BRIDGE\n\ > > + ?set-controller BRIDGE TARGET... ?set the controller(s) for BRIDGE\n\ > > This seems f

Re: [ovs-dev] [PATCH] ovs-vsctl: Improve usage message.

2011-09-15 Thread Ethan Jackson
> +  get-controller BRIDGE      print all controller(s) for BRIDGE\n\ > +  del-controller BRIDGE      delete all controllers for BRIDGE\n\ > +  set-controller BRIDGE TARGET...  set the controller(s) for BRIDGE\n\ This seems fine, the wording is not self consistent though. Perhaps something like t

Re: [ovs-dev] [distcheck 4/4] bugtool: Remove "ovs-bugtool" upon "make clean", to fix "make distcheck".

2011-09-15 Thread Ben Pfaff
On Thu, Sep 15, 2011 at 09:32:47AM -0700, Ethan Jackson wrote: > looks good Thanks for all the reviews. I pushed these four patches. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [distcheck 3/4] bugtool: Uninstall plugins on "make uninstall".

2011-09-15 Thread Ben Pfaff
Yes, "make distcheck" checks "make uninstall". I tested it that way. Thanks, Ben. On Thu, Sep 15, 2011 at 09:32:30AM -0700, Ethan Jackson wrote: > looks fine assuming you tested it > > On Thu, Aug 25, 2011 at 10:22, Ben Pfaff wrote: > > This works toward making "make distcheck" succeed. > > -

Re: [ovs-dev] [cleanups 3/3] ofproto: Remove dummy 'in_port' variable.

2011-09-15 Thread Ben Pfaff
On Thu, Sep 15, 2011 at 09:25:37AM -0700, Ethan Jackson wrote: > looks good Thanks for the reviews. I pushed these. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH] netdev: Allow get_mtu and set_mtu provider functions to be null.

2011-09-15 Thread Ben Pfaff
On Thu, Sep 15, 2011 at 10:45:29AM -0700, Jesse Gross wrote: > On Thu, Sep 15, 2011 at 10:41 AM, Ben Pfaff wrote: > > Most netdev provider functions are allowed to be null if the implementation > > does not support this feature. ??This commit adds this feature for get_mtu > > and set_mtu, and chan

[ovs-dev] [PATCH] ovs-vsctl: Improve usage message.

2011-09-15 Thread Ben Pfaff
Bug #7332. Reported-by: Gordon Good --- AUTHORS |1 + utilities/ovs-vsctl.c |6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/AUTHORS b/AUTHORS index 44311ff..eefffee 100644 --- a/AUTHORS +++ b/AUTHORS @@ -64,6 +64,7 @@ DK Moon dkm...@

Re: [ovs-dev] [PATCH] netdev: Allow get_mtu and set_mtu provider functions to be null.

2011-09-15 Thread Jesse Gross
On Thu, Sep 15, 2011 at 10:41 AM, Ben Pfaff wrote: > Most netdev provider functions are allowed to be null if the implementation > does not support this feature.  This commit adds this feature for get_mtu > and set_mtu, and changes netdev-vport to take advantage of it. > > Also, changes netdev_get

Re: [ovs-dev] [PATCH] Set MTU in userspace rather than kernel.

2011-09-15 Thread Jesse Gross
On Thu, Sep 15, 2011 at 12:22 AM, Justin Pettit wrote: > diff --git a/datapath/vport.c b/datapath/vport.c > index b1418a4..c0bb585 100644 > --- a/datapath/vport.c > +++ b/datapath/vport.c > @@ -301,16 +301,9 @@ int vport_set_mtu(struct vport *vport, int mtu) >        if (mtu < 68) >              

[ovs-dev] [PATCH] netdev: Allow get_mtu and set_mtu provider functions to be null.

2011-09-15 Thread Ben Pfaff
Most netdev provider functions are allowed to be null if the implementation does not support this feature. This commit adds this feature for get_mtu and set_mtu, and changes netdev-vport to take advantage of it. Also, changes netdev_get_mtu() to report an MTU of 0 on error, instead of leaving the

Re: [ovs-dev] [PATCH] Set MTU in userspace rather than kernel.

2011-09-15 Thread Ben Pfaff
On Thu, Sep 15, 2011 at 12:22:35AM -0700, Justin Pettit wrote: > Currently the kernel automatically sets the MTU of any internal > interfaces to the minimum of all attached interfaces because the Linux > bridge does this. Userspace can do this with more knowledge and > flexibility. > > Feature #7

Re: [ovs-dev] [mcgroup 2/4] datapath: Hardcode vport multicast group ID on older kernels.

2011-09-15 Thread Jesse Gross
On Wed, Sep 14, 2011 at 5:55 PM, Ethan Jackson wrote: > diff --git a/include/openvswitch/datapath-protocol.h > b/include/openvswitch/datapath-protocol.h > index 5687792..e2fa578 100644 > --- a/include/openvswitch/datapath-protocol.h > +++ b/include/openvswitch/datapath-protocol.h > @@ -202,6 +202

Re: [ovs-dev] [mcgroup 4/4] dpif-linux: Handle nl_lookup_genl_mcgroup() failures.

2011-09-15 Thread Ben Pfaff
On Wed, Sep 14, 2011 at 05:55:34PM -0700, Ethan Jackson wrote: > The nl_lookup_genl_mcgroup() function can fail on older kernels > which do not support the required netlink interface. Before this > patch, dpif-linux would refuse to create a datapath when this > happened. With this patch, it attem

Re: [ovs-dev] [mcgroup 3/4] dpif-linux: Open dpif despite notifier failures.

2011-09-15 Thread Ben Pfaff
On Wed, Sep 14, 2011 at 05:55:33PM -0700, Ethan Jackson wrote: > Before this patch, if dpif-linux failed to register a notifier it > would give up opening the datapath entirely. This seems draconian > as a dpif can still perform the majority of its intended > functionality without vport notificati

Re: [ovs-dev] [mcgroup 2/4] datapath: Hardcode vport multicast group ID on older kernels.

2011-09-15 Thread Ben Pfaff
On Wed, Sep 14, 2011 at 05:55:32PM -0700, Ethan Jackson wrote: > Older kernels do not advertise the multicast groups of families > when requested by userspace. As a workaround, this patch hardcodes > the multicast group ID of the ovs_vport family on these kernels. > Userspace will be able to fall

Re: [ovs-dev] [mcgroup 1/4] nln: Allow unregister when register fails.

2011-09-15 Thread Ben Pfaff
On Wed, Sep 14, 2011 at 05:55:31PM -0700, Ethan Jackson wrote: > Quite a bit of code in OVS ignores the return code of > nln_notifier_register() and will nln_notifier_unregister() on > notifiers which failed to register in the first place. This can > cause segmentation faults. > > Instead of forc

Re: [ovs-dev] [distcheck 4/4] bugtool: Remove "ovs-bugtool" upon "make clean", to fix "make distcheck".

2011-09-15 Thread Ethan Jackson
looks good On Thu, Aug 25, 2011 at 10:22, Ben Pfaff wrote: > --- >  utilities/bugtool/automake.mk |    1 + >  1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/utilities/bugtool/automake.mk b/utilities/bugtool/automake.mk > index 622e5aa..98b6db4 100644 > --- a/utilities/bugtool/a

Re: [ovs-dev] [distcheck 3/4] bugtool: Uninstall plugins on "make uninstall".

2011-09-15 Thread Ethan Jackson
looks fine assuming you tested it On Thu, Aug 25, 2011 at 10:22, Ben Pfaff wrote: > This works toward making "make distcheck" succeed. > --- >  utilities/bugtool/automake.mk |   12 >  1 files changed, 12 insertions(+), 0 deletions(-) > > diff --git a/utilities/bugtool/automake.mk b/u

Re: [ovs-dev] [distcheck 2/4] Mark "uninstall-local" targets phony.

2011-09-15 Thread Ethan Jackson
looks good On Thu, Aug 25, 2011 at 10:22, Ben Pfaff wrote: > --- >  Makefile.am                    |    4 +++- >  ovsdb/ovsdbmonitor/automake.mk |    2 +- >  python/ovs/automake.mk         |    2 +- >  3 files changed, 5 insertions(+), 3 deletions(-) > > diff --git a/Makefile.am b/Makefile.am > i

Re: [ovs-dev] [distcheck 1/4] rhel: Fix "make distcheck" failure due to regenerating spec files.

2011-09-15 Thread Ethan Jackson
seems fine On Thu, Aug 25, 2011 at 10:22, Ben Pfaff wrote: > We want to regenerate the RPM spec files whenever the version number > changes, hence the dependency on config.status.  But that means that we > try to modify the spec files even when the version number doesn't change, > which cause "ma

Re: [ovs-dev] [cleanups 3/3] ofproto: Remove dummy 'in_port' variable.

2011-09-15 Thread Ethan Jackson
looks good On Thu, Sep 8, 2011 at 11:40, Ben Pfaff wrote: > Seems like a very small cleanup. > --- >  ofproto/ofproto.c |    3 +-- >  ofproto/pktbuf.c  |   10 -- >  2 files changed, 9 insertions(+), 4 deletions(-) > > diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c > index 849a376..090

Re: [ovs-dev] [cleanups 2/3] ofp-util: Remove obsolete build assertion.

2011-09-15 Thread Ethan Jackson
looks good On Thu, Sep 8, 2011 at 11:40, Ben Pfaff wrote: > Commit d1e9b9bf3 "nicira-ext: Renumber NXT_FLOW_MOD_TABLE_ID" eliminated > the need for the NXT_SET_FLOW_FORMAT and NXT_FLOW_MOD_TABLE_ID commands to > have different sizes, so asserting that they are different isn't useful > anymore (al

Re: [ovs-dev] [cleanups 1/3] odp-util: Drop pointless "if" statement.

2011-09-15 Thread Ethan Jackson
looks good On Thu, Sep 8, 2011 at 11:40, Ben Pfaff wrote: > --- >  lib/odp-util.c |    4 >  1 files changed, 0 insertions(+), 4 deletions(-) > > diff --git a/lib/odp-util.c b/lib/odp-util.c > index b42a03c..5b86b47 100644 > --- a/lib/odp-util.c > +++ b/lib/odp-util.c > @@ -989,10 +989,6 @@ o

[ovs-dev] [PATCH] Set MTU in userspace rather than kernel.

2011-09-15 Thread Justin Pettit
Currently the kernel automatically sets the MTU of any internal interfaces to the minimum of all attached interfaces because the Linux bridge does this. Userspace can do this with more knowledge and flexibility. Feature #7323 Signed-off-by: Justin Pettit --- datapath/datapath.c | 4