[ovs-dev] Laval Canada Job/Work Visa

2014-05-16 Thread Canada Employment
Dear Applicant Currently we recruit to Laval Quebec Canada with work permit for various department/positions.*Accounts/Engineering/Waiters/Waitress/Office Assistants/Customer Care Officers/Nurses/Drivers and more. How to apply:Send Application Letter with Cv attached to: quebecemployment@hotm

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

2014-05-16 Thread Simon Horman
On Fri, May 16, 2014 at 08:07:07AM +0900, Simon Horman wrote: > Allow datapath to recognize and extract MPLS labels into flow keys > and execute actions which push, pop, and set labels on packets. [snip] > diff --git a/datapath/linux/compat/gso.h b/datapath/linux/compat/gso.h > index b83a4c3..98b

Re: [ovs-dev] [PATCH] netdev: Remove netdev from global shash when the user is changing interface configuration.

2014-05-16 Thread Ben Pfaff
On Thu, May 15, 2014 at 03:01:19AM -0700, Ryan Wilson wrote: > When the user changes port type (i.e. changing p0 from type 'internal' to > 'gre'), the netdev must first be deleted, then re-created with the new type. > Deleting the netdev requires there exist no more references to the netdev. > Howe

Re: [ovs-dev] [PATCH v2 3/3] datapath: add layer 3 flow/port support

2014-05-16 Thread thomas.morin
2014-05-16, Jesse Gross: > On Thu, May 15, 2014 at 1:28 AM, wrote: >> Hi Jesse, >> >> (below) >> >> 2014-05-09, Jesse Gross: >>> On Fri, Apr 25, 2014 at 4:56 AM, wrote: Hi Jesse, (inlined below) Jesse Gross : >> >> In general, I think it would be

Re: [ovs-dev] [PATCH] netdev: Remove netdev from global shash when the user is changing interface configuration.

2014-05-16 Thread Ryan Wilson 76511
In netdev_remove, the netdev is unreffed after being removed from the global shash. If the ref count is 0, the netdev is destroyed. I'll re-submit with a more accurate comment for netdev_remove (it unrefs rather than destroys the netdev) and also adding a comment with netdev_remove in iface_des

Re: [ovs-dev] [PATCH] netdev: Remove netdev from global shash when the user is changing interface configuration.

2014-05-16 Thread Ben Pfaff
Perfect. Thanks! On May 16, 2014 8:16 AM, "Ryan Wilson 76511" wrote: > In netdev_remove, the netdev is unreffed after being removed from the > global shash. If the ref count is 0, the netdev is destroyed. > > I'll re-submit with a more accurate comment for netdev_remove (it unrefs > rather than d

Re: [ovs-dev] [PATCH v5 4/7] ofproto-dpif: MPLS recirculation

2014-05-16 Thread Ben Pfaff
On Fri, May 16, 2014 at 11:30:23AM +0900, Simon Horman wrote: > In some cases an pop MPLS action changes a packet to be a non-mpls packet. > In this case subsequent any L3+ actions require access to portions > of the packet which were not decoded as they were opaque when the > packet was MPLS. Allo

Re: [ovs-dev] [PATCH v5 5/7] ofp-actions: Allow pop_mpls on MPLS packets

2014-05-16 Thread Ben Pfaff
On Fri, May 16, 2014 at 11:30:24AM +0900, Simon Horman wrote: > With recirculation in place this should be safe. > > Signed-off-by: Simon Horman Nice. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH v5 7/7] ofproto-dpif: Add MPLS tests

2014-05-16 Thread Ben Pfaff
On Fri, May 16, 2014 at 11:30:26AM +0900, Simon Horman wrote: > Co-Authored-by: Joe Stringer > Signed-off-by: Simon Horman Thanks, this makes sense. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH v5 6/7] ofproto-dpif: Break out MPLS controller tests into their own test

2014-05-16 Thread Ben Pfaff
On Fri, May 16, 2014 at 11:30:25AM +0900, Simon Horman wrote: > This makes maintaining the controller test slightly easier > by splitting it in two. > > Based on a similar patch by Joe Stringer. > > Cc: Joe Stringer > Signed-off-by: Simon Horman Applied, thanks! ___

Re: [ovs-dev] [PATCH] dpif-netdev: removed hmap flow_table

2014-05-16 Thread Ben Pfaff
On Tue, May 13, 2014 at 04:15:18PM -0700, Daniele Di Proietto wrote: > As suggested by others, we can use the classifier, instead of the > hash table, as the only flow container in dpif-netdev > > Signed-off-by: Daniele Di Proietto This needs {}: > +if (!netdev_flow) > +return NULL;

