[ovs-dev] [PATCH v3 3/3] netdev-dpdk: Add TCP Segmentation Offload support

2020-01-09 Thread Flavio Leitner
by default. For additional information please check the tso.rst document. Signed-off-by: Flavio Leitner --- Documentation/automake.mk | 1 + Documentation/topics/dpdk/index.rst | 1 + Documentation/topics/dpdk/tso.rst | 96 + NEWS| 1 + lib

[ovs-dev] [PATCH v3 0/3] Add support for TSO with DPDK

2020-01-09 Thread Flavio Leitner
23.3 Gbits/sec Ext Host 9.99 Gbits/sec 10.1 Gbits/sec Used iperf3 -u to test UDP traffic limited at default 1Mbits/sec and noticed no change with the exception for tunneled packets (not supported). Travis, AppVeyor, and Cirrus-ci passed. Flavio Leitner (3): dp-packet: preserve

[ovs-dev] [PATCH v3 2/3] vhost: Disable multi-segmented buffers

2020-01-09 Thread Flavio Leitner
There is no support for multi-segmented buffers, so flag that to vhost library. Signed-off-by: Flavio Leitner --- lib/netdev-dpdk.c | 6 ++ 1 file changed, 6 insertions(+) Changelog: - v3 * added period at the end of comments. diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c index

[ovs-dev] [PATCH v3 1/3] dp-packet: preserve headroom when cloning a pkt batch

2020-01-09 Thread Flavio Leitner
The headroom is useful if the packet needs to insert additional header, so preserve the original headroom when cloning the batch. Signed-off-by: Flavio Leitner --- lib/dp-packet.h | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/dp-packet.h b/lib/dp-packet.h index

Re: [ovs-dev] [PATCH dpdk-latest v2 4/4] netdev-dpdk: Add TCP Segmentation Offload support

2020-01-07 Thread Flavio Leitner
Hi Ian, Thanks for the reviews. I agree with your comments for the other patches. This one I will answer them inline. On Mon, Jan 06, 2020 at 08:24:48PM +, Stokes, Ian wrote: > > > On 12/31/2019 8:14 PM, Flavio Leitner wrote: > > Abbreviated as TSO, TCP Segmentation Offlo

[ovs-dev] [PATCH dpdk-latest v2 3/4] dp-packet: handle new dpdk buffer flags

2019-12-31 Thread Flavio Leitner
DPDK included a couple flags EXT_ATTACHED_MBUF and IND_ATTACHED_MBUF which are not really offloading flags, so this patch fixes to reset only offloading flags or to reset only those flags when needed. Signed-off-by: Flavio Leitner --- lib/dp-packet.c | 4 +++- lib/dp-packet.h | 2 +- 2 files

[ovs-dev] [PATCH dpdk-latest v2 4/4] netdev-dpdk: Add TCP Segmentation Offload support

2019-12-31 Thread Flavio Leitner
by default. Signed-off-by: Flavio Leitner --- Documentation/automake.mk | 1 + Documentation/topics/dpdk/index.rst | 1 + Documentation/topics/dpdk/tso.rst | 89 NEWS| 1 + lib/automake.mk | 2 + lib/conntrack.c

[ovs-dev] [PATCH dpdk-latest v2 2/4] vhost: Disable multi-segmented buffers

2019-12-31 Thread Flavio Leitner
There is no support for multi-segmented buffers, so flag that to vhost library. Signed-off-by: Flavio Leitner --- lib/netdev-dpdk.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c index 2423d26ee..57bff5e58 100644 --- a/lib/netdev-dpdk.c +++ b/lib

[ovs-dev] [PATCH dpdk-latest v2 0/4] Add support for TSO with DPDK

2019-12-31 Thread Flavio Leitner
works. The TSO is enabled in the vhost-user ports in client mode and linux ports in userspace. This patchset is based on branch dpdk-latest (v19.11 required). There are good improvements sending to or receiving from veth pairs or tap devices as well. Flavio Leitner (4): dp-packet: preserve

[ovs-dev] [PATCH dpdk-latest v2 1/4] dp-packet: preserve headroom when cloning a pkt batch

2019-12-31 Thread Flavio Leitner
The headroom is useful if the packet needs to insert additional header, so preserve the original headroom when cloning the batch. Signed-off-by: Flavio Leitner --- lib/dp-packet.h | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/dp-packet.h b/lib/dp-packet.h index

Re: [ovs-dev] [PATCH] dpdk: Support running PMD threads on cores > RTE_MAX_LCORE.

2019-12-04 Thread Flavio Leitner
On Wed, Dec 04, 2019 at 09:09:42PM +0100, David Marchand wrote: > On Wed, Dec 4, 2019 at 8:52 PM Flavio Leitner wrote: > > > > On Mon, Dec 02, 2019 at 05:03:30PM +0100, David Marchand wrote: > > > Most DPDK components make the assumption that rte_lcore_id() returns >

Re: [ovs-dev] [PATCH] dpdk: Support running PMD threads on cores > RTE_MAX_LCORE.

2019-12-04 Thread Flavio Leitner
|INFO|Initialised lcore 1 for core 8 I didn't find any issues with either the patch or with the tests. Acked-by: Flavio Leitner Thanks fbl ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH 0/4] Add support for TSO with DPDK

2019-12-03 Thread Flavio Leitner
On Tue, Dec 03, 2019 at 05:26:51PM +0100, Ilya Maximets wrote: > On 03.12.2019 14:12, Flavio Leitner wrote: > > On Tue, Dec 03, 2019 at 01:15:23PM +0100, Ilya Maximets wrote: > >> On 02.12.2019 14:44, Flavio Leitner wrote: > >>> Abbreviated as TSO, TCP Segmentat

