Re: [ovs-dev] Request to tag 2.7 branch with v2.7.1

2017-06-27 Thread Justin Pettit
> On Jun 27, 2017, at 12:39 PM, Ben Pfaff wrote: > > On Sat, Jun 24, 2017 at 10:10:02AM +0800, Justin Pettit wrote: >> >>> On Jun 24, 2017, at 2:12 AM, Joe Stringer wrote: >>> On 23 June 2017 at 05:38, Russell Bryant wrote: > On Thu, Jun

[ovs-dev] [PATCHv2 2/2] ofp-parse: Improve comment for parse_ofp_packet_out_str().

2017-06-27 Thread Justin Pettit
This function is a wrapper for parse_ofp_packet_out_str__(), which states that a couple members must be freed on success. This commit updates the wrapper's description to indicate the same. The existing callers appear to be properly freeing members. Signed-off-by: Justin Pettit

[ovs-dev] [PATCHv2 1/2] ofp-parse: Fix small memory leak when calling parse_ofp_meter_mod_str().

2017-06-27 Thread Justin Pettit
The function parse_ofp_meter_mod_str() allocates a buffer called 'bands', which parse_ofp_meter_mod_str__() then steals for the member 'mm->meter.bands'. Calling functions didn't free that stolen value and the comments for those function didn't indicate that was necessary. Found by valgrind.

Re: [ovs-dev] [PATCH 1/2] ofp-parse: Fix small memory leak when calling parse_ofp_meter_mod_str().

2017-06-27 Thread Justin Pettit
This patch has an issue. I'm working on a v2. --Justin > On Jun 27, 2017, at 5:35 PM, Justin Pettit wrote: > > The function parse_ofp_meter_mod_str() allocates a buffer called > 'bands', which parse_ofp_meter_mod_str__() then steals for the member > 'mm->meter.bands'.

[ovs-dev] [PATCH 1/2] ofp-parse: Fix small memory leak when calling parse_ofp_meter_mod_str().

2017-06-27 Thread Justin Pettit
The function parse_ofp_meter_mod_str() allocates a buffer called 'bands', which parse_ofp_meter_mod_str__() then steals for the member 'mm->meter.bands'. Calling functions didn't free that stolen value and the comments for those function didn't indicate that was necessary. Found by valgrind.

[ovs-dev] [PATCH 2/2] ofp-parse: Improve comment for parse_ofp_packet_out_str().

2017-06-27 Thread Justin Pettit
This function is a wrapper for parse_ofp_packet_out_str__(), which states that a couple members must be freed on success. This commit updates the wrapper's description to indicate the same. The existing callers appear to be properly freeing members. Signed-off-by: Justin Pettit

Re: [ovs-dev] 答复: [PATCH] pkt reassemble: fix kernel panic for ovs reassemble

2017-06-27 Thread Greg Rose
On 06/26/2017 09:05 PM, 王志克 wrote: Hi Joe, Greg, I tried to create a pull request, please check whether it works. Thanks. https://github.com/openvswitch/ovs/pull/187 I've been trying to test this on a Centos 7.2 3.10 kernel but am running into unrelated build issues. I'll see if I can get a

[ovs-dev] Confidencial

2017-06-27 Thread Herramientas Adecuadas
En línea y en Vivo / Para todo su Equipo con una sola Conexión Cómo Proteger la Información Confidencial, Secretos Industriales y Comerciales Su Blindaje y Protección Legal 19 de julio - Online en Vivo - 10:00 a 13:00 y de 15:00 a 18:00 Hrs El objetivo de esta Capacitación Online en Vivo

Re: [ovs-dev] [patch_v2 1/4] Userspace Datapath: Add ALG infra and FTP.

2017-06-27 Thread Joe Stringer
On 27 June 2017 at 13:40, Darrell Ball wrote: > > > On 6/27/17, 1:20 PM, "Joe Stringer" wrote: > > On 27 June 2017 at 11:19, Darrell Ball wrote: > > > > > > On 6/27/17, 11:04 AM, "Joe Stringer" wrote: > > >

Re: [ovs-dev] [PATCH] openvswitch.h: OVS_KEY_ATTR_PACKET_TYPE is userspace-only.