Re: [ovs-dev] [PATCH v2 0/2] ovs-atomic: Remove atomic_{u,}int64_t

2014-05-16 Thread Ben Pfaff
On Wed, May 14, 2014 at 04:19:33PM +0900, Simon Horman wrote: > Some concern has been raised by Ben Pfaff that atomic_uint64_t may not > be portable. In particular on 32bit platforms that do not have atomic > 64bit integers. > > This series removes the users of atomic_uint64_t. > It then removes a

[ovs-dev] [PATCH v2] netdev: Remove netdev from global shash when the user is changing interface configuration.

2014-05-16 Thread Ryan Wilson
When the user changes port type (i.e. changing p0 from type 'internal' to 'gre'), the netdev must first be deleted, then re-created with the new type. Deleting the netdev requires there exist no more references to the netdev. However, the xlate cache holds references to netdevs and the cache is onl

Re: [ovs-dev] [PATCH 3/3] ofproto-dpif-xlate: Implement RCU locking in ofproto-dpif-xlate.

2014-05-16 Thread Ryan Wilson
It appears this patch will be pushed, so I'll send out v3 of the xlate RCU locking patch. Cheers, Ryan Wilson Member of Technical Staff wr...@vmware.com 3401 Hillview Avenue, Palo Alto, CA 650.427.1511 Office 916.588.7783 Mobile On May 15, 2014, at 11:16 AM, Ryan Wilson wrote: > Here's my new

[ovs-dev] [PATCH v3 1/2] ovs-rcu: Add OVSRCU_TYPE_INITIALIZER which initializes OVSRCU_TYPE variables to NULL.

2014-05-16 Thread Ryan Wilson
--- lib/ovs-rcu.h |2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ovs-rcu.h b/lib/ovs-rcu.h index 4b451b2..8327517 100644 --- a/lib/ovs-rcu.h +++ b/lib/ovs-rcu.h @@ -129,6 +129,7 @@ */ #if __GNUC__ #define OVSRCU_TYPE(TYPE) struct { ATOMIC(TYPE) p; } +#define OVSRCU_TYPE_INITIALIZ

[ovs-dev] [PATCH v3 2/2] ofproto-dpif-xlate: Implement RCU locking in ofproto-dpif-xlate.

2014-05-16 Thread Ryan Wilson
Before, a global read-write lock protected the ofproto-dpif / ofproto-dpif-xlate interface. Handler and revalidator threads had to wait while configuration was being changed. This patch implements RCU locking which allows handlers and revalidators to operate while configuration is being updated. S

Re: [ovs-dev] [PATCH v2] netdev: Remove netdev from global shash when the user is changing interface configuration.

2014-05-16 Thread Ben Pfaff
On Fri, May 16, 2014 at 02:17:58AM -0700, Ryan Wilson wrote: > When the user changes port type (i.e. changing p0 from type 'internal' to > 'gre'), the netdev must first be deleted, then re-created with the new type. > Deleting the netdev requires there exist no more references to the netdev. > Howe

Re: [ovs-dev] [PATCH v3 1/2] ovs-rcu: Add OVSRCU_TYPE_INITIALIZER which initializes OVSRCU_TYPE variables to NULL.

2014-05-16 Thread Alex Wang
Acked-by: Alex Wang On Fri, May 16, 2014 at 2:34 AM, Ryan Wilson wrote: > --- > lib/ovs-rcu.h |2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/lib/ovs-rcu.h b/lib/ovs-rcu.h > index 4b451b2..8327517 100644 > --- a/lib/ovs-rcu.h > +++ b/lib/ovs-rcu.h > @@ -129,6 +129,7 @@ > */ >

Re: [ovs-dev] [PATCH] Use prefix trie lookup for IPv4 by default.

2014-05-16 Thread Jarno Rajahalme
Pushed to master, Jarno On May 7, 2014, at 11:11 AM, Ethan Jackson wrote: > Acked-by: Ethan Jackson > > > On Fri, May 2, 2014 at 8:44 AM, Jarno Rajahalme wrote: >> Unless otherwise configured, the prefix trie lookup is enabled for >> IPv4 destination and source address fields. A new keyw

Re: [ovs-dev] [PATCH] ofproto-dpif: Install internal rule should not change the match content.

