[ovs-dev] [PATCH] Update subfacet stats for slow path flow

2013-11-21 Thread gyang
From: Guolin Yang The slow path stats are not updated which cause slow path flow to be deleted periodically. This patch update the slow path flow as fast path flow so that the flow will not be aged out. Another option is update the subfacet for slow path when packet is received and that is origi

[ovs-dev] [PATHCH v2] Trigger bridge reconfigure from ofproto layer

2013-09-17 Thread gyang
From: Guolin Yang There are two models in OVS in configure datapath port: 1. Datapath port created before user space bridge is configured. In this model, datapath can be deleted or added independent of user-space. 2. Datapath port created when ovsdb is requested to add the relevant port.

[ovs-dev] [PATCH] Trigger bridge reconfigure from ofproto layer

2013-09-09 Thread gyang
From: Guolin Yang There are two models in OVS in configure datapath port: 1. Datapath port created before user space bridge is configured. In this model, datapath can be deleted or added independent of user-space. 2. Datapath port created when ovsdb is requested to add the relevant port.

[ovs-dev] [PATCH v2] Don't set subprogram name to empty

2013-09-09 Thread gyang
From: Guolin Yang In monitor_daemon(), it set subprogram_name to "" which causes system crash in some platform. This change set subprogram name to program name. Signed-off-by: Guolin Yang --- Based on Ben's comments, only set pthread's subprogram name to non empty --- lib/util.c |7 ---

[ovs-dev] [PATCH] Don't set subprogram name to empty

2013-09-06 Thread gyang
From: Guolin Yang In monitor_daemon(), it set subprogram_name to "" which causes system crash in some platform. This change set subprogram name to program name. Signed-off-by: Guolin Yang --- lib/daemon.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/daemon.c b/lib

[ovs-dev] [PATCH v2] Fix a memory allocation bug in CFM

2013-09-04 Thread gyang
From: Guolin Yang In cfm, when allocating the rmp array, the size is not calculated correctly which cause the remote MPID not correctly updated in ovsdb. Signed-off-by: Guolin Yang --- v1->v2 Change description of the fix based on Ben's comments --- lib/cfm.c |2 +- 1 file changed, 1 i

[ovs-dev] [PATCH] Fix a memory corruption in CFM

2013-09-04 Thread gyang
From: Guolin Yang In cfm, when allocating the rmp array, the size is not calculated correctly which will cause memory corruption. Signed-off-by: Guolin Yang --- lib/cfm.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cfm.c b/lib/cfm.c index 297894e..d5eca0f 100644

[ovs-dev] [PATCH v2] Fix a bug in conversion between flow/mask and flow key

2013-08-30 Thread gyang
From: Guolin Yang In odp_flow_key_from_flow__(), when converting ICMPv6 flow/mask to flow/mask key, we should always use flow to check for whether ND informaition is present or not. In mask case, both type and code field should be masked, otherwise ND fields can be masked. Similarly in reverse c

[ovs-dev] [PATCH] Fix a bug in conversion between flow/mask and flow key

2013-08-29 Thread gyang
From: Guolin Yang For ICMPv6, when convert flow/mask to flow/mask key, the check for whether there is ND information is incorrect. Similar error in reverse conversion. Signed-off-by: Guolin Yang --- lib/odp-util.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff

[ovs-dev] [PATCH v3] Introduce odp_flow_key_to_mask() API

2013-08-20 Thread gyang
From: Guolin Yang With megaflow support, there is API to convert mask to nlattr key based format. This change introduces API to do the reverse conversion. We leverage the existing odp_flow_key_to_flow() API to resue the code. Signed-off-by: Guolin Yang --- lib/odp-util.c | 295 +++

[ovs-dev] [PATCH v2] Introduce odp_flow_key_to_mask() API

2013-08-15 Thread gyang
From: gyang With megaflow support, there is API to convert mask to nlattr key based format. This change introduces API to do the reverse conversion. We leverage the existing odp_flow_key_to_flow() API to resue the code. Signed-off-by: Guolin Yang --- lib/odp-util.c | 295

[ovs-dev] [PATCH] Introduce odp_flow_key_to_mask() API

2013-08-13 Thread gyang
From: gyang With megaflow support, there is API to convert mask to nlattr key based format. This change introduces API to do the reverse conversion. We leverage the existing odp_flow_key_to_flow() API to resue the code. Signed-off-by: Guolin Yang --- lib/odp-util.c | 301

[ovs-dev] [PATCH] Introduce odp_flow_key_to_mask() API

2013-08-13 Thread gyang
From: gyang With megaflow support, there is API to convert mask to nlattr key based format. This change introduces API to do the reverse conversion. We leverage the existing odp_flow_key_to_flow() API to resue the code. Signed-off-by: Guolin Yang --- lib/odp-util.c | 257