[ovs-dev] [PATCH 2/4] dpif-netdev: Incremental addition/deletion of PMD threads.

2017-02-21 Thread Ilya Maximets
threads. All not affected threads will forward traffic without any additional latencies. id-pool created for static tx queue ids to keep them sequential in a flexible way. non-PMD thread will always have static_tx_qid = 0 as it was before. Signed-off-by: Ilya Maximets <i.maxim...@samsung.

[ovs-dev] [PATCH 1/4] id-pool: Allocate the lowest available ids.

2017-02-21 Thread Ilya Maximets
This simple change makes id-pool to always allocate the lowest possible id from the pool. No any other code affected because, actually, there is no users of 'id_pool_free_id' in OVS. This behaviour of id-pool will be used in the next patch. Signed-off-by: Ilya Maximets <i.maxim...@samsung.

[ovs-dev] [PATCH 3/4] dpif-netdev: Avoid port's reconfiguration on pmd-cpu-mask changes.

2017-02-21 Thread Ilya Maximets
number of wanted tx queues to avoid unnecessary reconfigurations. Signed-off-by: Ilya Maximets <i.maxim...@samsung.com> --- lib/dpif-netdev.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index 6e575ab..e2b4f39 100644 --- a/li

[ovs-dev] [PATCH 0/4] Incremental addition/deletion of PMD threads.

2017-02-21 Thread Ilya Maximets
Ilya Maximets (4): id-pool: Allocate the lowest available ids. dpif-netdev: Incremental addition/deletion of PMD threads. dpif-netdev: Avoid port's reconfiguration on pmd-cpu-mask changes. dpif-netdev: Don't uninit emc on reload. lib/dpif-netdev.c | 129

Re: [ovs-dev] [PATCH v4] dpif-netdev: Conditional EMC insert

2017-02-09 Thread Ilya Maximets
f this values from 0 to 4294967295 are useful? What do you think? Best regards, Ilya Maximets. ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH v2 1/2] netdev-dpdk: Use intermediate queue during packet transmission.

2017-01-17 Thread Ilya Maximets
Not a complete review. This code is full of races. See details inline. Best regards, Ilya Maximets. On 17.01.2017 18:37, antonio.fische...@intel.com wrote: > This patch implements the intermediate Tx queues on 'dpdk' type ports. > > Test results: > * In worst case scenario with f

[ovs-dev] [PATCH] dpdk: Redirect DPDK log to OVS logging subsystem.

2017-03-02 Thread Ilya Maximets
This should be helpful for have all the logs in one place. 'ovs-appctl vlog' commands for 'dpdk' module can be used to configure the log level. Lower bound for DPDK logging (--log-level) still can be passed through 'dpdk-extra' field. Signed-off-by: Ilya Maximets <i.maxim...@samsung.

[ovs-dev] [PATCH] dpdk: Fix abort on double free.

2016-11-28 Thread Ilya Maximets
4/libc.so.6 #8 _start () Fix that by not calling free for the memory passed to DPDK. CC: Aaron Conole <acon...@redhat.com> Fixes: bab694097133 ("netdev-dpdk: Convert initialization from cmdline to db") Signed-off-by: Ilya Maximets <i.maxim...@samsung.com> --- lib/d

Re: [ovs-dev] [PATCH] dpdk: Fix abort on double free.

2016-11-28 Thread Ilya Maximets
On 28.11.2016 21:55, Aaron Conole wrote: > Ilya Maximets <i.maxim...@samsung.com> writes: > >> According to DPDK API (lib/librte_eal/common/include/rte_eal.h): >> >> "After the call to rte_eal_init(), all arguments argv[x] >> with x < re

Re: [ovs-dev] [ovs-dev, 16/17] dpif-netdev: Centralized threads and queues handling code.

2016-11-24 Thread Ilya Maximets
threads. Also, few comments inline. Best regards, Ilya Maximets. On 16.11.2016 03:46, Daniele Di Proietto wrote: > Currently we have three different code paths that deal with pmd threads > and queues, in response to different input > > 1. When a port is added > 2. When a port is de

Re: [ovs-dev] [ovs-dev, 03/17] dpif-netdev: Don't try to output on a device without txqs.

2016-11-21 Thread Ilya Maximets
On 16.11.2016 03:45, Daniele Di Proietto wrote: > Tunnel devices have 0 txqs and don't support netdev_send(). While > netdev_send() simply returns EOPNOTSUPP, the XPS logic is still executed > on output, and that might be confused by devices with no txqs. > > It seems better to have different

[ovs-dev] [PATCH] netdev: Set the default number of queues at removal from the database

2016-12-08 Thread Ilya Maximets
quot;dpif-netdev: Allow different numbers of rx queues for different ports.") Signed-off-by: Ilya Maximets <i.maxim...@samsung.com> --- lib/netdev-dpdk.c | 2 +- lib/netdev-dummy.c | 4 ++-- tests/pmd.at | 7 +++ 3 files changed, 10 insertions(+), 3 del

Re: [ovs-dev] [PATCH v3 00/18] DPDK/pmd reconfiguration refactor and bugfixes

2017-01-12 Thread Ilya Maximets
Hi, Daniele. Thanks for v3. Acked-by: Ilya Maximets <i.maxim...@samsung.com> On 09.01.2017 06:14, Daniele Di Proietto wrote: > The first two commits of the series are trivial bugfixes for dpif-netdev. > > Then the series fixes a long standing bug that caused a crash when the >