2014-05-16 Thread Andy Zhou
Thanks for the review. applied to master, branch 2.2 and branch 2.3 On Thu, May 15, 2014 at 9:03 PM, Ben Pfaff wrote: > On Mon, May 12, 2014 at 10:30:04AM -0700, Andy Zhou wrote: >> Without this patch, the match passed into to >> ofproto_dpif_add_internal_flow() are modified. The mask of dl_type

[ovs-dev] [PATCH net-next 04/12] openvswitch: Added (unsigned long long) cast in printf

2014-05-16 Thread Jesse Gross
From: Daniele Di Proietto This is necessary, since u64 is not unsigned long long in all architectures: u64 could be also uint64_t. Signed-off-by: Daniele Di Proietto Signed-off-by: Jesse Gross --- net/openvswitch/flow_netlink.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -

[ovs-dev] [PATCH net-next 05/12] openvswitch: Use net_ratelimit in OVS_NLERR

2014-05-16 Thread Jesse Gross
From: Joe Perches Each use of pr__once has a per-site flag. Some of the OVS_NLERR messages look as if seeing them multiple times could be useful, so use net_ratelimit() instead of pr_info_once. Signed-off-by: Joe Perches Signed-off-by: Jesse Gross --- net/openvswitch/datapath.h | 8 +---

[ovs-dev] [PATCH net-next 01/12] openvswitch: use const in some local vars and casts

2014-05-16 Thread Jesse Gross
From: Daniele Di Proietto In few functions, const formal parameters are assigned or cast to non-const. These changes suppress warnings if compiled with -Wcast-qual. Signed-off-by: Daniele Di Proietto Signed-off-by: Jesse Gross --- net/openvswitch/flow_netlink.c | 6 -- net/openvswitch/fl

[ovs-dev] [GIT net-next] Open vSwitch

2014-05-16 Thread Jesse Gross
A set of OVS changes for net-next/3.16. The major change here is a switch from per-CPU to per-NUMA flow statistics. This improves scalability by reducing kernel overhead in flow setup and maintenance. The following changes since commit a188a54d11629bef2169052297e61f3767ca8ce5: macvlan: simplif

[ovs-dev] [PATCH net-next 06/12] openvswitch: flow_netlink: Use pr_fmt to OVS_NLERR output

2014-05-16 Thread Jesse Gross
From: Joe Perches Add "openvswitch: " prefix to OVS_NLERR output to match the other OVS_NLERR output of datapath.c Signed-off-by: Joe Perches Signed-off-by: Jesse Gross --- net/openvswitch/flow_netlink.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/openvswitch/flow_netlink.c b/ne

[ovs-dev] [PATCH net-next 03/12] openvswitch: avoid cast-qual warning in vport_priv

2014-05-16 Thread Jesse Gross
From: Daniele Di Proietto This function must cast a const value to a non const value. By adding an uintptr_t cast the warning is suppressed. To avoid the cast (proper solution) several function signatures must be changed. Signed-off-by: Daniele Di Proietto Signed-off-by: Jesse Gross --- net/o

[ovs-dev] [PATCH net-next 12/12] net/openvswitch: Use with RCU_INIT_POINTER(x, NULL) in vport-gre.c

2014-05-16 Thread Jesse Gross
From: Monam Agarwal This patch replaces rcu_assign_pointer(x, NULL) with RCU_INIT_POINTER(x, NULL) The rcu_assign_pointer() ensures that the initialization of a structure is carried out before storing a pointer to that structure. And in the case of the NULL pointer, there is no structure to init

[ovs-dev] [PATCH net-next 11/12] openvswitch: Use TCP flags in the flow key for stats.

2014-05-16 Thread Jesse Gross
From: Jarno Rajahalme We already extract the TCP flags for the key, might as well use that for stats. Signed-off-by: Jarno Rajahalme Acked-by: Pravin B Shelar Signed-off-by: Jesse Gross --- net/openvswitch/flow.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git

[ovs-dev] [PATCH net-next 07/12] openvswitch: Use ether_addr_copy

2014-05-16 Thread Jesse Gross
From: Joe Perches It's slightly smaller/faster for some architectures. Signed-off-by: Joe Perches Signed-off-by: Jesse Gross --- net/openvswitch/actions.c | 4 ++-- net/openvswitch/flow.c | 16 net/openvswitch/flow_netlink.c | 12 ++-- 3 files changed, 1

[ovs-dev] [PATCH net-next 08/12] openvswitch: Remove 5-tuple optimization.

