Re: [ovs-dev] [PATCH] timeval: Add monotonic time functionality for NetBSD and FreeBSD.

2014-06-02 Thread Ryan Wilson 76511
Thanks for the fix! Sorry, I don't know too much about the intricacies of NetBSD. My first version seemed to work on my NetBSD instance though, so I wrongly assumed it would work for most versions of NetBSD. I tested this on FreeBSD and it works, but I don't know the intricacies of FreeBSD either.

[ovs-dev] [PATCH v2] timeval: Add monotonic time functionality for NetBSD and FreeBSD.

2014-06-02 Thread Ryan Wilson
This patch also checks the system platform as clock_gettime could exist on different platforms but with different values of CLOCK_MONOTONIC and different definitions of 'struct timespec'. In this case, the system call would be expected to catch the error, which is dangerous. This patch ensures Lin

Re: [ovs-dev] [PATCH] timeval: Add monotonic time functionality for NetBSD and FreeBSD.

2014-06-02 Thread YAMAMOTO Takashi
> This patch also checks the system platform as clock_gettime > could exist on different platforms but with different values of > CLOCK_MONOTONIC and different definitions of 'struct timespec'. > In this case, the system call would be expected to catch the > error, which is dangerous. > > This pat

Re: [ovs-dev] [PATCH v3] timeval: Use monotonic time in OVS Python timeval library.

2014-06-02 Thread Ryan Wilson 76511
Hey Yamamoto, You're right, this is too fragile. This patch I just posted checks the system's platform, so we don't run into situations like this (defaults to using time.time() if its not Linux, NetBSD or FreeBSD). It also adds CLOCK_MONOTONIC compatibility for NetBSD and FreeBSD, as well as updat

Re: [ovs-dev] [PATCH v4 net-next] MPLS: Use mpls_features to activate software MPLS GSO segmentation

2014-06-02 Thread Simon Horman
On Tue, Jun 03, 2014 at 01:46:11PM +0900, YAMAMOTO Takashi wrote: > > diff --git a/net/core/dev.c b/net/core/dev.c > > index 0355ca5..7c063ac 100644 > > --- a/net/core/dev.c > > +++ b/net/core/dev.c > > @@ -2498,13 +2498,42 @@ static int dev_gso_segment(struct sk_buff *skb, > > netdev_features_t f

Re: [ovs-dev] [PATCH v4 net-next] MPLS: Use mpls_features to activate software MPLS GSO segmentation

2014-06-02 Thread YAMAMOTO Takashi
> diff --git a/net/core/dev.c b/net/core/dev.c > index 0355ca5..7c063ac 100644 > --- a/net/core/dev.c > +++ b/net/core/dev.c > @@ -2498,13 +2498,42 @@ static int dev_gso_segment(struct sk_buff *skb, > netdev_features_t features) > return 0; > } > > +/* If MPLS offload request, verify we a

[ovs-dev] [PATCH] timeval: Add monotonic time functionality for NetBSD and FreeBSD.

2014-06-02 Thread Ryan Wilson
This patch also checks the system platform as clock_gettime could exist on different platforms but with different values of CLOCK_MONOTONIC and different definitions of 'struct timespec'. In this case, the system call would be expected to catch the error, which is dangerous. This patch ensures Lin

Re: [ovs-dev] [PATCH v4 net-next] MPLS: Use mpls_features to activate software MPLS GSO segmentation

2014-06-02 Thread Simon Horman
Hi Eric, On Mon, Jun 02, 2014 at 08:42:02PM -0700, Eric Dumazet wrote: > Hi Simon > > On Tue, 2014-06-03 at 11:38 +0900, Simon Horman wrote: > > +/* If MPLS offload request, verify we are testing hardware MPLS features > > + * instead of standard features for the netdev. > > + */ > > +#ifdef CONF

Re: [ovs-dev] [PATCH 2/3] lib/ovs-rcu: Evaluate parameters before ovsrcu_set and ovsrcu_init.

2014-06-02 Thread YAMAMOTO Takashi
> ovsrcu_set() and ovsrcu_init() look like functions, so users are > justified in expecting the arguments to be evalueated before any of evaluated > the body of ovsrcu_set or ovsrcu_init(). > > With ovs-atomic-pthreads, a fallback ovs-atomics implementation used > when no C11 atomics are availab