[ovs-dev] [PATCH v2] netdev-dpdk: Don't use dev->vhost_id without mutex.

2016-12-05 Thread Ilya Maximets
The copy should be used here. Additionally, 'strlen' changed to the faster check. Fixes: 821b86649a90 ("netdev-dpdk: Don't try to unregister empty vhost_id.") Signed-off-by: Ilya Maximets <i.maxim...@samsung.com> --- Version 2: * 'strlen' --> '[0]' (Suggested by Ben

[ovs-dev] [PATCH] netdev-dpdk: Don't use dev->vhost_id without mutex.

2016-12-05 Thread Ilya Maximets
> How about "if (!vhost_id[0])", to avoid a useless strlen call? LGTM, I've posted v2 with that fix: https://mail.openvswitch.org/pipermail/ovs-dev/2016-December/325807.html Best regards, Ilya Maximets. ___ dev mailing list d...@openvswi

[ovs-dev] [PATCH] netdev-dpdk: Don't use dev->vhost_id without mutex.

2016-12-04 Thread Ilya Maximets
The copy should be used here. Fixes: 821b86649a90 ("netdev-dpdk: Don't try to unregister empty vhost_id.") Signed-off-by: Ilya Maximets <i.maxim...@samsung.com> --- lib/netdev-dpdk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/netdev-dpdk.c b/lib/net

[ovs-dev] [PATCH 2/3] dpif-netdev: Optimize txq assignment.

2016-12-02 Thread Ilya Maximets
Signed-off-by: Ilya Maximets <i.maxim...@samsung.com> --- lib/dpif-netdev.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index 8e9a623..8af2811 100644 --- a/lib/dpif-netdev.c +++ b/lib/dpif-netdev.c @@ -3317,13 +3

[ovs-dev] [PATCH 0/3] Few more incrementals for reconfiguration refactoring

2016-12-02 Thread Ilya Maximets
e prepared on top of my previous incremental + your change for PMD/ports resetting. I hope, it'll be easy to apply them on top of your current version of code. Also, I'd like to see v2 for the path-set to be able to review or prepare new changes for it. Best regards, Ilya Maximets. Ilya Maximets (

Re: [ovs-dev] [PATCH v2 18/19] dpif-netdev: Centralized threads and queues handling code.

2016-12-06 Thread Ilya Maximets
On 03.12.2016 05:14, Daniele Di Proietto wrote: > +/* Assign pmds to queues. If 'pinned' is true, assign pmds to pinned > + * queues and marks the pmds as isolated. Otherwise, assign non isolated > + * pmds to unpinned queues. > + * > + * The function doesn't touch the pmd threads, it just

[ovs-dev] [PATCH] tests/bundle: Use active_backup algorithm for up/down test.

2016-12-06 Thread Ilya Maximets
[---] Using of 'active_backup' algorithm will help to avoid such issues. CC: Thadeu Lima de Souza Cascardo <casca...@redhat.com> Fixes: 63460a30c53e ("tests/bundle: test bundle action with ports up and down") Signed-off-by: Ilya M

Re: [ovs-dev] [PATCH] netdev-dpdk: Use intermediate queue during packet transmission.

2016-12-20 Thread Ilya Maximets
On 19.12.2016 21:05, Bodireddy, Bhanuprakash wrote: > Thanks Ilya and Aaron for reviewing this patch and providing your comments, > my reply inline. > >> -Original Message- >> From: Ilya Maximets [mailto:i.maxim...@samsung.com] >> Sent: Monday, December 19

Re: [ovs-dev] [PATCH] netdev-dpdk: Use intermediate queue during packet transmission.

2016-12-19 Thread Ilya Maximets
too. Best regards, Ilya Maximets. On 16.12.2016 22:24, Aaron Conole wrote: > Hi Bhanu, > > Bhanuprakash Bodireddy <bhanuprakash.bodire...@intel.com> writes: > >> In exact match cache processing on an EMC hit, packets are queued in to >> batches matching the flow. The

Re: [ovs-dev] [PATCH] netdev-dpdk: Use intermediate queue during packet transmission.

2016-12-20 Thread Ilya Maximets
On 20.12.2016 15:19, Bodireddy, Bhanuprakash wrote: >> -Original Message- >> From: Ilya Maximets [mailto:i.maxim...@samsung.com] >> Sent: Tuesday, December 20, 2016 8:09 AM >> To: Bodireddy, Bhanuprakash <bhanuprakash.bodire...@intel.com>; Aaron >>

[ovs-dev] sphinx on os x on travis?

2017-03-20 Thread Ilya Maximets
ocumentation builds at all before lowering the minimal sphinx version, because Ubuntu 12.04 contains sphinx-1.1.3. My RHEL7 installation has python-sphinx-1.1.3 and python-docutils-0.11 with no build issues. [1] http://docutils.sourceforge.net/HISTORY.html [2] http://pac

[ovs-dev] [PATCH 3/3] netdev-dpdk: Use uint8_t for port_id.

2017-04-03 Thread Ilya Maximets
better to use same type as in dpdk library for consistency. Also, magic number '-1' replaced with DPDK_ETH_PORT_ID_INVALID macro. Signed-off-by: Ilya Maximets <i.maxim...@samsung.com> --- lib/netdev-dpdk.c | 61 +++ 1 file changed, 35 inse

[ovs-dev] [PATCH 0/3] Hotplug fixes & port_id refactoring

2017-04-03 Thread Ilya Maximets
Ilya Maximets (3): netdev-dpdk: Fix double attaching of virtual devices. netdev-dpdk: Fix device leak on port deletion. netdev-dpdk: Use uint8_t for port_id. Documentation/howto/dpdk.rst | 5 +- lib/netdev-dpdk.c| 137 +++ 2 files

[ovs-dev] [PATCH 1/3] netdev-dpdk: Fix double attaching of virtual devices.

2017-04-03 Thread Ilya Maximets
()' to avoid double attaching of the same device. CC: Ciara Loftus <ciara.lof...@intel.com> Fixes: 69876ed78611 ("netdev-dpdk: Add support for virtual DPDK PMDs (vdevs)") Signed-off-by: Ilya Maximets <i.maxim...@samsung.com> --- lib/netdev-dpdk.c | 10 +- 1 file chang

[ovs-dev] [PATCH 2/3] netdev-dpdk: Fix device leak on port deletion.

2017-04-03 Thread Ilya Maximets
'netdev-dpdk/detach' removed because not needed anymore. CC: Ciara Loftus <ciara.lof...@intel.com> Fixes: 55e075e65ef9 ("netdev-dpdk: Arbitrary 'dpdk' port naming") Fixes: 69876ed78611 ("netdev-dpdk: Add support for virtual DPDK PMDs (vdevs)") Signed-off-by: Ilya Maxime

[ovs-dev] Traffic fails in vhost user port

2017-04-04 Thread Ilya Maximets
Hi Sundar. > Hi, > I have an OVS bridge br0 with no NICs and 1 vhost user port which is > connected to a VM. But ping fails between the VM and the br0 port, either > way. The stats show zero all the time. Inside the VM, tcpdump shows nothing. > > This is with OVS 2.7.0 and DPDK 17.02.

Re: [ovs-dev] Traffic fails in vhost user port

2017-04-04 Thread Ilya Maximets
hared between OVS and VM. To make vhostuser work you must use 'share' option for qemu memory backing. Please, refer the Documentation/topics/dpdk/vhost-user.rst for libvirt xml example. "memAccess='shared'" - is what you need. QEMU cmdline should contain something like this: -obj

Re: [ovs-dev] Traffic fails in vhost user port

2017-04-04 Thread Ilya Maximets
On 04.04.2017 11:29, Nadathur, Sundar wrote: >> -Original Message- >> From: Ilya Maximets [mailto:i.maxim...@samsung.com] >> Sent: Tuesday, April 4, 2017 12:07 AM >> To: ovs-dev@openvswitch.org; Nadathur, Sundar >> <sundar.nadat...@intel.com> >>

[ovs-dev] [PATCH] Documentation: Remove external dependence on pygments.

2017-03-10 Thread Ilya Maximets
and allows to remove painful external dependency. Signed-off-by: Ilya Maximets <i.maxim...@samsung.com> --- Documentation/conf.py | 3 - .../internals/contributing/documentation-style.rst | 10 ++- Documentation/intro/install/windows.rst

Re: [ovs-dev] Documentation: Report errors for use of features not in Sphinx 1.1.3.

2017-03-10 Thread Ilya Maximets
regards, Ilya Maximets. On 10.03.2017 10:47, Ilya Maximets wrote: > On 10.03.2017 02:27, Ben Pfaff wrote: >> On Thu, Mar 09, 2017 at 06:15:13PM +0300, Ilya Maximets wrote: >>> On 07.03.2017 21:54, Ben Pfaff wrote: >>>> Signed-off-by: Ben Pfaff <b...@ovn.org> &

Re: [ovs-dev] Documentation: Report errors for use of features not in Sphinx 1.1.3.

2017-03-09 Thread Ilya Maximets
On 10.03.2017 02:27, Ben Pfaff wrote: > On Thu, Mar 09, 2017 at 06:15:13PM +0300, Ilya Maximets wrote: >> On 07.03.2017 21:54, Ben Pfaff wrote: >>> Signed-off-by: Ben Pfaff <b...@ovn.org> >>> Acked-by: Stephen Finucane <step...@that.guru> >>> ---

Re: [ovs-dev] Documentation: Report errors for use of features not in Sphinx 1.1.3.

2017-03-09 Thread Ilya Maximets
0644 > index ..a67339bf2758 > --- /dev/null > +++ b/Documentation/sphinx-version-blacklist > @@ -0,0 +1,2 @@ > +code-block:: *ps1con > +code-block:: *doscon I don't feel this patch is fully correct, because it's not the features of sphinx. And its version not really conne

[ovs-dev] [PATCH RFC] doc: Decrease build requirements to support RHEL7.

2017-03-07 Thread Ilya Maximets
-build v1.1.3' doesn't support '--version' option. Signed-off-by: Ilya Maximets <i.maxim...@samsung.com> --- Note: Marked as RFC because I don't know sphinx well. Documentation/conf.py | 2 +- Documentation/intro/install/windows.rs

Re: [ovs-dev] [PATCH] dpdk: Redirect DPDK log to OVS logging subsystem.

2017-03-05 Thread Ilya Maximets
On 02.03.2017 22:22, Aaron Conole wrote: > Ilya Maximets <i.maxim...@samsung.com> writes: > >> This should be helpful for have all the logs in one place. >> 'ovs-appctl vlog' commands for 'dpdk' module can be used >> to configure the log level. Lower bound for DPDK

[ovs-dev] [PATCH v2] dpdk: Redirect DPDK log to OVS logging subsystem.

2017-03-05 Thread Ilya Maximets
This should be helpful for have all the logs in one place. 'ovs-appctl vlog' commands for 'dpdk' module can be used to configure the log level. Lower bound for DPDK logging (--log-level) still can be passed through 'dpdk-extra' field. Signed-off-by: Ilya Maximets <i.maxim...@samsung.

[ovs-dev] [PATCH] dpif-netdev: Simplify emc replacement policy.

2017-07-28 Thread Ilya Maximets
with 4096 flows. With higher number of flows there is no significant difference with current implementation. For the reference, number of EMC misses in current master is around 20% for the case with 2048 active flows. Testing performed with 100% EMC insert probability. Signed-off-by: Ilya Maximets

Re: [ovs-dev] [patch_v1] dpdk: Fix device cleanup.

2017-07-28 Thread Ilya Maximets
appctl netdev-dpdk/detach to handle > cases when del-port will not work. > > Fixes: 5dcde09c80a8 ("netdev-dpdk: Fix device leak on port deletion.") > CC: Ilya Maximets <i.maxim...@samsung.com> > Signed-off-by: Darrell Ball <dlu...@gmail.com&

Re: [ovs-dev] [PATCH RFC v2 4/4] dpif-netdev: Time based output batching.

2017-07-31 Thread Ilya Maximets
tae82@samsung.com>, Ben Pfaff <b...@ovn.org>, Antonio > Fischetti <antonio.fische...@intel.com>, Eelco Chaudron > <echau...@redhat.com>, Ciara Loftus <ciara.lof...@intel.com>, Kevin Traynor > <ktray...@redhat.com>, Darrell Ball <db...@vmware.co

Re: [ovs-dev] Openvswitch crash when bringing down the dpdk bond port using "ovs-ofctl mod-port br-prv dpdk1 down"

2017-07-31 Thread Ilya Maximets
to say if something else should be backported, but this patch should fix described issue without any additional changes. > On Wed, Jul 26, 2017 at 03:28:12PM +0300, Ilya Maximets wrote: >> Hi. >> >> You need to backport at least following patch: >> >> commit 3

[ovs-dev] [PATCH v2 0/2] EMC management fixes.

2017-07-31 Thread Ilya Maximets
Ilya Maximets (2): dpif-netdev: Decrease range of values for EMC probability. dpif-netdev: Fix emc replacement policy. lib/dpif-netdev.c| 33 +++-- vswitchd/vswitch.xml | 3 ++- 2 files changed, 25 insertions(+), 11 deletions(-) -- 2.7.4

Re: [ovs-dev] [PATCH] dpif-netdev: Simplify emc replacement policy.

2017-07-31 Thread Ilya Maximets
On 31.07.2017 04:41, Darrell Ball wrote: > > > -Original Message- > From: <ovs-dev-boun...@openvswitch.org> on behalf of "Wang, Yipeng1" > <yipeng1.w...@intel.com> > Date: Friday, July 28, 2017 at 11:04 AM > To: Ilya Maximets <i.maxim...@s

[ovs-dev] [PATCH v2 1/2] dpif-netdev: Decrease range of values for EMC probability.

2017-07-31 Thread Ilya Maximets
issue, because same uint32_t can be used to store 2**20. This patch implements solution #4. CC: Ciara Loftus <ciara.lof...@intel.com> Fixes: 4c30b24602c3 ("dpif-netdev: Conditional EMC insert") Signed-off-by: Ilya Maximets <i.maxim...@samsung.com> --- Infrastructure and

Re: [ovs-dev] [PATCH v2 0/4] Output packet batching.

2017-08-02 Thread Ilya Maximets
Hi Bhanuprakash, Thanks for testing. Comments inline. Best regards, Ilya Maximets. On 01.08.2017 18:33, Bodireddy, Bhanuprakash wrote: >> This patch-set inspired by [1] from Bhanuprakash Bodireddy. >> Implementation of [1] looks very complex and introduces many pitfalls for &

Re: [ovs-dev] [PATCH RFC v2 4/4] dpif-netdev: Time based output batching.

2017-08-02 Thread Ilya Maximets
elated features in mail-list like rx queue >>prioritization which are implemented in generic way on dpif-netdev layer. > > If you are referring to rxq prioritization work by Billy > (https://mail.openvswitch.org/pipermail/ovs-dev/2017-July/336001.html), > this feature is more

Re: [ovs-dev] DPDK Merge Repo

2017-08-02 Thread Ilya Maximets
oper's Certificate of Origin. 2. I'm a fan of plain git history. Could we use 'Rebase and merge' policy without merge commits ? https://github.com/blog/2243-rebase-and-merge-pull-requests PS: Ben, I'm sorry for the typo in your name in my previous letter. Best regards, Ilya Maximets. ___

Re: [ovs-dev] [PATCH v6 0/2] conntrack : Add support for rx checksum offload.

2017-08-02 Thread Ilya Maximets
descriptions fixed to have consistent and pretty log. Best regards, Ilya Maximets. ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

[ovs-dev] [PATCH RFC v3 4/4] dpif-netdev: Time based output batching.

2017-08-10 Thread Ilya Maximets
This allows to collect packets from more than one RX burst and send them together with a configurable maximum latency. 'other_config:output-max-latency' can be used to configure time that a packet can wait in output batch for sending. Signed-off-by: Ilya Maximets <i.maxim...@samsung.

[ovs-dev] [PATCH v3 3/4] netdev-dpdk: Remove useless cutlen.

2017-08-10 Thread Ilya Maximets
Cutlen already applied while processing OVS_ACTION_ATTR_OUTPUT. Signed-off-by: Ilya Maximets <i.maxim...@samsung.com> --- lib/netdev-dpdk.c | 5 - 1 file changed, 5 deletions(-) diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c index 8e3158f..ddcc574 100644 --- a/lib/netdev-dpdk.c

[ovs-dev] [PATCH v3 0/4] Output packet batching.

2017-08-10 Thread Ilya Maximets
ded time based batching RFC patch. * Fixed mixing packets with different sources in same batch. Ilya Maximets (4): dpif-netdev: Output packet batching. netdev: Remove unused may_steal. netdev-dpdk: Remove useless cutlen. dpif-netdev: Time based output batching. lib/dpif-netde

[ovs-dev] [PATCH v3 1/4] dpif-netdev: Output packet batching.

2017-08-10 Thread Ilya Maximets
local and located in send port cache. Signed-off-by: Ilya Maximets <i.maxim...@samsung.com> --- lib/dpif-netdev.c | 104 ++ 1 file changed, 82 insertions(+), 22 deletions(-) diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index e2cd931..a

Re: [ovs-dev] [PATCH 1/2] dpif-netdev: Keep latest measured time for PMD thread.

2017-08-11 Thread Ilya Maximets
or example, 'emc_insert_min' which I'm introducing in the next patch is actually the characteristics of the last received packet (maybe port) but not the thread itself. > > BR, Jan > >> -Original Message- >> From: ovs-dev-boun...@openvswitch.org >> [mailto:ovs-d

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

2017-08-11 Thread Ilya Maximets
On 10.08.2017 21:52, Bodireddy, Bhanuprakash wrote: >>> > } else { > +/* If the queue is disabled in the guest, the > corresponding qid > + * map shall be set to OVS_VHOST_QUEUE_DISABLED(-2). > + * > +

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

2017-08-11 Thread Ilya Maximets
On 11.08.2017 16:11, Bodireddy, Bhanuprakash wrote: >> On 09.08.2017 15:35, Bodireddy, Bhanuprakash wrote: > > +static int > +netdev_dpdk_vhost_tx_burst(struct netdev_dpdk *dev, int qid) { > +struct dpdk_tx_queue *txq = >tx_q[qid]; > +struct rte_mbuf **cur_pkts =

[ovs-dev] [PATCH] dpif-netdev: Fix per packet cycles statistics.

2017-08-11 Thread Ilya Maximets
dpif-netdev: dpcls per in_port with sorted subtables") Signed-off-by: Ilya Maximets <i.maxim...@samsung.com> --- lib/dpif-netdev.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index e2cd931..17e1666 100644 --- a/lib/d

[ovs-dev] [PATCH 2/2] dpif-netdev: Per-port conditional EMC insert.

2017-08-10 Thread Ilya Maximets
-by: Ilya Maximets <i.maxim...@samsung.com> --- Documentation/howto/dpdk.rst | 4 +- NEWS | 2 +- lib/dpif-netdev.c| 106 +-- tests/pmd.at | 7 ++- vswitchd/vswitch.xml | 42 ++

[ovs-dev] [PATCH 1/2] dpif-netdev: Keep latest measured time for PMD thread.

2017-08-10 Thread Ilya Maximets
possible modifications in current logic. This patch introduces new structure 'dp_netdev_pmd_thread_ctx' contained by 'struct dp_netdev_pmd_thread' to store any processing context of this PMD thread. For now, only time and cycles moved to that structure. Can be extended in the future. Signed-off-by: Ilya

[ovs-dev] [PATCH 0/2] Per-port EMC insertion probability.

2017-08-10 Thread Ilya Maximets
Ilya Maximets (2): dpif-netdev: Keep latest measured time for PMD thread. dpif-netdev: Per-port conditional EMC insert. Documentation/howto/dpdk.rst | 4 +- NEWS | 2 +- lib/dpif-netdev.c| 223 ++- tests/pmd.at

Re: [ovs-dev] [PATCH] dp-packet: Introduce dp_packet_batch_add_unsafe().

2017-08-11 Thread Ilya Maximets
Could you suggest another dp_packet_batch_XXX() name (which can be exposed to the end user) for the function that doesn't check the boundaries instead of 'add_unsafe', if you think it is not accurate? Best regards, Ilya Maximets. ___ dev mailing l

Re: [ovs-dev] [PATCH RFC v3 4/4] dpif-netdev: Time based output batching.

2017-08-14 Thread Ilya Maximets
it in output batch for sending. >> >> Signed-off-by: Ilya Maximets <i.maxim...@samsung.com> >> --- >> Notes: >> >> * This is an RFC and should not be used for performance testing. >> * Millisecond granularity is used for now. Can be easily switched &

[ovs-dev] [PATCH RFC 2/2] dpif-netdev: Use microseconds granularity for output-max-latency.

2017-08-14 Thread Ilya Maximets
Signed-off-by: Ilya Maximets <i.maxim...@samsung.com> --- lib/dpif-netdev.c| 16 +--- vswitchd/vswitch.xml | 5 +++-- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index 0d78ae4..cf1591c 100644 --- a/lib/dpif-netdev.c

[ovs-dev] [PATCH RFC 1/2] timeval: Introduce time_usec().

2017-08-14 Thread Ilya Maximets
This function will provide monotonic time in microseconds. Signed-off-by: Ilya Maximets <i.maxim...@samsung.com> --- lib/timeval.c | 22 ++ lib/timeval.h | 2 ++ 2 files changed, 24 insertions(+) diff --git a/lib/timeval.c b/lib/timeval.c index dd63f03..be2eddc

Re: [ovs-dev] [patch_v2 2/3] dpif-netdev: Refactor some pmd stats.

2017-08-14 Thread Ilya Maximets
> The per packets stats are presently overlapping in that > miss stats include lost stats; make these stats non-overlapping > for clarity and make this clear in the dp_stat_type enum. This > also eliminates the need to increment two 'miss' stats for a > single packet. > > The subtable lookup

Re: [ovs-dev] [PATCH RFC v3 4/4] dpif-netdev: Time based output batching.

2017-08-14 Thread Ilya Maximets
On 14.08.2017 16:12, Jan Scheurich wrote: >>> >From earlier in-house trials we know we need to target flush times of 50 >> us or less, so we clearly need better time resolution. Sub-ms timing in PMD >> should be based on TSC cycles, which are already kept in the pmd struct. >> Could you provide a

Re: [ovs-dev] [patch_v4 2/2] dpif-netdev: Refactor some pmd stats.

2017-08-16 Thread Ilya Maximets
> The per packets stats are presently overlapping in that > miss stats include lost stats; make these stats non-overlapping > for clarity and make this clear in the dp_stat_type enum. This > also eliminates the need to increment two 'miss' stats for a > single packet. > > The subtable lookup

Re: [ovs-dev] [PATCH] odp-execute: Reuse rss hash in OVS_ACTION_ATTR_HASH.

2017-07-13 Thread Ilya Maximets
On 12.07.2017 10:15, Andy Zhou wrote: > On Tue, Jul 11, 2017 at 7:30 AM, Ilya Maximets <i.maxim...@samsung.com> wrote: >> If RSS hash exists in a packet it can be reused instead of >> 5 tuple hash re-calculation in OVS_ACTION_ATTR_HASH. This >> leads to increasing

[ovs-dev] [PATCH v2] odp-execute: Reuse rss hash in OVS_ACTION_ATTR_HASH.

2017-07-13 Thread Ilya Maximets
method' to not depend on dp_hash value. Signed-off-by: Ilya Maximets <i.maxim...@samsung.com> --- Version 2: * Removed assumption on hash_basis value. * hash_finish replaced with hash_int as more appropriate. * Fixed 'select group with dp_hash selection method' UT. l

[ovs-dev] [PATCH] dp-packet: Remove misleading comment for refill init function.

2017-07-14 Thread Ilya Maximets
Fixes: 72c84bc2db23 ("dp-packet: Enhance packet batch APIs.") Signed-off-by: Ilya Maximets <i.maxim...@samsung.com> --- lib/dp-packet.h | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/dp-packet.h b/lib/dp-packet.h index 38282bd..c5fe32e 100644 --- a/lib/dp

Re: [ovs-dev] [patch_v1 2/2] System Tests: Improve reliability of an icmp test.

2017-07-17 Thread Ilya Maximets
Not a full review. And I most likely will not review the logic. Just one comment inline. Best regards, Ilya Maximets. > One SNAT test is based on a single ping being successful; > to make the result more predictable, static arp binding is now used. > Occasionally, tracing shows the r

[ovs-dev] [PATCH] odp-execute: Reuse rss hash in OVS_ACTION_ATTR_HASH.

2017-07-11 Thread Ilya Maximets
If RSS hash exists in a packet it can be reused instead of 5 tuple hash re-calculation in OVS_ACTION_ATTR_HASH. This leads to increasing the performance of sending packets to the OVS bonding in userspace datapath up to 10-15%. Signed-off-by: Ilya Maximets <i.maxim...@samsung.com> --- l

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

2017-07-10 Thread Ilya Maximets
ux (not so hard). DPDK already mentioned in commit message as the target and there is no need for misleading prefixes. Best regards, Ilya Maximets. ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

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

2017-07-10 Thread Ilya Maximets
is preferable to operate with a pmd on the 'wrong' numa node albeit with >> lower performance. Local pmds are still chosen when available. >> >> Signed-off-by: Billy O'Mahony <billy.o.mah...@intel.com> >> Signed-off-by: Ilya Maximets <i.maxim...@samsung.com&

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

2017-07-10 Thread Ilya Maximets
On 10.07.2017 13:42, O Mahony, Billy wrote: > > >> -Original Message- >> From: Stokes, Ian >> Sent: Monday, July 10, 2017 10:41 AM >> To: Ilya Maximets <i.maxim...@samsung.com>; O Mahony, Billy >> <billy.o.mah...@intel.com>; d...@openv

Re: [ovs-dev] [PATCH v2 2/3] dpif-netdev: Avoid port's reconfiguration on pmd-cpu-mask changes.

2017-07-11 Thread Ilya Maximets
On 11.07.2017 05:10, Darrell Ball wrote: > > > On 7/10/17, 12:41 AM, "Ilya Maximets" <i.maxim...@samsung.com> wrote: > > On 07.07.2017 21:09, Darrell Ball wrote: > > > > > > On 7/6/17, 11:11 PM, "Ilya Maximets" <i.m

Re: [ovs-dev] [PATCH v3 0/3] Incremental addition/deletion of PMD threads.

2017-07-11 Thread Ilya Maximets
Patches 1 and 3 are also reviewed by Darrell now. So, maybe we can apply them before we finish our holy war about patch #2 ? We can easily apply #3 without #2 because they have nothing in common. Best regards, Ilya Maximets. On 05.07.2017 17:30, Ilya Maximets wrote: > Hi all. >

[ovs-dev] [PATCH 0/4] Checkpatch enhancements.

2017-07-14 Thread Ilya Maximets
Ilya Maximets (4): checkpatch: Don't allow Gerrit Change-Ids. checkpatch: Print results while checking HEAD and stdin. checkpatch: Allow checking more than one file. checkpatch: Print commit hashes and names. utilities/checkpatch.py | 64

[ovs-dev] [PATCH 1/4] checkpatch: Don't allow Gerrit Change-Ids.

2017-07-14 Thread Ilya Maximets
Local Gerrit Change-Ids are not welcome in common repository. Inspired by checkpatch.pl from Linux Kernel. Signed-off-by: Ilya Maximets <i.maxim...@samsung.com> --- utilities/checkpatch.py | 6 ++ 1 file changed, 6 insertions(+) diff --git a/utilities/checkpatch.py b/utilities/checkpa

[ovs-dev] [PATCH 3/4] checkpatch: Allow checking more than one file.

2017-07-14 Thread Ilya Maximets
-by: Ilya Maximets <i.maxim...@samsung.com> --- utilities/checkpatch.py | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/utilities/checkpatch.py b/utilities/checkpatch.py index 4a92890..7ccec51 100755 --- a/utilities/checkpatch.py +++ b/utilities/checkpa

[ovs-dev] [PATCH 2/4] checkpatch: Print results while checking HEAD and stdin.

2017-07-14 Thread Ilya Maximets
Currently, result status printed only for patch files. It'll be nice to have results for other checking types. Signed-off-by: Ilya Maximets <i.maxim...@samsung.com> --- utilities/checkpatch.py | 33 + 1 file changed, 25 insertions(+), 8 deletions(-) diff

[ovs-dev] [PATCH 4/4] checkpatch: Print commit hashes and names.

2017-07-14 Thread Ilya Maximets
It's better to see real commits instead of 'HEAD~n'. Signed-off-by: Ilya Maximets <i.maxim...@samsung.com> --- utilities/checkpatch.py | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/utilities/checkpatch.py b/utilities/checkpatch.py index 7ccec51..f61b8b7

Re: [ovs-dev] [PATCH v2] odp-execute: Reuse rss hash in OVS_ACTION_ATTR_HASH.

2017-07-18 Thread Ilya Maximets
On 18.07.2017 06:48, Darrell Ball wrote: > > > On 7/13/17, 8:07 AM, "ovs-dev-boun...@openvswitch.org on behalf of Ilya > Maximets" <ovs-dev-boun...@openvswitch.org on behalf of > i.maxim...@samsung.com> wrote: > > If RSS hash exists in a packet it c

Re: [ovs-dev] [PATCH v2 2/3] dpif-netdev: Avoid port's reconfiguration on pmd-cpu-mask changes.

2017-07-10 Thread Ilya Maximets
On 07.07.2017 21:09, Darrell Ball wrote: > > > On 7/6/17, 11:11 PM, "Ilya Maximets" <i.maxim...@samsung.com> wrote: > > On 07.07.2017 08:08, Darrell Ball wrote: > > > > > > On 5/30/17, 7:12 A

Re: [ovs-dev] [patch_v6 0/5] Userspace Datapath: Add ALG support.

2017-07-17 Thread Ilya Maximets
So, about current patch-set: The first two patches are localized to lib/conntrack* files and should have 'conntrack' prefix as a module name. 3rd and 4th patches should have 'system-userspace-macros' and 'system-traffic' module names respectively. Such names will be more accurate and conformed t

Re: [ovs-dev] [patch_v1 1/2] System Tests: Allow SNAT address variability retries.

2017-07-17 Thread Ilya Maximets
Same thing here. Not a full review. Please, use 'system-traffic' for these patches as a prefix. Details are in previous e-mail: https://mail.openvswitch.org/pipermail/ovs-dev/2017-July/335751.html Best regards, Ilya Maximets. ___ dev mailing list d

[ovs-dev] [PATCH 1/2] bond: Fix broken rebalancing after link state changes.

2017-07-20 Thread Ilya Maximets
y to move few hashes simultaniously to fit constraint #3. Implementation includes sorting of 'entries' to be able to collect entries with accumulated load close enough to ideal value. Signed-off-by: Ilya Maximets <i.maxim...@samsung.com> --- I guess, the following tag should be correct, but n

[ovs-dev] [PATCH 2/2] ofproto-dpif.at: Add bonding down/up rebalancing test.

2017-07-20 Thread Ilya Maximets
Add regression test which checks rebalancing of tcp balanced bonding after link state changes of one of the ports. Signed-off-by: Ilya Maximets <i.maxim...@samsung.com> --- To work correctly this unit test requires fix for '--len' option of netdev-dummy/receive appctl command: *

[ovs-dev] [PATCH 0/2] bond: Fix broken rebalancing after link state changes.

2017-07-20 Thread Ilya Maximets
. https://mail.openvswitch.org/pipermail/ovs-dev/2017-July/335930.html Ilya Maximets (2): bond: Fix broken rebalancing after link state changes. ofproto-dpif.at: Add bonding down/up rebalancing test. ofproto/bond.c| 128 +++--- tests/ofproto

[ovs-dev] [PATCH v4 1/3] dpif-netdev: Incremental addition/deletion of PMD threads.

2017-07-21 Thread Ilya Maximets
threads. All not affected threads will forward traffic without any additional latencies. id-pool created for static tx queue ids to keep them sequential in a flexible way. non-PMD thread will always have static_tx_qid = 0 as it was before. Signed-off-by: Ilya Maximets <i.maxim...@samsung.

[ovs-dev] [PATCH v4 3/3] dpif-netdev: Don't uninit emc on reload.

2017-07-21 Thread Ilya Maximets
the old/unwanted entries. Signed-off-by: Ilya Maximets <i.maxim...@samsung.com> Acked-by: Cian Ferriter <cian.ferri...@intel.com> Tested-by: Cian Ferriter <cian.ferri...@intel.com> --- lib/dpif-netdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/l

[ovs-dev] [PATCH v4 2/3] dpif-netdev: Avoid port's reconfiguration on pmd-cpu-mask changes.

2017-07-21 Thread Ilya Maximets
number of wanted tx queues to avoid unnecessary reconfigurations. Signed-off-by: Ilya Maximets <i.maxim...@samsung.com> Tested-by: Ian Stokes <ian.sto...@intel.com> Acked-by: Ian Stokes <ian.sto...@intel.com> --- lib/dpif-netdev.c | 26 +- 1 file changed, 2

Re: [ovs-dev] [patch_v1 1/2] System Tests: Allow SNAT address variability retries.

2017-07-21 Thread Ilya Maximets
the new one? If everybody will use their own preferable prefixes, git history will become a total mess. And that is the main concern. Once again, It's only my opinion and you're free to disagree. Best regards, Ilya Maximets. > / > > commit 9d3e0e5c196c0a91ea23d8d9254b14

[ovs-dev] [PATCH] bond: Unify hash functions in hash action and entry lookup.

2017-07-21 Thread Ilya Maximets
will also speed up handling of the new flows and statistics accounting. Signed-off-by: Ilya Maximets <i.maxim...@samsung.com> --- ofproto/bond.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ofproto/bond.c b/ofproto/bond.c index cb25a1d..72b373c 100644 --- a/ofproto/

Re: [ovs-dev] Fwd: [PATCH] bond: Unify hash functions in hash action and entry lookup.

2017-07-25 Thread Ilya Maximets
On 24.07.2017 22:53, Andy Zhou wrote: > On Mon, Jul 24, 2017 at 9:23 AM, Ilya Maximets <i.maxim...@samsung.com> wrote: >> On 23.07.2017 00:02, Darrell Ball wrote: >>> >>> >>> -Original Message- >>> From: <ovs-dev-boun...@openvswitch.org

[ovs-dev] [PATCH v2 2/3] bond: Unify hash functions in hash action and entry lookup.

2017-07-25 Thread Ilya Maximets
-by: Andy Zhou <az...@ovn.org> Signed-off-by: Andy Zhou <az...@ovn.org> Signed-off-by: Ilya Maximets <i.maxim...@samsung.com> --- ofproto/bond.c | 16 +--- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/ofproto/bond.c b/ofproto/bond.c index cb25a1d..e4d4b65 10

[ovs-dev] [PATCH v2 3/3] bond: Remove bond_hash_src.

2017-07-25 Thread Ilya Maximets
az...@ovn.org> Signed-off-by: Ilya Maximets <i.maxim...@samsung.com> --- ofproto/bond.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/ofproto/bond.c b/ofproto/bond.c index e4d4b65..e09136e 100644 --- a/ofproto/bond.c +++ b/ofproto/bond.c @@ -175,8

[ovs-dev] [PATCH v2 1/3] vswitch.xml: Fix L2 balancing mentioning for balance-tcp bond.

2017-07-25 Thread Ilya Maximets
e not used for flow balancing. Fix the documentation accordingly. Signed-off-by: Ilya Maximets <i.maxim...@samsung.com> --- I think, this should be applied to some stable branches too. vswitchd/vswitch.xml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/vswitc

[ovs-dev] [PATCH v2 0/3] bond: Clean up hash functions.

2017-07-25 Thread Ilya Maximets
Version 2: * Became a patch-set. v1: https://mail.openvswitch.org/pipermail/ovs-dev/2017-July/336078.html * Removed bond_hash_tcp. * 2 new patches added: * Documentation fix. * Remove bond_hash_src. Ilya Maximets (3

Re: [ovs-dev] [PATCH 1/3] flow: Add packet_size option to flow_compose.

2017-07-25 Thread Ilya Maximets
On 24.07.2017 22:40, Andy Zhou wrote: > On Mon, Jul 24, 2017 at 6:33 AM, Ilya Maximets <i.maxim...@samsung.com> wrote: >> On 22.07.2017 01:38, Andy Zhou wrote: >>> On Wed, Jul 19, 2017 at 7:51 AM, Ilya Maximets <i.maxim...@samsung.com> >>> wrote: >>>

  1   2   3   4   5   6   7   8   9   10   >