Re: [ovs-dev] [PATCH 0/4] Add support for TSO with DPDK

2019-12-03 Thread Flavio Leitner
On Tue, Dec 03, 2019 at 12:59:24PM +, Stokes, Ian wrote: > > > On 12/3/2019 12:15 PM, Ilya Maximets wrote: > > On 02.12.2019 14:44, Flavio Leitner wrote: > > > Abbreviated as TSO, TCP Segmentation Offload is a feature which enables > > > the network stack

Re: [ovs-dev] [PATCH 0/4] Add support for TSO with DPDK

2019-12-03 Thread Flavio Leitner
On Tue, Dec 03, 2019 at 01:15:23PM +0100, Ilya Maximets wrote: > On 02.12.2019 14:44, Flavio Leitner wrote: > > Abbreviated as TSO, TCP Segmentation Offload is a feature which enables > > the network stack to delegate the TCP segmentation to the NIC reducing > > the pe

[ovs-dev] [PATCH 2/4] vhost: Disable multi-segmented buffers

2019-12-02 Thread Flavio Leitner
There is no support for multi-segmented buffers, so flag that to vhost library. Signed-off-by: Flavio Leitner --- lib/netdev-dpdk.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c index 2423d26ee..cd035f76e 100644 --- a/lib/netdev-dpdk.c +++ b/lib

[ovs-dev] [PATCH 4/4] netdev-dpdk: Add TCP Segmentation Offload support

2019-12-02 Thread Flavio Leitner
by default. Signed-off-by: Flavio Leitner --- Documentation/automake.mk | 1 + Documentation/topics/dpdk/index.rst | 1 + Documentation/topics/dpdk/tso.rst | 83 + NEWS| 1 + lib/automake.mk | 2 + lib/dp

[ovs-dev] [PATCH 1/4] dp-packet: preserve headroom when cloning a pkt batch

2019-12-02 Thread Flavio Leitner
The headroom is useful if the packet needs to insert additional header, so preserve the original headroom when cloning the batch. Signed-off-by: Flavio Leitner --- lib/dp-packet.h | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/dp-packet.h b/lib/dp-packet.h index

[ovs-dev] [PATCH 3/4] dp-packet: handle new dpdk buffer flags

2019-12-02 Thread Flavio Leitner
DPDK included a couple flags EXT_ATTACHED_MBUF and IND_ATTACHED_MBUF which are not really offloading flags, so this patch fixes to reset only offloading flags or to reset only those flags when needed. Signed-off-by: Flavio Leitner --- lib/dp-packet.c | 4 +++- lib/dp-packet.h | 2 +- 2 files

[ovs-dev] [PATCH 0/4] Add support for TSO with DPDK

2019-12-02 Thread Flavio Leitner
--- There are good improvements sending to veth pairs or tap devices too. Flavio Leitner (4): dp-packet: preserve headroom when cloning a pkt batch vhost: Disable multi-segmented buffers dp-packet: handle new dpdk buffer flags netdev-dpdk: Add TCP Segmentation Offload support Documentation/automake.mk

Re: [ovs-dev] [PATCH] netdev-dpdk: Deprecate ring ports.

2019-11-26 Thread Flavio Leitner
mentation. Claiming to completely remove this functionality > from OVS in one of the next releases. > > Signed-off-by: Ilya Maximets > --- Acked-by: Flavio Leitner ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH] vswitch.xml: Replace non-ASCII characters.

2019-11-25 Thread Flavio Leitner
On Mon, 25 Nov 2019 15:08:44 +0100 Ilya Maximets wrote: > On 25.11.2019 13:51, Flavio Leitner wrote: > > On Mon, 25 Nov 2019 11:11:44 +0100 > > Ilya Maximets wrote: > > > >> This fixes OSX build on Travis: > >> > >> ovs-vswitchd.conf.db.5:4061

Re: [ovs-dev] [PATCH] vswitch.xml: Replace non-ASCII characters.

2019-11-25 Thread Flavio Leitner
o-dpif: Expose datapath ND Extensions > capability to ovsdb") Signed-off-by: Ilya Maximets > --- > vswitchd/vswitch.xml | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Do you think it would be useful if checkpatch.py catch that? Acked-by: Flavio Leitner > >

Re: [ovs-dev] [PATCH] ofproto-dpif: Allow IPv6 ND Extensions only if supported

2019-11-22 Thread Flavio Leitner
On Thu, 21 Nov 2019 17:22:49 -0800 Ben Pfaff wrote: > On Wed, Nov 20, 2019 at 11:28:03AM -0300, Flavio Leitner wrote: > > On Wed, 20 Nov 2019 11:21:13 -0300 > > Flavio Leitner wrote: > > > > > The IPv6 ND Extensions is only implemented in userspace datapa

[ovs-dev] [PATCH] ofproto-dpif: Expose datapath ND Extensions capability to ovsdb

2019-11-22 Thread Flavio Leitner
Document and expose datapath ND Extensions capability to ovsdb. Fixes: d0d571493 ("ofproto-dpif: Allow IPv6 ND Extensions only if supported") Signed-off-by: Flavio Leitner --- ofproto/ofproto-dpif.c | 1 + vswitchd/vswitch.xml | 5 + 2 files changed, 6 insertions(+) diff --git

Re: [ovs-dev] [PATCH] ofproto-dpif: Allow IPv6 ND Extensions only if supported

