Re: [ovs-dev] [PATCH] Add VLAN splinters unit test.

2013-06-24 Thread Alex Wang
On Mon, Jun 24, 2013 at 6:13 PM, Alex Wang wrote: > Thanks for the answers, > > On Mon, Jun 24, 2013 at 5:03 PM, Ben Pfaff wrote: > >> On Mon, Jun 24, 2013 at 03:56:31PM -0700, Alex Wang wrote: >> > 1. What is usually the bug in the buggy driver? How can using >> vlan-splinter >> > avoid that? I

Re: [ovs-dev] [PATCH] datapath: optimize flow compare and mask functions

2013-06-24 Thread Jesse Gross
Please CC the original author and people that participated in the discussion. On Sat, Jun 22, 2013 at 5:32 AM, Andy Zhou wrote: > For architectures can load and store unaligned long efficiently, use 4 > or 8 bytes operations. This improves the efficiency compare to byte wise > operations. > > Thi

Re: [ovs-dev] [threads 08/11] random: Make thread-safe.

2013-06-24 Thread Ben Pfaff
On Mon, Jun 24, 2013 at 03:50:45PM -0700, Ansis Atteka wrote: > On Wed, Jun 19, 2013 at 1:17 PM, Ben Pfaff wrote: > > > Signed-off-by: Ben Pfaff > > --- > > lib/random.c | 26 +- > > 1 files changed, 17 insertions(+), 9 deletions(-) > > > > diff --git a/lib/random.c b/

[ovs-dev] [xlate v1 15/18] lacp: Handle unknown slaves in lacp_process_packet().

2013-06-24 Thread Ethan Jackson
In future patches, ofproto-dpif-xlate may be temporarily out of sync with ofproto-dpif proper, and pass an unknown ofport to lacp_process_packet(). This patch handles that edge case gracefully. Signed-off-by: Ethan Jackson --- lib/lacp.c |4 1 file changed, 4 insertions(+) diff --git

[ovs-dev] [xlate v1 16/18] tunnel: Use ofport_dpif instead of ofport.

2013-06-24 Thread Ethan Jackson
Necessary in a future patch. Signed-off-by: Ethan Jackson --- ofproto/ofproto-dpif.c |9 + ofproto/tunnel.c | 42 -- ofproto/tunnel.h | 12 +++- 3 files changed, 36 insertions(+), 27 deletions(-) diff --git a/ofproto/of

[ovs-dev] [xlate v1 17/18] tunnel: Hide 'struct tnl_port' internally.

2013-06-24 Thread Ethan Jackson
This simplifies the tunnel module's interface and prevents us from having to sync 'struct tnl_port' once ofproto-dpif and ofproto-dpif-xlate are disentangled. Signed-off-by: Ethan Jackson --- ofproto/ofproto-dpif-xlate.c |4 +-- ofproto/ofproto-dpif.c | 26 +++ ofproto/of

[ovs-dev] [xlate v1 14/18] bond: Handle unknown slaves in bond_check_admissibility().

2013-06-24 Thread Ethan Jackson
In future patches, ofproto-dpif-xlate may be temporarily out of sync with ofproto-dpif and pass a non-bonded ofport into bond_check_admissibility(). This patch handles that edge case gracefully. Signed-off-by: Ethan Jackson --- lib/bond.c |6 +- 1 file changed, 5 insertions(+), 1 deleti

[ovs-dev] [xlate v1 12/18] connmgr: Remove connmgr_must_output_local().

2013-06-24 Thread Ethan Jackson
connmgr_must_output_local() requires a 'struct connmgr' handle, when in principle, it should simply be enough to know whether or not in_band is enabled. Breaking this up will allow ofproto-dpif-xlate to disentangle itself from ofproto-dpif in future patches. Signed-off-by: Ethan Jackson --- ofp

[ovs-dev] [xlate v1 08/18] ofproto-dpif-sflow: Reference count 'struct dpif_sflow'.

2013-06-24 Thread Ethan Jackson
Signed-off-by: Ethan Jackson --- ofproto/ofproto-dpif-sflow.c | 22 -- ofproto/ofproto-dpif-sflow.h |4 +++- ofproto/ofproto-dpif.c |4 ++-- 3 files changed, 25 insertions(+), 5 deletions(-) diff --git a/ofproto/ofproto-dpif-sflow.c b/ofproto/ofproto-dpif-sflo

