Re: [dpdk-dev] [PATCH] mbuf: fix reset on mbuf free

2020-11-04 Thread Olivier Matz
On Thu, Nov 05, 2020 at 12:15:49AM +, Ananyev, Konstantin wrote: > > Hi Olivier, > > > m->nb_seg must be reset on mbuf free whatever the value of m->next, > > because it can happen that m->nb_seg is != 1. For instance in this > > case: > > > > m1 = rte_pktmbuf_alloc(mp); > > rte_pktmbuf

Re: [dpdk-dev] Removing more mbuf fields

2020-11-04 Thread Thomas Monjalon
05/11/2020 00:42, Stephen Hemminger: > Thanks for the work cleaning out some of the cruft in the mbuf to make space > for dynamic fields. > > Are you going to breakup the hash union in mbuf? > There is some bits to be gained there for dynamic fields. > > - Flow director should be deprecated/gon

Re: [dpdk-dev] [PATCH v10 1/5] net/bnxt: add support for aarch32

2020-11-04 Thread Ruifeng Wang
> -Original Message- > From: Lance Richardson > Sent: Thursday, November 5, 2020 2:30 AM > To: Juraj Linkeš > Cc: tho...@monjalon.net; Bruce Richardson ; > acon...@redhat.com; maicolgabr...@hotmail.com; dev@dpdk.org; Ruifeng > Wang > Subject: Re: [dpdk-dev] [PATCH v10 1/5] net/bnxt: add

Re: [dpdk-dev] [PATCH] examples/l3fwd: enable multiple Tx queues on a lcore

2020-11-04 Thread Jerin Jacob
On Wed, Nov 4, 2020 at 2:34 PM Rong, Leyi wrote: > > > > -Original Message- > > From: David Marchand > > Sent: Wednesday, November 4, 2020 4:43 PM > > To: Rong, Leyi > > Cc: Zhang, Qi Z ; dev > > Subject: Re: [PATCH] examples/l3fwd: enable multiple Tx queues on a lcore > > > > On Wed, N

Re: [dpdk-dev] [PATCH v5 1/1] vfio: modify spapr iommu support to use static window sizing

2020-11-04 Thread Thomas Monjalon
04/11/2020 23:25, David Christensen: > On 11/4/20 1:02 PM, Thomas Monjalon wrote: > > 04/11/2020 22:00, David Christensen: > >> > >> On 11/4/20 11:43 AM, Thomas Monjalon wrote: > Signed-off-by: David Christensen > Acked-by: Anatoly Burakov > --- > -#ifdef VFIO_IOMMU_SPAPR_INFO

Re: [dpdk-dev] [PATCH 1/2] eal: fix missing installation of mcslock headers

2020-11-04 Thread Ruifeng Wang
> -Original Message- > From: Olivier Matz > Sent: Thursday, November 5, 2020 1:04 AM > To: dev@dpdk.org > Cc: jer...@marvell.com; Ruifeng Wang ; Jan > Viktorin ; David Christensen > ; Bruce Richardson ; > Konstantin Ananyev ; Honnappa > Nagarahalli ; Phil Yang > ; Gavin Hu ; Steve Capper

Re: [dpdk-dev] [PATCH 2/2] eal: fix missing installation of ticketlock headers

2020-11-04 Thread Ruifeng Wang
> -Original Message- > From: Olivier Matz > Sent: Thursday, November 5, 2020 1:04 AM > To: dev@dpdk.org > Cc: jer...@marvell.com; Ruifeng Wang ; Jan > Viktorin ; David Christensen > ; Bruce Richardson ; > Konstantin Ananyev ; Honnappa > Nagarahalli ; Phil Yang > ; Gavin Hu ; Steve Capper

Re: [dpdk-dev] [PATCH v2] gro: fix an error when packet is IPv6

2020-11-04 Thread Hu, Jiayu
Acked-by: Jiayu Hu > -Original Message- > From: yang_y...@163.com > Sent: Thursday, November 5, 2020 10:55 AM > To: dev@dpdk.org > Cc: Hu, Jiayu ; Ananyev, Konstantin > ; tho...@monjalon.net; > yangy...@inspur.com; yang_y...@163.com > Subject: [PATCH v2] gro: fix an error when packet is

[dpdk-dev] [PATCH v2 1/2] raw/ifpga/base: unlock mutex when nios init fail

2020-11-04 Thread Wei Huang
In fme_nios_spi_init(), a mutex is locked for protecting nios initialization process, the mutex is only unlocked when process is successful, it should also be unlocked when process fail. Fixes: e41856b515ce ("raw/ifpga/base: enhance driver reliability in multi-process") Coverity issue: 363751 Si

[dpdk-dev] [PATCH v2 2/2] raw/ifpga/base: check pointer adapter before dereference

2020-11-04 Thread Wei Huang
In opae_adapter_destroy(), pointer "adapter" is not validated before passing it to opae_adapter_shm_free() and opae_adapter_mutex_close() which dereference it. Fixes: e41856b515ce ("raw/ifpga/base: enhance driver reliability in multi-process") Coverity issue: 363752 Signed-off-by: Wei Huang ---

[dpdk-dev] [PATCH v2 0/2] raw/ifpga/base: fix defects found by coverity scan

2020-11-04 Thread Wei Huang
Two issues are introduced from previous patch, one resides in ifpga_fme.c and the other resides in opae_hw_api.c. Below two patches are provided to fix them separately. Main changes from v2: - Fix coding style issue Wei Huang (2): raw/ifpga/base: unlock mutex when nios init fail raw/ifpga/ba

[dpdk-dev] [PATCH v2] gro: fix an error when packet is IPv6

2020-11-04 Thread yang_y_yi
From: Yi Yang For VxLAN packets, GRO will mistakenly reassemble them if inner L3 is IPv6, inner L4 is TCP or UDP, and outer L3 is IPv4 because the value of IS_IPV4_VXLAN_TCP4/UDP4_PKT is true for them. This fix makes sure IS_IPV4_TCP_PKT, IS_IPV4_UDP_PKT, IS_IPV4_VXLAN_TCP4_PKT and IS_IPV4_VXLA