2019-11-20 Thread Flavio Leitner
On Wed, 20 Nov 2019 11:21:13 -0300 Flavio Leitner wrote: > The IPv6 ND Extensions is only implemented in userspace datapath, > but nothing prevents that to be used with other datapaths. > > This patch probes the datapath and only allows if the support > is available. >

[ovs-dev] [PATCH] ofproto-dpif: Allow IPv6 ND Extensions only if supported

2019-11-20 Thread Flavio Leitner
") Signed-off-by: Flavio Leitner --- lib/odp-util.c | 17 ++-- lib/odp-util.h | 6 - ofproto/ofproto-dpif.c | 59 +- tests/test-odp.c | 1 + 4 files changed, 73 insertions(+), 10 deletions(-) diff --git a/lib/odp-ut

Re: [ovs-dev] [PATCH] dpdk: Deprecate pdump support.

2019-11-13 Thread Flavio Leitner
| 4 > acinclude.m4| 24 ++-- > lib/dpdk.c | 2 ++ > 5 files changed, 34 insertions(+), 8 deletions(-) New option noted in NEWS, warning for those users enabling the option, documentation

Re: [ovs-dev] [ovs-discuss] gso packet is failing with af_packet socket with packet_vnet_hdr

2019-11-07 Thread Flavio Leitner
On Wed, 6 Nov 2019 01:59:41 +0530 Ramana Reddy wrote: > Hi Flavio, > As per your inputs, I modified the gso_size, and now > skb_gso_validate_mtu(skb, mtu) is returning true, and > ip_finish_output2(sk, skb) and dst_neigh_output(dst, neigh, skb); are > getting called. But still, I am seeing the

Re: [ovs-dev] [RFC] dpdk: Deprecate pdump support.

2019-11-04 Thread Flavio Leitner
On Mon, 4 Nov 2019 18:16:26 +0100 Ilya Maximets wrote: > On 04.11.2019 17:21, Flavio Leitner wrote: > > > > Hi Ilya, > > > > On Fri, 1 Nov 2019 13:06:33 +0100 > > Ilya Maximets wrote: > > > >> The conventional way for packet dumping in OVS i

Re: [ovs-dev] [ovs-discuss] gso packet is failing with af_packet socket with packet_vnet_hdr

2019-11-04 Thread Flavio Leitner
IO_NET_HDR_GSO_NONE; > } > Regards, > Ramana > > > On Mon, Nov 4, 2019 at 8:39 PM Flavio Leitner > wrote: > > > > > Hi, > > > > What's the value you're passing on gso_size in struct > > virtio_net_hdr? You need to leave

Re: [ovs-dev] [RFC] dpdk: Deprecate pdump support.

2019-11-04 Thread Flavio Leitner
Hi Ilya, On Fri, 1 Nov 2019 13:06:33 +0100 Ilya Maximets wrote: > The conventional way for packet dumping in OVS is to use ovs-tcpdump > that works via traffic mirroring. DPDK pdump could probably be used > for some lower level debugging, but it is not commonly used for > various reasons. >

Re: [ovs-dev] [ovs-discuss] gso packet is failing with af_packet socket with packet_vnet_hdr

2019-11-04 Thread Flavio Leitner
Hi, What's the value you're passing on gso_size in struct virtio_net_hdr? You need to leave room for the encapsulation header, e.g.: gso_size = iface_mtu - virtio_net_hdr->hdr_len fbl On Mon, 4 Nov 2019 01:11:36 +0530 Ramana Reddy wrote: > Hi, > I am wondering if anyone can help me with

Re: [ovs-dev] [PATCH 03/11] datapath: add seqadj extension when NAT is used.

2019-10-14 Thread Flavio Leitner
On Mon, 14 Oct 2019 10:37:43 -0700 Yi-Hung Wei wrote: > From: Flavio Leitner > > upstream patch: > > commit fa7e428c6b7ed3281610511a2b2ec716d9894be8 > Author: Flavio Leitner > Date: Mon Mar 25 15:58:31 2019 -0300 > > openvswitch: add seqadj extension when

Re: [ovs-dev] [PATCH 3/3] debug: print mbuf extra info.

2019-09-27 Thread Flavio Leitner
On Fri, Sep 27, 2019 at 10:05:53AM -0300, Flavio Leitner wrote: > On Thu, Sep 26, 2019 at 07:49:28AM -0700, Ben Pfaff wrote: > > On Thu, Sep 26, 2019 at 11:59:14AM -0400, Aaron Conole wrote: > > > Flavio Leitner writes: > > > > > > > Signed-off-by: Flavio L

Re: [ovs-dev] [PATCH v16 00/14] Support multi-segment mbufs

2019-09-27 Thread Flavio Leitner
l_64k is available and the packet is beyond the regular MTU-sized buffer, DPDK selects the mpool_64k mbuf instead. That avoids allocating huge amounts of 64k buffers to sustain line rate speeds with small packets. fbl > > Regards, > Michal Obrembski > > > -Ori

[ovs-dev] [PATCH] vhost: support for optional large mpool.

2019-09-23 Thread Flavio Leitner
Signed-off-by: Flavio Leitner --- drivers/net/vhost/rte_eth_vhost.c | 4 +-- examples/tep_termination/main.c | 2 +- examples/vhost/main.c | 2 +- lib/librte_vhost/rte_vhost.h | 5 +++- lib/librte_vhost/virtio_net.c | 47 +-- 5 files changed

[ovs-dev] [PATCH 3/3] debug: print mbuf extra info.