[ovs-dev] [xlate v1 11/18] netdev: Support null netdev argument in netdev_ref().

2013-06-24 Thread Ethan Jackson
This will be convenient in future patches. Signed-off-by: Ethan Jackson --- lib/netdev.c |9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/netdev.c b/lib/netdev.c index 653f5bc..d255dcc 100644 --- a/lib/netdev.c +++ b/lib/netdev.c @@ -277,14 +277,17 @@ netdev_op

[ovs-dev] [xlate v1 04/18] bfd: Reference count 'struct bfd'.

2013-06-24 Thread Ethan Jackson
Signed-off-by: Ethan Jackson --- lib/bfd.c | 33 - lib/bfd.h |2 ++ 2 files changed, 30 insertions(+), 5 deletions(-) diff --git a/lib/bfd.c b/lib/bfd.c index ddf8c4c..7c15c6a 100644 --- a/lib/bfd.c +++ b/lib/bfd.c @@ -179,6 +179,8 @@ struct bfd { long

[ovs-dev] [xlate v1 03/18] cfm: Reference count 'struct cfm'.

2013-06-24 Thread Ethan Jackson
Signed-off-by: Ethan Jackson --- lib/cfm.c | 21 - lib/cfm.h |3 ++- ofproto/ofproto-dpif.c |2 +- 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/lib/cfm.c b/lib/cfm.c index 67c2002..9116cba 100644 --- a/lib/cfm.c +++ b/lib/

[ovs-dev] [xlate v1 13/18] ofproto-dpif: Move tag_the_flow() to ofproto-dpif.c

2013-06-24 Thread Ethan Jackson
This will help disentangle ofproto-dpif and ofproto-dpif-xlate. Signed-off-by: Ethan Jackson --- ofproto/ofproto-dpif-xlate.c | 24 ofproto/ofproto-dpif.c | 17 + ofproto/ofproto-dpif.h |3 ++- 3 files changed, 23 insertions(+), 21 del

[ovs-dev] [xlate v1 06/18] bond: Reference count 'struct bond'.

2013-06-24 Thread Ethan Jackson
Signed-off-by: Ethan Jackson --- lib/bond.c | 20 +++- lib/bond.h |3 ++- ofproto/ofproto-dpif.c |6 +++--- 3 files changed, 24 insertions(+), 5 deletions(-) diff --git a/lib/bond.c b/lib/bond.c index 68ac068..1136315 100644 --- a/lib/bond.c +++

[ovs-dev] [xlate v1 10/18] ofproto-dpif: Remove 'has_bundle_action'.

2013-06-24 Thread Ethan Jackson
It requires ofproto-dpif-xlate to poke into 'struct ofproto-dpif' which won't be allowed in future patches. It's also a case of premature optimization. Signed-off-by: Ethan Jackson --- ofproto/ofproto-dpif-xlate.c |1 - ofproto/ofproto-dpif.c |7 +-- ofproto/ofproto-dpif.h

[ovs-dev] [xlate v1 05/18] lacp: Reference count 'struct lacp'.

2013-06-24 Thread Ethan Jackson
Signed-off-by: Ethan Jackson --- lib/lacp.c | 23 +-- lib/lacp.h |3 ++- ofproto/ofproto-dpif.c |4 ++-- 3 files changed, 25 insertions(+), 5 deletions(-) diff --git a/lib/lacp.c b/lib/lacp.c index 8bc115d..9daca3b 100644 --- a/lib/lacp.c +++

[ovs-dev] [xlate v1 01/18] ofproto-dpif: Handle dest mirrors in compose_output_action().

2013-06-24 Thread Ethan Jackson
Before this patch, the mirroring code would retroactively insert actions for destination mirrors after actions were translated. This relied on converting datapath output actions into ofports which doesn't work for tunnels and patch ports. This patch refactors the code to handle destination mirrors

[ovs-dev] [xlate v1 09/18] ofproto-dpif-ipfix: Reference count 'struct dpif_ipfix'.

2013-06-24 Thread Ethan Jackson
Signed-off-by: Ethan Jackson --- ofproto/ofproto-dpif-ipfix.c | 22 -- ofproto/ofproto-dpif-ipfix.h |4 +++- ofproto/ofproto-dpif.c |2 +- 3 files changed, 24 insertions(+), 4 deletions(-) diff --git a/ofproto/ofproto-dpif-ipfix.c b/ofproto/ofproto-dpif-ipfix.

[ovs-dev] [xlate v1 07/18] mac-learning: Reference count 'struct mac_learning".

2013-06-24 Thread Ethan Jackson
Signed-off-by: Ethan Jackson --- lib/learning-switch.c |2 +- lib/mac-learning.c | 23 --- lib/mac-learning.h |4 +++- ofproto/ofproto-dpif.c |2 +- 4 files changed, 25 insertions(+), 6 deletions(-) diff --git a/lib/learning-switch.c b/lib/learning-swit

[ovs-dev] [xlate v1 02/18] ofproto-dpif: Modularize mirror code.

2013-06-24 Thread Ethan Jackson
This code modularizes ofproto-dpif's mirror code by moving it to ofproto-dpif-mirror. Not only does this shorten ofproto-dpif and hide complexity, but its also necessary for future patches which modularize ofproto-dpif-xlate in preparation for multi-threading. Signed-off-by: Ethan Jackson --- o

[ovs-dev] [xlate v1 00/18] Modularize xlate_actions().

2013-06-24 Thread Ethan Jackson
The goal of this series is to modularize xlate_actions() in preparation for making it thread safe. It gets us most of the way there, but there's still some further cleanup in that area necessary. The first two patches are the same as my "mirror v2" series, followed by a bunch of trivial reference

[ovs-dev] [PATCH] datapath: optimize flow compare and mask functions

2013-06-24 Thread Andy Zhou
For architectures can load and store unaligned long efficiently, use 4 or 8 bytes operations. This improves the efficiency compare to byte wise operations. This patch is uses ideas and code from a patch submitted by Peter Klausler titled "replace memcmp() with specialized comparator". The flow com

Re: [ovs-dev] [PATCH] Add VLAN splinters unit test.

2013-06-24 Thread Alex Wang
Thanks for the answers, On Mon, Jun 24, 2013 at 5:03 PM, Ben Pfaff wrote: > On Mon, Jun 24, 2013 at 03:56:31PM -0700, Alex Wang wrote: > > 1. What is usually the bug in the buggy driver? How can using > vlan-splinter > > avoid that? I'm a bit confused here, since the "vlandev.c" code still > tal

Re: [ovs-dev] [PATCH] Add VLAN splinters unit test.

2013-06-24 Thread Ben Pfaff
On Mon, Jun 24, 2013 at 03:56:31PM -0700, Alex Wang wrote: > 1. What is usually the bug in the buggy driver? How can using vlan-splinter > avoid that? I'm a bit confused here, since the "vlandev.c" code still talks > to linux device driver (e.g. when creating ADD_VLAN_CMD) via the "ioctl" > call.

Re: [ovs-dev] [PATCH] Add VLAN splinters unit test.

2013-06-24 Thread Alex Wang
Thanks for the explanation, Have few more questions below, 1. What is usually the bug in the buggy driver? How can using vlan-splinter avoid that? I'm a bit confused here, since the "vlandev.c" code still talks to linux device driver (e.g. when creating ADD_VLAN_CMD) via the "ioctl" call. 2. If

Re: [ovs-dev] [PATCH] lacp: Remove unused lacp_slave_get_port_id().

2013-06-24 Thread Ben Pfaff
On Mon, Jun 24, 2013 at 03:47:09PM -0700, Ethan Jackson wrote: > Signed-off-by: Ethan Jackson Acked-by: Ben Pfaff ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [threads 08/11] random: Make thread-safe.

2013-06-24 Thread Ansis Atteka
On Wed, Jun 19, 2013 at 1:17 PM, Ben Pfaff wrote: > Signed-off-by: Ben Pfaff > --- > lib/random.c | 26 +- > 1 files changed, 17 insertions(+), 9 deletions(-) > > diff --git a/lib/random.c b/lib/random.c > index 45d428c..2572c1e 100644 > --- a/lib/random.c > +++ b/lib/

[ovs-dev] [PATCH] lacp: Remove unused lacp_slave_get_port_id().

2013-06-24 Thread Ethan Jackson
Signed-off-by: Ethan Jackson --- lib/lacp.c |8 lib/lacp.h |1 - 2 files changed, 9 deletions(-) diff --git a/lib/lacp.c b/lib/lacp.c index 8fd9d89..8bc115d 100644 --- a/lib/lacp.c +++ b/lib/lacp.c @@ -382,14 +382,6 @@ lacp_slave_may_enable(const struct lacp *lacp, const void *

Re: [ovs-dev] [ext-260 v3 4/5] ofp-errors: Implement OpenFlow 1.2+ experimenter error codes.

2013-06-24 Thread Ben Pfaff
On Mon, Jun 24, 2013 at 03:39:04PM -0700, Alex Wang wrote: > On Mon, Jun 24, 2013 at 1:58 PM, Ben Pfaff wrote: > > > dnl Write-Metadata duplicated. > > > > -# bad OF1.1 instructions: OFPBAC_UNSUPPORTED_ORDER > > > > +# bad OF1.1 instructions: NXBIC_DUP_INSTRUCTION > > > > 0002 0018 fedc

Re: [ovs-dev] [ext-260 v3 4/5] ofp-errors: Implement OpenFlow 1.2+ experimenter error codes.

2013-06-24 Thread Alex Wang
On Mon, Jun 24, 2013 at 1:58 PM, Ben Pfaff wrote: > experimenter IDs > > > by adding new *_VENDOR_ID definitions to openflow-common.h. > > > > > > Signed-off-by: Ben Pfaff > > Please snip more when you add inline comments, so that I don't > accidentally miss some of your questions among the quot

Re: [ovs-dev] [PATCH] [RFC] Add OpenFlow 1.3 protocol support for meters.

2013-06-24 Thread Ben Pfaff
On Mon, Jun 24, 2013 at 09:52:25PM +, Rajahalme, Jarno (NSN - FI/Espoo) wrote: > > On Jun 20, 2013, at 23:55 , ext Ben Pfaff wrote: > > > From: Neil Zhu > > > > Signed-off-by: Neil Zhu > > Signed-off-by: Ben Pfaff > > --- > > This is the first of a series of Open vSwitch features contrib

Re: [ovs-dev] [threads 09/11] Use random_*() instead of rand(), for thread safety.

2013-06-24 Thread Ansis Atteka
On Wed, Jun 19, 2013 at 1:17 PM, Ben Pfaff wrote: > None of these test programs are threaded, but has little cost and means > that "grep" doesn't turn up any instances of these thread-unsafe functions > in our tree. > > Signed-off-by: Ben Pfaff > --- > tests/test-classifier.c | 25 +++

Re: [ovs-dev] [PATCH 2/2] ovsdb-server: Add and remove databases during run time.

2013-06-24 Thread Ben Pfaff
On Mon, Jun 24, 2013 at 01:39:15PM -0700, Gurucharan Shetty wrote: > On Mon, Jun 24, 2013 at 1:10 PM, Ben Pfaff wrote: > > > On Thu, Jun 20, 2013 at 07:38:48AM -0700, Gurucharan Shetty wrote: > > > The commit allows a user to add a database file to a > > > ovsdb-server during run time. One can al

Re: [ovs-dev] [PATCH] flow: New function hash_ofp_port() and hash_ofp_port().

2013-06-24 Thread Ethan Jackson
> Alex originally had one of these but I didn't think it was necessary. > However, I think that your two votes override mine on something that I > don't care about too much so: I think with the code as it is now, it could go either way, but I'm adding more ofp_port hashers in future patches, and I

Re: [ovs-dev] [PATCH] ofproto-dpif: Minor need_revalidate tweaks.

2013-06-24 Thread Ethan Jackson
Thanks, Ill merge shortly. Ethan On Mon, Jun 24, 2013 at 2:07 PM, Ben Pfaff wrote: > On Mon, Jun 24, 2013 at 01:55:27PM -0700, Ethan Jackson wrote: >> This patch makes some minor tweaks to need_revalidate sets in >> ofproto-dpif. >> >> Signed-off-by: Ethan Jackson > > Acked-by: Ben Pfaff _

Re: [ovs-dev] [PATCH] ofproto-dpif-ipfix: Use XXX instead of TODO.

2013-06-24 Thread Ethan Jackson
> *shrug* Indeed. Thanks, I'll merge this in a bit. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH] ofproto-dpif: Minor need_revalidate tweaks.

2013-06-24 Thread Ben Pfaff
On Mon, Jun 24, 2013 at 01:55:27PM -0700, Ethan Jackson wrote: > This patch makes some minor tweaks to need_revalidate sets in > ofproto-dpif. > > Signed-off-by: Ethan Jackson Acked-by: Ben Pfaff ___ dev mailing list dev@openvswitch.org http://openvsw

Re: [ovs-dev] [PATCH] ofproto-dpif-ipfix: Use XXX instead of TODO.

2013-06-24 Thread Ben Pfaff
On Mon, Jun 24, 2013 at 01:51:09PM -0700, Ethan Jackson wrote: > XXX is preferred over TODO according to the style guide. > > Signed-off-by: Ethan Jackson *shrug* Acked-by: Ben Pfaff ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mai

Re: [ovs-dev] [PATCH] flow: New function hash_ofp_port() and hash_ofp_port().

2013-06-24 Thread Ben Pfaff
On Mon, Jun 24, 2013 at 01:59:09PM -0700, Ethan Jackson wrote: > These functions are used so often, that having an easy to read > helper is worth it. > > Signed-off-by: Ethan Jackson Alex originally had one of these but I didn't think it was necessary. However, I think that your two votes overri

Re: [ovs-dev] [PATCH v2 2/2] ofproto-dpif: Make "fdb/show" report OpenFlow port numbers.

2013-06-24 Thread Ben Pfaff
On Mon, Jun 24, 2013 at 01:53:57PM -0700, Ansis Atteka wrote: > On Wed, Jun 12, 2013 at 11:38 AM, Ben Pfaff wrote: > > > Users are more likely to be able to reasonably interpret OpenFlow port > > numbers than datapath port numbers. > > > > This issue has existed since at least 2011 but only recen

[ovs-dev] [ext-260 v4 1/2] ofp-errors: Implement OpenFlow 1.2+ experimenter error codes.

2013-06-24 Thread Ben Pfaff
OpenFlow 1.2 standardized experimenter error codes in a way different from the Nicira extension. This commit implements the OpenFlow 1.2+ version. This commit also makes it easy to add error codes for new experimenter IDs by adding new *_VENDOR_ID definitions to openflow-common.h. Signed-off-by:

Re: [ovs-dev] [ext-260 v3 4/5] ofp-errors: Implement OpenFlow 1.2+ experimenter error codes.

2013-06-24 Thread Ben Pfaff
On Thu, Jun 20, 2013 at 10:37:08PM -0700, Alex Wang wrote: > On Wed, Jun 12, 2013 at 11:35 AM, Ben Pfaff wrote: > > > OpenFlow 1.2 standardized experimenter error codes in a way different from > > the Nicira extension. This commit implements the OpenFlow 1.2+ version. > > > > This commit also ma

[ovs-dev] [PATCH] flow: New function hash_ofp_port() and hash_ofp_port().

2013-06-24 Thread Ethan Jackson
These functions are used so often, that having an easy to read helper is worth it. Signed-off-by: Ethan Jackson --- lib/flow.h | 12 lib/learning-switch.c|4 ++-- ofproto/ofproto-dpif-sflow.c |7 +++ ofproto/ofproto-dpif.c |9 ---

[ovs-dev] [ext-260 v4 2/2] ofp-errors: New error code ONFBIC_DUP_INSTRUCTION.

2013-06-24 Thread Ben Pfaff
This is a prototype of OpenFlow enhancement proposal EXT-260 "Add error code for duplicate instruction." It uses the error code proposed there. Signed-off-by: Ben Pfaff --- v3->v4: Fold in change to ofp-actions.at that was (and incorrectly) in the previous patch in older versions. lib/ofp-acti

[ovs-dev] [PATCH] ofproto-dpif: Minor need_revalidate tweaks.

2013-06-24 Thread Ethan Jackson
This patch makes some minor tweaks to need_revalidate sets in ofproto-dpif. Signed-off-by: Ethan Jackson --- ofproto/ofproto-dpif.c |9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index 446b27e..31cb69b 100644 --- a/

Re: [ovs-dev] [PATCH v2 2/2] ofproto-dpif: Make "fdb/show" report OpenFlow port numbers.

2013-06-24 Thread Ansis Atteka
On Wed, Jun 12, 2013 at 11:38 AM, Ben Pfaff wrote: > Users are more likely to be able to reasonably interpret OpenFlow port > numbers than datapath port numbers. > > This issue has existed since at least 2011 but only recently has it been > possible for OpenFlow and datapath port numbers to diffe

[ovs-dev] [PATCH] ofproto-dpif-ipfix: Use XXX instead of TODO.

2013-06-24 Thread Ethan Jackson
XXX is preferred over TODO according to the style guide. Signed-off-by: Ethan Jackson --- ofproto/ofproto-dpif-ipfix.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ofproto/ofproto-dpif-ipfix.c b/ofproto/ofproto-dpif-ipfix.c index 9de8b1c..083fe15 100644 --- a/ofproto/of

Re: [ovs-dev] [PATCH 2/2] ovsdb-server: Add and remove databases during run time.

2013-06-24 Thread Gurucharan Shetty
On Mon, Jun 24, 2013 at 1:39 PM, Gurucharan Shetty wrote: > > > On Mon, Jun 24, 2013 at 1:10 PM, Ben Pfaff wrote: > >> On Thu, Jun 20, 2013 at 07:38:48AM -0700, Gurucharan Shetty wrote: >> > The commit allows a user to add a database file to a >> > ovsdb-server during run time. One can also remov

Re: [ovs-dev] [PATCH 2/2] ovsdb-server: Add and remove databases during run time.

2013-06-24 Thread Gurucharan Shetty
On Mon, Jun 24, 2013 at 1:10 PM, Ben Pfaff wrote: > On Thu, Jun 20, 2013 at 07:38:48AM -0700, Gurucharan Shetty wrote: > > The commit allows a user to add a database file to a > > ovsdb-server during run time. One can also remove a > > database file from ovsdb-server's control. > > > > Feature #1

[ovs-dev] [mirror v2 2/2] ofproto-dpif: Modularize mirror code.

2013-06-24 Thread Ethan Jackson
This code modularizes ofproto-dpif's mirror code by moving it to ofproto-dpif-mirror. Not only does this shorten ofproto-dpif and hide complexity, but its also necessary for future patches which modularize ofproto-dpif-xlate in preparation for multi-threading. Signed-off-by: Ethan Jackson --- o

[ovs-dev] [mirror v2 1/2] ofproto-dpif: Handle dest mirrors in compose_output_action().

2013-06-24 Thread Ethan Jackson
Before this patch, the mirroring code would retroactively insert actions for destination mirrors after actions were translated. This relied on converting datapath output actions into ofports which doesn't work for tunnels and patch ports. This patch refactors the code to handle destination mirrors

Re: [ovs-dev] [PATCH v2 1/2] ofp-util: New function ofputil_port_to_string().

2013-06-24 Thread Ben Pfaff
On Mon, Jun 24, 2013 at 12:48:25PM -0700, Ansis Atteka wrote: > On Wed, Jun 12, 2013 at 11:38 AM, Ben Pfaff wrote: > > > This function is more convenient than ofputil_format_port() when a "struct > > ds" is not already in use. This commit converts one caller for which this > > was already true,

Re: [ovs-dev] [PATCH 2/2] ovsdb-server: Add and remove databases during run time.

2013-06-24 Thread Ben Pfaff
On Thu, Jun 20, 2013 at 07:38:48AM -0700, Gurucharan Shetty wrote: > The commit allows a user to add a database file to a > ovsdb-server during run time. One can also remove a > database file from ovsdb-server's control. > > Feature #14595. > Signed-off-by: Gurucharan Shetty The documentation co

[ovs-dev] How to measure the time that ovs needs to process a packet

2013-06-24 Thread Xiaoye Sun
Hi all, Does anybody know how to measure the time consumed by processing a packet in ovs? More specifically, by adding some time measuring functions like clock_gettime() or gettimeofday() in ovs somewhere, I could measure how much ovs uses to process a packet. The reason that I want to measure it

Re: [ovs-dev] [PATCH v2 1/2] ofp-util: New function ofputil_port_to_string().

2013-06-24 Thread Ansis Atteka
On Wed, Jun 12, 2013 at 11:38 AM, Ben Pfaff wrote: > This function is more convenient than ofputil_format_port() when a "struct > ds" is not already in use. This commit converts one caller for which this > was already true, and the following commit will add another. > > Signed-off-by: Ben Pfaff

Re: [ovs-dev] [PATCH 1/2] ovsdb-server: Store databases in shash instead of array.

2013-06-24 Thread Ben Pfaff
On Thu, Jun 20, 2013 at 07:38:47AM -0700, Gurucharan Shetty wrote: > An upcoming commit provides the ability to add and remove databases. > Having the databases in a shash instead of an array makes it easier > to add and remove databases. > > Feature #14595. > Signed-off-by: Gurucharan Shetty I

Re: [ovs-dev] [PATCH v13 1/4] ofproto-dpif: Add 'force-miss-model' configuration

2013-06-24 Thread Ben Pfaff
Usually we parse strings into enumerations in bridge.c. On Fri, Jun 21, 2013 at 10:44:12AM +0900, Joe Stringer wrote: > Sure. Is there a preference for where the string parsing code goes -- > ofproto.c or bridge.c? The configuration applies globally, but it seems > that similar configuration is pa

Re: [ovs-dev] [PATCH] datapath: Do not clear key in ovs_match_init()

2013-06-24 Thread Jesse Gross
On Sun, Jun 23, 2013 at 7:29 PM, Simon Horman wrote: > It appears that in the case where vs_match_init() is called from > ovs_flow_metadata_from_nlattrs() it is undesirable to set the flow key as > some of its values are set earlier on in ovs_flow_metadata_from_nlattrs(). > Furthermore in the case

Re: [ovs-dev] [PATCH] ovs-xapi-sync: Increase the tolerance level for xapi failures for bridges.

2013-06-24 Thread Ben Pfaff
On Fri, Jun 21, 2013 at 01:26:57PM -0700, Gurucharan Shetty wrote: > On Wed, Jun 19, 2013 at 1:27 PM, Ben Pfaff wrote: > > > On Wed, Jun 19, 2013 at 02:03:15AM -0700, Gurucharan Shetty wrote: > > > Specifically for the case, where we know that a bridge record > > > should exist in xapi, if we don

Re: [ovs-dev] autoconf test OVS_ENABLE_OPTION fails to detect options unsupported by clang

2013-06-24 Thread Ben Pfaff
On Fri, Jun 21, 2013 at 01:12:24PM -0400, Ed Maste wrote: > On 21 June 2013 12:05, Ben Pfaff wrote: > > By default, clang warns about but does not fail on unknown -W options. > > This made configure add the option to WARNING_FLAGS, which caused the > > warning about not-understood warnings to be e

Re: [ovs-dev] [PATCH] Add VLAN splinters unit test.

2013-06-24 Thread Ben Pfaff
On Mon, Jun 24, 2013 at 10:40:11AM -0700, Alex Wang wrote: > I saw the AF_INET is used when creating the socket (to be used in > "ioctl(sock, SIOCSIFVLAN, via)"). Seems to me that we cannot use netlink > socket here, right? And, generally speaking, is that true that we can only > use AF_INET, to ta

Re: [ovs-dev] [threads 01/11] ovs-thread: New module, initially just with pthreads wrapper functions.

2013-06-24 Thread Ben Pfaff
On Fri, Jun 21, 2013 at 11:36:16AM -0700, Ethan Jackson wrote: > The #include_next in sparse/pthread.h is a bit exotic. Would you > please include a short comment explaining why it's necessary? OK, I added: /* Get actual definitions for us to annotate and build on. */ We have tons of #include_n

Re: [ovs-dev] [threads 07/11] Replace all uses of strerror() by ovs_strerror(), for thread safety.

2013-06-24 Thread Alex Wang
Thanks for the reply, My review of 06/07 patches is done. On Mon, Jun 24, 2013 at 10:57 AM, Ben Pfaff wrote: > On Fri, Jun 21, 2013 at 12:33:29PM -0700, Alex Wang wrote: > > Looks good to me, just found two places where the line length exceeds 79, > > Thanks. I fixed the one in our code and l

Re: [ovs-dev] [threads 07/11] Replace all uses of strerror() by ovs_strerror(), for thread safety.

2013-06-24 Thread Ben Pfaff
On Fri, Jun 21, 2013 at 12:33:29PM -0700, Alex Wang wrote: > Looks good to me, just found two places where the line length exceeds 79, Thanks. I fixed the one in our code and left the other one in sflow code alone (the line was already too long there and I don't like to mess with the sflow librar

Re: [ovs-dev] [threads 02/11] ovs-thread: Add per-thread data support.

2013-06-24 Thread Ben Pfaff
On Fri, Jun 21, 2013 at 09:40:32AM -0400, Ed Maste wrote: > On 20 June 2013 20:10, Ben Pfaff wrote: > > Can you confirm that the autoconf test needs #include but > > the actual program doesn't? It looks funny. > > Yes. It looks like it should be added in the actual program; right > wow we end

Re: [ovs-dev] [PATCH] Add VLAN splinters unit test.

2013-06-24 Thread Alex Wang
Hey Ben, I'm learning vlan while reviewing this patch. Want to ask a question unrelated to this patch but vlan. I saw the AF_INET is used when creating the socket (to be used in "ioctl(sock, SIOCSIFVLAN, via)"). Seems to me that we cannot use netlink socket here, right? And, generally speaking,

Re: [ovs-dev] [RFC PATCH 2/8] ofpacts_check: Remove unnecessary flow copying.

2013-06-24 Thread Ben Pfaff
On Mon, Jun 24, 2013 at 03:26:52PM +, Rajahalme, Jarno (NSN - FI/Espoo) wrote: > > On Jun 20, 2013, at 23:36 , ext Ben Pfaff wrote: > > > On Thu, Jun 20, 2013 at 05:26:17PM +0300, Jarno Rajahalme wrote: > >> > >> Signed-off-by: Jarno Rajahalme > > > > I have mixed feelings here. On one h

Re: [ovs-dev] [PATCH] datapath: Add GSO/Tunnel links to gitignore

2013-06-24 Thread Jesse Gross
On Sun, Jun 23, 2013 at 5:59 PM, Joe Stringer wrote: > Signed-off-by: Joe Stringer > --- > datapath/linux/.gitignore |3 +++ > 1 file changed, 3 insertions(+) Applied, thanks. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman

Re: [ovs-dev] [RFC PATCH 2/8] ofpacts_check: Remove unnecessary flow copying.

2013-06-24 Thread Rajahalme, Jarno (NSN - FI/Espoo)
On Jun 20, 2013, at 23:36 , ext Ben Pfaff wrote: > On Thu, Jun 20, 2013 at 05:26:17PM +0300, Jarno Rajahalme wrote: >> >> Signed-off-by: Jarno Rajahalme > > I have mixed feelings here. On one hand, it is nice to avoid a big > copy in some cases (rare cases really). But on the other hand I am

[ovs-dev] Lower price sale / Dubai / JBR / 3Bedroom+maid room / 050-8320722

2013-06-24 Thread Peter Wong +971 50 8320722
Dear * * * Lower price sale / Dubai / JBR / 3Bedroom+maid room / 050-8320722 ( 3 unit sale) Located : Jumeirah Beach Residence (JBR) is a prime waterfront location with upmarket apartments, and all the allure of city and beachside living. JBR’s The Walk is Dubai’s most happeni

Re: [ovs-dev] [PATCH net-next 2/2] ip_tunnel: Protect tunnel functions with CONFIG_INET guard.

2013-06-24 Thread David Miller
From: Jesse Gross Date: Fri, 21 Jun 2013 16:17:11 -0700 > Tunnel constants can be used in generic code but in these cases > the inline functions in ip_tunnels.h cause compilation problems > if CONFIG_INET is not set. > > CC: Pravin Shelar > Reported-by: Randy Dunlap > Signed-off-by: Jesse Gros

Re: [ovs-dev] [PATCH net-next 1/2] openvswitch: Allow GRE ports when compiled as a module.

2013-06-24 Thread David Miller
From: Jesse Gross Date: Fri, 21 Jun 2013 16:17:10 -0700 > Open vSwitch GRE tunnels are currently only enabled if the GRE > datapath code is statically compiled in but it should be possible > to use it as a module as well. > > CC: Pravin Shelar > Signed-off-by: Jesse Gross Pravin's copy of thi