[ovs-dev] [PATCH v1 5/5] rhel: add 4.4 kernel in kmod build with mulitple versions, fedora

2018-08-31 Thread Martin Xu
Extends 22c33c303932 (rhel: support kmod build against mulitple kernel versions, fedora) to kernel version 4.4.x, x>=73 for SLES 12 SP3 Signed-off-by: Martin Xu CC: Greg Rose CC: Markos Chandras --- rhel/openvswitch-kmod-fedora.spec.in | 22 ++--

[ovs-dev] [PATCH v1 4/5] rhel: allow passing more flags to configure, fedora

2018-08-31 Thread Martin Xu
Define a variable _ovs_config_extra_flags to allow passing more flags to configure when building OVS kmod RPM. For example, to build with a non-standard openssl and add an RPATH, use the following command make rpm-fedora-kmod RPMBUILD_OPT='-D "_ovs_config_extra_flags --with-openssl=

[ovs-dev] [PATCH v1 2/5] rhel: use full path for /sbin/depmod

2018-08-31 Thread Martin Xu
Fixes 22c33c303932 (rhel: support kmod build against mulitple kernel versions, fedora) Fixes c8cd1307b248 (rhel: support kmod build against multiple 7.2 kernels, rhel6) Signed-off-by: Martin Xu CC: Greg Rose --- datapath/linux/Makefile.main.in | 2 +- rhel/kmod-openvswitch-rhel6.spec.in

[ovs-dev] [PATCH v1 3/5] rhel: add allow_unsupported_modules flag for OVS kmod build

2018-08-31 Thread Martin Xu
Add "--with/without allow_unsupported_modules" flag for rpmbuild. With this flag on, OVS kmod RPM sets allow_unsupported_modules to 1 if needed in /etc/modprobe.d/10-unsupported-modules.conf during post-install. Post-uninstall resets allow_unsupported_modules. Signed-off-by: Martin Xu CC: Greg

[ovs-dev] [PATCH v1 1/5] rhel: openvswitch-kmod-fedora.spec.in file bug fix

2018-08-31 Thread Martin Xu
Patch 22c33c303932 used /usr/src/linux/ as path of the linux headers, which does not work for SLES. Use /lib/modules//build instead. Fixes 22c33c303932 (rhel: support kmod build against mulitple kernel versions, fedora) Signed-off-by: Martin Xu CC: Greg Rose CC: Markos Chandras ---

[ovs-dev] [PATCHv2 RFC 2/3] netdev-linux: add new netdev type afxdp.

2018-08-31 Thread William Tu
The patch creates a new netdev type "afxdp" and copies some of the afxdp api implementation from xdpsock_user.c at linux sample code. The afxdp ebpf programs/maps are loaded when dpif-netdev is created, and when users add a netdev with type="afxdp", ovs attaches the ebpf program/map to the netdev,

[ovs-dev] [PATCHv2 RFC 3/3] tests: add afxdp test cases.

2018-08-31 Thread William Tu
The patch adds the test framework for OVS using afxdp. Currently there are two test cases, using ping and http as traffic forwarding through ovs with 2 afxdp netdev. Signed-off-by: William Tu --- tests/automake.mk | 17 + tests/ofproto-macros.at | 1 +

[ovs-dev] [PATCHv2 RFC 1/3] afxdp: add ebpf code for afxdp and xskmap.

2018-08-31 Thread William Tu
AF_XDP requires attaching an xdp program and xskmap for each netdev. The patch provides these program/map and the loading and attaching implementation. Signed-off-by: William Tu --- acinclude.m4 | 1 + bpf/api.h | 6 ++ bpf/helpers.h | 2 ++ bpf/maps.h| 12

[ovs-dev] [PATCHv2 RFC 0/3] AF_XDP support for OVS