2019-09-23 Thread Flavio Leitner
Signed-off-by: Flavio Leitner --- lib/netdev-dpdk.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c index cfbd9a9e5..7965bf57a 100644 --- a/lib/netdev-dpdk.c +++ b/lib/netdev-dpdk.c @@ -2294,6 +2294,24

[ovs-dev] [PATCH 2/3] vhost TSO enabled.

2019-09-23 Thread Flavio Leitner
Signed-off-by: Flavio Leitner --- lib/dp-packet.h | 16 lib/netdev-dpdk.c | 93 --- 2 files changed, 103 insertions(+), 6 deletions(-) diff --git a/lib/dp-packet.h b/lib/dp-packet.h index 14f0897fa..2b12604b9 100644 --- a/lib/dp-packet.h

[ovs-dev] [PATCH 1/3] support for large mpool.

2019-09-23 Thread Flavio Leitner
Signed-off-by: Flavio Leitner --- lib/netdev-dpdk.c | 44 1 file changed, 44 insertions(+) diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c index 48057835f..7eb294366 100644 --- a/lib/netdev-dpdk.c +++ b/lib/netdev-dpdk.c @@ -323,8 +323,11

Re: [ovs-dev] [PATCH v16 00/14] Support multi-segment mbufs

2019-09-23 Thread Flavio Leitner
Hi Michal, First of all thank you for continuing with the TSO work. I spent a bit of time reviewing the patchset and my impression is that the multi-segment support is quite expensive. Even when TSO is off, we still have a non trivial CPU cost which we can't optimize further. Also an

Re: [ovs-dev] [ovs-discuss] ovs-vswitchd exited silently

2019-09-17 Thread Flavio Leitner
On Thu, Sep 05, 2019 at 09:18:22AM +, Frank Wang(王培辉) wrote: > Hi All Hi Franck, Perhaps check the permissions of /var/run/openvswitch ? If they are correct, you can start ovsdb-server service first and then start the ovs-vswitchd manually as the service does. fbl > > > > I’m

[ovs-dev] [PATCH] ovsdb-idlc.in: fix dict change during iteration.

2019-09-14 Thread Flavio Leitner via dev
ce_cplusplus_keyword(schema) File "./ovsdb/ovsdb-idlc.in", line 179, in replace_cplusplus_keyword for columnName in table.columns: RuntimeError: dictionary keys changed during iteration Signed-off-by: Flavio Leitner --- ovsdb/ovsdb-idlc.in | 2 +- 1 file changed, 1 insertion(+), 1 d

Re: [ovs-dev] [branch-2.9 1/2] Set release date for 2.9.6.

2019-09-04 Thread Flavio Leitner via dev
On Tue, Sep 03, 2019 at 03:17:03PM -0700, Justin Pettit wrote: > Signed-off-by: Justin Pettit > --- Also to the set. Acked-by: Flavio Leitner thanks Justin fbl ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/li

Re: [ovs-dev] [branch-2.10 1/2] Set release date for 2.10.3.

2019-09-04 Thread Flavio Leitner via dev
On Tue, Sep 03, 2019 at 03:13:54PM -0700, Justin Pettit wrote: > Signed-off-by: Justin Pettit > --- To the set Acked-by: Flavio Leitner ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [branch-2.11 1/2] Set release date for 2.11.2.

2019-09-04 Thread Flavio Leitner via dev
On Tue, Sep 03, 2019 at 03:10:17PM -0700, Justin Pettit wrote: > Signed-off-by: Justin Pettit > --- To the set Acked-by: Flavio Leitner ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [branch-2.12 1/2] Set release date for 2.12.0.

2019-09-04 Thread Flavio Leitner via dev
On Tue, Sep 03, 2019 at 03:02:59PM -0700, Justin Pettit wrote: > Signed-off-by: Justin Pettit > --- To the set Acked-by: Flavio Leitner ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH] tnl-neigh: Use outgoing ofproto version.

2019-08-28 Thread Flavio Leitner via dev
On Wed, Aug 28, 2019 at 11:29:54AM -0700, Ben Pfaff wrote: > On Tue, Aug 13, 2019 at 01:34:04PM -0300, Flavio Leitner via dev wrote: > > When a packet needs to be encapsulated in userspace, the endpoint > > address needs to be resolved to fill in the headers. If it is not, > &g

[ovs-dev] [PATCH 2.9 2.8 2.7] tests: fix output indentation in tunnel.at

2019-08-28 Thread Flavio Leitner via dev
The commit b1356b50aa6a ("tnl-neigh: Use outgoing ofproto version.") uses the output indentation from newer OvS versions which include the commit 7be29a47576d ("ofproto-dpif: Remove tabs from output."). Fixes: b1356b50aa6a ("tnl-neigh: Use outgoing ofproto version.")

Re: [ovs-dev] [PATCH] tnl-neigh: Use outgoing ofproto version.

2019-08-28 Thread Flavio Leitner via dev
On Wed, Aug 28, 2019 at 11:29:54AM -0700, Ben Pfaff wrote: > On Tue, Aug 13, 2019 at 01:34:04PM -0300, Flavio Leitner via dev wrote: > > When a packet needs to be encapsulated in userspace, the endpoint > > address needs to be resolved to fill in the headers. If it is not, > &g

Re: [ovs-dev] [PATCH] tnl-neigh: Use outgoing ofproto version.

2019-08-28 Thread Flavio Leitner via dev
Hi Ben and Ilya, This patch has two reviews, so any chance for you to take a look soon as well? Thanks in advance! fbl On Tue, Aug 13, 2019 at 01:34:04PM -0300, Flavio Leitner via dev wrote: > When a packet needs to be encapsulated in userspace, the endpoint > address needs to be re