[dpdk-dev] [PATCH v1 2/2] raw/ifpga/base: check pointer adapter before derefence

2020-11-04 Thread Wei Huang
In opae_adapter_destroy(), pointer "adapter" is not validated before passing it to opae_adapter_shm_free() and opae_adapter_mutex_close() which derefence it. Fixes: e41856b515ce ("raw/ifpga/base: enhance driver reliability in multi-process") Coverity issue: 363752 Signed-off-by: Wei Huang ---

[dpdk-dev] [PATCH v1 1/2] raw/ifpga/base: unlock mutex when nios init fail

2020-11-04 Thread Wei Huang
In fme_nios_spi_init(), a mutex is locked for protecting nios initialization process, the mutex is only unlocked when process is successful, it should also be unlocked when process fail. Fixes: e41856b515ce ("raw/ifpga/base: enhance driver reliability in multi-process") Coverity issue: 363751 Si

[dpdk-dev] [PATCH v1 0/2] Fix defects found by coverity scan

2020-11-04 Thread Wei Huang
Two issues are introduced from previous patch, one resides in ifpga_fme.c and the other resides in opae_hw_api.c. Below two patches are provided to fix them separately. Wei Huang (2): raw/ifpga/base: unlock mutex when nios init fail raw/ifpga/base: check pointer adapter before derefence dri

Re: [dpdk-dev] [PATCH v4 00/58] net: txgbe PMD

2020-11-04 Thread Jiawen Wu
On Thursday, November 5, 2020 1:24 AM, Ferruh Yigit wrote: > On 11/3/2020 11:08 PM, Thomas Monjalon wrote: > > 27/10/2020 12:37, Ferruh Yigit: > >> On 10/27/2020 2:39 AM, Jiawen Wu wrote: > >>> On Monday, October 26, 2020 10:56 PM, Ferruh Yigit wrote: > Series applied to dpdk-next-net/main, th

Re: [dpdk-dev] [PATCH] gro: fix an error when packet is IPv6

