Re: [ovs-dev] OVS and macvtap - statistics

2013-06-07 Thread K.R.Kishore
Hi Jesse Thanks for responding. I checked this earlier and it does not add up. I looked at the delta before and after I ran the netperf test for 10s on a 10G link ( I get ~6G with my current parameters). The ifconfig numbers are in the ballpark for 10s of transmission at ~6G, but the ovs-dpctl

[ovs-dev] Bug#710125: Bug#710125: openvswitch: unable to compile kernel module with linux-3.8

2013-06-07 Thread Jesse Gross
On Wed, Jun 5, 2013 at 3:24 AM, Maciej Gałkiewicz wrote: > The problem with version 1.9.0 is that it does not support kernel greater > than 3.8. On the other way kernel 3.9.4 is already in sid. No version of Open vSwitch currently supports Linux 3.9. As an out of tree module, there is no general

Re: [ovs-dev] OVS and macvtap - statistics

2013-06-07 Thread Jesse Gross
On Fri, Jun 7, 2013 at 11:46 AM, K.R Kishore wrote: > Hi > I am trying to understand the statistics from ovs-dpctl and reconcile that > with stats from other tools. I am finding it difficult to make sense of the > numbers, perhaps someone can point me to some documentation about how this > works?

Re: [ovs-dev] [PATCH 2/3] datapath: Mega flow implementation

2013-06-07 Thread Jesse Gross
OK, here's the second half: On Wed, Jun 5, 2013 at 10:46 PM, Andy Zhou wrote: > diff --git a/datapath/flow.c b/datapath/flow.c > index 7f897bd..fc8fb86 100644 > --- a/datapath/flow.c > +++ b/datapath/flow.c > static struct kmem_cache *flow_cache; > +static LIST_HEAD(mask_list); We should add a

Re: [ovs-dev] [PATCH] ofp-actions: Add comments to struct ofpact_learn_spec.

2013-06-07 Thread Ansis Atteka
Acked-by: Ansis Atteka On Fri, Jun 7, 2013 at 10:14 AM, Ben Pfaff wrote: > Signed-off-by: Ben Pfaff > --- > lib/ofp-actions.h | 12 ++-- > 1 files changed, 6 insertions(+), 6 deletions(-) > > diff --git a/lib/ofp-actions.h b/lib/ofp-actions.h > index 9a74bcc..4e7fb5c 100644 > --- a

Re: [ovs-dev] [threads 12/17] odp-util: Avoid returning static data in ovs_key_attr_to_string().

2013-06-07 Thread Ansis Atteka
On Wed, Jun 5, 2013 at 1:05 PM, Ben Pfaff wrote: > Returning a static data buffer makes code more brittle and definitely > not thread-safe, so this commit switches to using a caller-provided > buffer instead. > > Signed-off-by: Ben Pfaff > > Acked-by: Ansis Atteka __

[ovs-dev] Bug#701758: first cut of Open vSwitch 1.9.x upload for Debian now available

2013-06-07 Thread Ben Pfaff
I've uploaded a first cut of an updated version of Open vSwitch for Debian for review: http://mentors.debian.net/package/openvswitch Please feel free to test and comment on it, either on the mailing list here or in the comment box on that webpage. __

Re: [ovs-dev] exporting port-to-ifindex mapping

2013-06-07 Thread Ben Pfaff
I think it should go into Interface. The field should be mutable, because its value is not known when ovs-vsctl (or another OVSDB client) adds the Interface record; instead, ovs-vswitchd fills it in later. Otherwise your plan sounds right. Other interface status columns, such as 'link_state' and

Re: [ovs-dev] exporting port-to-ifindex mapping

2013-06-07 Thread Neil Mckee
Want to make sure I get off on the right foot... should the read-only ifindex field go into "Port" or "Interface" ? It seems like ovsrec_interface is the one with the pointer to netdev. So I just need to: 1. change the schema to add ifindex as a new field (with mutable: false), 2. update the