Re: [ovs-dev] [PATCH] tnl-neigh: Use outgoing ofproto version.

2019-08-13 Thread Flavio Leitner via dev
On Tue, Aug 13, 2019 at 01:34:04PM -0300, Flavio Leitner via dev wrote: > When a packet needs to be encapsulated in userspace, the endpoint > address needs to be resolved to fill in the headers. If it is not, > then currently OvS sends either a Neighbor Solicitation (IPv6) > or an ARP

[ovs-dev] [PATCH] tnl-neigh: Use outgoing ofproto version.

2019-08-13 Thread Flavio Leitner via dev
of the flow rules would be visible and so on. Since the NS/ARP packet is created by OvS and will be injected in the outgoing bridge, use the corresponding ofproto version instead. Signed-off-by: Flavio Leitner --- ofproto/ofproto-dpif-xlate.c | 4 +-- tests/tunnel.at | 62

Re: [ovs-dev] [PATCH] tnl-neigh-cache: Purge learnt neighbors when port/bridge is deleted

2019-07-08 Thread Flavio Leitner via dev
RP Request packet to the datapath only, so it doesn't seem to support endpoint addresses outside of the OvS. I guess your initial patch covering only interfaces as part of OvS was good enough then. Do you agree with that? Thanks! fbl > > Please let me know what you think of. > -Vasu &

Re: [ovs-dev] criteria/benchmarks for an improved userspace datapath classifier?

2019-07-03 Thread Flavio Leitner via dev
Hi Michal, On Tue, Jul 02, 2019 at 10:06:47PM +0100, Michal Orsák wrote: > Hello, > > On 02/07/2019 19:47, Flavio Leitner wrote: > > On Tue, Jul 02, 2019 at 10:00:44AM -0700, Ben Pfaff wrote: > > > Hi Ilya and Ian. Please allow me to introduce Michal Orsak, a grad

Re: [ovs-dev] criteria/benchmarks for an improved userspace datapath classifier?

2019-07-02 Thread Flavio Leitner via dev
On Tue, Jul 02, 2019 at 10:00:44AM -0700, Ben Pfaff wrote: > Hi Ilya and Ian. Please allow me to introduce Michal Orsak, a grad > student currently looking at packet classifiers. He's implemented a > novel classifier that is faster than the one already in OVS in the > benchmarks that he's run.

Re: [ovs-dev] [PATCH v3 3/4] netdev-dpdk: Add stats for vhost tx retries.

2019-06-28 Thread Flavio Leitner via dev
On Fri, Jun 28, 2019 at 04:29:36PM +0300, Ilya Maximets wrote: > On 28.06.2019 16:17, Flavio Leitner wrote: > > On Fri, Jun 28, 2019 at 03:21:07PM +0300, Ilya Maximets wrote: > >> On 27.06.2019 14:12, Kevin Traynor wrote: > >>> vhost tx retries may occur, and it can

Re: [ovs-dev] [PATCH v3 3/4] netdev-dpdk: Add stats for vhost tx retries.

2019-06-28 Thread Flavio Leitner
x retries are > > occurring and hence give a hint that guest config should be > > examined. > > > > Signed-off-by: Kevin Traynor > > Acked-by: Flavio Leitner > > Acked-by: Eelco Chaudron > > --- > > Documentation/topics/dpdk/vhost-user.rst | 5 +

Re: [ovs-dev] [PATCH v3 4/4] netdev-dpdk: Enable vhost-tx-retries config.

2019-06-27 Thread Flavio Leitner via dev
change the max retries, with a value of > 0 effectively disabling vhost tx retries. > > Signed-off-by: Kevin Traynor > --- Acked-by: Flavio Leitner Thanks Kevin! fbl ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH v2 4/4] netdev-dpdk: Enable vhost-tx-retries config.

2019-06-26 Thread Flavio Leitner via dev
On Tue, Jun 25, 2019 at 03:57:24PM +0100, Kevin Traynor wrote: > vhost tx retries can provide some mitigation against > dropped packets due to a temporarily slow guest/limited queue > size for an interface, but on the other hand when a system > is fully loaded those extra cycles retrying could

Re: [ovs-dev] [PATCH v2 2/4] doc: Add info on vhost tx retries.

2019-06-26 Thread Flavio Leitner via dev
On Wed, Jun 26, 2019 at 11:05:42AM -0300, Flavio Leitner via dev wrote: > On Tue, Jun 25, 2019 at 03:57:22PM +0100, Kevin Traynor wrote: > > Add documentation about vhost tx retries and external > > configuration that can help reduce/avoid them. > > > > Signed-off-b

Re: [ovs-dev] [PATCH v2 3/4] netdev-dpdk: Add stats for vhost tx retries.

2019-06-26 Thread Flavio Leitner via dev
d be > examined. > > Signed-off-by: Kevin Traynor > --- Acked-by: Flavio Leitner ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH v2 2/4] doc: Add info on vhost tx retries.

2019-06-26 Thread Flavio Leitner via dev
define, but since the max number of retries is exposed to the users in the next patches as a parameter in the documentation it seems fine to me. Otherwise the patch looks good to me. Acked-by: Flavio Leitner ___ dev mailing list d...@ope

Re: [ovs-dev] [PATCH v2 1/4] netdev-dpdk: Fix additional vhost tx retry.