2017-06-27 Thread Ben Pfaff
On Fri, Jun 23, 2017 at 09:17:01AM -0700, Greg Rose wrote: > On 06/19/2017 04:30 PM, Ben Pfaff wrote: > >This wasn't clear before. > > > >Reported-at: > >https://mail.openvswitch.org/pipermail/ovs-dev/2017-June/334271.html > >Signed-off-by: Ben Pfaff > >--- > >

Re: [ovs-dev] [PATCH v4 0/7] Packet type aware pipeline

2017-06-27 Thread Ben Pfaff
On Fri, Jun 23, 2017 at 04:47:48PM +, Zoltán Balogh wrote: > > This series was started by Ben Pfaff, v3 can be found here: > https://patchwork.ozlabs.org/patch/778070/ > https://patchwork.ozlabs.org/patch/778071/ > https://patchwork.ozlabs.org/patch/778076/ >

Re: [ovs-dev] [patch_v2 1/4] Userspace Datapath: Add ALG infra and FTP.

2017-06-27 Thread Darrell Ball
On 6/27/17, 1:20 PM, "Joe Stringer" wrote: On 27 June 2017 at 11:19, Darrell Ball wrote: > > > On 6/27/17, 11:04 AM, "Joe Stringer" wrote: > > On 27 June 2017 at 10:51, Darrell Ball wrote: >

Re: [ovs-dev] [PATCH 5/6] netdev-dpdk: Add netdev_dpdk_vhost_txq_flush function.

2017-06-27 Thread Bodireddy, Bhanuprakash
>On 26.06.2017 00:52, Bodireddy, Bhanuprakash wrote: + +/* Flush the txq if there are any packets available. + * dynamic_txqs/concurrent_txq is disabled for vHost User ports as + * 'OVS_VHOST_MAX_QUEUE_NUM' txqs are preallocated. + */ >>> >>> This comment is completely

Re: [ovs-dev] [patch_v2 1/4] Userspace Datapath: Add ALG infra and FTP.

2017-06-27 Thread Joe Stringer
On 27 June 2017 at 11:19, Darrell Ball wrote: > > > On 6/27/17, 11:04 AM, "Joe Stringer" wrote: > > On 27 June 2017 at 10:51, Darrell Ball wrote: > > > > > > On 6/27/17, 10:47 AM, "Joe Stringer" wrote: > > >

Re: [ovs-dev] [PATCH v2] datapath-windows: Include ICMP type and code fields to find a matching ct entry

2017-06-27 Thread Guru Shetty
On 27 June 2017 at 12:48, Anand Kumar wrote: > Hi Guru, > > Could you please apply this patch? > Applied, thanks for the reminder. > > Thanks, > Anand Kumar > > On 6/23/17, 3:04 PM, "Sairam Venugopal" wrote: > > Acked-by: Sairam Venugopal

Re: [ovs-dev] Request to tag 2.7 branch with v2.7.1

2017-06-27 Thread Ben Pfaff
On Sat, Jun 24, 2017 at 10:10:02AM +0800, Justin Pettit wrote: > > > On Jun 24, 2017, at 2:12 AM, Joe Stringer wrote: > > > >> On 23 June 2017 at 05:38, Russell Bryant wrote: > >>> On Thu, Jun 8, 2017 at 12:12 PM, Ben Pfaff wrote: > On Thu,

Re: [ovs-dev] [PATCH v2] datapath-windows: Include ICMP type and code fields to find a matching ct entry

2017-06-27 Thread Anand Kumar
Hi Guru, Could you please apply this patch? Thanks, Anand Kumar On 6/23/17, 3:04 PM, "Sairam Venugopal" wrote: Acked-by: Sairam Venugopal On 6/23/17, 2:05 PM, "ovs-dev-boun...@openvswitch.org on behalf of Anand Kumar"

Re: [ovs-dev] [patch_v2 1/4] Userspace Datapath: Add ALG infra and FTP.

2017-06-27 Thread Darrell Ball
On 6/27/17, 11:04 AM, "Joe Stringer" wrote: On 27 June 2017 at 10:51, Darrell Ball wrote: > > > On 6/27/17, 10:47 AM, "Joe Stringer" wrote: > > On 27 June 2017 at 10:42, Darrell Ball wrote: >

[ovs-dev] [PATCH 2/2] dpif: Fix clean up of dpif_ports on dpif_close().