[ovs-dev] [PATCH] ovsdb-idlc: Write a new-line at the end of "annotate" output.

2013-06-07 Thread Ben Pfaff
Some tools do not like text files that lack a trailing new-line. In particular, Debian's dpkg-source utility complains about a missing new-line in the file generated by ovsdb-idlc: dpkg-source: warning: file openvswitch-1.9.2+git20130605/lib/vswitch-idl.ovsidl has no final newline (ei

Re: [ovs-dev] [threads 14/17] ofp-util: Don't return static data in ofputil_packet_in_reason_to_string().

2013-06-07 Thread Pravin Shelar
On Wed, Jun 5, 2013 at 1:05 PM, Ben Pfaff wrote: > Returning a static data buffer makes code more brittle and definitely > not thread-safe, so this commit switches to using a caller-provided > buffer instead. > > Signed-off-by: Ben Pfaff > --- > lib/ofp-actions.c |5 - > lib/ofp-print.c

Re: [ovs-dev] [threads 16/17] netdev-vport: Make netdev_vport_get_dpif_port() code less confusing.

2013-06-07 Thread Pravin Shelar
On Wed, Jun 5, 2013 at 1:05 PM, Ben Pfaff wrote: > Signed-off-by: Ben Pfaff > --- > lib/netdev-vport.c |7 ++- > 1 files changed, 2 insertions(+), 5 deletions(-) > > diff --git a/lib/netdev-vport.c b/lib/netdev-vport.c > index 3558f43..4bb41bd 100644 > --- a/lib/netdev-vport.c > +++ b/li

Re: [ovs-dev] [PATCH] ofproto-dpif-governor: Dispense with governor name.

2013-06-07 Thread Ethan Jackson
Thanks merged. Ethan On Fri, Jun 7, 2013 at 1:58 PM, Ben Pfaff wrote: > On Fri, Jun 07, 2013 at 01:55:32PM -0700, Ethan Jackson wrote: >> In almost all cases, ovs-vswitchd runs with a single datapath, and >> therefore a single governor. Therefore, it's usually clear from >> context what governo

Re: [ovs-dev] [PATCH] ofproto-dpif-governor: Dispense with governor name.

2013-06-07 Thread Ben Pfaff
On Fri, Jun 07, 2013 at 01:55:32PM -0700, Ethan Jackson wrote: > In almost all cases, ovs-vswitchd runs with a single datapath, and > therefore a single governor. Therefore, it's usually clear from > context what governor log messages are referring to making the name > redundant. This patch remov

[ovs-dev] [PATCH] ofproto-dpif-governor: Dispense with governor name.

2013-06-07 Thread Ethan Jackson
In almost all cases, ovs-vswitchd runs with a single datapath, and therefore a single governor. Therefore, it's usually clear from context what governor log messages are referring to making the name redundant. This patch removes it. Signed-off-by: Ethan Jackson --- ofproto/ofproto-dpif-governo

Re: [ovs-dev] [subfacet 4/4] ofproto-dpif: Maintain subfacets in dpif_backer.

2013-06-07 Thread Ben Pfaff
On Fri, Jun 07, 2013 at 01:48:31PM -0700, Ethan Jackson wrote: > > The incremental is just ofproto-dpif.c, did you intend to remove > > 'name' from struct governor in ofproto-dpif-governor.h also? > > Ah that really should be a separate patch IMO. How about I merge this > series and then send som

Re: [ovs-dev] [subfacet 4/4] ofproto-dpif: Maintain subfacets in dpif_backer.

2013-06-07 Thread Ethan Jackson
> The incremental is just ofproto-dpif.c, did you intend to remove > 'name' from struct governor in ofproto-dpif-governor.h also? Ah that really should be a separate patch IMO. How about I merge this series and then send something out which changes the governor. Ethan ___

Re: [ovs-dev] [PATCH 2/3] datapath: Mega flow implementation

