[dpdk-dev] [PATCH v4 12/17] examples: replace use of master with main

2020-10-09 Thread Stephen Hemminger
Change references to master/slave lcore to main/worker. For l2fwd, l3fwd and link_status examples. Acked-by: Anatoly Burakov Signed-off-by: Stephen Hemminger --- app/pdump/main.c | 2 +- examples/ip_pipeline/thread.c| 14 +++--- examp

[dpdk-dev] [PATCH v4 13/17] examples/multi_process: replace references to master/slave

2020-10-09 Thread Stephen Hemminger
Replace master with main and slave with worker. Fix the wording in comments. Acked-by: Anatoly Burakov Signed-off-by: Stephen Hemminger --- .../multi_process/client_server_mp/mp_server/main.c| 10 +- examples/multi_process/simple_mp/main.c| 4 ++-- examples/multi_pr

[dpdk-dev] [PATCH v4 15/17] examples/qos: replace references to master

2020-10-09 Thread Stephen Hemminger
Use main instead of master in the QoS examples. Replace the "mst" command line argument with "mnc" Acked-by: Anatoly Burakov Signed-off-by: Stephen Hemminger --- examples/qos_meter/main.c| 4 ++-- examples/qos_sched/args.c| 26 +- examples/qos_sched/cmdline.c |

[dpdk-dev] [PATCH v4 16/17] examples/ipsec-secgw: replace master lcore with main lcore

2020-10-09 Thread Stephen Hemminger
Simple replacement. Acked-by: Anatoly Burakov Signed-off-by: Stephen Hemminger --- examples/ipsec-secgw/event_helper.c | 6 +++--- examples/ipsec-secgw/ipsec-secgw.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/ipsec-secgw/event_helper.c b/examples/ipsec-s

[dpdk-dev] [PATCH v4 17/17] examples: replace master lcore with main lcore

2020-10-09 Thread Stephen Hemminger
Replace use of the term master lcore with main lcore in the example programs. Signed-off-by: Stephen Hemminger --- examples/bbdev_app/main.c | 14 +-- examples/bond/main.c| 32 - examples/distributor/main.c | 10 --

Re: [dpdk-dev] [PATCH v5 00/15] fix distributor synchronization issues

2020-10-09 Thread Lukasz Wojciechowski
Hi David, W dniu 09.10.2020 o 14:53, David Marchand pisze: > Hello Lukasz, > > On Thu, Oct 8, 2020 at 11:17 PM Lukasz Wojciechowski > wrote: >> I'm here if you have any questions or suggestions > Unfortunately, I can see a timeout on the distributor autotest in Travis: > https://travis-ci.com/git

Re: [dpdk-dev] [PATCH v4 00/17] Replace terms master/slave

2020-10-09 Thread Stephen Hemminger
On Fri, 9 Oct 2020 14:38:38 -0700 Stephen Hemminger wrote: > As announced in 20.08 release notes, the terms for lcore role > will change in 20.11 release. > > This is a project wide patchset to terminolgy used for DPDK lcore. > The term "master" referring to lcore is replaced with "main" and >

[dpdk-dev] [PATCH v6 00/15] fix distributor synchronization issues

2020-10-09 Thread Lukasz Wojciechowski
During review and verification of the patch created by Sarosh Arif: "test_distributor: prevent memory leakages from the pool" I found out that running distributor unit tests multiple times in a row causes fails. So I investigated all the issues I found. There are few synchronization issues that mi

[dpdk-dev] [PATCH v6 01/15] distributor: fix missing handshake synchronization

2020-10-09 Thread Lukasz Wojciechowski
rte_distributor_return_pkt function which is run on worker cores must wait for distributor core to clear handshake on retptr64 before using those buffers. While the handshake is set distributor core controls buffers and any operations on worker side might overwrite buffers which are unread yet. Sam

[dpdk-dev] [PATCH v6 02/15] distributor: fix handshake deadlock

2020-10-09 Thread Lukasz Wojciechowski
Synchronization of data exchange between distributor and worker cores is based on 2 handshakes: retptr64 for returning mbufs from workers to distributor and bufptr64 for passing mbufs to workers. Without proper order of verifying those 2 handshakes a deadlock may occur. This can happen when worker

[dpdk-dev] [PATCH v6 04/15] distributor: handle worker shutdown in burst mode

2020-10-09 Thread Lukasz Wojciechowski
The burst version of distributor implementation was missing proper handling of worker shutdown. A worker processing packets received from distributor can call rte_distributor_return_pkt() function informing distributor that it want no more packets. Further calls to rte_distributor_request_pkt() or

[dpdk-dev] [PATCH v6 03/15] distributor: do not use oldpkt when not needed

2020-10-09 Thread Lukasz Wojciechowski
rte_distributor_request_pkt and rte_distributor_get_pkt dereferenced oldpkt parameter when in RTE_DIST_ALG_SINGLE even if number of returned buffers from worker to distributor was 0. This patch passes NULL to the legacy API when number of returned buffers is 0. This allows passing NULL as oldpkt p

