Re: [ovs-dev] [PATCH 3/4] User-Space MPLS actions and matches

2012-10-28 Thread Simon Horman
On Mon, Oct 29, 2012 at 11:06:35AM +0900, Isaku Yamahata wrote: > On Sat, Oct 27, 2012 at 02:39:37PM +0900, Simon Horman wrote: > > > Even when NX MPLS actions is used, retrieved actions always results in > > > OF1.1+ MPLS actions. We can keep it easily. > > > > > > Set ofpact->compat = OFPUTIL_NX

Re: [ovs-dev] [PATCH 3/4] User-Space MPLS actions and matches

2012-10-28 Thread Isaku Yamahata
On Sat, Oct 27, 2012 at 02:39:37PM +0900, Simon Horman wrote: > > Even when NX MPLS actions is used, retrieved actions always results in > > OF1.1+ MPLS actions. We can keep it easily. > > > > Set ofpact->compat = OFPUTIL_NX_xxx_MPLS in ofpact_from_nxact(). > > And then > > if (a->compat == OFPUTI

Re: [ovs-dev] [PATCH v7 08/16] block, elevator: use new hashtable implementation

2012-10-28 Thread Tejun Heo
On Sun, Oct 28, 2012 at 03:02:20PM -0400, Sasha Levin wrote: > Switch elevator to use the new hashtable implementation. This reduces the > amount of > generic unrelated code in the elevator. > > This also removes the dymanic allocation of the hash table. The size of the > table is > constant so

Re: [ovs-dev] [PATCH v7 04/16] workqueue: use new hashtable implementation

2012-10-28 Thread Tejun Heo
On Sun, Oct 28, 2012 at 03:02:16PM -0400, Sasha Levin wrote: > Switch workqueues to use the new hashtable implementation. This reduces the > amount of > generic unrelated code in the workqueues. > > Signed-off-by: Sasha Levin Acked-by: Tejun Heo Thanks! -- tejun

Re: [ovs-dev] [PATCH] datapath: add ipv6 'set' action

2012-10-28 Thread Ben Pfaff
On Sun, Oct 28, 2012 at 11:21:23PM +0200, Ansis Atteka wrote: > This patch adds ipv6 set action functionality. It allows to change > traffic class, flow label, hop-limit, ipv6 source and destination > address fields. > > Signed-off-by: Ansis Atteka That's a nice addition. I didn't know it was c

[ovs-dev] [PATCH] datapath: add ipv6 'set' action

2012-10-28 Thread Ansis Atteka
This patch adds ipv6 set action functionality. It allows to change traffic class, flow label, hop-limit, ipv6 source and destination address fields. Signed-off-by: Ansis Atteka --- datapath/actions.c | 83 datapath/compat.h | 23 +

[ovs-dev] [PATCH v7 16/16] tracing output: use new hashtable implementation

2012-10-28 Thread Sasha Levin
Switch tracing to use the new hashtable implementation. This reduces the amount of generic unrelated code in the tracing module. Signed-off-by: Sasha Levin --- kernel/trace/trace_output.c | 20 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/kernel/trace/trac

[ovs-dev] [PATCH v7 15/16] openvswitch: use new hashtable implementation

2012-10-28 Thread Sasha Levin
Switch openvswitch to use the new hashtable implementation. This reduces the amount of generic unrelated code in openvswitch. Signed-off-by: Sasha Levin --- net/openvswitch/vport.c | 34 +- 1 file changed, 13 insertions(+), 21 deletions(-) diff --git a/net/openv

[ovs-dev] [PATCH v7 14/16] net, rds: use new hashtable implementation

2012-10-28 Thread Sasha Levin
Switch rds to use the new hashtable implementation. This reduces the amount of generic unrelated code in rds. Signed-off-by: Sasha Levin --- net/rds/bind.c | 28 +- net/rds/connection.c | 102 +++ 2 files changed, 63 insertions(+

[ovs-dev] [PATCH v7 13/16] lockd: use new hashtable implementation

2012-10-28 Thread Sasha Levin
Switch lockd to use the new hashtable implementation. This reduces the amount of generic unrelated code in lockd. Signed-off-by: Sasha Levin --- fs/lockd/svcsubs.c | 66 +- 1 file changed, 36 insertions(+), 30 deletions(-) diff --git a/fs/lock

[ovs-dev] [PATCH v7 12/16] dm: use new hashtable implementation

2012-10-28 Thread Sasha Levin
Switch dm to use the new hashtable implementation. This reduces the amount of generic unrelated code in the dm. Signed-off-by: Sasha Levin --- drivers/md/dm-snap.c | 24 + drivers/md/persistent-data/dm-block-manager.c | 1 - .../persistent-data

[ovs-dev] [PATCH v7 11/16] net, l2tp: use new hashtable implementation

2012-10-28 Thread Sasha Levin
Switch l2tp to use the new hashtable implementation. This reduces the amount of generic unrelated code in l2tp. Signed-off-by: Sasha Levin --- net/l2tp/l2tp_core.c| 134 ++-- net/l2tp/l2tp_core.h| 8 +-- net/l2tp/l2tp_debugfs.c | 19 +++

[ovs-dev] [PATCH v7 10/16] dlm: use new hashtable implementation

2012-10-28 Thread Sasha Levin
Switch dlm to use the new hashtable implementation. This reduces the amount of generic unrelated code in the dlm. Signed-off-by: Sasha Levin --- fs/dlm/lowcomms.c | 47 +-- 1 file changed, 13 insertions(+), 34 deletions(-) diff --git a/fs/dlm/lowcomms

[ovs-dev] [PATCH v7 09/16] SUNRPC/cache: use new hashtable implementation

2012-10-28 Thread Sasha Levin
Switch cache to use the new hashtable implementation. This reduces the amount of generic unrelated code in the cache implementation. Signed-off-by: Sasha Levin --- net/sunrpc/cache.c | 20 +--- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/net/sunrpc/cache.c b/ne

[ovs-dev] [PATCH v7 08/16] block, elevator: use new hashtable implementation

2012-10-28 Thread Sasha Levin
Switch elevator to use the new hashtable implementation. This reduces the amount of generic unrelated code in the elevator. This also removes the dymanic allocation of the hash table. The size of the table is constant so there's no point in paying the price of an extra dereference when accessin

[ovs-dev] [PATCH v7 07/16] net, 9p: use new hashtable implementation

2012-10-28 Thread Sasha Levin
Switch 9p error table to use the new hashtable implementation. This reduces the amount of generic unrelated code in 9p. Signed-off-by: Sasha Levin --- net/9p/error.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/net/9p/error.c b/net/9p/error.c index

[ovs-dev] [PATCH v7 06/16] tracepoint: use new hashtable implementation

2012-10-28 Thread Sasha Levin
Switch tracepoints to use the new hashtable implementation. This reduces the amount of generic unrelated code in the tracepoints. Signed-off-by: Sasha Levin --- kernel/tracepoint.c | 27 +++ 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/kernel/tracepoin

[ovs-dev] [PATCH v7 05/16] mm/huge_memory: use new hashtable implementation

2012-10-28 Thread Sasha Levin
Switch hugemem to use the new hashtable implementation. This reduces the amount of generic unrelated code in the hugemem. This also removes the dymanic allocation of the hash table. The size of the table is constant so there's no point in paying the price of an extra dereference when accessing

[ovs-dev] [PATCH v7 04/16] workqueue: use new hashtable implementation

2012-10-28 Thread Sasha Levin
Switch workqueues to use the new hashtable implementation. This reduces the amount of generic unrelated code in the workqueues. Signed-off-by: Sasha Levin --- kernel/workqueue.c | 86 ++ 1 file changed, 15 insertions(+), 71 deletions(-) diff

[ovs-dev] [PATCH v7 03/16] mm, ksm: use new hashtable implementation

2012-10-28 Thread Sasha Levin
Switch ksm to use the new hashtable implementation. This reduces the amount of generic unrelated code in the ksm module. Signed-off-by: Sasha Levin --- mm/ksm.c | 33 +++-- 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/mm/ksm.c b/mm/ksm.c index 31ae5

[ovs-dev] [PATCH v7 02/16] userns: use new hashtable implementation

2012-10-28 Thread Sasha Levin
Switch to using the new hashtable implementation to store user structs. This reduces the amount of generic unrelated code in kernel/user.c. Signed-off-by: Sasha Levin --- kernel/user.c | 33 + 1 file changed, 13 insertions(+), 20 deletions(-) diff --git a/kernel/

[ovs-dev] [PATCH v7 01/16] hashtable: introduce a small and naive hashtable

2012-10-28 Thread Sasha Levin
This hashtable implementation is using hlist buckets to provide a simple hashtable to prevent it from getting reimplemented all over the kernel. Signed-off-by: Sasha Levin --- Sorry for the long delay, I was busy with a bunch of personal things. Changes since v6: - Use macros that point to in