2013-06-07 Thread Rajahalme, Jarno (NSN - FI/Espoo)
Right, sorry for the mix up, Jarno On Jun 7, 2013, at 23:38 , ext Ben Pfaff wrote: > Are we talking about the datapath or userspace? The datapath would > use the Linux kernel roundup(), from linux/kernel.h. Userspace would > use ROUND_UP(), from lib/util.h. > > On Fri, Jun 07, 2013 at 08:28

Re: [ovs-dev] [subfacet 4/4] ofproto-dpif: Maintain subfacets in dpif_backer.

2013-06-07 Thread Ben Pfaff
On Fri, Jun 07, 2013 at 01:37:48PM -0700, Ethan Jackson wrote: > > Practically speaking, there is generally one backer. So I think that > > places where previously the code logged a bridge name, and now logs a > > backer name, we might as well drop the name entirely. This also goes > > for the go

Re: [ovs-dev] [subfacet 3/4] ofproto-dpif: Set flow-eviction-threshold globally.

2013-06-07 Thread Ethan Jackson
> Whoa. Declaring a static variable in a header file? Far out. But it > isn't going to work. Doh you're right. I'll just make it an extern. See the incremental below. Looks alright otherwise? --- ofproto/ofproto-provider.h |3 +-- ofproto/ofproto.c |2 ++ 2 files changed, 3

Re: [ovs-dev] [subfacet 4/4] ofproto-dpif: Maintain subfacets in dpif_backer.

2013-06-07 Thread Ethan Jackson
> Practically speaking, there is generally one backer. So I think that > places where previously the code logged a bridge name, and now logs a > backer name, we might as well drop the name entirely. This also goes > for the governor, which doesn't seem to need a name at all anymore. Fine with me

Re: [ovs-dev] [PATCH 2/3] datapath: Mega flow implementation

2013-06-07 Thread Ben Pfaff
Are we talking about the datapath or userspace? The datapath would use the Linux kernel roundup(), from linux/kernel.h. Userspace would use ROUND_UP(), from lib/util.h. On Fri, Jun 07, 2013 at 08:28:20PM +, Rajahalme, Jarno (NSN - FI/Espoo) wrote: > It is in lib/util.h: > > lib/util.h:#def

Re: [ovs-dev] [subfacet 3/4] ofproto-dpif: Set flow-eviction-threshold globally.

2013-06-07 Thread Ben Pfaff
On Fri, Jun 07, 2013 at 01:32:12PM -0700, Ethan Jackson wrote: > > Whoa. Declaring a static variable in a header file? Far out. But it > > isn't going to work. > > Doh you're right. I'll just make it an extern. See the incremental below. > Looks alright otherwise? Yes, thanks. __

[ovs-dev] [megaflow v2 1/3] megaflow: Add mask attribute to netlink protocol

2013-06-07 Thread Andy Zhou
This patch is required for subsequent mega flow patchs. --- include/linux/openvswitch.h |9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/include/linux/openvswitch.h b/include/linux/openvswitch.h index e890fd8..a119b14 100644 --- a/include/linux/openvswitch.h +++ b/inc

Re: [ovs-dev] [PATCH 2/3] datapath: Mega flow implementation

2013-06-07 Thread Rajahalme, Jarno (NSN - FI/Espoo)
It is in lib/util.h: lib/util.h:#define DIV_ROUND_UP(X, Y) (((X) + ((Y) - 1)) / (Y)) lib/util.h:#define ROUND_UP(X, Y) (DIV_ROUND_UP(X, Y) * (Y)) Jarno On Jun 7, 2013, at 17:39 , ext Andy Zhou wrote: Thanks for the suggestion. The kernel source I am looking at: 3.9.0-rc8, does not a accessib

[ovs-dev] Reminder: Check out Clinton's photos on Facebook

2013-06-07 Thread Facebook
Accept Invitation http://www.facebook.com/r.php?re=d1875e3cc3a00a2a2e478494fd7aeea7&mid=HMTM2MDY5MDAyOmRldkBvcGVudnN3aXRjaC5vcmc6NzA&key=AQDnyVLH5mEVJn-SNPP9B_EgjJjtQZWEzuGoBbY9-e5HBL9zG_SPbq7zdmgYvamw5ruERteQM4xC8qtSLdqClVTXW14&invid=16077314184 Go to