2014-05-16 Thread Jesse Gross
From: Jarno Rajahalme The 5-tuple optimization becomes unnecessary with a later per-NUMA node stats patch. Remove it first to make the changes easier to grasp. Signed-off-by: Jarno Rajahalme Signed-off-by: Jesse Gross --- net/openvswitch/datapath.c | 11 net/openvswitch/flow.c

[ovs-dev] [PATCH net-next 10/12] openvswitch: Fix output of SCTP mask.

2014-05-16 Thread Jesse Gross
From: Jarno Rajahalme The 'output' argument of the ovs_nla_put_flow() is the one from which the bits are written to the netlink attributes. For SCTP we accidentally used the bits from the 'swkey' instead. This caused the mask attributes to include the bits from the actual flow key instead of th

[ovs-dev] [PATCH net-next 02/12] openvswitch: avoid warnings in vport_from_priv

2014-05-16 Thread Jesse Gross
From: Daniele Di Proietto This change, firstly, avoids declaring the formal parameter const, since it is treated as non const. (to avoid -Wcast-qual) Secondly, it cast the pointer from void* to u8*, since it is used in arithmetic (to avoid -Wpointer-arith) Signed-off-by: Daniele Di Proietto Sig

[ovs-dev] [PATCH net-next 09/12] openvswitch: Per NUMA node flow stats.

2014-05-16 Thread Jesse Gross
From: Jarno Rajahalme Keep kernel flow stats for each NUMA node rather than each (logical) CPU. This avoids using the per-CPU allocator and removes most of the kernel-side OVS locking overhead otherwise on the top of perf reports and allows OVS to scale better with higher number of threads. Wit

Re: [ovs-dev] [PATCH v3 2/2] ofproto-dpif-xlate: Implement RCU locking in ofproto-dpif-xlate.