2020-11-04 Thread yang_y_yi
At 2020-11-05 09:41:13, "Hu, Jiayu" wrote: >Hi Yi, > >> -Original Message- >> From: yang_y...@163.com >> Sent: Wednesday, November 4, 2020 12:23 PM >> To: dev@dpdk.org >> Cc: Hu, Jiayu ; Ananyev, Konstantin >> ; tho...@monjalon.net; >> yangy...@inspur.com; yang_y...@163.com >> Subject: [P

Re: [dpdk-dev] [PATCH] gro: fix an error when packet is IPv6

2020-11-04 Thread Hu, Jiayu
Hi Yi, > -Original Message- > From: yang_y...@163.com > Sent: Wednesday, November 4, 2020 12:23 PM > To: dev@dpdk.org > Cc: Hu, Jiayu ; Ananyev, Konstantin > ; tho...@monjalon.net; > yangy...@inspur.com; yang_y...@163.com > Subject: [PATCH] gro: fix an error when packet is IPv6 > > From:

Re: [dpdk-dev] [PATCH 15/15] mbuf: move pool pointer in hotterfirst half

2020-11-04 Thread Ananyev, Konstantin
> > Hi, > > On Tue, Nov 03, 2020 at 04:03:46PM +0100, Morten Brørup wrote: > > > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Slava Ovsiienko > > > Sent: Tuesday, November 3, 2020 3:03 PM > > > > > > Hi, Morten > > > > > > > From: Morten Brørup > > > > Sent: Tuesday, November 3, 2020

Re: [dpdk-dev] [PATCH] mbuf: fix reset on mbuf free

2020-11-04 Thread Ananyev, Konstantin
Hi Olivier, > m->nb_seg must be reset on mbuf free whatever the value of m->next, > because it can happen that m->nb_seg is != 1. For instance in this > case: > > m1 = rte_pktmbuf_alloc(mp); > rte_pktmbuf_append(m1, 500); > m2 = rte_pktmbuf_alloc(mp); > rte_pktmbuf_append(m2, 500); >

[dpdk-dev] Removing more mbuf fields

2020-11-04 Thread Stephen Hemminger
Thanks for the work cleaning out some of the cruft in the mbuf to make space for dynamic fields. Are you going to breakup the hash union in mbuf? There is some bits to be gained there for dynamic fields. - Flow director should be deprecated/gone/killed so hash.fdir can disappear. - QoS sched

Re: [dpdk-dev] [PATCH v10 1/5] net/bnxt: add support for aarch32

2020-11-04 Thread Lance Richardson
On Wed, Sep 16, 2020 at 4:21 AM Juraj Linkeš wrote: > > From: Ruifeng Wang > > Expand vector PMD support to aarch32. > > Signed-off-by: Ruifeng Wang > Acked-by: Ajit Khaparde > --- > drivers/net/bnxt/bnxt_rxq.h | 2 +- > drivers/net/bnxt/bnxt_rxr.h | 2 +- > drivers/net/bnxt/bnxt_txr.h | 2 +-

Re: [dpdk-dev] [PATCH v5 1/1] vfio: modify spapr iommu support to use static window sizing

2020-11-04 Thread David Christensen
On 11/4/20 1:02 PM, Thomas Monjalon wrote: 04/11/2020 22:00, David Christensen: On 11/4/20 11:43 AM, Thomas Monjalon wrote: Signed-off-by: David Christensen Acked-by: Anatoly Burakov --- -#ifdef VFIO_IOMMU_SPAPR_INFO_DDW - /* try possible page_shift and levels for workaround

Re: [dpdk-dev] [PATCH v3] mbuf: minor cleanup

2020-11-04 Thread Morten Brørup
> From: Thomas Monjalon [mailto:tho...@monjalon.net] > Sent: Tuesday, October 20, 2020 1:56 PM > > Hi Morten, > Any update about this patch please? Thomas, v4 contains all the modifications suggested by Olivier: https://patchwork.dpdk.org/patch/82198/ Except a depreciation notice about the old

[dpdk-dev] [dpdk-announce] release candidate 20.11-rc2

2020-11-04 Thread Thomas Monjalon
A new DPDK release candidate is ready for testing: https://git.dpdk.org/dpdk/tag/?id=v20.11-rc2 There are 628 new patches in this snapshot. The good news is that -rc2 is smaller than -rc1 ;) Release notes: http://doc.dpdk.org/guides/rel_notes/release_20_11.html Highlights of 20.1

Re: [dpdk-dev] [PATCH] test/mcslock: remove unneeded per-lcore copy

2020-11-04 Thread Honnappa Nagarahalli
> > > > > > Each core already comes with its local storage for mcslock (in its > > > stack), therefore there is no need to define an additional per-lcore > mcslock. > > > > > > Fixes: 32dcb9fd2a22 ("test/mcslock: add MCS queued lock unit test") > > > > > > Signed-off-by: Olivier Matz Reviewed-by

Re: [dpdk-dev] [dpdk-stable] [PATCH] test/telemetry: fix typo at beginning of line

2020-11-04 Thread Thomas Monjalon
04/11/2020 18:22, Ciara Power: > A "+" symbol was incorrectly placed at the beginning of a line, > this is now removed. > > Fixes: 52af6ccb2b39 ("telemetry: add utility functions for creating JSON") > Cc: bruce.richard...@intel.com > Cc: sta...@dpdk.org > > Signed-off-by: Ciara Power Applied, t

Re: [dpdk-dev] [PATCH] test/mcslock: remove unneeded per-lcore copy

2020-11-04 Thread Olivier Matz
Hi Honnappa, On Wed, Nov 04, 2020 at 05:57:19PM +, Honnappa Nagarahalli wrote: > > > > > > Each core already comes with its local storage for mcslock (in its stack), > > therefore there is no need to define an additional per-lcore mcslock. > > > > Fixes: 32dcb9fd2a22 ("test/mcslock: add MC

Re: [dpdk-dev] [PATCH v5 1/1] vfio: modify spapr iommu support to use static window sizing

2020-11-04 Thread Thomas Monjalon
04/11/2020 22:00, David Christensen: > > On 11/4/20 11:43 AM, Thomas Monjalon wrote: > >> Signed-off-by: David Christensen > >> Acked-by: Anatoly Burakov > >> --- > >> -#ifdef VFIO_IOMMU_SPAPR_INFO_DDW > >> - /* try possible page_shift and levels for workaround */ > >> + /* if

Re: [dpdk-dev] [PATCH v5 1/1] vfio: modify spapr iommu support to use static window sizing

2020-11-04 Thread David Christensen
On 11/4/20 11:43 AM, Thomas Monjalon wrote: Signed-off-by: David Christensen Acked-by: Anatoly Burakov --- -#ifdef VFIO_IOMMU_SPAPR_INFO_DDW - /* try possible page_shift and levels for workaround */ + /* if at first we don't succeed, try more levels */

Re: [dpdk-dev] [PATCH] app/flow-perf: configurable rule batches

2020-11-04 Thread Thomas Monjalon
04/11/2020 09:04, Wisam Monther: > Hi, > > You can add my ack: > > Acked-by: Wisam Jaddo mailto:wis...@nvidia.com>> > > Thomas, > Do you have comments left here? No comment, it looks very good. Applied, thanks

Re: [dpdk-dev] [PATCH] net/ring: fix typo in log message

2020-11-04 Thread Ferruh Yigit
On 11/4/2020 5:01 PM, Olivier Matz wrote: Add a missing space. Fixes: 869bf6d222bb ("net/ring: fix coding style") Signed-off-by: Olivier Matz Cc: sta...@dpdk.org Reviewed-by: Ferruh Yigit

Re: [dpdk-dev] [PATCH v8 1/2] app/testpmd: fix max rx packet length for VLAN packets

2020-11-04 Thread Thomas Monjalon
04/11/2020 21:19, Ferruh Yigit: > On 11/4/2020 5:55 PM, Thomas Monjalon wrote: > > 04/11/2020 18:07, Ferruh Yigit: > >> On 11/4/2020 4:51 PM, Thomas Monjalon wrote: > >>> 03/11/2020 14:29, Ferruh Yigit: > On 11/2/2020 11:48 AM, Ferruh Yigit wrote: > > On 11/2/2020 8:52 AM, SteveX Yang wrot

Re: [dpdk-dev] [PATCH v8 1/2] app/testpmd: fix max rx packet length for VLAN packets

2020-11-04 Thread Ferruh Yigit
On 11/4/2020 5:55 PM, Thomas Monjalon wrote: 04/11/2020 18:07, Ferruh Yigit: On 11/4/2020 4:51 PM, Thomas Monjalon wrote: 03/11/2020 14:29, Ferruh Yigit: On 11/2/2020 11:48 AM, Ferruh Yigit wrote: On 11/2/2020 8:52 AM, SteveX Yang wrote: When the max rx packet length is smaller than the sum

Re: [dpdk-dev] [dpdk-stable] [PATCH v5] lib/power: remove set env deprecation notice

2020-11-04 Thread Thomas Monjalon
04/11/2020 10:28, David Hunt: > Remove notice announcing an already-implemented change. > > In 19.05, rte_power_set_env was changed to return -1 in cases where > the envorinment was already set up, and for the same release, a > deprecation notice was added for the following commit: > 'commit 5a5f3

Re: [dpdk-dev] [dpdk-stable] [PATCH] doc: fix typo in kni programmers guide

2020-11-04 Thread Thomas Monjalon
> > The typo "withe" should have been "with the". This is now fixed. > > Acked-by: John McNamara Applied, thanks

Re: [dpdk-dev] [PATCH v5 1/1] vfio: modify spapr iommu support to use static window sizing

2020-11-04 Thread Thomas Monjalon
03/11/2020 23:05, David Christensen: > The SPAPR IOMMU requires that a DMA window size be defined before memory > can be mapped for DMA. Current code dynamically modifies the DMA window > size in response to every new memory allocation which is potentially > dangerous because all existing mappings

Re: [dpdk-dev] [PATCH v5 4/4] test/lpm: avoid code duplication in rcu qsbr perf

2020-11-04 Thread Medvedkin, Vladimir
On 04/11/2020 18:58, Dharmik Thakkar wrote: Avoid code duplication by combining single and multi threaded tests Also, enable support for more than 2 writers Signed-off-by: Dharmik Thakkar Reviewed-by: Ruifeng Wang Reviewed-by: Honnappa Nagarahalli --- app/test/test_lpm_perf.c | 356

Re: [dpdk-dev] [PATCH v5 3/4] test/lpm: remove error checking in rcu qsbr perf

2020-11-04 Thread Medvedkin, Vladimir
On 04/11/2020 18:58, Dharmik Thakkar wrote: Remove redundant error checking for reader threads since they never return error. Fixes: eff30b59cc2e ("test/lpm: add RCU performance tests") Cc: honnappa.nagaraha...@arm.com Cc: sta...@dpdk.org Signed-off-by: Dharmik Thakkar Reviewed-by: Ruifeng

Re: [dpdk-dev] [PATCH v5 2/4] test/lpm: return error on failure in rcu qsbr perf

2020-11-04 Thread Medvedkin, Vladimir
On 04/11/2020 18:58, Dharmik Thakkar wrote: Return error if Add/Delete fail in multiwriter perf test Return error if single or multi writer test fails Fixes: eff30b59cc2e ("test/lpm: add RCU performance tests") Cc: honnappa.nagaraha...@arm.com Cc: sta...@dpdk.org Signed-off-by: Dharmik Thak

Re: [dpdk-dev] [PATCH v5 1/4] test/lpm: fix cycle calculation in rcu qsbr perf

2020-11-04 Thread Medvedkin, Vladimir
On 04/11/2020 18:58, Dharmik Thakkar wrote: Fix incorrect calculations for LPM adds, LPM deletes, and average cycles in RCU QSBR perf tests Since, rcu qsbr tests run for 'RCU_ITERATIONS' and not 'ITERATIONS', replace 'ITERATIONS' with 'RCU_ITERATIONS' for calculating adds, deletes, and cycles

Re: [dpdk-dev] [20.08 PATCH] license: removing the dual prefix to avoid confusion

2020-11-04 Thread Thomas Monjalon
28/07/2020 07:58, Hemant Agrawal: > This patch removes the dual keyword from dual license > definitions to avoid confusion. As the *dual* word is > not required to be added SPDX license. > > Signed-off-by: Hemant Agrawal > --- > Note that following licenses are not exceptions:- > - BSD-3-C

Re: [dpdk-dev] [PATCH] Fix spelling errors that Lintian complains about

2020-11-04 Thread Thomas Monjalon
04/11/2020 19:34, Thomas Monjalon: > 29/10/2020 14:36, luca.bocca...@gmail.com: > > From: Luca Boccassi > > > > Signed-off-by: Luca Boccassi > > --- > > Would be really great to hook up some spell checkers to the CI, so > > that I'm not the only one who gets nagged by automated tools :-) > > Th

[dpdk-dev] [PATCH v5 3/4] test/lpm: remove error checking in rcu qsbr perf

2020-11-04 Thread Dharmik Thakkar
Remove redundant error checking for reader threads since they never return error. Fixes: eff30b59cc2e ("test/lpm: add RCU performance tests") Cc: honnappa.nagaraha...@arm.com Cc: sta...@dpdk.org Signed-off-by: Dharmik Thakkar Reviewed-by: Ruifeng Wang Reviewed-by: Honnappa Nagarahalli --- app

[dpdk-dev] [PATCH v5 2/4] test/lpm: return error on failure in rcu qsbr perf

2020-11-04 Thread Dharmik Thakkar
Return error if Add/Delete fail in multiwriter perf test Return error if single or multi writer test fails Fixes: eff30b59cc2e ("test/lpm: add RCU performance tests") Cc: honnappa.nagaraha...@arm.com Cc: sta...@dpdk.org Signed-off-by: Dharmik Thakkar Reviewed-by: Ruifeng Wang Reviewed-by: Honn

[dpdk-dev] [PATCH v5 1/4] test/lpm: fix cycle calculation in rcu qsbr perf

2020-11-04 Thread Dharmik Thakkar
Fix incorrect calculations for LPM adds, LPM deletes, and average cycles in RCU QSBR perf tests Since, rcu qsbr tests run for 'RCU_ITERATIONS' and not 'ITERATIONS', replace 'ITERATIONS' with 'RCU_ITERATIONS' for calculating adds, deletes, and cycles. Also, for multi-writer perf test, each writer

[dpdk-dev] [PATCH v5 4/4] test/lpm: avoid code duplication in rcu qsbr perf

2020-11-04 Thread Dharmik Thakkar
Avoid code duplication by combining single and multi threaded tests Also, enable support for more than 2 writers Signed-off-by: Dharmik Thakkar Reviewed-by: Ruifeng Wang Reviewed-by: Honnappa Nagarahalli --- app/test/test_lpm_perf.c | 356 +-- 1 file change

[dpdk-dev] [PATCH v5 0/4] test/lpm: fix rcu qsbr perf test

2020-11-04 Thread Dharmik Thakkar
Fix LPM adds, LPM deletes, and cycle calculation. Return error if LPM add/delete fails in multi-writer test. Return error if single or multi writer test fails Remove redundant error checking for readers. Combine single and multi threaded test cases to avoid code duplication. --- v5: - Update logic

Re: [dpdk-dev] [PATCH v1] app/test: zcd needs to be initialised to fix gcc compile error

2020-11-04 Thread Honnappa Nagarahalli
Hi Conor, Thanks for the patch. > > When DPDK is compiled with gcc < 9 with the optimization level set to 1 gcc > sees zcd in test_ring.h as possibly being uninitialised. To correct this > error zcd > has been initialised to {0} in test_ring_mt_peek_stress_zc.c. > > Signed-off-by: Con

Re: [dpdk-dev] [PATCH] Fix spelling errors that Lintian complains about

2020-11-04 Thread Thomas Monjalon
29/10/2020 14:36, luca.bocca...@gmail.com: > From: Luca Boccassi > > Signed-off-by: Luca Boccassi > --- > Would be really great to hook up some spell checkers to the CI, so > that I'm not the only one who gets nagged by automated tools :-) There is a spell checker with checkpatch and we are cat

Re: [dpdk-dev] [PATCH 1/2] drivers/net/mlx5: fix representor interrupts handler

2020-11-04 Thread Thomas Monjalon
28/10/2020 10:59, Gregory Etelson: > Representor is a port in DPDK that is connected to a VF in such a way > that assuming there are no offload flows, each packet that is sent > from the VF will be received by the corresponding representor. While > each packet that is sent to a representor will be

Re: [dpdk-dev] [dpdk-stable] [PATCH v2] common/mlx5: split relaxed ordering set for read and write

2020-11-04 Thread Thomas Monjalon
03/11/2020 10:15, Matan Azrad: > From: Tal Shnaiderman > > The current DevX implementation of the relaxed ordering feature is enabling > > relaxed ordering usage only if both relaxed ordering read AND write are > > supported. In that case both relaxed ordering read and write are activated. > > >

Re: [dpdk-dev] [PATCH] test/mcslock: remove unneeded per-lcore copy

2020-11-04 Thread Honnappa Nagarahalli
> > Each core already comes with its local storage for mcslock (in its stack), > therefore there is no need to define an additional per-lcore mcslock. > > Fixes: 32dcb9fd2a22 ("test/mcslock: add MCS queued lock unit test") > > Signed-off-by: Olivier Matz > --- > app/test/test_mcslock.c | 16

Re: [dpdk-dev] [PATCH v8 1/2] app/testpmd: fix max rx packet length for VLAN packets

2020-11-04 Thread Thomas Monjalon
04/11/2020 18:07, Ferruh Yigit: > On 11/4/2020 4:51 PM, Thomas Monjalon wrote: > > 03/11/2020 14:29, Ferruh Yigit: > >> On 11/2/2020 11:48 AM, Ferruh Yigit wrote: > >>> On 11/2/2020 8:52 AM, SteveX Yang wrote: > When the max rx packet length is smaller than the sum of mtu size and > ether

Re: [dpdk-dev] [PATCH 2/2] eal: fix missing installation of ticketlock headers

2020-11-04 Thread David Christensen
On 11/4/20 9:03 AM, Olivier Matz wrote: Add missing arch-specific headers in meson.build. Fixes: ca49b92079df ("ticketlock: enable generic ticketlock on all arch") Cc: sta...@dpdk.org Signed-off-by: Olivier Matz --- lib/librte_eal/arm/include/meson.build | 1 + lib/librte_eal/ppc/include

Re: [dpdk-dev] [PATCH v5] mbuf: allow dynamic flags to be used by secondary process

2020-11-04 Thread David Marchand
On Wed, Nov 4, 2020 at 5:27 PM Olivier Matz wrote: > On Wed, Nov 04, 2020 at 08:20:00AM -0800, Stephen Hemminger wrote: > > The dynamic flag management is broken if rte_mbuf_dynflag_lookup() > > is done in a secondary process because the local pointer to > > the memzone is not ever initialized. >

Re: [dpdk-dev] [PATCH 2/2] eal: fix missing installation of ticketlock headers

2020-11-04 Thread David Marchand
On Wed, Nov 4, 2020 at 6:04 PM Olivier Matz wrote: > > Add missing arch-specific headers in meson.build. > > Fixes: ca49b92079df ("ticketlock: enable generic ticketlock on all arch") > Cc: sta...@dpdk.org > > Signed-off-by: Olivier Matz Issue can be seen with: diff --git a/examples/helloworld/m

Re: [dpdk-dev] [PATCH v4 00/58] net: txgbe PMD

2020-11-04 Thread Ferruh Yigit
On 11/3/2020 11:08 PM, Thomas Monjalon wrote: 27/10/2020 12:37, Ferruh Yigit: On 10/27/2020 2:39 AM, Jiawen Wu wrote: On Monday, October 26, 2020 10:56 PM, Ferruh Yigit wrote: Series applied to dpdk-next-net/main, thanks. 57/58 & 58/58 has been distributed to the relevant commits while mergin

[dpdk-dev] [PATCH] test/telemetry: fix typo at beginning of line

2020-11-04 Thread Ciara Power
A "+" symbol was incorrectly placed at the beginning of a line, this is now removed. Fixes: 52af6ccb2b39 ("telemetry: add utility functions for creating JSON") Cc: bruce.richard...@intel.com Cc: sta...@dpdk.org Signed-off-by: Ciara Power --- app/test/test_telemetry_json.c | 2 +- 1 file changed

Re: [dpdk-dev] [PATCH v8 1/2] app/testpmd: fix max rx packet length for VLAN packets

2020-11-04 Thread Ferruh Yigit
On 11/4/2020 4:51 PM, Thomas Monjalon wrote: 03/11/2020 14:29, Ferruh Yigit: On 11/2/2020 11:48 AM, Ferruh Yigit wrote: On 11/2/2020 8:52 AM, SteveX Yang wrote: When the max rx packet length is smaller than the sum of mtu size and ether overhead size, it should be enlarged, otherwise the VLAN

Re: [dpdk-dev] [PATCH v1] vhost: slot_idx needs to be initialised to fix gcc compile error

2020-11-04 Thread Maxime Coquelin
Hi Conor, On 11/4/20 6:02 PM, Conor Walsh wrote: > When DPDK is compiled with gcc < 9 with the optimization level set to 1 > gcc sees slot_idx as possibly being uninitialised. To correct this error > slot_idx has been initialised to 0. > > Signed-off-by: Conor Walsh > --- > lib/librte_vhost/vir

[dpdk-dev] [PATCH v1] app/test: zcd needs to be initialised to fix gcc compile error

2020-11-04 Thread Conor Walsh
When DPDK is compiled with gcc < 9 with the optimization level set to 1 gcc sees zcd in test_ring.h as possibly being uninitialised. To correct this error zcd has been initialised to {0} in test_ring_mt_peek_stress_zc.c. Signed-off-by: Conor Walsh --- app/test/test_ring_mt_peek_stress_zc.c | 4 +

[dpdk-dev] [PATCH] test/mcslock: remove unneeded per-lcore copy

2020-11-04 Thread Olivier Matz
Each core already comes with its local storage for mcslock (in its stack), therefore there is no need to define an additional per-lcore mcslock. Fixes: 32dcb9fd2a22 ("test/mcslock: add MCS queued lock unit test") Signed-off-by: Olivier Matz --- app/test/test_mcslock.c | 16 ++-- 1 f

[dpdk-dev] [PATCH 2/2] eal: fix missing installation of ticketlock headers

2020-11-04 Thread Olivier Matz
Add missing arch-specific headers in meson.build. Fixes: ca49b92079df ("ticketlock: enable generic ticketlock on all arch") Cc: sta...@dpdk.org Signed-off-by: Olivier Matz --- lib/librte_eal/arm/include/meson.build | 1 + lib/librte_eal/ppc/include/meson.build | 1 + lib/librte_eal/x86/include/

[dpdk-dev] [PATCH 1/2] eal: fix missing installation of mcslock headers

2020-11-04 Thread Olivier Matz
Add missing arch-specific headers in meson.build. Fixes: 2173fb61 ("mcslock: add MCS queued lock implementation") Cc: sta...@dpdk.org Signed-off-by: Olivier Matz --- lib/librte_eal/arm/include/meson.build | 1 + lib/librte_eal/ppc/include/meson.build | 1 + lib/librte_eal/x86/include/meson.

[dpdk-dev] [PATCH] net/bnxt: remove useless prefetches

2020-11-04 Thread Stephen Hemminger
Prefetching only helps performance if it is done several 100 instructions before the actual use. The purpose of the prefetch is to read ahead, it doesn't help if the next instruction will block. The code in the bnxt driver was doing these unnecessary prefetches. Signed-off-by: Stephen Hemminger

[dpdk-dev] [PATCH v1] vhost: slot_idx needs to be initialised to fix gcc compile error

2020-11-04 Thread Conor Walsh
When DPDK is compiled with gcc < 9 with the optimization level set to 1 gcc sees slot_idx as possibly being uninitialised. To correct this error slot_idx has been initialised to 0. Signed-off-by: Conor Walsh --- lib/librte_vhost/virtio_net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[dpdk-dev] [PATCH] net/ring: fix typo in log message

2020-11-04 Thread Olivier Matz
Add a missing space. Fixes: 869bf6d222bb ("net/ring: fix coding style") Signed-off-by: Olivier Matz --- drivers/net/ring/rte_eth_ring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ring/rte_eth_ring.c b/drivers/net/ring/rte_eth_ring.c index d6115abdd5..41402a5

[dpdk-dev] [PATCH] mbuf: fix reset on mbuf free

2020-11-04 Thread Olivier Matz
m->nb_seg must be reset on mbuf free whatever the value of m->next, because it can happen that m->nb_seg is != 1. For instance in this case: m1 = rte_pktmbuf_alloc(mp); rte_pktmbuf_append(m1, 500); m2 = rte_pktmbuf_alloc(mp); rte_pktmbuf_append(m2, 500); rte_pktmbuf_chain(m1, m2); m0 =

Re: [dpdk-dev] [PATCH v2 0/6] dpdk-devbind: python lint cleanups

2020-11-04 Thread Stephen Hemminger
On Tue, 3 Nov 2020 23:03:44 -0800 Stephen Hemminger wrote: > This addresses several warnings from python3 lint. > Split out from earlier patchset > > Stephen Hemminger (6): > dpdk-devbind: use argparse instead of getopt > dpdk-devbind: fix indentation > dpdk-devbind: fix python lint warni

Re: [dpdk-dev] [PATCH v8 1/2] app/testpmd: fix max rx packet length for VLAN packets

2020-11-04 Thread Thomas Monjalon
03/11/2020 14:29, Ferruh Yigit: > On 11/2/2020 11:48 AM, Ferruh Yigit wrote: > > On 11/2/2020 8:52 AM, SteveX Yang wrote: > >> When the max rx packet length is smaller than the sum of mtu size and > >> ether overhead size, it should be enlarged, otherwise the VLAN packets > >> will be dropped. > >>

Re: [dpdk-dev] [PATCH v4 4/4] test/lpm: avoid code duplication in rcu qsbr perf

2020-11-04 Thread Dharmik Thakkar
> On Nov 4, 2020, at 9:46 AM, Medvedkin, Vladimir > wrote: > > Hi Thakkar, > > On 03/11/2020 22:23, Dharmik Thakkar wrote: >> Avoid code duplication by combining single and multi threaded tests >> Also, enable support for more than 2 writers >> Signed-off-by: Dharmik Thakkar >> Reviewed-by:

Re: [dpdk-dev] [PATCH v3] usertools: fix pmdinfo parsing

2020-11-04 Thread David Marchand
On Wed, Nov 4, 2020 at 5:36 PM Bruce Richardson wrote: > > On Wed, Nov 04, 2020 at 04:57:21PM +0100, David Marchand wrote: > > This script inspects an ELF file (binary or shared library) and its > > linked dependencies by following DT_NEEDED tags. > > So far a simple librte_pmd prefix was used as

Re: [dpdk-dev] [PATCH 1/3] common/sfc_efx: introduce 128-bit unsigned integer compat

2020-11-04 Thread Honnappa Nagarahalli
> > 22/10/2020 14:24, Andrew Rybchenko: > > Intel SSE has __m128i, but ARMv8 has __uint128_t. So, add compat > > efsys_uint128_t to be used in driver source and have either __u128i or > > __uint128_t behind. > > Could we do something in EAL for this common need? rte_int128_t is defined in EAL.

Re: [dpdk-dev] [PATCH v3] usertools: fix pmdinfo parsing

2020-11-04 Thread Bruce Richardson
On Wed, Nov 04, 2020 at 04:57:21PM +0100, David Marchand wrote: > This script inspects an ELF file (binary or shared library) and its > linked dependencies by following DT_NEEDED tags. > So far a simple librte_pmd prefix was used as a filter to only parse > DPDK drivers dependencies. > While the re

Re: [dpdk-dev] [PATCH 1/3] common/sfc_efx: introduce 128-bit unsigned integer compat

2020-11-04 Thread Thomas Monjalon
22/10/2020 14:24, Andrew Rybchenko: > Intel SSE has __m128i, but ARMv8 has __uint128_t. So, add compat > efsys_uint128_t to be used in driver source and have either __u128i > or __uint128_t behind. Could we do something in EAL for this common need?

Re: [dpdk-dev] [PATCH v5] mbuf: allow dynamic flags to be used by secondary process

2020-11-04 Thread Olivier Matz
On Wed, Nov 04, 2020 at 08:20:00AM -0800, Stephen Hemminger wrote: > The dynamic flag management is broken if rte_mbuf_dynflag_lookup() > is done in a secondary process because the local pointer to > the memzone is not ever initialized. > > Fix it by using the same checks as dynfield_register(). >

Re: [dpdk-dev] [PATCH v2] cpu_layout: refactor to meet python standards

2020-11-04 Thread Stephen Hemminger
On Wed, 4 Nov 2020 09:21:05 + Bruce Richardson wrote: > On Tue, Nov 03, 2020 at 10:53:04PM -0800, Stephen Hemminger wrote: > > Rearrange code to make it pass python lint totally clean! This includes > > add a main function, docstring, and some variable name changes. > > > > Signed-off-by: S

[dpdk-dev] [PATCH v5] mbuf: allow dynamic flags to be used by secondary process

2020-11-04 Thread Stephen Hemminger
The dynamic flag management is broken if rte_mbuf_dynflag_lookup() is done in a secondary process because the local pointer to the memzone is not ever initialized. Fix it by using the same checks as dynfield_register(). I.e if shared memory zone has not been looked up already, then discover it. F

Re: [dpdk-dev] Licensing patch

2020-11-04 Thread Thomas Monjalon
04/11/2020 16:52, Hemant Agrawal: > Hi Thomas, >Can you apply the following trivial patch to 20.11? > > https://patches.dpdk.org/patch/74896/ Yes, added in my list for -rc2.

[dpdk-dev] [PATCH v3] usertools: fix pmdinfo parsing

2020-11-04 Thread David Marchand
This script inspects an ELF file (binary or shared library) and its linked dependencies by following DT_NEEDED tags. So far a simple librte_pmd prefix was used as a filter to only parse DPDK drivers dependencies. While the reason is not clear from the commitlog of the patch that introduced this fil

[dpdk-dev] Licensing patch

2020-11-04 Thread Hemant Agrawal
Hi Thomas, Can you apply the following trivial patch to 20.11? https://patches.dpdk.org/patch/74896/ Regards, Hemant

Re: [dpdk-dev] [PATCH v4 4/4] test/lpm: avoid code duplication in rcu qsbr perf

2020-11-04 Thread Medvedkin, Vladimir
Hi Thakkar, On 03/11/2020 22:23, Dharmik Thakkar wrote: Avoid code duplication by combining single and multi threaded tests Also, enable support for more than 2 writers Signed-off-by: Dharmik Thakkar Reviewed-by: Ruifeng Wang --- app/test/test_lpm_perf.c | 359 +

Re: [dpdk-dev] [PATCH 15/15] mbuf: move pool pointer in hotterfirst half

2020-11-04 Thread Olivier Matz
Hi, On Tue, Nov 03, 2020 at 04:03:46PM +0100, Morten Brørup wrote: > > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Slava Ovsiienko > > Sent: Tuesday, November 3, 2020 3:03 PM > > > > Hi, Morten > > > > > From: Morten Brørup > > > Sent: Tuesday, November 3, 2020 14:10 > > > > > > > From

[dpdk-dev] [PATCH] net/mlx5: fix use of local array for global error

2020-11-04 Thread Dekel Peled
Recent patch uses a local string array as input for function rte_flow_error_set(). This stack memory may be later used by other code sections, overwriting the desired error string. This patch impelemnets an error string for the specific case requested, of ICMP item not supported in Verbs flow engi

Re: [dpdk-dev] [PATCH v1 0/2] support two or more aeqs for chip

2020-11-04 Thread Ferruh Yigit
On 11/4/2020 2:03 AM, Guoyang Zhou wrote: This patch fixes can support two or more aeqs from chip config file and also support four aeqs before, and fix log info for pf command channel when something is error. -- v1: - support two or more aeqs for chip - fix log info for pf command channel

Re: [dpdk-dev] [dpdk-stable] [PATCH v4] ethdev: fix data type for port id

2020-11-04 Thread Ferruh Yigit
On 11/4/2020 11:46 AM, Ferruh Yigit wrote: On 11/4/2020 3:26 AM, Ajit Khaparde wrote: On Tue, Nov 3, 2020 at 6:58 PM wangyunjian wrote: From: Yunjian Wang The ethdev port id is 16 bits now. This patch fixes the data type of the variable for 'pid', which changing from uint32_t to uint16_t.

Re: [dpdk-dev] [PATCH] app/testpmd: support age shared action context

2020-11-04 Thread Ferruh Yigit
On 11/4/2020 1:28 PM, Matan Azrad wrote: From: Ferruh Yigit On 11/3/2020 7:33 AM, Matan Azrad wrote: Hi Ferruh Thank you for the fast review. Please see inline From: Ferruh Yigit On 11/1/2020 5:48 PM, Matan Azrad wrote: When an age action becomes aged-out the rte_flow_get_aged_flows sho

[dpdk-dev] [PATCH v4] net/mlx5: fix incorrect group value of sample suffix flow

2020-11-04 Thread Jiawei Wang
mlx5 PMD splited the sampling flow into prefix flow and suffix flow. On the sample action translation function, the scaled group value of suffix flow be attached into sample object and saved into sample resource. mlx5 PMD fetched the group value from the sample resource to create the suffix flow.

Re: [dpdk-dev] [PATCH] app/testpmd: support age shared action context

2020-11-04 Thread Matan Azrad
From: Ferruh Yigit > On 11/3/2020 7:33 AM, Matan Azrad wrote: > > Hi Ferruh > > > > Thank you for the fast review. > > Please see inline > > > > From: Ferruh Yigit > >> On 11/1/2020 5:48 PM, Matan Azrad wrote: > >>> When an age action becomes aged-out the rte_flow_get_aged_flows > >>> should ret

[dpdk-dev] [RFC v3 1/2] ethdev: add item/action for SFT

2020-11-04 Thread Ori Kam
From: Andrey Vesnovaty Attach SFT flow context to packet with SFT action. Match on SFT flow context (attached to packet), with SFT item. Signed-off-by: Andrey Vesnovaty --- lib/librte_ethdev/rte_flow.h | 75 1 file changed, 75 insertions(+) diff --git a/li

[dpdk-dev] [RFC v3 0/2] introduce stateful flow table

2020-11-04 Thread Ori Kam
The RFC introduces Stateful Flow Table (SFT) API and changes needed in both ethdev an RTE flow to support SFT functionality. SFT library provides a framework for applications that need to maintain context across different packets of the connection. The goals of the SFT library: - Accelerate flow

[dpdk-dev] [RFC v3 2/2] ethdev: introduce sft lib

2020-11-04 Thread Ori Kam
Defines RTE SFT (Stateful Flow Table) APIs for Stateful Flow Table library. Currently, DPDK enables only stateless offloading, using the rte_flow. stateless means that each packet is handled without any knowledge of previous or future packets. As we look at the industry, there is much demand to s

[dpdk-dev] [PATCH v2 2/2] ethdev: introduce sft lib

2020-11-04 Thread Ori Kam
Defines RTE SFT (Stateful Flow Table) APIs for Stateful Flow Table library. Currently, DPDK enables only stateless offloading, using the rte_flow. stateless means that each packet is handled without any knowledge of privious or future packets. As we look at the industry, there is much demand to s

[dpdk-dev] [PATCH v2 0/2] introduce stateful flow table

2020-11-04 Thread Ori Kam
The RFC introduces Stateful Flow Table (SFT) API and changes needed in both ethdev an RTE flow to support SFT functionality. SFT library provides a framework for applications that need to maintain context across different packets of the connection. The goals of the SFT library: - Accelerate flow

[dpdk-dev] [PATCH v2 1/2] ethdev: add item/action for SFT

2020-11-04 Thread Ori Kam
From: Andrey Vesnovaty Attach SFT flow context to packet with SFT action. Match on SFT flow context (attached to packet), with SFT item. Signed-off-by: Andrey Vesnovaty --- lib/librte_ethdev/rte_flow.h | 75 1 file changed, 75 insertions(+) diff --git a/li

Re: [dpdk-dev] [PATCH] app/testpmd: support age shared action context

2020-11-04 Thread Ferruh Yigit
On 11/3/2020 7:33 AM, Matan Azrad wrote: Hi Ferruh Thank you for the fast review. Please see inline From: Ferruh Yigit On 11/1/2020 5:48 PM, Matan Azrad wrote: When an age action becomes aged-out the rte_flow_get_aged_flows should return the action context supplied by the configuration struct

Re: [dpdk-dev] [PATCH v4] ethdev: fix data type for port id

2020-11-04 Thread Ferruh Yigit
On 11/4/2020 3:26 AM, Ajit Khaparde wrote: On Tue, Nov 3, 2020 at 6:58 PM wangyunjian wrote: From: Yunjian Wang The ethdev port id is 16 bits now. This patch fixes the data type of the variable for 'pid', which changing from uint32_t to uint16_t. RTE_MAX_ETHPORTS is the maximum number of po

Re: [dpdk-dev] [PATCH] app/flow-perf: configurable rule batches

2020-11-04 Thread Wisam Monther
I think Thomas can add it if he want to merge it in this version. Moreover I think you need to keep the ack between versions and the person who acked before should comment if newer version not ok with him, otherwise he is ok with it. “Using git commit —amend”. Thomas, correct me if I’m wrong, A

Re: [dpdk-dev] [PATCH v2] ethdev: fix check of rx configure

2020-11-04 Thread Ferruh Yigit
On 11/4/2020 11:11 AM, Ferruh Yigit wrote: On 11/4/2020 1:24 AM, wangyunjian wrote: From: Yunjian Wang Coverity flags that 'rx_conf' variable is used before it's checked for NULL. This patch fixes this issue. Coverity issue: 363570 Fixes: 4ff702b5dfa9 ("ethdev: introduce Rx buffer split") Si

  1   2   >