2019-06-26 Thread Flavio Leitner via dev
On Tue, Jun 25, 2019 at 03:57:21PM +0100, Kevin Traynor wrote: > Fix minor issue of one possible additional retry. > > Fixes: c6ec9d176dbf ("netdev-dpdk: Fix vHost stats.") > Signed-off-by: Kevin Traynor > Acked-by: Eelco Chaudron > -

Re: [ovs-dev] [PATCH] vswitchd: Always cleanup userspace datapath.

2019-06-26 Thread Flavio Leitner via dev
On Tue, Jun 25, 2019 at 03:59:57PM +0300, Ilya Maximets wrote: > On 25.06.2019 15:41, Flavio Leitner wrote: > > On Tue, Jun 25, 2019 at 03:37:09PM +0300, Ilya Maximets wrote: > >> On 25.06.2019 15:20, Flavio Leitner wrote: > >>> On Tue, Jun 25, 2019 at 01:07:5

Re: [ovs-dev] [PATCH] ovs-thread: Add pthread spin lock support.

2019-06-26 Thread Flavio Leitner via dev
Hi William, On Thu, Jun 20, 2019 at 11:00:56AM -0700, William Tu wrote: > The patch adds the basic spin lock functions: > ovs_spin_{lock, try_lock, unlock, init, destroy}. > I have some use cases using af_xdp, patches will > come later. Usually the new API is merged along with an user

Re: [ovs-dev] [PATCH v2] vswitchd: Always cleanup userspace datapath.

2019-06-25 Thread Flavio Leitner via dev
ng of vhost-user > connections) and will help with linux devices clearing with upcoming > AF_XDP netdev support. > > Signed-off-by: Ilya Maximets > --- LGTM Acked-by: Flavio Leitner ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH] vswitchd: Always cleanup userspace datapath.

2019-06-25 Thread Flavio Leitner via dev
On Tue, Jun 25, 2019 at 03:37:09PM +0300, Ilya Maximets wrote: > On 25.06.2019 15:20, Flavio Leitner wrote: > > On Tue, Jun 25, 2019 at 01:07:53PM +0300, Ilya Maximets wrote: > >> On 25.06.2019 0:15, Flavio Leitner wrote: > >>> On Mon, Jun 24, 2019 at 06:28:3

Re: [ovs-dev] [PATCH] vswitchd: Always cleanup userspace datapath.

2019-06-25 Thread Flavio Leitner via dev
On Tue, Jun 25, 2019 at 01:07:53PM +0300, Ilya Maximets wrote: > On 25.06.2019 0:15, Flavio Leitner wrote: > > On Mon, Jun 24, 2019 at 06:28:37PM +0300, Ilya Maximets wrote: > >> 'netdev' datapath is implemented within ovs-vswitchd process and can > >> not exi

Re: [ovs-dev] [PATCH] tnl-neigh-cache: Purge learnt neighbors when port/bridge is deleted

2019-06-24 Thread Flavio Leitner via dev
On Mon, Jun 24, 2019 at 05:43:26PM -0400, Vasu Dasari wrote: > On Mon, Jun 24, 2019 at 3:58 PM Flavio Leitner wrote: > > On Wed, Jun 19, 2019 at 11:02:07PM -0400, Vasu Dasari wrote: > > > +{ > > > +struct tnl_neigh_entry *neigh; >

Re: [ovs-dev] [PATCH 2/3] netdev-dpdk: Add stats for vhost tx retries.

2019-06-24 Thread Flavio Leitner via dev
On Fri, Jun 21, 2019 at 02:41:57PM +0100, Kevin Traynor wrote: > vhost tx retries may occur, and it can be a sign that > the guest is not optimally configured. > > Add some stats so a user will know if vhost tx retries are > occurring and hence give a hint that guest config should be > examined.

Re: [ovs-dev] [PATCH 1/3] netdev-dpdk: Fix and document vhost tx retries.

2019-06-24 Thread Flavio Leitner via dev
On Fri, Jun 21, 2019 at 02:41:56PM +0100, Kevin Traynor wrote: > Fix minor issue of one additional retry and add > documentation about vhost tx retries and ways to > reduce/remove them. > > Signed-off-by: Kevin Traynor > > --- > There is a checkpatch warning that one of the libvirt > lines in

Re: [ovs-dev] [PATCH] vswitchd: Always cleanup userspace datapath.

2019-06-24 Thread Flavio Leitner via dev
On Mon, Jun 24, 2019 at 06:28:37PM +0300, Ilya Maximets wrote: > 'netdev' datapath is implemented within ovs-vswitchd process and can > not exist without it, so it should be gracefully terminated with a > full cleanup of resources upon ovs-vswitchd exit. > > This change forces dpif cleanup for

Re: [ovs-dev] [PATCH] tnl-neigh-cache: Purge learnt neighbors when port/bridge is deleted

2019-06-24 Thread Flavio Leitner via dev
On Wed, Jun 19, 2019 at 11:02:07PM -0400, Vasu Dasari wrote: > Say an ARP entry is learnt on a OVS port and when such a port is deleted, > learnt entry should be removed from the port. It would have be aged out after > ARP ageout time. This code will clean up immediately. > > Added test

Re: [ovs-dev] [PATCH] rhel: update udev rules to allow vfio access

2019-05-14 Thread Flavio Leitner via dev
On Fri, May 10, 2019 at 02:31:26PM -0400, Aaron Conole wrote: > Aaron Conole writes: > > > Flavio Leitner writes: > > > >> On Thu, Apr 18, 2019 at 01:46:22PM -0600, Alex Williamson wrote: > >>> On Thu, 18 Apr 2019 15:50:43 -0300 > >>> Flavio

Re: [ovs-dev] [PATCH] openvswitch: Replace removed NF_NAT_NEEDED with IS_ENABLED(CONFIG_NF_NAT)

2019-05-08 Thread Flavio Leitner
penvswitch: load and reference the NAT helper.") > Signed-off-by: Geert Uytterhoeven > --- Thanks! Acked-by: Flavio Leitner ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH net-next] net: openvswitch: return an error instead of doing BUG_ON()

2019-05-02 Thread Flavio Leitner via dev
t; --- LGTM Acked-by: Flavio Leitner ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH] rhel: update udev rules to allow vfio access