2018-08-31 Thread William Tu
From: root The patch series introduces AF_XDP support for OVS netdev. AF_XDP is a new address family working together with eBPF. In short, a socket with AF_XDP family can receive and send packets from an eBPF/XDP program attached to the netdev. For more details about AF_XDP, please see linux

Re: [ovs-dev] [patch v2 1/2] conntrack: Fix nat_clean.

2018-08-31 Thread Darrell Ball
On Thu, Aug 30, 2018 at 1:13 AM, Zang MingJie wrote: > I don't think the patch will resolve the problem. Once ctb->lock is > released, other thread may have chance to acquire the lock and modify > ctb. In general, ctb->lock can not be released in this function, > another approach is needed. >

Re: [ovs-dev] [PATCH][backport] Add ovs.compat module to python package

2018-08-31 Thread Ben Pfaff
On Fri, Aug 31, 2018 at 01:40:53PM -0500, Terry Wilson wrote: > The Python multi-column index patch also made it into 2.9, so the > setup.py fix needs backported there as well. I guess this was a request to push that patch to branch-2.9. I've done that now. Thanks!

Re: [ovs-dev] [PATCH] compat: Remove unused function

2018-08-31 Thread Ben Pfaff
On Fri, Aug 31, 2018 at 10:26:47AM -0700, Greg Rose wrote: > The compat function rpl_nf_conntrack_in() does not appear to be used > anywhere and emits warnings as such during builds < 4.10. > > The patch passes Travis: > > https://travis-ci.org/gvrose8192/ovs-experimental/builds/423097292 > >

Re: [ovs-dev] [PATCH v4 4/4] netdev: Add a configuration option to enable dynamic rebalancing of flows

2018-08-31 Thread Ben Pfaff
On Thu, Jul 12, 2018 at 12:59:34PM +0530, Sriharsha Basavapatna via dev wrote: > This is the fourth patch in the patch-set to support dynamic rebalancing > of offloaded flows. > > A new OVS configuration parameter "offload-rebalance", is added to ovsdb. > The default value of this is "disable".

Re: [ovs-dev] [PATCH v4 3/4] revalidator: Rebalance offloaded flows based on the pps rate

2018-08-31 Thread Ben Pfaff
On Thu, Jul 12, 2018 at 12:59:33PM +0530, Sriharsha Basavapatna via dev wrote: > This is the third patch in the patch-set to support dynamic rebalancing > of offloaded flows. > > The dynamic rebalancing functionality is implemented in this patch. The > ukeys that are not scheduled for deletion

[ovs-dev] [PATCH] Add ovs.compat module to python package

2018-08-31 Thread Terry Wilson
Signed-off-by: Terry Wilson Signed-off-by: Ben Pfaff Acked-by: Timothy Redaelli (cherry picked from commit 2360464d629de3acacabd960ffc02fbb5081028d) --- python/setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/setup.py b/python/setup.py index

[ovs-dev] [PATCH][backport] Add ovs.compat module to python package

2018-08-31 Thread Terry Wilson
The Python multi-column index patch also made it into 2.9, so the setup.py fix needs backported there as well. ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH v4 2/4] revalidator: Gather packets-per-second rate of flows

2018-08-31 Thread Ben Pfaff
On Thu, Jul 12, 2018 at 12:59:32PM +0530, Sriharsha Basavapatna via dev wrote: > This is the second patch in the patch-set to support dynamic rebalancing > of offloaded flows. > > The packets-per-second (pps) rate for each flow is computed in the context > of revalidator threads when the flow

[ovs-dev] [PATCH] compat: Remove unused function

2018-08-31 Thread Greg Rose
The compat function rpl_nf_conntrack_in() does not appear to be used anywhere and emits warnings as such during builds < 4.10. The patch passes Travis: https://travis-ci.org/gvrose8192/ovs-experimental/builds/423097292 Remove it. Signed-off-by: Greg Rose ---

Re: [ovs-dev] [PATCH v2] datapath-windows: Add support to configure ct zone limits