2017-06-27 Thread Joe Stringer
Commit 32b77c316d9982("dpif: Save added ports in a port map.") introduced tracking of all dpif ports by taking a reference on each available netdev when the dpif is opened, but it failed to clear out and release references to these netdevs when the dpif is closed. Balance the referencing of

[ovs-dev] [PATCH 1/2] netdev: Refactor destruction of netdev_ports.

2017-06-27 Thread Joe Stringer
An upcoming patch will reuse this from elsewhere. Signed-off-by: Joe Stringer --- lib/netdev.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/lib/netdev.c b/lib/netdev.c index 765bf4b9ccad..eb7aef7376f1 100644 --- a/lib/netdev.c +++

[ovs-dev] [PATCH v3 2/3] ofproto/trace: Add support for tracing conntrack recirculation

2017-06-27 Thread Yi-Hung Wei
Previously, a user need to run ofproto/trace multiple times to derive the final datapath actions if a flow hit conntrack actions that involves recirculation. To improve the usability of ofproto/trace, in this patch, we keep track of the conntrack actions, and automatically run the recirculation

[ovs-dev] [PATCH v3 0/3] ofproto/trace: Add support for tracing conntrack recirc

2017-06-27 Thread Yi-Hung Wei
This patch series enhances the usability of ofproto/trace when a flow hit conntrack actions that involves recirculation. Instead of asking users to run ofproto/trace multiple times to derive the final datapath actions, we keep track of the conntrack actions, and automatically run the recirculation

Re: [ovs-dev] [patch_v3] dpif: Fix cleanup of userspace datapath.

2017-06-27 Thread Joe Stringer
On 26 June 2017 at 19:42, Darrell Ball wrote: > Hardware offload introduced extra tracking of netdev ports. This > included ovs-netdev, which is really for internal infra usage for > the userpace datapath. This breaks cleanup of the userspace > datapath. One effect is that

Re: [ovs-dev] [patch_v2 1/4] Userspace Datapath: Add ALG infra and FTP.

2017-06-27 Thread Joe Stringer
On 27 June 2017 at 10:51, Darrell Ball wrote: > > > On 6/27/17, 10:47 AM, "Joe Stringer" wrote: > > On 27 June 2017 at 10:42, Darrell Ball wrote: > > > > > > On 6/27/17, 10:40 AM, "Joe Stringer" wrote: > > >

Re: [ovs-dev] [PATCH 1/4] dpif-xlate : Refactoring translation of patch port output actions.

2017-06-27 Thread Joe Stringer
On 27 June 2017 at 08:12, Chandran, Sugesh wrote: > Hi Joe, > Thank you for looking into the patch series. > Please find my answers inline below. > > > > Regards > _Sugesh > > >> -Original Message- >> From: Joe Stringer [mailto:j...@ovn.org] >> Sent: Monday,

Re: [ovs-dev] [PATCH v7] dpif-netdev: Assign ports to pmds on non-local numa node.

2017-06-27 Thread Darrell Ball
One more suggestion: Change While pmd threads are created based on pmd-cpu-mask, the thread only starts consuming CPU cycles if there is least one receive queue assigned to the pmd. to Even though a PMD thread may exist, the thread only starts consuming CPU cycles if there is least one

Re: [ovs-dev] [patch_v2 1/4] Userspace Datapath: Add ALG infra and FTP.

2017-06-27 Thread Darrell Ball
On 6/27/17, 10:47 AM, "Joe Stringer" wrote: On 27 June 2017 at 10:42, Darrell Ball wrote: > > > On 6/27/17, 10:40 AM, "Joe Stringer" wrote: > > On 26 June 2017 at 18:19, Darrell Ball wrote: >

Re: [ovs-dev] [patch_v2 1/4] Userspace Datapath: Add ALG infra and FTP.

2017-06-27 Thread Joe Stringer
On 27 June 2017 at 10:42, Darrell Ball wrote: > > > On 6/27/17, 10:40 AM, "Joe Stringer" wrote: > > On 26 June 2017 at 18:19, Darrell Ball wrote: > > > > > > On 6/26/17, 4:49 PM, "Joe Stringer" wrote: > > >

Re: [ovs-dev] [PATCH] ovn-controller: use localnet port for directly connected datapath only.

