[ovs-dev] [PATCH v2] configure: Properly handle case where libunwind.h is not available.

2019-10-16 Thread Yi-Hung Wei
It is possible that user install libunwind but not libunwind-devel, and it will run into a compilation error. So we need to check the existence of the library and the header file. Fixes: e2ed6fbeb18c ("fatal-signal: Catch SIGSEGV and print backtrace.") Suggested-by: Ben Pfaff Signed-off-by:

Re: [ovs-dev] [PATCH] configure: Properly handle case where libunwind.h is not available.

2019-10-16 Thread Yi-Hung Wei
On Wed, Oct 16, 2019 at 6:50 PM Ben Pfaff wrote: > > On Tue, Oct 15, 2019 at 04:49:33PM -0700, Yi-Hung Wei wrote: > > On Tue, Oct 15, 2019 at 3:25 PM Ben Pfaff wrote: > > > > > > On Tue, Oct 15, 2019 at 02:30:48PM -0700, Yi-Hung Wei wrote: > > > > It is possible that user install libunwind but

Re: [ovs-dev] [PATCH v9 2/2] netdev-dpdk:Detailed packet drop statistics

2019-10-16 Thread Ben Pfaff
On Wed, Oct 16, 2019 at 02:16:14PM +0200, Ilya Maximets wrote: > BTW, you will not find any description for statistics provided by the linux > or DPDK drivers. You could only look at the driver code or device spec. I'm not sure the meanings are even consistent. I've heard that different Linux

Re: [ovs-dev] [PATCH] configure: Properly handle case where libunwind.h is not available.

2019-10-16 Thread Ben Pfaff
On Tue, Oct 15, 2019 at 04:49:33PM -0700, Yi-Hung Wei wrote: > On Tue, Oct 15, 2019 at 3:25 PM Ben Pfaff wrote: > > > > On Tue, Oct 15, 2019 at 02:30:48PM -0700, Yi-Hung Wei wrote: > > > It is possible that user install libunwind but not libunwind-devel, > > > and it will run into a compilation

Re: [ovs-dev] [PATCH] compat: Fix small naming issue