Re: [ovs-dev] [subfacet 2/4] ofproto: Track subfacet stats in the backer.

2013-06-07 Thread Ethan Jackson
Agreed, It's not particularly complicated. Intended to make the future patches easier to review. Ethan On Thu, Jun 6, 2013 at 2:59 PM, Ben Pfaff wrote: > On Wed, Jun 05, 2013 at 01:46:19PM -0700, Ethan Jackson wrote: >> Subfacets being per-datapath entities, their statistics are really >> only

Re: [ovs-dev] [subfacet 1/4] ofproto-dpif: Simplify subfacet stat calculations.

2013-06-07 Thread Ben Pfaff
On Fri, Jun 07, 2013 at 01:22:19PM -0700, Ethan Jackson wrote: > Here's an incremental. Also I've changed the commit message to the following: All good, thanks. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [subfacet 1/4] ofproto-dpif: Simplify subfacet stat calculations.

2013-06-07 Thread Ethan Jackson
Here's an incremental. Also I've changed the commit message to the following: ofproto-dpif: More responsive average subfacet statistics. Before this patch, statistics about subfacet average life span, and count in the datapath, were calculated over the entire lifetime of the ofproto. Furthermor

Re: [ovs-dev] [xc_v2 4/4] ofproto-dpif: Track relevant fields for wildcarding and add xout cache.

2013-06-07 Thread Ben Pfaff
On Fri, Jun 07, 2013 at 02:03:40AM -0700, Justin Pettit wrote: > Dynamically determines the flow fields that were relevant in > processing flows based on the OpenFlow flow table and switch > configuration. The immediate use for this functionality is to > generate an action translation cache for si

[ovs-dev] 细知dev

2013-06-07 Thread dev
Title: dev dev-优*惠开具企业正.规税..*票,可验*证后付*款。dev联系:137 1381 9792(林 *先* 生) Q Q:1289  6006烦请保留联**系方式,以备急需!dev___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

[ovs-dev] OVS and macvtap - statistics

2013-06-07 Thread K.R Kishore
Hi I am trying to understand the statistics from ovs-dpctl and reconcile that with stats from other tools. I am finding it difficult to make sense of the numbers, perhaps someone can point me to some documentation about how this works? There are numerous links on the web and it is quite confusin

[ovs-dev] [PATCH] ofp-actions: Add comments to struct ofpact_learn_spec.