[ovs-dev] [MailServer Notification]Virus Scan Notification

2014-06-02 Thread Administrator
WORM_MYDOOM.GEN has been detected,and Replace with text/file has been taken on 6/3/2014 9:47:37 AM. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

[ovs-dev] Do you need a loan at 2%???

2014-06-02 Thread Joseph Bill
Hello, Do you need a loan at 2%??? to start up a business or have your own company or buy a car please visit our company today and visit our website http://unionmoneyservice.mw.lt/ Thanks Sign Henry Reginal unionmoneyservi...@gmail.com http://unionmoneyservice.mw.lt/ Copyright@2014 ___

Re: [ovs-dev] [PATCH v2.58] datapath: Add basic MPLS support to kernel

2014-06-02 Thread Simon Horman
Hi Jesse, thanks for your feedback. On Mon, Jun 02, 2014 at 05:58:10PM -0700, Jesse Gross wrote: > On Sun, May 25, 2014 at 5:22 PM, Simon Horman wrote: > > diff --git a/datapath/flow_netlink.c b/datapath/flow_netlink.c > > index 803a94c..8ce596c 100644 > > --- a/datapath/flow_netlink.c > > +++ b

Re: [ovs-dev] [PATCH 3/3] lib/ovs-rcu: Rename ovsrcu_init() as ovsrcu_set_hidden().

2014-06-02 Thread YAMAMOTO Takashi
> ovsrcu_init() was named after the atomic_init(), but the semantics are > different enough to warrant a different name. Basically C11 > atomic_init is defined in a way that allows the implementation to > assign the value without any syncronization, so in theory stores via > atomic_init could be s

Re: [ovs-dev] [PATCH 1/3] ovs-rcu: Remove the extra 'typedef' keyword.

2014-06-02 Thread YAMAMOTO Takashi
> 'struct ovsrcu_pointer' is always used with the 'struct' keyword, so > remove the unneeded 'typedef'. > > Signed-off-by: Jarno Rajahalme Acked-by: YAMAMOTO Takashi > --- > lib/ovs-rcu.h |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lib/ovs-rcu.h b/lib/ovs-rcu.

Re: [ovs-dev] [PATCH] cmap: Fix deadlock with ovs-atomic-pthreads

2014-06-02 Thread YAMAMOTO Takashi
> > On Jun 2, 2014, at 12:51 PM, Ben Pfaff wrote: > >> On Mon, Jun 02, 2014 at 12:50:45PM -0700, Jarno Rajahalme wrote: >>> >>> On Jun 2, 2014, at 11:45 AM, Ben Pfaff wrote: >>> I'd really hope that any serious OVS implementation would be able to use C11 or GCC or Clang or other com

Re: [ovs-dev] [PATCH v4 net-next] MPLS: Use mpls_features to activate software MPLS GSO segmentation

2014-06-02 Thread Eric Dumazet
Hi Simon On Tue, 2014-06-03 at 11:38 +0900, Simon Horman wrote: > +/* If MPLS offload request, verify we are testing hardware MPLS features > + * instead of standard features for the netdev. > + */ > +#ifdef CONFIG_NET_MPLS_GSO > +static netdev_features_t net_mpls_features(struct sk_buff *skb, > +

Re: [ovs-dev] [PATCH] CONTRIBUTING: Describe commonly used tags; introduce Reported-at.

2014-06-02 Thread YAMAMOTO Takashi
> On Mon, Jun 02, 2014 at 11:28:24AM -0700, Ben Pfaff wrote: >> This is partly documentation of how patches are tagged in practice in Open >> vSwitch. The bits at the end about "Reported-at:" and "VMware-BZ:" are >> an attempt to influence future practices; I cannot say how successful they >> will

Re: [ovs-dev] [PATCH v3] timeval: Use monotonic time in OVS Python timeval library.

2014-06-02 Thread YAMAMOTO Takashi
hi, > Hey Yamamoto, > > Sorry for the delay, I finally set up my NetBSD environment and tested > this script. You're right, but NetBSD will actually return an error on > clock_gettime because of this argument difference. Thus, NetBSD will > continue to use time.time(), which is as expected. it r