2017-06-27 Thread Han Zhou
On Tue, Jun 27, 2017 at 10:40 AM, Han Zhou wrote: > > > > On Tue, Jun 27, 2017 at 10:12 AM, Mickey Spiegel wrote: > > > > > > On Tue, Jun 27, 2017 at 1:02 AM, Han Zhou wrote: > >> > >> Localnet port was supposed to work for directly

Re: [ovs-dev] [patch_v2 1/4] Userspace Datapath: Add ALG infra and FTP.

2017-06-27 Thread Darrell Ball
On 6/27/17, 10:40 AM, "Joe Stringer" wrote: On 26 June 2017 at 18:19, Darrell Ball wrote: > > > On 6/26/17, 4:49 PM, "Joe Stringer" wrote: > > On 26 June 2017 at 13:22, Joe Stringer wrote: > > On

Re: [ovs-dev] [PATCH] ovn-controller: use localnet port for directly connected datapath only.

2017-06-27 Thread Han Zhou
On Tue, Jun 27, 2017 at 10:12 AM, Mickey Spiegel wrote: > > > On Tue, Jun 27, 2017 at 1:02 AM, Han Zhou wrote: >> >> Localnet port was supposed to work for directly connected datapath >> only. However, the recursive local_datapath filling introduced a >>

Re: [ovs-dev] [patch_v2 1/4] Userspace Datapath: Add ALG infra and FTP.

2017-06-27 Thread Joe Stringer
On 26 June 2017 at 18:19, Darrell Ball wrote: > > > On 6/26/17, 4:49 PM, "Joe Stringer" wrote: > > On 26 June 2017 at 13:22, Joe Stringer wrote: > > On 26 June 2017 at 11:45, Darrell Ball wrote: > >> On 6/26/17, 10:22

Re: [ovs-dev] [PATCH v7] dpif-netdev: Assign ports to pmds on non-local numa node.

2017-06-27 Thread Darrell Ball
Let us cover the documentation first On 6/27/17, 8:46 AM, "ovs-dev-boun...@openvswitch.org on behalf of Billy O'Mahony" wrote: Previously if there is no available (non-isolated) pmd on the numa node for a port then

Re: [ovs-dev] [PATCH 4/4] tunneling: Avoid recirculation on datapath by computing the recirculate actions at translate time.

2017-06-27 Thread Joe Stringer
On 27 June 2017 at 09:30, Chandran, Sugesh wrote: > > > Regards > _Sugesh > > >> -Original Message- >> From: Joe Stringer [mailto:j...@ovn.org] >> Sent: Monday, June 26, 2017 7:06 PM >> To: Chandran, Sugesh >> Cc: ovs dev

Re: [ovs-dev] [PATCH] ovn-controller: use localnet port for directly connected datapath only.

2017-06-27 Thread Mickey Spiegel
On Tue, Jun 27, 2017 at 1:02 AM, Han Zhou wrote: > Localnet port was supposed to work for directly connected datapath > only. However, the recursive local_datapath filling introduced a > problem in below scenario: > > LS A <-> LR <-> LS B, port a@HV1 is on LS A, port b@HV2 is

Re: [ovs-dev] 答复: Re: 答复: [spam可疑邮件]Re: 答复: Re: [PATCH 2/2] ovn-northd: Fix ping failure of vlan networks.

2017-06-27 Thread Han Zhou
It is not about limit but more about use case. Could you explain your use case why using localnet ports here while the VMs can be connected through logical router on overlay? Did my patch work for you? Does it work also when you remove the localnet ports? Mickey mentioned scenarios when a

Re: [ovs-dev] 答复: [spam可疑邮件]Re: 答复: Re: [PATCH 2/2] ovn-northd: Fix ping failure of vlan networks.

2017-06-27 Thread Mickey Spiegel
On Thu, Jun 15, 2017 at 1:04 AM, wrote: > Hi Russell, I am sorry for the late reply. > The route not bound to a chassis, and have no redirect-chassis. The dumped > northbound db is as follow. > Ip addresses of 100.0.0.148 and 200.0.0.2 locate on different chassis. The >

Re: [ovs-dev] [PATCH 4/4] tunneling: Avoid recirculation on datapath by computing the recirculate actions at translate time.