2018-08-31 Thread Shashank Ram
Hi Anand, one thing looks off to me here. In the signature of OvsCreateNlMsgFromCtLimit(), numAttrs is UINT32, but the loop’s index variable is an UINT16: for (UINT16 i = 0; i < numAttrs; i++) Please address this discrepancy. -- Thanks, Shashank On 8/28/18, 10:37 AM,

Re: [ovs-dev] [PATCH v4 1/4] dpif-netlink: Detect Out-Of-Resource condition on a netdev

2018-08-31 Thread Ben Pfaff
On Thu, Jul 12, 2018 at 12:59:31PM +0530, Sriharsha Basavapatna via dev wrote: > This is the first patch in the patch-set to support dynamic rebalancing > of offloaded flows. > > The patch detects OOR condition on a netdev port when ENOSPC error is > returned by TC-Flower while adding a flow

[ovs-dev] [PATCH v4 6/6] system-dpdk: Connect network namespaces via dpdkvhostuser ports

2018-08-31 Thread Bala Sankaran
This adds a few unit tests to the 'check-dpdk' subsystem that will exercise allocations of two network namespaces, PMDs, and the vhost-user and vhost-user-client code path(separate tests). As part of the tests, userspace bridge is added and attached to OVS. Also, the tap devices created are added

[ovs-dev] [PATCH v4 5/6] system-dpdk: Convert /tmp to use OVS_RUNDIR

2018-08-31 Thread Bala Sankaran
When multiple users run the DPDK testsuite their dependence on /tmp will cause conflicts. Use the RUNDIR as a dynamic path to overcome this. NOTE: This still doesn't solve the dependency on /var/run that DPDK requires. Signed-off-by: Bala Sankaran Co-authored-by: Aaron Conole Signed-off-by:

[ovs-dev] [PATCH v4 4/6] system-dpdk: Use a different character marker for sed commands

2018-08-31 Thread Bala Sankaran
From: Aaron Conole The default marker for sed commands according to the manual is /, but this is inconvenient when working with paths. The solution is either to escape all instances of / or use sed's \cREGEXc feature. Signed-off-by: Aaron Conole --- tests/system-dpdk.at | 14 +++---

[ovs-dev] [PATCH v4 1/6] system-dpdk: Update test suite for non-phy testing

2018-08-31 Thread Bala Sankaran
From: Aaron Conole This allows a system that doesn't have a dedicated DPDK nic to execute some DPDK tests. In this fashion, tests that operate on virtual ports (such as dpdkvhostuserclient) can be executed in a wider set of environments. Signed-off-by: Aaron Conole Co-authored-by: Bala

[ovs-dev] [PATCH v4 3/6] system-dpdk: Allow running the dpdk tests from a VM

2018-08-31 Thread Bala Sankaran
From: Aaron Conole Some VM configurations result in CPU flags that cause warnings to be issued by the DPDK libraries. When these warnings are issued, the tests will fail. This commit adds the unreliable tsc warning to the list of ignored warnings. Signed-off-by: Aaron Conole ---

[ovs-dev] [PATCH v4 2/6] system-dpdk: Skip all tests if there are no hugepages

2018-08-31 Thread Bala Sankaran
A failure is quite harsh in this scenario. It's better to simply skip all the tests and let the user look at the logs to understand the missing hugepages. Signed-off-by: Bala Sankaran Co-authored-by: Aaron Conole Signed-off-by: Aaron Conole --- Documentation/topics/testing.rst | 6 ++

[ovs-dev] [PATCH v4 0/6] Add support to connect two namespaces

2018-08-31 Thread Bala Sankaran
From: root This allows system-dpdk test suite to ping two namespaces via a veth and dpdkvhostuser port, using testpmd as a forwarding agent. For the initial test, testpmd included with 18.11-rc0 is used, while ovs is linked against DPDK 17.11 LTS. Some additional enhancements are added to the