Re: [ovs-dev] [PATCH v4 net-next] MPLS: Use mpls_features to activate software MPLS GSO segmentation

2014-06-02 Thread Simon Horman
On Mon, Jun 02, 2014 at 05:45:22PM -0700, Jesse Gross wrote: > On Mon, Jun 2, 2014 at 5:16 PM, Simon Horman wrote: > > On Mon, Jun 02, 2014 at 05:21:45PM +0100, Thomas Graf wrote: > >> On 06/02/14 at 01:43pm, Simon Horman wrote: > >> > +#ifdef CONFIG_NET_MPLS_GSO > >> > +static netdev_features_t n

Re: [ovs-dev] [PATCH] rtbsd: Make rtbsd module thread-safe.

2014-06-02 Thread YAMAMOTO Takashi
hi, > Sorry for the delay, I swear I haven't been ignoring this email. > > Ok finally set up my NetBSD environment and master (with my rtbsd change) > compiles and passes all unit tests. thank you for taking care of netbsd port! YAMAMOTO Takashi > > Ryan > > From: Ryan Wilson mailto:wr...@v

[ovs-dev] Can VXLAN work with VIP (Keepalived)?

2014-06-02 Thread Changbin Liu
Hi Folks, Using Open vSwitch I am setting up VXLAN tunnels between hosts. I intend to make VXLAN tunnels "highly available" via Keepalived. Specifically, there are one master node and one backup node for each host, and they share a Virtual IP (VIP) via Keepalived, and the VXLAN tunnel will use the

Re: [ovs-dev] [PATCH v2.58] datapath: Add basic MPLS support to kernel