2017-06-27 Thread Chandran, Sugesh
Regards _Sugesh > -Original Message- > From: Joe Stringer [mailto:j...@ovn.org] > Sent: Monday, June 26, 2017 7:06 PM > To: Chandran, Sugesh > Cc: ovs dev ; Zoltán Balogh > ; Andy Zhou >

Re: [ovs-dev] [PATCH v7] dpif-netdev: Assign ports to pmds on non-local numa node.

2017-06-27 Thread O Mahony, Billy
I'll give Darrell a chance to comment before rev'ing. > -Original Message- > From: Ilya Maximets [mailto:i.maxim...@samsung.com] > Sent: Tuesday, June 27, 2017 5:11 PM > To: O Mahony, Billy ; d...@openvswitch.org > Cc: dlu...@gmail.com > Subject: Re: [PATCH v7]

[ovs-dev] [PATCH v7] dpif-netdev: Assign ports to pmds on non-local numa node.

2017-06-27 Thread Billy O'Mahony
Previously if there is no available (non-isolated) pmd on the numa node for a port then the port is not polled at all. This can result in a non-operational system until such time as nics are physically repositioned. It is preferable to operate with a pmd on the 'wrong' numa node albeit with lower

[ovs-dev] [PATCH v7] dpif-netdev: Assign ports to pmds on non-local numa node.

2017-06-27 Thread Billy O'Mahony
I have incorporated Darrell's doc comments and Ilya's implementation and tested with various scenarios. I had to make a few small changes to ensure that the warning messages were issued for each queue as per previous patch comments. Billy O'Mahony (1): dpif-netdev: Assign ports to pmds on

Re: [ovs-dev] [PATCH 3/4] dpif-xlate : Functions to validate the possibility of combining tunnel actions.

2017-06-27 Thread Chandran, Sugesh
Regards _Sugesh > -Original Message- > From: Joe Stringer [mailto:j...@ovn.org] > Sent: Monday, June 26, 2017 6:30 PM > To: Chandran, Sugesh > Cc: ovs dev ; Zoltán Balogh > ; Andy Zhou >

Re: [ovs-dev] [PATCH 2/4] dpif-xlate : Adding functions to update xlate context for the tunnel push translations.

2017-06-27 Thread Chandran, Sugesh
Regards _Sugesh > -Original Message- > From: Joe Stringer [mailto:j...@ovn.org] > Sent: Monday, June 26, 2017 6:27 PM > To: Chandran, Sugesh > Cc: ovs dev ; Zoltán Balogh > > Subject: Re: [PATCH 2/4]

Re: [ovs-dev] [PATCH 1/4] dpif-xlate : Refactoring translation of patch port output actions.

2017-06-27 Thread Chandran, Sugesh
Hi Joe, Thank you for looking into the patch series. Please find my answers inline below. Regards _Sugesh > -Original Message- > From: Joe Stringer [mailto:j...@ovn.org] > Sent: Monday, June 26, 2017 6:25 PM > To: Chandran, Sugesh > Cc: ovs dev

Re: [ovs-dev] 答复: 答复: 答复: [PATCH] pkt reassemble: fix kernel panic for ovs reassemble

2017-06-27 Thread Greg Rose
On 06/26/2017 05:51 PM, 王志克 wrote: Hi Greg, The exact issue occured on the 20th of check-kmod (sometimes there are other kernel issue: kernel just hangs but without panic). OVS2.6.0 on CentOS7.2 with kernel 3.10.0-327.el7.x86_64. Some info below, which hopes helpful. OK, I'll try with that

[ovs-dev] [PATCH v3 2/2] conntrack : Use Rx checksum offload feature on DPDK ports for conntrack.

2017-06-27 Thread Sugesh Chandran
Avoiding checksum validation in conntrack module if it is already verified in DPDK physical NIC ports. Signed-off-by: Sugesh Chandran --- lib/conntrack.c | 71 ++--- lib/dp-packet.h | 22 ++ 2 files

[ovs-dev] [PATCH v3 1/2] dp-packet : Update the rx checksum validation to use DPDK checksum masks.

2017-06-27 Thread Sugesh Chandran
DPDK ports use masks while reporting rx checksum flags. OVS should use these mask along with reported checksum flag while validating the rx checksum. Signed-off-by: Sugesh Chandran Suggested-by: Darrell Ball --- lib/dp-packet.h | 6 -- 1 file