[dpdk-dev] [PATCH v6 06/15] test/distributor: synchronize lcores statistics

2020-10-09 Thread Lukasz Wojciechowski
Statistics of handled packets are cleared and read on main lcore, while they are increased in workers handlers on different lcores. Without synchronization occasionally showed invalid values. This patch uses atomic acquire/release mechanisms to synchronize. Fixes: c3eabff124e6 ("distributor: add

[dpdk-dev] [PATCH v6 07/15] distributor: fix return pkt calls in single mode

2020-10-09 Thread Lukasz Wojciechowski
In the single legacy version of the distributor synchronization requires continues exchange of buffers between distributor and workers. Empty buffers are sent if only handshake synchronization is required. However calls to the rte_distributor_return_pkt() with 0 buffers in single mode were ignored

[dpdk-dev] [PATCH v6 05/15] test/distributor: fix shutdown of busy worker

2020-10-09 Thread Lukasz Wojciechowski
The sanity test with worker shutdown delegates all bufs to be processed by a single lcore worker, then it freezes one of the lcore workers and continues to send more bufs. The freezed core shuts down first by calling rte_distributor_return_pkt(). The test intention is to verify if packets assigned

[dpdk-dev] [PATCH v6 08/15] test/distributor: fix freeing mbufs

2020-10-09 Thread Lukasz Wojciechowski
Sanity tests with mbuf alloc and shutdown tests assume that mbufs passed to worker cores are freed in handlers. Such packets should not be returned to the distributor's main core. The only packets that should be returned are the packets send after completion of the tests in quit_workers function.

[dpdk-dev] [PATCH v6 11/15] test/distributor: replace delays with spin locks

2020-10-09 Thread Lukasz Wojciechowski
Instead of making delays in test code and waiting for worker hopefully to reach proper states, synchronize worker shutdown test cases with spin lock on atomic variable. Fixes: c0de0eb82e40 ("distributor: switch over to new API") Cc: david.h...@intel.com Cc: sta...@dpdk.org Signed-off-by: Lukasz W

[dpdk-dev] [PATCH v6 09/15] test/distributor: collect return mbufs

2020-10-09 Thread Lukasz Wojciechowski
During quit_workers function distributor's main core processes some packets to wake up pending worker cores so they can quit. As quit_workers acts also as a cleanup procedure for next test case it should also collect these packages returned by workers' handlers, so the cyclic buffer with returned p

[dpdk-dev] [PATCH v6 10/15] distributor: align API documentation with code

2020-10-09 Thread Lukasz Wojciechowski
After introducing burst API there were some artefacts in the API documentation from legacy single API. Also the rte_distributor_poll_pkt() function return values mismatched the implementation. Fixes: c0de0eb82e40 ("distributor: switch over to new API") Cc: david.h...@intel.com Cc: sta...@dpdk.org

[dpdk-dev] [PATCH v6 13/15] test/distributor: add test with packets marking

2020-10-09 Thread Lukasz Wojciechowski
All of the former tests analyzed only statistics of packets processed by all workers. The new test verifies also if packets are processed on workers as expected. Every packets processed by the worker is marked and analyzed after it is returned to distributor. This test allows finding issues in mat

[dpdk-dev] [PATCH v6 12/15] distributor: fix scalar matching

2020-10-09 Thread Lukasz Wojciechowski
Fix improper indexes while comparing tags. In the find_match_scalar() function: * j iterates over flow tags of following packets; * w iterates over backlog or in flight tags positions. Fixes: 775003ad2f96 ("distributor: add new burst-capable library") Cc: david.h...@intel.com Cc: sta...@dpdk.org

[dpdk-dev] [PATCH v6 14/15] distributor: fix flushing in flight packets

2020-10-09 Thread Lukasz Wojciechowski
rte_distributor_flush() is using total_outstanding() function to calculate if it should still wait for processing packets. However in burst mode only backlog packets were counted. This patch fixes that issue by counting also in flight packets. There are also sum fixes to properly keep count of in

[dpdk-dev] [PATCH v6 15/15] distributor: fix clearing returns buffer

2020-10-09 Thread Lukasz Wojciechowski
The patch clears distributors returns buffer in clear_returns() by setting start and count to 0. Fixes: 775003ad2f96 ("distributor: add new burst-capable library") Cc: david.h...@intel.com Cc: sta...@dpdk.org Signed-off-by: Lukasz Wojciechowski Acked-by: David Hunt --- lib/librte_distributor/r

Re: [dpdk-dev] [RFC v2 1/1] lib/ring: add scatter gather APIs

2020-10-09 Thread Honnappa Nagarahalli
> > > > Hi Honnappa, > > > > > > > > From a quick walkthrough, I have some questions/comments, please > > > > see below. > > > Hi Olivier, appreciate your input. > > > > > > > > > > > On Tue, Oct 06, 2020 at 08:29:05AM -0500, Honnappa Nagarahalli wrote: > > > > > Add scatter gather APIs to avoid

Re: [dpdk-dev] [PATCH v5 00/15] fix distributor synchronization issues

2020-10-09 Thread Lukasz Wojciechowski
W dniu 09.10.2020 o 23:41, Lukasz Wojciechowski pisze: > > Hi David, > > W dniu 09.10.2020 o 14:53, David Marchand pisze: >> Hello Lukasz, >> >> On Thu, Oct 8, 2020 at 11:17 PM Lukasz Wojciechowski >> wrote: >>> I'm here if you have any questions or suggestions >> Unfortunately, I can see a tim

Re: [dpdk-dev] [PATCH] net/bnxt: fix non-vector fast mbuf free offload

2020-10-09 Thread Ajit Khaparde
On Fri, Oct 9, 2020 at 9:36 AM Lance Richardson wrote: > > The fast mbuf free offload for non-vector mode requires > additional checks in order to handle long tx buffer > descriptors, so dedicated functions are needed for > vector- and non-vector-modes. > > Fixes: 103169df2880 ("net/bnxt: support

Re: [dpdk-dev] [PATCH] net/failsafe: check correct error code while handling sub-device add

2020-10-09 Thread Long Li
>Subject: Re: [dpdk-dev] [PATCH] net/failsafe: check correct error code while >handling sub-device add > >On 05/10/20 11:42 +0200, Gaëtan Rivet wrote: >> Hi, >> >> On 02/10/20 17:01 -0700, Long Li wrote: >> > From: Long Li >> > >> > When adding a sub-device, it's possible that the sub-device is >>

Re: [dpdk-dev] [DPDK_KMODS v4] linux/igb_uio: add Makefile to build the kernel module

2020-10-09 Thread Ma, LihongX
> With DPDK 20.11 release, the igb_uio module is no more part of DPDK. > There are use cases where this module is required, for example while > testing the virtual ports in OvS, the virtual ports are bound to igb_uio > module inside a VM. So, this patch provides a Makefile which can be used to > bu

Re: [dpdk-dev] [PATCH V1 2/3] mbuf: change free_cb interface to adapt to GSO case

2020-10-09 Thread yang_y_yi
Olivier, thank you so much for helping figure out this, it does work as the code you changed, so we can fix the issue without this patch series. My question is can it also work for normal mbuf or indirect mbuf? (I mean pkt is direct mbuf or indirect mbuf) At 2020-10-09 19:55:25, "Olivier Matz"

Re: [dpdk-dev] [PATCH v3 04/18] net/i40e: add checks for max SIMD bitwidth

2020-10-09 Thread Guo, Jia
Hi, power > -Original Message- > From: Power, Ciara > Sent: Friday, October 9, 2020 10:03 PM > To: Guo, Jia ; dev@dpdk.org > Cc: Xing, Beilei > Subject: RE: [PATCH v3 04/18] net/i40e: add checks for max SIMD bitwidth > > Hi Jeff, > > >-Original Message- > >From: Guo, Jia > >Se

Re: [dpdk-dev] [PATCH v9 1/3] ethdev: introduce sample action for rte flow

2020-10-09 Thread Ajit Khaparde
On Fri, Oct 9, 2020 at 6:47 AM Jiawei Wang wrote: > > When using full offload, all traffic will be handled by the HW, and > forwarded to the requested VF or wire and the control application does > not see this traffic anymore. So there's a need for an action that > enables the control application

Re: [dpdk-dev] [PATCH v4] RSS key use with testpmd

2020-10-09 Thread Phil Yang
Ferruh Yigit wrote: > Sent: Saturday, October 10, 2020 2:53 AM > To: oulijun ; wenzhuo...@intel.com; > beilei.x...@intel.com; adrien.mazarg...@6wind.com; Phil Yang > > Cc: dev@dpdk.org; linux...@huawei.com > Subject: Re: [PATCH v4] RSS key use with testpmd > > On 10/9/2020 1:09 PM, oulijun wrot

[dpdk-dev] [PATCH] gso: fix free issue of mbuf gso segments attach to

2020-10-09 Thread yang_y_yi
From: Yi Yang rte_gso_segment decreased refcnt of pkt by one, but it is wrong if pkt is external mbuf, pkt won't be freed because of incorrect refcnt, the result is application can't allocate mbuf from mempool because mbufs in mempool are run out of. One correct way is application should call rt

[dpdk-dev] [PATCH] net/octeontx2: fix rss flow create

2020-10-09 Thread kirankumark
From: Kiran Kumar K While creating flow with action type RSS, action type is not being set to RSS, and action type is being set to unicast. Therefore it breaks RSS functionality. This patch add changes to program the RSS action properly. Fixes: 4092e4845d ("net/octeontx2: add flow operations")

<    1   2   3   4