2013-06-07 Thread Ben Pfaff
Signed-off-by: Ben Pfaff --- lib/ofp-actions.h | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/ofp-actions.h b/lib/ofp-actions.h index 9a74bcc..4e7fb5c 100644 --- a/lib/ofp-actions.h +++ b/lib/ofp-actions.h @@ -385,14 +385,14 @@ struct ofpact_resubmit {

[ovs-dev] verlässliches Darlehen / prêt

2013-06-07 Thread TIMO SERVICE
Verleiht private Darlehen kurzfristiger und langer gehender von 1000 Euro an 200 Euro an allen ernsthaften Personen, die ein Darlehen wünschen. Kontaktieren Sie es durch E - Mail: t...@financier.com Octroie

Re: [ovs-dev] [PATCH 2/3] datapath: Mega flow implementation

2013-06-07 Thread Jesse Gross
On Fri, Jun 7, 2013 at 3:35 AM, Andy Zhou wrote: > On Thu, Jun 6, 2013 at 7:01 PM, Jesse Gross wrote: >> On Wed, Jun 5, 2013 at 10:46 PM, Andy Zhou wrote: >> > diff --git a/datapath/datapath.c b/datapath/datapath.c >> > index 42af315..98d78a8 100644 >> > --- a/datapath/datapath.c >> > +++ b/data

Re: [ovs-dev] [PATCH 2/3] datapath: Mega flow implementation

2013-06-07 Thread Jesse Gross
It looks to me like it is available all the way back to 2.6.18, which is the oldest kernel we care about. On Fri, Jun 7, 2013 at 7:39 AM, Andy Zhou wrote: > Thanks for the suggestion. > > The kernel source I am looking at: 3.9.0-rc8, does not a accessible > definition of ROUND_UP, but roundup(x,

Re: [ovs-dev] [xc_v2 2/4] flow: Add new flow_wildcards_fold_minimask() function.

2013-06-07 Thread Ben Pfaff
On Fri, Jun 07, 2013 at 02:03:38AM -0700, Justin Pettit wrote: > From: Ethan Jackson > > This function will be useful in a future commit. > > Signed-off-by: Ethan Jackson > Co-authored-by: Justin Pettit > Signed-off-by: Justin Pettit Looks good, thanks. __

Re: [ovs-dev] [xc_v2 3/4] classifier: Add 'wc' argument to classifier_lookup().

2013-06-07 Thread Ben Pfaff
On Fri, Jun 07, 2013 at 02:03:39AM -0700, Justin Pettit wrote: > From: Ethan Jackson > > A future commit will want to know what bits were significant during the > classifier lookup. > > Signed-off-by: Ethan Jackson > Co-authored-by: Justin Pettit > Signed-off-by: Justin Pettit Looks good, th

Re: [ovs-dev] [xc_v2 1/4] meta-flow: Fix comment describing mf_set_flow_value().

2013-06-07 Thread Ben Pfaff
On Fri, Jun 07, 2013 at 02:03:37AM -0700, Justin Pettit wrote: > An obvious copy/paste error. > > Signed-off-by: Justin Pettit Looks good, thanks. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] How can we determaine if the match field can be "writable"?

2013-06-07 Thread Ben Pfaff
On Fri, Jun 07, 2013 at 01:51:26AM -0700, Brian Shang wrote: > I want to add a match field to ovs, but I'm not sure whether it should be > modified by "set_field" action. From openflow spec 1.3, it says "set_field" > action can modify any valid OXM header field, but I find some fields are > set fal

Re: [ovs-dev] [RFC] Making OVS less Ethernet specific

2013-06-07 Thread Ben Pfaff
On Fri, Jun 07, 2013 at 02:47:49PM +0300, Lori Jakab wrote: > On 6/7/13 3:18 AM, Ben Pfaff wrote: > >Have you considered the OpenFlow implications? OpenFlow itself is > >somewhat Ethernet centric. Improving this has been in discussion, in > >various ways, in the "extensibility" working group at O

Re: [ovs-dev] [PATCH 2/3] datapath: Mega flow implementation

2013-06-07 Thread Andy Zhou
Thanks for the suggestion. The kernel source I am looking at: 3.9.0-rc8, does not a accessible definition of ROUND_UP, but roundup(x,y) is, and fits the bill. I am thinking of using it instead, unless it breaks on some older kernel version that we care about. >From kernel.h: /* The `const' in

Re: [ovs-dev] [PATCH 2/3] datapath: Mega flow implementation

2013-06-07 Thread Rajahalme, Jarno (NSN - FI/Espoo)
On Jun 7, 2013, at 13:35 , ext Andy Zhou wrote: Is this the same as DIV_ROUND_UP? I did not use it because DIV_ROUND_UP gives the roundup of u32, I needed the roundup in bytes. However, I could rewrite this function using DIV_ROUND_UP. There is ROUND_UP doing that already.

Re: [ovs-dev] [PATCH net-next 2/2] openvswitch: Use zerocopy if applicable when performing the upcall

2013-06-07 Thread Thomas Graf
On 05/27/13 at 10:28am, Jesse Gross wrote: > On Saturday, May 25, 2013, Eric Dumazet wrote: > > > On Sat, 2013-05-25 at 08:02 +0100, Thomas Graf wrote: > > > > > I ran TCP_CRR to verify the SYN/ACK use case and I did not > > > observe a difference. If you have any specific test in mind > > > I wil

Re: [ovs-dev] [RFC] Making OVS less Ethernet specific

2013-06-07 Thread Lori Jakab
On 6/7/13 3:18 AM, Ben Pfaff wrote: On Thu, Jun 06, 2013 at 12:56:35AM +0300, Lori Jakab wrote: The LISP tunneling support as of now is not yet ready for upstreaming, for reasons outlined in this message: http://openvswitch.org/pipermail/dev/2013-February/025459.html One solution to the above

Re: [ovs-dev] [PATCH 2/3] datapath: Mega flow implementation

2013-06-07 Thread Andy Zhou
Thanks for the review. On Thu, Jun 6, 2013 at 7:01 PM, Jesse Gross wrote: > On Wed, Jun 5, 2013 at 10:46 PM, Andy Zhou wrote: > > Add mega flow support in kernel datapath. > > > > Pravin has made significant contributions to this patch. Including > > the mega flow id look up scheme, API clean u

Re: [ovs-dev] [xc_v2 4/4] ofproto-dpif: Track relevant fields for wildcarding and add xout cache.

2013-06-07 Thread Rajahalme, Jarno (NSN - FI/Espoo)
On Jun 7, 2013, at 12:03 , ext Justin Pettit wrote: ... > diff --git a/lib/flow.c b/lib/flow.c > index 6476029..db4ce1d 100644 > --- a/lib/flow.c > +++ b/lib/flow.c > @@ -759,6 +759,32 @@ flow_hash_symmetric_l4(const struct flow *flow, uint32_t > basis) > return jhash_bytes(&fields, sizeof fi

[ovs-dev] Your facebook friend Mark recommended you to us on June 6th

2013-06-07 Thread wholesale-dress
Click to view Web Version. Women

[ovs-dev] [xc_v2 1/4] meta-flow: Fix comment describing mf_set_flow_value().

2013-06-07 Thread Justin Pettit
An obvious copy/paste error. Signed-off-by: Justin Pettit --- lib/meta-flow.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/meta-flow.c b/lib/meta-flow.c index 54bc4c2..f9e044d 100644 --- a/lib/meta-flow.c +++ b/lib/meta-flow.c @@ -1356,9 +1356,8 @@ mf_set_valu

[ovs-dev] [xc_v2 3/4] classifier: Add 'wc' argument to classifier_lookup().

2013-06-07 Thread Justin Pettit
From: Ethan Jackson A future commit will want to know what bits were significant during the classifier lookup. Signed-off-by: Ethan Jackson Co-authored-by: Justin Pettit Signed-off-by: Justin Pettit --- lib/classifier.c| 17 +++-- lib/classifier.h|3 ++- ofp

[ovs-dev] [xc_v2 2/4] flow: Add new flow_wildcards_fold_minimask() function.

2013-06-07 Thread Justin Pettit
From: Ethan Jackson This function will be useful in a future commit. Signed-off-by: Ethan Jackson Co-authored-by: Justin Pettit Signed-off-by: Justin Pettit --- lib/flow.c | 43 +-- lib/flow.h |3 +++ 2 files changed, 32 insertions(+), 14 deletio

Re: [ovs-dev] [xc 4/4] ofproto-dpif: Track relevant fields for wildcarding and add xout cache.

2013-06-07 Thread Justin Pettit
On Jun 6, 2013, at 2:02 PM, Ben Pfaff wrote: > Every caller of lookup_xc() creates a new xc entry on failure. Can > any of this be factored into a helper? If not, then all the callers > of create_xc() use very similar 3 lines of code, so can that be > integrated into create_xc()? I think the i

[ovs-dev] How can we determaine if the match field can be "writable"?

2013-06-07 Thread Brian Shang
Hi all, I want to add a match field to ovs, but I'm not sure whether it should be modified by "set_field" action. From openflow spec 1.3, it says "set_field" action can modify any valid OXM header field, but I find some fields are set false(eg. "ipv6_label"). I want to know how can we determaine it