[ovs-dev] [PATCH v3 0/2] conntrack : Add support for rx chceksum offload.

2017-06-27 Thread Sugesh Chandran
Conntrack need not verify the checksum of incoming packets if its validated by DPDK physical NIC ports. Also make use the DPDK rx checksum mask bits along with flags while validating the reported hardware checksum state. v2->v3 - Rebased on latest master. - Updated the existing checksum

Re: [ovs-dev] [PATCH v2] conntrack : Use Rx checksum offload feature on DPDK ports for conntrack.

2017-06-27 Thread Chandran, Sugesh
Regards _Sugesh > -Original Message- > From: ovs-dev-boun...@openvswitch.org [mailto:ovs-dev- > boun...@openvswitch.org] On Behalf Of Chandran, Sugesh > Sent: Tuesday, June 27, 2017 11:48 AM > To: Darrell Ball > Cc: d...@openvswitch.org > Subject: Re: [ovs-dev]

Re: [ovs-dev] [PATCH v2] conntrack : Use Rx checksum offload feature on DPDK ports for conntrack.

2017-06-27 Thread Chandran, Sugesh
Hi Darrel, Regards _Sugesh > -Original Message- > From: Darrell Ball [mailto:db...@vmware.com] > Sent: Tuesday, June 27, 2017 8:15 AM > To: Chandran, Sugesh > Cc: d...@openvswitch.org > Subject: Re: [PATCH v2] conntrack : Use Rx checksum offload feature on >

[ovs-dev] [RFC PATCH] Update relevant artifacts to add support for DPDK 17.05.1.

2017-06-27 Thread mweglicx
Patch is marked as RFC because DPDK 17.05.1 is not yet published. Upgrading to DPDK 17.05.1 stable release adds new significant features relevant to OVS, including, but not limited to: - tun/tap PMD, - VFIO hotplug support, - Generic flow API. Following changes are applied: - netdev-dpdk:

[ovs-dev] 答复: Re: 答复: [spam可疑邮件]Re: 答复: Re: [PATCH 2/2] ovn-northd: Fix ping failure of vlan networks.

2017-06-27 Thread wang . qianyu
Hi Han Zhou, > If using localnet, it should rely on physical network (L2 and L3) to reach the destination, not overlay, so adding the logical router here doesn't make sense here Why ovn have this limit for physical network? Does this mean that vlan network can not use the l3 function of ovn?

Re: [ovs-dev] 答复: [spam可疑邮件]Re: 答复: Re: [PATCH 2/2] ovn-northd: Fix ping failure of vlan networks.

2017-06-27 Thread Han Zhou
On Thu, Jun 15, 2017 at 1:04 AM, wrote: > > Hi Russell, I am sorry for the late reply. > The route not bound to a chassis, and have no redirect-chassis. The dumped > northbound db is as follow. > Ip addresses of 100.0.0.148 and 200.0.0.2 locate on different chassis. The >

[ovs-dev] [PATCH] ovn-controller: use localnet port for directly connected datapath only.

2017-06-27 Thread Han Zhou
Localnet port was supposed to work for directly connected datapath only. However, the recursive local_datapath filling introduced a problem in below scenario: LS A <-> LR <-> LS B, port a@HV1 is on LS A, port b@HV2 is on LS B. If B has localnet port, then ovn-controller on HV1 would think port b

Re: [ovs-dev] [PATCH v2] conntrack : Use Rx checksum offload feature on DPDK ports for conntrack.

2017-06-27 Thread Darrell Ball
Hi Sugesh On 6/26/17, 12:51 AM, "Chandran, Sugesh" wrote: Hi Darrel, Please find my answers below. Regards _Sugesh > -Original Message- > From: Darrell Ball [mailto:db...@vmware.com] > Sent: Saturday, June 24, 2017 10:39

[ovs-dev] [resend PATCH v3] tnl-ports: Remove netdevs in netdev_hash when deleted

2017-06-27 Thread fukaige
tart a virtual machine with its backend tap device attached to a brought up linux bridge. If we delete the linux bridge when vm is still running, we'll get the following error when trying to create a ovs bridge with the same name. The reason is that ovs-router subsystem add the linux bridge