2019-10-16 Thread Yifeng Sun
LGTM, thanks Greg. Reviewed-by: Yifeng Sun On Wed, Oct 16, 2019 at 1:21 PM Greg Rose wrote: > > In commit 057772cf2477 the function is missing the rpl_ prefix > and the define that replaces the original function should come > after the function definition. > > Fixes: 057772cf2477 ("compat:

[ovs-dev] [PATCH] compat: Fix small naming issue

2019-10-16 Thread Greg Rose
In commit 057772cf2477 the function is missing the rpl_ prefix and the define that replaces the original function should come after the function definition. Fixes: 057772cf2477 ("compat: Backport nf_ct_tmpl_alloc().") Signed-off-by: Greg Rose ---

Re: [ovs-dev] [PATCH ovn] Fix virtual port binding when the parents are scheduled in the same chassis

2019-10-16 Thread 0-day Robot
Bleep bloop. Greetings Numan Siddique, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: WARNING: Line is 201 characters long (recommended limit is 79) #36 FILE:

Re: [ovs-dev] [PATCH v9 2/2] netdev-dpdk:Detailed packet drop statistics

2019-10-16 Thread Kevin Traynor
On 16/10/2019 13:16, Ilya Maximets wrote: > Hi Kevin, > > Thanks for review. Some comments inline. > > On 16.10.2019 12:15, Kevin Traynor wrote: >> Hi Sriram, >> >> Thanks for working on making more fine grained stats for debugging. As >> mentioned yesterday, this patch needs rebase so I just

[ovs-dev] [PATCH ovn] Fix virtual port binding when the parents are scheduled in the same chassis

2019-10-16 Thread numans
From: Numan Siddique If a virtual port has 2 parents and if both of them are scheduled on the same chassis, then virtual port binding doesn't work. For virtual port binding we have the below logical flows: inport == p1 && !is_chassis_resident("vip-port") && arp .. actions=bind_vport(vip-port);

Re: [ovs-dev] [PATCHv2] ofproto-dpif: Expose datapath capability to ovsdb.

2019-10-16 Thread Gregory Rose
On 10/15/2019 2:06 PM, Gregory Rose wrote: On 10/4/2019 3:32 PM, William Tu wrote: The patch adds support for fetching the datapath's capabilities from the result of 'check_support()', and write the supported capability to a new database column, called 'capabilities' under Datapath table. To

Re: [ovs-dev] [PATCH] rhel: Support RHEL7.7 build and packaging

2019-10-16 Thread Gregory Rose
On 10/11/2019 2:49 PM, Yifeng Sun wrote: This patch provides essential fixes for OVS to support RHEL7.7's new kernel. make rpm-fedora-kmod \ RPMBUILD_OPT='-D "kversion 3.10.0-1062.1.2.el7.x86_64"' Signed-off-by: Yifeng Sun Thanks Yifeng! Tested-by: Greg Rose Reviewed-by: Greg Rose

Re: [ovs-dev] [PATCHv5] netdev-afxdp: Add need_wakeup supprt.

2019-10-16 Thread Loftus, Ciara
> > The patch adds support for using need_wakeup flag in AF_XDP rings. > A new option, use_need_wakeup, is added. When this option is used, > it means that OVS has to explicitly wake up the kernel RX, using poll() > syscall and wake up TX, using sendto() syscall. This feature improves > the

Re: [ovs-dev] [PATCH v9 2/2] netdev-dpdk:Detailed packet drop statistics

2019-10-16 Thread Sriram Vatala via dev
Hi Kevin & Ilya, Thanks Kevin for reviewing the patch. Response inline. Thanks Ilya for your response. -Original Message- From: Ilya Maximets Sent: 16 October 2019 17:46 To: Kevin Traynor ; Sriram Vatala ; ovs-dev@openvswitch.org; Ilya Maximets Cc: Stokes, Ian Subject: Re: [PATCH v9

Re: [ovs-dev] [PATCH ovn v2] ovn-northd: Fix IP multicast flooding to mrouter.

2019-10-16 Thread Dumitru Ceara
On Wed, Oct 16, 2019 at 4:04 PM Numan Siddique wrote: > > > > On Wed, Oct 16, 2019 at 6:36 PM Dumitru Ceara wrote: >> >> OVN logical flow "drop" actions can't be combined with other actions. >> Commit 79308138891a created such a scenario if a logical switch has >> mcast_snoop=true,

Re: [ovs-dev] [PATCH ovn v2] ovn-northd: Fix IP multicast flooding to mrouter.

2019-10-16 Thread Numan Siddique
On Wed, Oct 16, 2019 at 6:36 PM Dumitru Ceara wrote: > OVN logical flow "drop" actions can't be combined with other actions. > Commit 79308138891a created such a scenario if a logical switch has > mcast_snoop=true, mcast_flood_unregistered=false and is connected to a > logical router with

Re: [ovs-dev] [PATCH ovn] ovn-northd: Fix IP multicast flooding to mrouter.

2019-10-16 Thread Dumitru Ceara
On Wed, Oct 16, 2019 at 2:43 PM Numan Siddique wrote: > > > > On Wed, Oct 16, 2019 at 4:11 PM Dumitru Ceara wrote: >> >> OVN logical flow "drop" actions can't be combined with other actions. >> Commit 79308138891a created such a scenario if a logical switch has >> mcast_snoop=true,

[ovs-dev] [PATCH ovn v2] ovn-northd: Fix IP multicast flooding to mrouter.

2019-10-16 Thread Dumitru Ceara
OVN logical flow "drop" actions can't be combined with other actions. Commit 79308138891a created such a scenario if a logical switch has mcast_snoop=true, mcast_flood_unregistered=false and is connected to a logical router with mcast_relay=enabled. To fix the issue we now explicitly add a drop

Re: [ovs-dev] [dpdk-latest PATCH] netdev-dpdk: add custom vhost statistics to count IRQs

2019-10-16 Thread Ilya Maximets
On 15.10.2019 13:20, Eelco Chaudron wrote: When the dpdk vhost library executes an eventfd_write() call, i.e. waking up the guest, a new callback will be called. This patch adds the callback to count the number of interrupts sent to the VM to track the number of times interrupts where

[ovs-dev] [PATCH net-next v4 10/10] net: openvswitch: simplify the ovs_dp_cmd_new

2019-10-16 Thread xiangxia . m . yue
From: Tonghao Zhang use the specified functions to init resource. Signed-off-by: Tonghao Zhang Tested-by: Greg Rose --- net/openvswitch/datapath.c | 60 +- 1 file changed, 38 insertions(+), 22 deletions(-) diff --git a/net/openvswitch/datapath.c

[ovs-dev] [PATCH net-next v4 09/10] net: openvswitch: don't unlock mutex when changing the user_features fails

2019-10-16 Thread xiangxia . m . yue
From: Tonghao Zhang Unlocking of a not locked mutex is not allowed. Other kernel thread may be in critical section while we unlock it because of setting user_feature fail. Fixes: 95a7233c4 ("net: openvswitch: Set OvS recirc_id from tc chain index") Cc: Paul Blakey Signed-off-by: Tonghao Zhang

[ovs-dev] [PATCH net-next v4 08/10] net: openvswitch: fix possible memleak on destroy flow-table

2019-10-16 Thread xiangxia . m . yue
From: Tonghao Zhang When we destroy the flow tables which may contain the flow_mask, so release the flow mask struct. Signed-off-by: Tonghao Zhang Tested-by: Greg Rose --- net/openvswitch/flow_table.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git

[ovs-dev] [PATCH net-next v4 07/10] net: openvswitch: add likely in flow_lookup

2019-10-16 Thread xiangxia . m . yue
From: Tonghao Zhang The most case *index < ma->max, and flow-mask is not NULL. We add un/likely for performance. Signed-off-by: Tonghao Zhang Tested-by: Greg Rose --- net/openvswitch/flow_table.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[ovs-dev] [PATCH net-next v4 06/10] net: openvswitch: simplify the flow_hash

2019-10-16 Thread xiangxia . m . yue
From: Tonghao Zhang Simplify the code and remove the unnecessary BUILD_BUG_ON. Signed-off-by: Tonghao Zhang Tested-by: Greg Rose --- net/openvswitch/flow_table.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/net/openvswitch/flow_table.c

[ovs-dev] [PATCH net-next v4 05/10] net: openvswitch: optimize flow-mask looking up

2019-10-16 Thread xiangxia . m . yue
From: Tonghao Zhang The full looking up on flow table traverses all mask array. If mask-array is too large, the number of invalid flow-mask increase, performance will be drop. One bad case, for example: M means flow-mask is valid and NULL of flow-mask means deleted.

[ovs-dev] [PATCH net-next v4 04/10] net: openvswitch: optimize flow mask cache hash collision

2019-10-16 Thread xiangxia . m . yue
From: Tonghao Zhang Port the codes to linux upstream and with little changes. Pravin B Shelar, says: | In case hash collision on mask cache, OVS does extra flow | lookup. Following patch avoid it. Link: https://github.com/openvswitch/ovs/commit/0e6efbe2712da03522532dc5e84806a96f6a0dd1

[ovs-dev] [PATCH net-next v4 03/10] net: openvswitch: shrink the mask array if necessary

2019-10-16 Thread xiangxia . m . yue
From: Tonghao Zhang When creating and inserting flow-mask, if there is no available flow-mask, we realloc the mask array. When removing flow-mask, if necessary, we shrink mask array. Signed-off-by: Tonghao Zhang Tested-by: Greg Rose --- net/openvswitch/flow_table.c | 33

[ovs-dev] [PATCH net-next v4 02/10] net: openvswitch: convert mask list in mask array

2019-10-16 Thread xiangxia . m . yue
From: Tonghao Zhang Port the codes to linux upstream and with little changes. Pravin B Shelar, says: | mask caches index of mask in mask_list. On packet recv OVS | need to traverse mask-list to get cached mask. Therefore array | is better for retrieving cached mask. This also allows better |

[ovs-dev] [PATCH net-next v4 01/10] net: openvswitch: add flow-mask cache for performance

2019-10-16 Thread xiangxia . m . yue
From: Tonghao Zhang The idea of this optimization comes from a patch which is committed in 2014, openvswitch community. The author is Pravin B Shelar. In order to get high performance, I implement it again. Later patches will use it. Pravin B Shelar, says: | On every packet OVS needs to lookup

[ovs-dev] [PATCH net-next v4 00/10] optimize openvswitch flow looking up

2019-10-16 Thread xiangxia . m . yue
From: Tonghao Zhang This series patch optimize openvswitch for performance or simplify codes. Patch 1, 2, 4: Port Pravin B Shelar patches to linux upstream with little changes. Patch 5, 6, 7: Optimize the flow looking up and simplify the flow hash. Patch 8, 9: are bugfix. The performance

Re: [ovs-dev] [PATCH ovn] ovn-northd: Fix IP multicast flooding to mrouter.

2019-10-16 Thread Numan Siddique
On Wed, Oct 16, 2019 at 4:11 PM Dumitru Ceara wrote: > OVN logical flow "drop" actions can't be combined with other actions. > Commit 79308138891a created such a scenario if a logical switch has > mcast_snoop=true, mcast_flood_unregistered=false and is connected to a > logical router with

Re: [ovs-dev] [PATCH] tests: Get rid of timeout options for control utilities.

2019-10-16 Thread Ilya Maximets
On 15.10.2019 18:10, Ilya Maximets wrote: 'OVS_CTL_TIMEOUT' environment variable is exported in tests/atlocal.in and controls timeouts for all OVS utilities in testsuite. There should be no manual tweaks for each single command. This helps with running tests under valgrind where commands could

Re: [ovs-dev] [PATCH v9 2/2] netdev-dpdk:Detailed packet drop statistics

2019-10-16 Thread Ilya Maximets
Hi Kevin, Thanks for review. Some comments inline. On 16.10.2019 12:15, Kevin Traynor wrote: Hi Sriram, Thanks for working on making more fine grained stats for debugging. As mentioned yesterday, this patch needs rebase so I just reviewed docs and netdev-dpdk.c which applied. Comments below.

Re: [ovs-dev] [PATCH] tc: Limit the max action number to 16

2019-10-16 Thread Roi Dayan
On 2019-10-16 2:40 PM, Simon Horman wrote: > On Wed, Oct 16, 2019 at 11:37:14AM +0300, Roi Dayan wrote: >> From: Chris Mi >> >> Currently, ovs supports to offload max TCA_ACT_MAX_PRIO(32) actions. >> But net sched api has a limit of 4K message size which is not enough >> for 32 actions when

Re: [ovs-dev] [PATCH] tc: Limit the max action number to 16

2019-10-16 Thread Simon Horman
On Wed, Oct 16, 2019 at 11:37:14AM +0300, Roi Dayan wrote: > From: Chris Mi > > Currently, ovs supports to offload max TCA_ACT_MAX_PRIO(32) actions. > But net sched api has a limit of 4K message size which is not enough > for 32 actions when echo flag is set. > > After a lot of testing, we find

Re: [ovs-dev] [PATCH] ovsdb-server: Allow replication from older schema version servers.

2019-10-16 Thread Numan Siddique
On Wed, Oct 16, 2019 at 3:21 AM Ben Pfaff wrote: > On Wed, Oct 16, 2019 at 12:20:48AM +0530, nusid...@redhat.com wrote: > > From: Numan Siddique > > > > Presently, replication is not allowed if there is a schema version > mismatch between > > the schema returned by the active ovsdb-server and

[ovs-dev] [PATCH ovn] ovn-northd: Fix IP multicast flooding to mrouter.

2019-10-16 Thread Dumitru Ceara
OVN logical flow "drop" actions can't be combined with other actions. Commit 79308138891a created such a scenario if a logical switch has mcast_snoop=true, mcast_flood_unregistered=false and is connected to a logical router with mcast_relay=enabled. To fix the issue we now explicitly add a drop

Re: [ovs-dev] [PATCH v9 2/2] netdev-dpdk:Detailed packet drop statistics

2019-10-16 Thread Kevin Traynor
Hi Sriram, Thanks for working on making more fine grained stats for debugging. As mentioned yesterday, this patch needs rebase so I just reviewed docs and netdev-dpdk.c which applied. Comments below. On 21/09/2019 03:40, Sriram Vatala wrote: > OVS may be unable to transmit packets for multiple

Re: [ovs-dev] [PATCH] tc: Limit the max action number to 16

2019-10-16 Thread 0-day Robot
Bleep bloop. Greetings Roi Dayan, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: WARNING: Line is 87 characters long (recommended limit is 79) #57 FILE: lib/tc.c:1481:

[ovs-dev] Infosecurity netherlands 2019 VISITORS DATAINFO

2019-10-16 Thread Kelly Queen
Hello, We are in our final week for our sales of Info Security Expo 2019 attendees list and wanted to check if you are still interested in acquiring the entire list for a special offer of just €675 USD. Info Security Expo 2019 Date: - 30 -31 OCTOBER 2019 | UTRECHT ANNUAL FAIR Counts: -

Re: [ovs-dev] [PATCH v3] OVN: Send RARP for vif ports for which OVN does not know the IP.

2019-10-16 Thread Numan Siddique
On Sat, Oct 12, 2019 at 4:53 AM Ankur Sharma wrote: > ISSUE: > For a VIF port (on a bridged logical switch), OVN sends out > GARPs, advertising port's mac and IP. > > However, if a VIF port (on a bridged logical switch) has not > been assigned an IP, then OVN does not advertise anything. > As a

[ovs-dev] [PATCH] tc: Limit the max action number to 16

2019-10-16 Thread Roi Dayan
From: Chris Mi Currently, ovs supports to offload max TCA_ACT_MAX_PRIO(32) actions. But net sched api has a limit of 4K message size which is not enough for 32 actions when echo flag is set. After a lot of testing, we find that 16 actions is a reasonable number. So in this commit, we introduced