2014-06-02 Thread Jesse Gross
On Sun, May 25, 2014 at 5:22 PM, Simon Horman wrote: > diff --git a/datapath/flow_netlink.c b/datapath/flow_netlink.c > index 803a94c..8ce596c 100644 > --- a/datapath/flow_netlink.c > +++ b/datapath/flow_netlink.c > + case OVS_ACTION_ATTR_POP_MPLS: > + if (!eth_

Re: [ovs-dev] [PATCH v4 net-next] MPLS: Use mpls_features to activate software MPLS GSO segmentation

2014-06-02 Thread Jesse Gross
On Mon, Jun 2, 2014 at 5:16 PM, Simon Horman wrote: > On Mon, Jun 02, 2014 at 05:21:45PM +0100, Thomas Graf wrote: >> On 06/02/14 at 01:43pm, Simon Horman wrote: >> > +#ifdef CONFIG_NET_MPLS_GSO >> > +static netdev_features_t net_mpls_features(struct sk_buff *skb, >> > +

[ovs-dev] [PATCH 3/3] lib/ovs-rcu: Rename ovsrcu_init() as ovsrcu_set_hidden().

2014-06-02 Thread Jarno Rajahalme
ovsrcu_init() was named after the atomic_init(), but the semantics are different enough to warrant a different name. Basically C11 atomic_init is defined in a way that allows the implementation to assign the value without any syncronization, so in theory stores via atomic_init could be seen by oth

[ovs-dev] [PATCH 1/3] ovs-rcu: Remove the extra 'typedef' keyword.

2014-06-02 Thread Jarno Rajahalme
'struct ovsrcu_pointer' is always used with the 'struct' keyword, so remove the unneeded 'typedef'. Signed-off-by: Jarno Rajahalme --- lib/ovs-rcu.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ovs-rcu.h b/lib/ovs-rcu.h index 775b829..c3e06ad 100644 --- a/lib/ovs-rc

[ovs-dev] [PATCH 2/3] lib/ovs-rcu: Evaluate parameters before ovsrcu_set and ovsrcu_init.

2014-06-02 Thread Jarno Rajahalme
ovsrcu_set() and ovsrcu_init() look like functions, so users are justified in expecting the arguments to be evalueated before any of the body of ovsrcu_set or ovsrcu_init(). With ovs-atomic-pthreads, a fallback ovs-atomics implementation used when no C11 atomics are available or with GCC older tha

Re: [ovs-dev] [PATCH] revalidator: Fix a build issue.

2014-06-02 Thread Joe Stringer
Thanks, applied. I'll change the way I push to prevent this in future. On 3 June 2014 12:26, Jarno Rajahalme wrote: > Acked-by: Jarno Rajahalme > > On Jun 2, 2014, at 5:23 PM, Joe Stringer wrote: > > > Commit acaa8dac490cc6c36026d45f3010ec75f38ee142 (revalidator: Eliminate > > duplicate flow

Re: [ovs-dev] [PATCH] revalidator: Fix a build issue.

2014-06-02 Thread Jarno Rajahalme
Acked-by: Jarno Rajahalme On Jun 2, 2014, at 5:23 PM, Joe Stringer wrote: > Commit acaa8dac490cc6c36026d45f3010ec75f38ee142 (revalidator: Eliminate > duplicate flow handling.) introduced a build error. This fixes the bug. > > Reported-by: Jarno Rajahalme > Signed-off-by: Joe Stringer > --- >

[ovs-dev] [PATCH] revalidator: Fix a build issue.

2014-06-02 Thread Joe Stringer
Commit acaa8dac490cc6c36026d45f3010ec75f38ee142 (revalidator: Eliminate duplicate flow handling.) introduced a build error. This fixes the bug. Reported-by: Jarno Rajahalme Signed-off-by: Joe Stringer --- ofproto/ofproto-dpif-upcall.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di

Re: [ovs-dev] [PATCH 1/2] revalidator: Eliminate duplicate flow handling.

2014-06-02 Thread Joe Stringer
Sorry, I must have pushed the wrong version. I'll send a patch. On 3 June 2014 12:19, Jarno Rajahalme wrote: > > On Jun 2, 2014, at 4:55 PM, Joe Stringer wrote: > > On 3 June 2014 08:41, Ethan Jackson wrote: > >> The comment over the trylock exceeds the line limit. >> > > I'll fix that up. >

Re: [ovs-dev] [PATCH 1/2] revalidator: Eliminate duplicate flow handling.

2014-06-02 Thread Jarno Rajahalme
On Jun 2, 2014, at 4:55 PM, Joe Stringer wrote: > On 3 June 2014 08:41, Ethan Jackson wrote: > The comment over the trylock exceeds the line limit. > > I'll fix that up. > > I'm not sure if this is the right patch to fix it or not, but I don't > like how we're overloading the meaning of the

Re: [ovs-dev] [PATCH v4 net-next] MPLS: Use mpls_features to activate software MPLS GSO segmentation

2014-06-02 Thread Simon Horman
On Mon, Jun 02, 2014 at 05:21:45PM +0100, Thomas Graf wrote: > On 06/02/14 at 01:43pm, Simon Horman wrote: > > +#ifdef CONFIG_NET_MPLS_GSO > > +static netdev_features_t net_mpls_features(struct sk_buff *skb, > > + struct net_device *dev, > > +

Re: [ovs-dev] [PATCH 1/2] revalidator: Eliminate duplicate flow handling.

2014-06-02 Thread Joe Stringer
On 3 June 2014 08:41, Ethan Jackson wrote: > The comment over the trylock exceeds the line limit. > I'll fix that up. > I'm not sure if this is the right patch to fix it or not, but I don't > like how we're overloading the meaning of the 'mark'. I think the > code would be a lot clearer if we

Re: [ovs-dev] [PATCHv2] ovs-dev.py: Add option to run tests in parallel.

2014-06-02 Thread Joe Stringer
On 31 May 2014 13:27, Ethan Jackson wrote: > > I agree with the sentiment that it shouldn't be optional; that was my > first > > thought. Although, feedback from V1 was concerned about additional system > > resources required to run it like that. > > > > Perhaps a compromise is to have it configu

[ovs-dev] [PATCH] dpif-netdev: Remove an extra memcpy of packet data from datapath-upcall interface for bridges with datapath_type=netdev.

2014-06-02 Thread Ryan Wilson
When a bridge of datatype type netdev receives a packet, it copies the packet from the NIC to a buffer in userspace. Currently, when making an upcall, the packet is again copied to the upcall's buffer. However, this extra copy is not necessary when the datapath exists in userspace as the upcall can

Re: [ovs-dev] [PATCH] lib/flow: fix minimatch_extract() ICMPv6 parsing

2014-06-02 Thread Jarno Rajahalme
On Jun 2, 2014, at 2:21 PM, Jarno Rajahalme wrote: > Pushed to master with the following incremental. Backporting to branch-2.3 as > well. I backported the lib/match.c change and the test case to branch-2.1 as well. Jarno ___ dev mailing list dev

Re: [ovs-dev] [PATCH] lib/flow: fix minimatch_extract() ICMPv6 parsing

2014-06-02 Thread Jarno Rajahalme
Thanks, Daniele! Pushed to master with the following incremental. Backporting to branch-2.3 as well. Jarno diff --git a/tests/ofproto-dpif.at b/tests/ofproto-dpif.at index eb88f10..c14d671 100644 --- a/tests/ofproto-dpif.at +++ b/tests/ofproto-dpif.at @@ -4829,11 +4829,10 @@ AT_CAPTURE_FILE([

Re: [ovs-dev] [PATCH 2/2] revalidator: Refactor ukey creation/lookup.

2014-06-02 Thread Ethan Jackson
I'm wondering if it'd be cleaner to have ukey_create() return a locked ukey, and to pull the try_lock() into the critical section for the ukeys map? I.E. lock_hmap() ukey = ukey_lookup() if (!ukey) { //create and insert } else { // trylock } unlock_hmap() What do you think? On Thu, Ma

Re: [ovs-dev] [PATCH 1/2] revalidator: Eliminate duplicate flow handling.

2014-06-02 Thread Ethan Jackson
The comment over the trylock exceeds the line limit. I'm not sure if this is the right patch to fix it or not, but I don't like how we're overloading the meaning of the 'mark'. I think the code would be a lot clearer if we had both a "already_dumped" flag and a "delete" flag on every ukey. What

Re: [ovs-dev] [PATCH] rtbsd: Make rtbsd module thread-safe.

2014-06-02 Thread Ryan Wilson 76511
Sorry for the delay, I swear I haven't been ignoring this email. Ok finally set up my NetBSD environment and master (with my rtbsd change) compiles and passes all unit tests. Ryan From: Ryan Wilson mailto:wr...@vmware.com>> Date: Thursday, May 29, 2014 10:47 PM To: Ben Pfaff mailto:b...@nicira.

Re: [ovs-dev] [PATCH] cmap: Fix deadlock with ovs-atomic-pthreads

2014-06-02 Thread Jarno Rajahalme
On Jun 2, 2014, at 12:51 PM, Ben Pfaff wrote: > On Mon, Jun 02, 2014 at 12:50:45PM -0700, Jarno Rajahalme wrote: >> >> On Jun 2, 2014, at 11:45 AM, Ben Pfaff wrote: >> >>> I'd really hope that any serious OVS implementation would be able to >>> use C11 or GCC or Clang or other compiler-specif

Re: [ovs-dev] [PATCH] cmap: Fix deadlock with ovs-atomic-pthreads

2014-06-02 Thread Ben Pfaff
On Mon, Jun 02, 2014 at 12:50:45PM -0700, Jarno Rajahalme wrote: > > On Jun 2, 2014, at 11:45 AM, Ben Pfaff wrote: > > > I'd really hope that any serious OVS implementation would be able to > > use C11 or GCC or Clang or other compiler-specific techniques to get a > > "real" implementation of at

Re: [ovs-dev] [PATCH] cmap: Fix deadlock with ovs-atomic-pthreads

2014-06-02 Thread Jarno Rajahalme
On Jun 2, 2014, at 11:45 AM, Ben Pfaff wrote: > I'd really hope that any serious OVS implementation would be able to > use C11 or GCC or Clang or other compiler-specific techniques to get a > "real" implementation of atomics. Really the pthreads version is just > to make porting easier. > Are

Re: [ovs-dev] [PATCH v3] timeval: Use monotonic time in OVS Python timeval library.

2014-06-02 Thread Ryan Wilson 76511
Hey Yamamoto, Sorry for the delay, I finally set up my NetBSD environment and tested this script. You're right, but NetBSD will actually return an error on clock_gettime because of this argument difference. Thus, NetBSD will continue to use time.time(), which is as expected. I can add NetBSD func

Re: [ovs-dev] [PATCH] CONTRIBUTING: Describe commonly used tags; introduce Reported-at.

2014-06-02 Thread Flavio Leitner
On Mon, Jun 02, 2014 at 11:28:24AM -0700, Ben Pfaff wrote: > This is partly documentation of how patches are tagged in practice in Open > vSwitch. The bits at the end about "Reported-at:" and "VMware-BZ:" are > an attempt to influence future practices; I cannot say how successful they > will be. >

Re: [ovs-dev] [PATCH] cmap: Fix deadlock with ovs-atomic-pthreads

2014-06-02 Thread Ben Pfaff
I'd really hope that any serious OVS implementation would be able to use C11 or GCC or Clang or other compiler-specific techniques to get a "real" implementation of atomics. Really the pthreads version is just to make porting easier. On Mon, Jun 02, 2014 at 11:07:12AM -0700, Jarno Rajahalme wrote

[ovs-dev] [PATCH] CONTRIBUTING: Describe commonly used tags; introduce Reported-at.

2014-06-02 Thread Ben Pfaff
This is partly documentation of how patches are tagged in practice in Open vSwitch. The bits at the end about "Reported-at:" and "VMware-BZ:" are an attempt to influence future practices; I cannot say how successful they will be. I am not sure whether these key-value pairs at the end of commit me

Re: [ovs-dev] [PATCH] cmap: Fix deadlock with ovs-atomic-pthreads

2014-06-02 Thread Jarno Rajahalme
As I’m testing for this I notice that the cmap (or, ovs-rcu) with ova-atomic-pthreads is painfully slow. The reason for this is the the generic pthreads atomics have no memory barrier support, which is needed for efficient RCU. As we make more use of ovs-rcu and cmap we need to address this in o

[ovs-dev] [PATCH] lib/flow: fix minimatch_extract() ICMPv6 parsing

2014-06-02 Thread Daniele Di Proietto
This patch addresses two bugs related to ICMPv6(NDP) packets: - In miniflow_extract() push the words in the correct order - In parse_icmpv6() use sizeof struct, not size of struct * match_wc_init() has been modified, to include the nd_target field when the transport layer protocol is ICMPv6 A te

Re: [ovs-dev] [dev master 3/3] bridge: Re-try iface status update if the previous transaction fails.

2014-06-02 Thread Ben Pfaff
On Mon, Jun 02, 2014 at 02:40:28PM -0300, Flavio Leitner wrote: > On Mon, Jun 02, 2014 at 10:20:24AM -0700, Alex Wang wrote: > > Quote from Ben, > > > > """ > > when VMware QA gives us a bug report, through the VMware bug tracker, we > > include the number in the change log entry, and that others

Re: [ovs-dev] [PATCH] cmap: Fix deadlock with ovs-atomic-pthreads

2014-06-02 Thread Jarno Rajahalme
Thanks for reporting this! I think we should allow the illusion that ovsrcu_init is a function, and it’s parameters are evaluated before the body. Otherwise problems like this are bound to be reintroduced. I’ll post a patch soon. Jarno On Jun 2, 2014, at 3:34 AM, YAMAMOTO Takashi wrote: >

Re: [ovs-dev] [dev master 3/3] bridge: Re-try iface status update if the previous transaction fails.

2014-06-02 Thread Flavio Leitner
On Mon, Jun 02, 2014 at 10:20:24AM -0700, Alex Wang wrote: > Hey Flavio, Hi Alex, > Quote from Ben, > > """ > when VMware QA gives us a bug report, through the VMware bug tracker, we > include the number in the change log entry, and that others are welcome to > include their internal tracking ID

Re: [ovs-dev] [PATCH/RFC] ofp-errors: Duplicate instruction error

2014-06-02 Thread Ben Pfaff
On Mon, Jun 02, 2014 at 09:36:28PM +0900, Simon Horman wrote: > Add OFPERR_OFPBIC_DUP_INST (type = OFPET_BAD_INSTRUCTION, code = 9) > and use it for OpenFlow1.4+. > > For OpenFlow1.1 - 1.3 map this error to ONFBIC_DUP_INSTRUCTION > (experimenter = ONF, type = 2600) which is proposed in > OpenFlow

Re: [ovs-dev] [dev master 1/3] ofproto: Add separate functions for checking bfd/cfm status change.

2014-06-02 Thread Alex Wang
Thanks for the review, Flavio~ > Since those are all a sequence of mutex_lock(), get some value, > mutex_unlock, it might be a good optimization to have a function > that get all the status at once, e.g.: > > cfm_get_status(cfm, &status) > { > mutex_lock() > get all status >

Re: [ovs-dev] [dev master 3/3] bridge: Re-try iface status update if the previous transaction fails.

2014-06-02 Thread Alex Wang
Hey Flavio, Quote from Ben, """ when VMware QA gives us a bug report, through the VMware bug tracker, we include the number in the change log entry, and that others are welcome to include their internal tracking IDs when they submit changes. """ Thanks, Alex Wang, On Mon, Jun 2, 2014 at 7:32 A

Re: [ovs-dev] [PATCH v4 net-next] MPLS: Use mpls_features to activate software MPLS GSO segmentation

2014-06-02 Thread Thomas Graf
On 06/02/14 at 01:43pm, Simon Horman wrote: > +#ifdef CONFIG_NET_MPLS_GSO > +static netdev_features_t net_mpls_features(struct sk_buff *skb, > +struct net_device *dev, > +netdev_features_t features) > +{ > + /* Ther

[ovs-dev] Email list-Updated Contact Database

2014-06-02 Thread June White
Hi, Would you be interested in acquiring 2014 Updated Contact Databases of below specified titles that will add great value to your marketing programs? We can segment Industry, Technology users & Healthcare database by C Level, VP Level, Director Level and Manager Level as per your requirem

Re: [ovs-dev] [dev master 3/3] bridge: Re-try iface status update if the previous transaction fails.

2014-06-02 Thread Flavio Leitner
On Sun, Jun 01, 2014 at 10:04:30PM -0700, Alex Wang wrote: > This commit adds logic that marks the 'struct iface's when their > status need to be updated but the current status update transaction > fails. So, the main thread can re-try the update in the next run. > > Bug #1256577 Where is that b

Re: [ovs-dev] [dev master 1/3] ofproto: Add separate functions for checking bfd/cfm status change.

2014-06-02 Thread Flavio Leitner
On Sun, Jun 01, 2014 at 10:04:28PM -0700, Alex Wang wrote: > Currently, ofproto_port_get_bfd/cfm_status() is used to check the > bfd/cfm status change and query the status change. Users decide > what to do with the filled status struct based on the return value > of the funciton. Such design is c

[ovs-dev] [PATCH/RFC] ofp-errors: Duplicate instruction error

2014-06-02 Thread Simon Horman
Add OFPERR_OFPBIC_DUP_INST (type = OFPET_BAD_INSTRUCTION, code = 9) and use it for OpenFlow1.4+. For OpenFlow1.1 - 1.3 map this error to ONFBIC_DUP_INSTRUCTION (experimenter = ONF, type = 2600) which is proposed in OpenFlow enhancement proposal EXT-260 "Add error code for duplicate instruction.".

[ovs-dev] [PATCH] cmap: Fix deadlock with ovs-atomic-pthreads

2014-06-02 Thread YAMAMOTO Takashi
In the case of ovs-atomic-pthreads, the previous coding is expanded into successive atomic_lock__ calls which ends up with deadlock. Signed-off-by: YAMAMOTO Takashi --- lib/cmap.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/cmap.c b/lib/cmap.c index a760235..7892d5

Re: [ovs-dev] [PACKET_OUT v2] ofproto-dpif: treat non-datapath ports as local port for OFPT_PACKET_OUT

2014-06-02 Thread YAMAMOTO Takashi
> On Thu, May 29, 2014 at 1:21 AM, YAMAMOTO Takashi > wrote: what would the new definition of DP_HASH action look like? >>> flow_hash_5tuple >> >> DP_HASH was defined as "datapath specific hash of the packet". >> my question is what it will be after your proposed change. > > It will be