2019-04-18 Thread Flavio Leitner via dev
On Thu, Apr 18, 2019 at 01:46:22PM -0600, Alex Williamson wrote: > On Thu, 18 Apr 2019 15:50:43 -0300 > Flavio Leitner wrote: > > > On Thu, Apr 18, 2019 at 12:06:57PM -0600, Alex Williamson wrote: > > > On Thu, 18 Apr 2019 13:56:23 -0300 > > > Flavio Leitner wr

Re: [ovs-dev] [PATCH] rhel: update udev rules to allow vfio access

2019-04-18 Thread Flavio Leitner via dev
On Thu, Apr 18, 2019 at 12:06:57PM -0600, Alex Williamson wrote: > On Thu, 18 Apr 2019 13:56:23 -0300 > Flavio Leitner wrote: > > > On Thu, Apr 18, 2019 at 10:43:11AM -0600, Alex Williamson wrote: > > > On Thu, 18 Apr 2019 13:23:54 -0300 > > > Flavio Leitner wr

Re: [ovs-dev] [PATCH] rhel: update udev rules to allow vfio access

2019-04-18 Thread Flavio Leitner via dev
On Thu, Apr 18, 2019 at 10:43:11AM -0600, Alex Williamson wrote: > On Thu, 18 Apr 2019 13:23:54 -0300 > Flavio Leitner wrote: > > > On Thu, Apr 18, 2019 at 11:05:28AM -0400, Aaron Conole wrote: > > > On some systems, it's possible that the initialization of the misc

Re: [ovs-dev] [PATCH] rhel: update udev rules to allow vfio access

2019-04-18 Thread Flavio Leitner via dev
On Thu, Apr 18, 2019 at 11:05:28AM -0400, Aaron Conole wrote: > On some systems, it's possible that the initialization of the misc chardev > associated with /dev/vfio/vfio is delayed. This happens on machines with > large numbers of cores (at least 88+). If this delay exceeds the time > required

Re: [ovs-dev] OVN/OVS Split POC: version 2

2019-04-18 Thread Flavio Leitner via dev
On Wed, Apr 17, 2019 at 04:35:05PM -0700, Ben Pfaff wrote: > On Wed, Apr 17, 2019 at 05:07:34PM -0300, Flavio Leitner via dev wrote: > > On Tue, Mar 26, 2019 at 04:15:07PM -0400, Mark Michelson wrote: > > > I've once again rolled another OVN/OVS split version. It can be fo

Re: [ovs-dev] OVN/OVS Split POC: version 2

2019-04-17 Thread Flavio Leitner via dev
On Tue, Mar 26, 2019 at 04:15:07PM -0400, Mark Michelson wrote: > I've once again rolled another OVN/OVS split version. It can be found at > https://github.com/putnopvut/ovn_mk2.git > > The main changes between this and the old split POC are as follows: > > * This is based on a much newer build

[ovs-dev] [PATCH net-next v3 4/4] openvswitch: load and reference the NAT helper.

2019-04-17 Thread Flavio Leitner
his change fixes those problems. It will try to load the module only if it's not present. It grabs a reference to the NAT module and holds it while the flow is active. Finally, an error message shows up if either actions above fails. Fixes: 17c357efe5ec ("openvswitch: load NAT helper") S

[ovs-dev] [PATCH net-next v3 3/4] netfilter: nf_nat: register NAT helpers.

2019-04-17 Thread Flavio Leitner
Register amanda, ftp, irc, sip and tftp NAT helpers. Signed-off-by: Flavio Leitner --- net/netfilter/nf_nat_amanda.c | 9 - net/netfilter/nf_nat_ftp.c| 9 - net/netfilter/nf_nat_irc.c| 9 - net/netfilter/nf_nat_sip.c| 9 +++-- net/netfilter/nf_nat_tftp.c

[ovs-dev] [PATCH net-next v3 2/4] netfilter: add API to manage NAT helpers.

2019-04-17 Thread Flavio Leitner
The API allows a conntrack helper to indicate its corresponding NAT helper which then can be loaded and reference counted. Signed-off-by: Flavio Leitner --- include/net/netfilter/nf_conntrack_helper.h | 22 +- net/netfilter/nf_conntrack_amanda.c | 8 +- net/netfilter

[ovs-dev] [PATCH net-next v3 1/4] netfilter: use macros to create module aliases.

2019-04-17 Thread Flavio Leitner
Each NAT helper creates a module alias which follows a pattern. Use macros for consistency. Signed-off-by: Flavio Leitner --- include/net/netfilter/nf_conntrack_helper.h | 4 net/ipv4/netfilter/nf_nat_h323.c| 2 +- net/ipv4/netfilter/nf_nat_pptp.c| 2 +- net

[ovs-dev] [PATCH net-next v3 0/4] openvswitch: load and reference the NAT helper

2019-04-17 Thread Flavio Leitner
an API to point to the NAT helper. The third patch will register each NAT helper using the new API. The last patch fixes openvswitch to use the new API to load and reference the NAT helper and also report an error if the operation fails. Flavio Leitner (4): netfilter: use macros to create