2014-05-16 Thread Alex Wang
Thanks Ryan, it is pretty close. Please see my comments below: One high level comment is that, we assume new_xcfg is non-null. Could we add assertion to the external functions? e.g. xlate_ofport_remove() > @@ -324,10 +332,76 @@ static bool dscp_from_skb_priority(const struct xport > *, uint

Re: [ovs-dev] [GIT net-next] Open vSwitch

2014-05-16 Thread David Miller
From: Jesse Gross Date: Fri, 16 May 2014 14:07:27 -0700 > A set of OVS changes for net-next/3.16. > > The major change here is a switch from per-CPU to per-NUMA flow > statistics. This improves scalability by reducing kernel overhead > in flow setup and maintenance. Pulled, thanks Jesse. __

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

2014-05-16 Thread Jesse Gross
On Fri, May 16, 2014 at 1:48 AM, Simon Horman wrote: > On Fri, May 16, 2014 at 08:07:07AM +0900, Simon Horman wrote: >> Allow datapath to recognize and extract MPLS labels into flow keys >> and execute actions which push, pop, and set labels on packets. > > [snip] > >> diff --git a/datapath/linux/

[ovs-dev] [PATCH 1/3] lib/classifier: Rename 'cls_subtable_cache' as 'cls_subtables'.

2014-05-16 Thread Jarno Rajahalme
'cache' gives an inexact connotation, as the list is always expected to be in order and contain pointers to all the subtables. The struct cls_subtables fields are are also renamed to be more readable. struct cls_classifier fields 'subtables' is remamed to 'subtables_map' and 'subtables_priority'

[ovs-dev] [PATCH 3/3] lib/classifier: Optimize megaflows for single rule case.

2014-05-16 Thread Jarno Rajahalme
When, during a classifier lookup, we narrow down to a single potential rule, it is enough to match on ("unwildcard") one bit that differs between the packet and the rule. This is a special case of the more general algorithm, where it is sufficient to match on enough bits that separates the packet

[ovs-dev] [PATCH 2/3] lib/classifier: Simplify subtable array.

2014-05-16 Thread Jarno Rajahalme
Do not cache the 'tag' and 'max_priority' in the subtable array. This makes later changes to classifier easier. Also makes the 'cls_subtables*' functions to always leave the subtables array in a consistent state. This includes the new cls_subtables_insert() function and removal of the old cls_su

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

2014-05-16 Thread Thomas Graf
On 05/16/14 at 02:29pm, Jesse Gross wrote: > On Fri, May 16, 2014 at 1:48 AM, Simon Horman wrote: > > On Fri, May 16, 2014 at 08:07:07AM +0900, Simon Horman wrote: > >> Allow datapath to recognize and extract MPLS labels into flow keys > >> and execute actions which push, pop, and set labels on pa

[ovs-dev] [PATCH v4] ofproto-dpif-xlate: Implement RCU locking in ofproto-dpif-xlate.

2014-05-16 Thread Ryan Wilson
Before, a global read-write lock protected the ofproto-dpif / ofproto-dpif-xlate interface. Handler and revalidator threads had to wait while configuration was being changed. This patch implements RCU locking which allows handlers and revalidators to operate while configuration is being updated. S

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

2014-05-16 Thread Jesse Gross
On Fri, May 16, 2014 at 2:48 PM, Thomas Graf wrote: > On 05/16/14 at 02:29pm, Jesse Gross wrote: >> On Fri, May 16, 2014 at 1:48 AM, Simon Horman wrote: >> > On Fri, May 16, 2014 at 08:07:07AM +0900, Simon Horman wrote: >> >> Allow datapath to recognize and extract MPLS labels into flow keys >> >

[ovs-dev] [PATCH] MAINTAINERS: Pravin Shelar is Open vSwitch maintainer.

2014-05-16 Thread Jesse Gross
Pravin will be maintaining Open vSwitch going forward. CC: Pravin Shelar Signed-off-by: Jesse Gross --- I'll continue to be very much involved (especially with the outstanding patchsets). However, Pravin has been doing a significant amount of the work involved in maintaining OVS already in addit

Re: [ovs-dev] [PATCH] dpif-netdev: removed hmap flow_table

2014-05-16 Thread Daniele Di Proietto
On May 16, 2014, at 9:26 AM, Ben Pfaff wrote: > This needs {}: >> +if (!netdev_flow) >> +return NULL; > Sure, i’ll fix it > VLOG_ERR is pretty strong. ovs-appctl(8) says that it means that "A > high-level operation or a subsystem failed. Attention is warranted." > That is, it ge

Re: [ovs-dev] [PATCH] dpif-netdev: removed hmap flow_table

2014-05-16 Thread Ben Pfaff
On Fri, May 16, 2014 at 04:17:34PM -0700, Daniele Di Proietto wrote: > On May 16, 2014, at 9:26 AM, Ben Pfaff wrote: > > I don't think that it is safe to use a cls_cursor to iterate flows in > > the flow dump path. The classifier isn't locked from one > > dpif_netdev_flow_dump_next() to the next,

[ovs-dev] [PATCH] dpif: Refactor flow dumping interface to make better sense for batching.

2014-05-16 Thread Ben Pfaff
Commit a6ce4b9d251 (ofproto-dpif-upcall: Avoid use-after-free in revalidate() corner case.) showed that it is somewhat tricky to correctly use the existing dpif flow dumping interface to obtain batches of flows. One has to be careful about calling dpif_flow_dump_next_may_destroy_keys() before going

Re: [ovs-dev] [cmap v2 1/2] cmap: New module for cuckoo hash table.

2014-05-16 Thread Jarno Rajahalme
Acked-by: Jarno Rajahalme Some comments below, though, Jarno On May 8, 2014, at 4:50 PM, Ben Pfaff wrote: > This implements an "optimistic concurrent cuckoo hash", a single-writer, > multiple-reader hash table data structure. The point of this data > structure is performance, so this comm

[ovs-dev] [mask array v2] datapath: keep mask array compact when deleting mask

2014-05-16 Thread Andy Zhou
When deleting a mask from the mask array, we always move the last entry into its current location. Another approach can be NULL in its current place, and periodically compact it. The approach taken by this patch is more efficient during run time. During look up, fast path packet don't have to skip

Re: [ovs-dev] [PATCH v5 4/7] ofproto-dpif: MPLS recirculation

2014-05-16 Thread Simon Horman
On Fri, May 16, 2014 at 08:55:12AM -0700, Ben Pfaff wrote: > On Fri, May 16, 2014 at 11:30:23AM +0900, Simon Horman wrote: > > In some cases an pop MPLS action changes a packet to be a non-mpls packet. > > In this case subsequent any L3+ actions require access to portions > > of the packet which we

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

2014-05-16 Thread Simon Horman
On Fri, May 16, 2014 at 03:17:18PM -0700, Jesse Gross wrote: > On Fri, May 16, 2014 at 2:48 PM, Thomas Graf wrote: > > On 05/16/14 at 02:29pm, Jesse Gross wrote: > >> On Fri, May 16, 2014 at 1:48 AM, Simon Horman wrote: > >> > On Fri, May 16, 2014 at 08:07:07AM +0900, Simon Horman wrote: > >> >>