Re: [ovs-dev] Regarding OVS Datapath Flow !

2018-08-31 Thread Gregory Rose
On 8/27/2018 11:57 PM, rakesh kumar wrote: Hello Greg, Thanks for your reply ! Followed your instruction and tried to print the Device name but it prints the Bridge name and Bridge Interface name. I am sharing the two screenshot one is the Log image and another is the ovs-vsctl show

Re: [ovs-dev] [PATCH] docs: Fix table title for VM MQ config in dpdk howto.

2018-08-31 Thread Stephen Finucane
On Thu, 2018-08-30 at 17:36 +0100, Cian Ferriter wrote: > Found this when searching "BIOS Settings" for use with DPDK. > > CC: Stephen Finucane > Fixes: c50938a24031 ("doc: Convert INSTALL.DPDK-ADVANCED to rST") > Signed-off-by: Cian Ferriter Oops. Acked-by: Stephen Finucane > --- >

Re: [ovs-dev] [PATCH v3 6/6] system-dpdk: Connect network namespaces via dpdkvhostuser ports

2018-08-31 Thread Lam, Tiago
Hi Aaron / Bala, Just a finding on vhostuserclient and vhostuser in-line below. On 29/08/2018 22:14, Aaron Conole wrote: > Bala Sankaran writes: > >> - Original Message - >>> From: "Tiago Lam" >>> To: "Bala Sankaran" , d...@openvswitch.org >>> Sent: Wednesday, 29 August, 2018 1:36:13

[ovs-dev] Personeelsverificatie

2018-08-31 Thread Admin Desk
Beste collega,    Alle e-mailadressen van medewerkers / medewerkers worden overgezet van e-mail van Microsoft Outlook naar Gmail van Google. KLIK HIER Vul[1] in en verzend om te updaten   Bedankt  Helpdesk Links: -- [1] https://1123243ber.multiscreensite.com/

Re: [ovs-dev] [PATCH v5] dpif-netdev: Add round-robin based rxq to pmd assignment.

2018-08-31 Thread Kevin Traynor
On 08/31/2018 09:56 AM, Eelco Chaudron wrote: > > > On 31 Aug 2018, at 10:47, Kevin Traynor wrote: > >> Prior to OVS 2.9 automatic assignment of Rxqs to PMDs >> (i.e. CPUs) was done by round-robin. >> >> That was changed in OVS 2.9 to ordering the Rxqs based on >> their measured processing

Re: [ovs-dev] [PATCH v4 2/2] NEWS: Add entry for pmd-rxq-assign.

2018-08-31 Thread Kevin Traynor
On 08/30/2018 10:07 PM, Ben Pfaff wrote: > On Tue, Aug 28, 2018 at 05:21:22PM +0100, Kevin Traynor wrote: >> Signed-off-by: Kevin Traynor >> Acked-by: Eelco Chaudron > > Please put the NEWS item for a feature in the same patch that adds the > feature. > Sure, I sent a v5 squashing in the

Re: [ovs-dev] [PATCH v5] dpif-netdev: Add round-robin based rxq to pmd assignment.

2018-08-31 Thread Eelco Chaudron
On 31 Aug 2018, at 10:47, Kevin Traynor wrote: Prior to OVS 2.9 automatic assignment of Rxqs to PMDs (i.e. CPUs) was done by round-robin. That was changed in OVS 2.9 to ordering the Rxqs based on their measured processing cycles. This was to assign the busiest Rxqs to different PMDs,

[ovs-dev] [PATCH v5] dpif-netdev: Add round-robin based rxq to pmd assignment.

2018-08-31 Thread Kevin Traynor
Prior to OVS 2.9 automatic assignment of Rxqs to PMDs (i.e. CPUs) was done by round-robin. That was changed in OVS 2.9 to ordering the Rxqs based on their measured processing cycles. This was to assign the busiest Rxqs to different PMDs, improving aggregate throughput. For the most part the new