Re: [ovs-dev] [PATCH net-next v2 2/8] netfilter: add API to manage NAT helpers.

2019-04-15 Thread Flavio Leitner
On Mon, Apr 15, 2019 at 07:50:34AM +0200, Pablo Neira Ayuso wrote: > On Sat, Apr 13, 2019 at 08:17:10PM -0300, Flavio Leitner wrote: > [...] > > +void nf_nat_helper_put(struct nf_conntrack_helper *helper) > > +{ > > + struct nf_conntrack_nat_helper

Re: [ovs-dev] [PATCH net-next v2 2/8] netfilter: add API to manage NAT helpers.

2019-04-15 Thread Flavio Leitner
On Mon, Apr 15, 2019 at 07:48:20AM +0200, Pablo Neira Ayuso wrote: > Sorry I didn't see this in the first review. > > On Sat, Apr 13, 2019 at 08:17:10PM -0300, Flavio Leitner wrote: > [...] > > +int > > +nf_nat_helper_try_module_get(const char *name, u16 l3num, u8 protonu

[ovs-dev] [PATCH net-next v2 8/8] openvswitch: load and reference the NAT helper.

2019-04-13 Thread Flavio Leitner
his change fixes those problems. It will try to load the module only if it's not present. It grabs a reference to the NAT module and holds it while the flow is active. Finally, an error message shows up if either actions above fails. Fixes: 17c357efe5ec ("openvswitch: load NAT helper") S

[ovs-dev] [PATCH net-next v2 7/8] netfilter: nf_nat: register tftp NAT helper.

2019-04-13 Thread Flavio Leitner
Signed-off-by: Flavio Leitner --- net/netfilter/nf_nat_tftp.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) V2 - defined NAT_HELPER_NAME for consistency. - C99 static change. - renamed the variables to be nat_helper.* diff --git a/net/netfilter/nf_nat_tftp.c b/net

[ovs-dev] [PATCH net-next v2 6/8] netfilter: nf_nat: register sip NAT helper.

2019-04-13 Thread Flavio Leitner
Signed-off-by: Flavio Leitner --- net/netfilter/nf_nat_sip.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) V2 - defined NAT_HELPER_NAME for consistency. - C99 static change. - renamed the variables to be nat_helper.* diff --git a/net/netfilter/nf_nat_sip.c b/net

[ovs-dev] [PATCH net-next v2 5/8] netfilter: nf_nat: register irc NAT helper.

2019-04-13 Thread Flavio Leitner
Signed-off-by: Flavio Leitner --- net/netfilter/nf_nat_irc.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) V2 - defined NAT_HELPER_NAME for consistency. - C99 static change. - renamed the variables to be nat_helper.* diff --git a/net/netfilter/nf_nat_irc.c b/net/netfilter

[ovs-dev] [PATCH net-next v2 4/8] netfilter: nf_nat: register ftp NAT helper.

2019-04-13 Thread Flavio Leitner
Signed-off-by: Flavio Leitner --- net/netfilter/nf_nat_ftp.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) V2 - defined NAT_HELPER_NAME for consistency. - C99 static change. - renamed the variables to be nat_helper.* diff --git a/net/netfilter/nf_nat_ftp.c b/net/netfilter

[ovs-dev] [PATCH net-next v2 3/8] netfilter: nf_nat: register amanda NAT helper.

2019-04-13 Thread Flavio Leitner
Signed-off-by: Flavio Leitner --- net/netfilter/nf_nat_amanda.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) V2 - defined NAT_HELPER_NAME for consistency. - C99 static change. - renamed the variables to be nat_helper.* diff --git a/net/netfilter/nf_nat_amanda.c b/net

[ovs-dev] [PATCH net-next v2 2/8] netfilter: add API to manage NAT helpers.

2019-04-13 Thread Flavio Leitner
The API allows a conntrack helper to indicate its corresponding NAT helper which then can be loaded and reference counted. Signed-off-by: Flavio Leitner --- include/net/netfilter/nf_conntrack_helper.h | 22 - net/netfilter/nf_conntrack_amanda.c | 8 +- net/netfilter

[ovs-dev] [PATCH net-next v2 1/8] netfilter: use macros to create module aliases.

2019-04-13 Thread Flavio Leitner
Each NAT helper creates a module alias which follows a pattern. Use macros for consistency. Signed-off-by: Flavio Leitner --- include/net/netfilter/nf_conntrack_helper.h | 4 net/ipv4/netfilter/nf_nat_h323.c| 2 +- net/ipv4/netfilter/nf_nat_pptp.c| 2 +- net

[ovs-dev] [PATCH net-next v2 0/8] openvswitch: load and reference the NAT helper

2019-04-13 Thread Flavio Leitner
an API to point to the NAT helper. The following patches will register each NAT helper using the new API. The last patch fixes openvswitch to use the new API to load and reference the NAT helper and also report an error if the operation fails. Flavio Leitner (8): netfilter: use macros

Re: [ovs-dev] [PATCH net-next 2/8] netfilter: add API to manage NAT helpers.

2019-04-11 Thread Flavio Leitner via dev
On Mon, Apr 01, 2019 at 12:10:32AM +0200, Pablo Neira Ayuso wrote: > On Tue, Mar 26, 2019 at 05:57:09PM -0300, Flavio Leitner wrote: > > The API allows a conntrack helper to indicate its corresponding > > NAT helper which then can be loaded and reference counted. > > >

<    1   2   3   4   5   6   7   8   9   10   >