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

Re: [dpdk-dev] [PATCH 2/2] lib/ethdev: fix memory ordering for call back functions

2020-10-08 Thread Phil Yang
> -Original Message- > From: Honnappa Nagarahalli > Sent: Friday, October 2, 2020 8:07 AM > To: dev@dpdk.org; Honnappa Nagarahalli > ; Phil Yang ; > tho...@monjalon.net; arybche...@solarflare.com; ferruh.yi...@intel.com > Cc: abhinandan.guj...@intel.com; nd ; > br

Re: [dpdk-dev] [PATCH] maintainers: update for MCS lock

2020-10-08 Thread Phil Yang
Honnappa Nagarahalli wrote: > Subject: [PATCH] maintainers: update for MCS lock > > Updating MAINTAINERS file for MCS lock. > > Signed-off-by: Honnappa Nagarahalli Thank you, Honnappa. Acked-by: Phil Yang > --- > Phil Yang is leaving Arm. I worked with Phil on th

Re: [dpdk-dev] [PATCH v4] app/testpmd: fix the default RSS key configuration

2020-09-29 Thread Phil Yang
tpmd dummy RSS key as the default > key. > > Fixes: ac8d22de2394 ("ethdev: flatten RSS configuration in flow API") > Cc: sta...@dpdk.org > > Signed-off-by: Lijun Ou It looks good to me. Thanks. Reviewed-by: Phil Yang > --- > V3->V4: > -fix checkpatch warning

Re: [dpdk-dev] [PATCH v4] net/mlx5: relaxed ordering for multi-packet RQ buffer refcnt

2020-09-29 Thread Phil Yang
Hi Raslan, It seems that there are no more comments for this patch. So shall we proceed further? Thanks, Phil Yang > -Original Message- > From: Alexander Kozyrev > Sent: Thursday, September 10, 2020 9:37 AM > To: Honnappa Nagarahalli ; Phil Yang > ; akozy...@mel

Re: [dpdk-dev] [PATCH 3/4] app/testpmd: fix build with gcc 11

2020-09-24 Thread Phil Yang
^ > > Signed-off-by: Ferruh Yigit Verified with gcc version 11.0.0 20200920 (experimental). Reviewed-by: Phil Yang > --- > app/test-pmd/config.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/app/test-pmd/co

Re: [dpdk-dev] [PATCH] [PATCH V2] testpmd: add eeprom/module eeprom display

2020-09-24 Thread Phil Yang
dev On Behalf Of Phil Yang : writes: > > Subject: [dpdk-dev] [PATCH] [PATCH V2] testpmd: add eeprom/module > > eeprom display > > > > Add module EEPROM/EEPROM dump command > >"show port (module_eeprom|eeprom)" > > Commands will dump the c

[dpdk-dev] [PATCH v3 4/4] ethdev: use C11 atomic builtins for link status update

2020-09-23 Thread Phil Yang
Since rte_atomicXX APIs are not allowed to be used, use C11 atomic builtins for link status update. Signed-off-by: Phil Yang Reviewed-by: Ruifeng Wang Reviewed-by: Honnappa Nagarahalli Acked-by: Andrew Rybchenko --- lib/librte_ethdev/rte_ethdev_driver.h | 19 +-- 1 file

[dpdk-dev] [PATCH v3 2/4] bbdev: use C11 atomic builtins for device processing counter

2020-09-23 Thread Phil Yang
Since rte_atomicXX APIs are not allowed to be used, use C11 atomic builtins for device processing counter. Signed-off-by: Phil Yang Reviewed-by: Ruifeng Wang Reviewed-by: Honnappa Nagarahalli --- lib/librte_bbdev/rte_bbdev.c | 5 +++-- lib/librte_bbdev/rte_bbdev.h | 4 +--- 2 files changed, 4

[dpdk-dev] [PATCH v3 0/4] use C11 atomic builtins for libs

2020-09-23 Thread Phil Yang
: remove unnecessary rte_atomic.h headers. (David) v2: Fix Clang int-conversion warning. v1: Initial version. Phil Yang (4): eal: use C11 atomic builtins for already initialized check bbdev: use C11 atomic builtins for device processing counter power: use C11 atomic builtins for power in use

[dpdk-dev] [PATCH v3 1/4] eal: use C11 atomic builtins for already initialized check

2020-09-23 Thread Phil Yang
Since rte_atomicXX APIs are not allowed to be used, use C11 builtins to check if EAL is already initialized. Signed-off-by: Phil Yang Reviewed-by: Honnappa Nagarahalli Reviewed-by: Ruifeng Wang --- lib/librte_eal/freebsd/eal.c | 19 ++- lib/librte_eal/linux/eal.c | 21

[dpdk-dev] [PATCH v3 3/4] power: use C11 atomic builtins for power in use state update

2020-09-23 Thread Phil Yang
Since rte_atomicXX APIs are not allowed to be used, use C11 atomic builtins for power in use state update. Signed-off-by: Phil Yang Reviewed-by: Ruifeng Wang Reviewed-by: Honnappa Nagarahalli --- lib/librte_power/power_acpi_cpufreq.c | 45 + lib/librte_power

Re: [dpdk-dev] [PATCH v2 0/4] use C11 atomic builtins for libs

2020-09-23 Thread Phil Yang
David Marchand writes: > Subject: Re: [PATCH v2 0/4] use C11 atomic builtins for libs > > On Wed, Sep 16, 2020 at 10:24 AM Phil Yang wrote: > > > > Since rte_atomicXX APIs are not allowed to be used[1][2], use C11 atomic > > builtins instead in eal, bbdev, power,

Re: [dpdk-dev] [PATCH v2 1/4] eal: use C11 atomic builtins for already initialized check

2020-09-23 Thread Phil Yang
David Marchand writes: > Subject: Re: [PATCH v2 1/4] eal: use C11 atomic builtins for already > initialized > check > > On Wed, Sep 16, 2020 at 10:24 AM Phil Yang wrote: > > > > Since rte_atomicXX APIs are not allowed to be used, use C11 builtins to > > ch

[dpdk-dev] [PATCH v2 2/2] devtools: use absolute path for the build directory

2020-09-23 Thread Phil Yang
The 'ninja install' needs absolute paths. Use the absolute path for the default build_dir to avoid repeatedly calling of readlink. Suggested-by: Juraj Linkeš Signed-off-by: Phil Yang --- devtools/test-meson-builds.sh | 8 1 file changed, 4 insertions(+), 4 deletions(-) di

[dpdk-dev] [PATCH v2 1/2] devtools: fix ninja install breakage under relative path

2020-09-23 Thread Phil Yang
As the DESTDIR variable use as ninja's destination directory when invoking ninja install. If the DESTDIR is not an absolute path, ninja complains. Fixes: 777014e56d07 ("devtools: add ABI checks") Cc: sta...@dpdk.org Signed-off-by: Phil Yang --- v2: Use readlink to ensure consiste

Re: [dpdk-dev] [PATCH v2 0/2] remove RTE CIO barriers

2020-09-23 Thread Phil Yang
David Marchand writes: > Subject: Re: [dpdk-dev] [PATCH v2 0/2] remove RTE CIO barriers > > On Thu, Sep 17, 2020 at 4:23 AM Phil Yang wrote: > > > If there will a v3, can it be possible to have it after next-net pulled > > > to main repo? Which I am hopping one for

[dpdk-dev] [PATCH v3] eal: remove deprecated coherent IO memory barriers

2020-09-23 Thread Phil Yang
Since the 20.08 release deprecated rte_cio_*mb APIs because these APIs provide the same functionality as rte_io_*mb APIs on all platforms, so remove them and use rte_io_*mb instead. Signed-off-by: Phil Yang Signed-off-by: Joyce Kong Reviewed-by: Ruifeng Wang Reviewed-by: Honnappa Nagarahalli

[dpdk-dev] [PATCH v3] remove RTE CIO barriers

2020-09-23 Thread Phil Yang
barriers behave the same as the other arches. (David) v2: Update 20.11 release note by adding these API change announcement. (Honnappa) v1: Initial version. Phil Yang (1): eal: remove deprecated coherent IO memory barriers doc/guides/rel_notes/deprecation.rst | 6 - doc/guides

Re: [dpdk-dev] [PATCH v3] app/testpmd: fix the default RSS key configuration

2020-09-22 Thread Phil Yang
dev On Behalf Of Lijun Ou writes: > >> Subject: [dpdk-dev] [PATCH v3] app/testpmd: fix the default RSS key > >> configuration > > > > Hi Lijun, > > > > Please fix the coding style issues. > > > > "Must be a reply to the first patch (--in-reply-to)." > > > > > >> > >> When a user runs a flow crea

Re: [dpdk-dev] [PATCH v3] app/testpmd: fix the default RSS key configuration

2020-09-22 Thread Phil Yang
> -Original Message- > From: dev On Behalf Of Lijun Ou > Sent: Thursday, September 10, 2020 9:51 AM > To: wenzhuo...@intel.com; beilei.x...@intel.com; > adrien.mazarg...@6wind.com; ferruh.yi...@intel.com > Cc: dev@dpdk.org; linux...@huawei.com > Subject: [dpdk-dev] [PATCH v3] app/testpmd:

Re: [dpdk-dev] [PATCH] [PATCH V2] testpmd: add eeprom/module eeprom display

2020-09-22 Thread Phil Yang
> -Original Message- > From: dev On Behalf Of David Liu > Sent: Wednesday, September 16, 2020 1:28 AM > To: ferruh.yi...@intel.com > Cc: dev@dpdk.org; lylav...@iol.unh.edu; tho...@monjalon.net; David Liu > > Subject: [dpdk-dev] [PATCH] [PATCH V2] testpmd: add eeprom/module > eeprom displa

Re: [dpdk-dev] [PATCH] net/memif: relax barrier for zero copy path

2020-09-21 Thread Phil Yang
Jakub Grajciar -X (jgrajcia - PANTHEON TECH SRO at Cisco) writes: > > Subject: RE: [PATCH] net/memif: relax barrier for zero copy path > > > > Hi Jakub, > > I am trying to review this patch. I am having difficulty in > understanding > > the implementation for the queue/ring, appreciate if yo

Re: [dpdk-dev] [PATCH] devtools: fix ninja break under default DESTDIR path

2020-09-20 Thread Phil Yang
; should be an absolute path, but the default 'abiref' value is a relative path. So should we keep them align? > > > Fixes: 777014e56d07 ("devtools: add ABI checks") > > > > Signed-off-by: Phil Yang > > --- > > devtools/test-meson-builds.sh | 2 +-

Re: [dpdk-dev] [PATCH v2 0/2] remove RTE CIO barriers

2020-09-16 Thread Phil Yang
Ferruh Yigit wrote: > >> > >> Since rte_cio_*mb APIs have been deprecated[1], remove them and use > >> rte_io_*mb APIs instead. > >> > >> [1] > http://code.dpdk.org/dpdk/latest/source/doc/guides/rel_notes/deprecatio > n.rst#L100 > >> > >> v2: > >> Update 20.11 release note by adding these API cha

[dpdk-dev] [PATCH v2 4/4] ethdev: use C11 atomic builtins for link status update

2020-09-16 Thread Phil Yang
Since rte_atomicXX APIs are not allowed to be used, use C11 atomic builtins for link status update. Signed-off-by: Phil Yang Reviewed-by: Ruifeng Wang Reviewed-by: Honnappa Nagarahalli --- lib/librte_ethdev/rte_ethdev_driver.h | 19 +-- 1 file changed, 5 insertions(+), 14

[dpdk-dev] [PATCH v2 1/4] eal: use C11 atomic builtins for already initialized check

2020-09-16 Thread Phil Yang
Since rte_atomicXX APIs are not allowed to be used, use C11 builtins to check if EAL is already initialized. Signed-off-by: Phil Yang Reviewed-by: Honnappa Nagarahalli Reviewed-by: Ruifeng Wang --- lib/librte_eal/freebsd/eal.c | 18 ++ lib/librte_eal/linux/eal.c | 20

[dpdk-dev] [PATCH v2 0/4] use C11 atomic builtins for libs

2020-09-16 Thread Phil Yang
Clang int-conversion warning. v1: Initial version. Phil Yang (4): eal: use C11 atomic builtins for already initialized check bbdev: use C11 atomic builtins for device processing counter power: use C11 atomic builtins for power in use state update ethdev: use C11 atomic builtins for link

[dpdk-dev] [PATCH v2 2/4] bbdev: use C11 atomic builtins for device processing counter

2020-09-16 Thread Phil Yang
Since rte_atomicXX APIs are not allowed to be used, use C11 atomic builtins for device processing counter. Signed-off-by: Phil Yang Reviewed-by: Ruifeng Wang Reviewed-by: Honnappa Nagarahalli --- lib/librte_bbdev/rte_bbdev.c | 5 +++-- lib/librte_bbdev/rte_bbdev.h | 4 +--- 2 files changed, 4

[dpdk-dev] [PATCH v2 3/4] power: use C11 atomic builtins for power in use state update

2020-09-16 Thread Phil Yang
Since rte_atomicXX APIs are not allowed to be used, use C11 atomic builtins for power in use state update. Signed-off-by: Phil Yang Reviewed-by: Ruifeng Wang Reviewed-by: Honnappa Nagarahalli --- lib/librte_power/power_acpi_cpufreq.c | 45 + lib/librte_power

Re: [dpdk-dev] [PATCH 0/4] use C11 atomic builtins for libs

2020-09-16 Thread Phil Yang
David Marchand writes: > Subject: Re: [dpdk-dev] [PATCH 0/4] use C11 atomic builtins for libs > > On Fri, Sep 11, 2020 at 5:29 AM Phil Yang wrote: > > > > Since rte_atomicXX APIs are not allowed to be used[1][2], use C11 atomic > > builtins instead in eal, bb

Re: [dpdk-dev] [PATCH v3] mbuf: remove atomic reference counters

2020-09-14 Thread Phil Yang
Thomas Monjalon writes: > > > > Remove the deprecated refcnt_atomic union fields in > > rte_mbuf and rte_mbuf_ext_shared_info structures. > > > > Signed-off-by: Phil Yang > > Reviewed-by: Ruifeng wang > > Signed-off-by: Thomas Monjalon > > ---

Re: [dpdk-dev] [PATCH 0/2] remove mbuf deprecated filed

2020-09-11 Thread Phil Yang
Andrew Rybchenko writes: > On 9/11/20 10:35 AM, Phil Yang wrote: > > Remove the deprecated[1] refcnt_atomic member in structures rte_mbuf > and > > rte_mbuf_ext_shared_info. > > > > [1] > http://code.dpdk.org/dpdk/latest/source/doc/guides/rel_notes/deprecat

[dpdk-dev] [PATCH 0/2] remove mbuf deprecated filed

2020-09-11 Thread Phil Yang
Remove the deprecated[1] refcnt_atomic member in structures rte_mbuf and rte_mbuf_ext_shared_info. [1] http://code.dpdk.org/dpdk/latest/source/doc/guides/rel_notes/deprecation.rst#L161 Phil Yang (2): mbuf: remove generic mbuf atomically accessed refcnt mbuf: remove external buffer

[dpdk-dev] [PATCH 1/2] mbuf: remove generic mbuf atomically accessed refcnt

2020-09-11 Thread Phil Yang
Remove the deprecated refcnt_atomic union fields in rte_mbuf structure. Signed-off-by: Phil Yang Reviewed-by: Ruifeng Wang --- doc/guides/rel_notes/release_20_11.rst | 2 ++ lib/librte_mbuf/rte_mbuf_core.h| 7 +-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/doc

[dpdk-dev] [PATCH 2/2] mbuf: remove external buffer atomically accessed refcnt

2020-09-11 Thread Phil Yang
Remove the deprecated refcnt_atomic union fields in rte_mbuf_ext_shared_info structure. Signed-off-by: Phil Yang Reviewed-by: Ruifeng wang --- doc/guides/rel_notes/release_20_11.rst | 4 ++-- lib/librte_mbuf/rte_mbuf_core.h| 6 +- 2 files changed, 3 insertions(+), 7 deletions

[dpdk-dev] [PATCH] net/memif: relax barrier for zero copy path

2020-09-10 Thread Phil Yang
ormance on throughput. Signed-off-by: Phil Yang Reviewed-by: Ruifeng Wang --- drivers/net/memif/rte_eth_memif.c | 35 +-- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/drivers/net/memif/rte_eth_memif.c b/drivers/net/memif/rte_eth_memif.c ind

[dpdk-dev] [PATCH v2 0/2] remove RTE CIO barriers

2020-09-10 Thread Phil Yang
Since rte_cio_*mb APIs have been deprecated[1], remove them and use rte_io_*mb APIs instead. [1] http://code.dpdk.org/dpdk/latest/source/doc/guides/rel_notes/deprecation.rst#L100 v2: Update 20.11 release note by adding these API change announcement. (Honnappa) v1: Initial version. Phil Yang

[dpdk-dev] [PATCH v2 1/2] drivers: replace RTE CIO barriers with RTE IO barriers

2020-09-10 Thread Phil Yang
Replace the deprecated rte_cio_[rw]mb barriers with rte_io_[rw]mb barriers. Signed-off-by: Phil Yang Signed-off-by: Joyce Kong Reviewed-by: Ruifeng Wang --- drivers/common/mlx5/mlx5_common.h | 2 +- drivers/crypto/octeontx2/otx2_cryptodev_ops.c | 2 +- drivers/crypto/octeontx2

[dpdk-dev] [PATCH v2 2/2] eal: remove RTE CIO barriers

2020-09-10 Thread Phil Yang
Remove the deprecated rte_cio_[rw]mb APIs. Signed-off-by: Phil Yang Reviewed-by: Ruifeng Wang --- doc/guides/rel_notes/release_20_11.rst | 3 +++ lib/librte_eal/arm/include/rte_atomic_32.h | 4 --- lib/librte_eal/arm/include/rte_atomic_64.h | 4 --- lib/librte_eal/include/generic

[dpdk-dev] [PATCH 0/4] use C11 atomic builtins for libs

2020-09-10 Thread Phil Yang
Since rte_atomicXX APIs are not allowed to be used[1][2], use C11 atomic builtins instead in eal, bbdev, power, and ethdev libs. [1] http://code.dpdk.org/dpdk/latest/source/doc/guides/rel_notes/deprecation.rst#L87 [2] http://code.dpdk.org/dpdk/latest/source/devtools/checkpatches.sh#L80 Phil

[dpdk-dev] [PATCH 1/4] eal: use C11 atomic builtins for already initialized check

2020-09-10 Thread Phil Yang
Since rte_atomicXX APIs are not allowed to be used, use C11 builtins to check if EAL is already initialized. Signed-off-by: Phil Yang Reviewed-by: Honnappa Nagarahalli Reviewed-by: Ruifeng Wang --- lib/librte_eal/freebsd/eal.c | 18 ++ lib/librte_eal/linux/eal.c | 20

[dpdk-dev] [PATCH 2/4] bbdev: use C11 atomic builtins for device processing counter

2020-09-10 Thread Phil Yang
Since rte_atomicXX APIs are not allowed to be used, use C11 atomic builtins for device processing counter. Signed-off-by: Phil Yang Reviewed-by: Ruifeng Wang Reviewed-by: Honnappa Nagarahalli --- lib/librte_bbdev/rte_bbdev.c | 5 +++-- lib/librte_bbdev/rte_bbdev.h | 4 +--- 2 files changed, 4

[dpdk-dev] [PATCH 3/4] power: use C11 atomic builtins for power in use state update

2020-09-10 Thread Phil Yang
Since rte_atomicXX APIs are not allowed to be used, use C11 atomic builtins for power in use state update. Signed-off-by: Phil Yang Reviewed-by: Ruifeng Wang Reviewed-by: Honnappa Nagarahalli --- lib/librte_power/power_acpi_cpufreq.c | 45 + lib/librte_power

[dpdk-dev] [PATCH 4/4] ethdev: use C11 atomic builtins for link status update

2020-09-10 Thread Phil Yang
Since rte_atomicXX APIs are not allowed to be used, use C11 atomic builtins for link status update. Signed-off-by: Phil Yang Reviewed-by: Ruifeng Wang Reviewed-by: Honnappa Nagarahalli --- lib/librte_ethdev/rte_ethdev_driver.h | 19 +-- 1 file changed, 5 insertions(+), 14

Re: [dpdk-dev] [PATCH v3] net/mlx5: relaxed ordering for multi-packet RQ buffer refcnt

2020-09-02 Thread Phil Yang
> > > > > > > > > > > > > > > > @@ -1790,9 +1792,9 @@ mlx5_rx_burst_mprq(void > > *dpdk_rxq, > > > > > > struct > > > > > > > > > > rte_mbuf **pkts, uint16_t pkts_n) void *buf_addr; > > > > > > > > > > > > > > > > > > > > /* Increment the refcnt of the whole chunk. */ > > > > > > > > > > -rte_at

[dpdk-dev] [PATCH v4] net/mlx5: relaxed ordering for multi-packet RQ buffer refcnt

2020-09-02 Thread Phil Yang
Use c11 atomics with RELAXED ordering instead of the rte_atomic ops which enforce unnecessary barriers on aarch64. Signed-off-by: Phil Yang --- v4: Remove the unnecessary ACQUIRE barrier in rx burst path. (Honnappa) v3: Split from the patchset: http://patchwork.dpdk.org/cover/68159/ drivers

Re: [dpdk-dev] [PATCH] librte_eal: fix mcslock hang on weak memory

2020-08-28 Thread Phil Yang
operation is atomic. Thanks, Phil Yang > -Original Message- > From: Diogo Behrens > Sent: Thursday, August 27, 2020 4:57 PM > To: Phil Yang > Cc: dev@dpdk.org; nd ; Honnappa Nagarahalli > > Subject: RE: [PATCH] librte_eal: fix mcslock hang on weak memory >

Re: [dpdk-dev] [PATCH] librte_eal: fix mcslock hang on weak memory

2020-08-26 Thread Phil Yang
Diogo Behrens writes: > Subject: [PATCH] librte_eal: fix mcslock hang on weak memory > > The initialization me->locked=1 in lock() must happen before > next->locked=0 in unlock(), otherwise a thread may hang forever, > waiting me->locked become 0. On weak memory systems (such as ARMv

Re: [dpdk-dev] [PATCH v8 5/5] doc: add aarch32 build guidance

2020-08-25 Thread Phil Yang
Aaron Conole writes: > Subject: Re: [PATCH v8 5/5] doc: add aarch32 build guidance > > Juraj Linkeš writes: > > > From: Phil Yang > > > > Add cross-compiling guidance for 32-bit aarch32 DPDK on aarch64 host. > > > > Signed-off

Re: [dpdk-dev] [PATCH 1/2] drivers: replace RTE CIO barriers with RTE IO barriers

2020-08-25 Thread Phil Yang
Hi Honnappa, > Hi Phil, > Can you please add a statement in release notes indicating that these > APIs are removed. Sure. I will add it to the 2/2 patch in the new version. Thanks, Phil > > Thank you, > Honnappa > > > -Original Message- > >

[dpdk-dev] [PATCH 2/2] eal: remove RTE CIO barriers

2020-08-24 Thread Phil Yang
Remove the deprecated rte_cio_[rw]mb APIs. Signed-off-by: Phil Yang Reviewed-by: Ruifeng Wang --- lib/librte_eal/arm/include/rte_atomic_32.h | 4 --- lib/librte_eal/arm/include/rte_atomic_64.h | 4 --- lib/librte_eal/include/generic/rte_atomic.h | 39 - lib

[dpdk-dev] [PATCH 1/2] drivers: replace RTE CIO barriers with RTE IO barriers

2020-08-24 Thread Phil Yang
Replace the deprecated rte_cio_[rw]mb barriers with rte_io_[rw]mb barriers. Signed-off-by: Phil Yang Signed-off-by: Joyce Kong --- drivers/common/mlx5/mlx5_common.h | 2 +- drivers/crypto/octeontx2/otx2_cryptodev_ops.c | 2 +- drivers/crypto/octeontx2/otx2_cryptodev_sec.c | 4

Re: [dpdk-dev] [PATCH] app/testpmd: fix the default RSS key configuration

2020-08-04 Thread Phil Yang
> -Original Message- > From: oulijun > Sent: Tuesday, August 4, 2020 9:29 AM > To: Phil Yang ; wenzhuo...@intel.com; > beilei.x...@intel.com; bernard.iremon...@intel.com; > adrien.mazarg...@6wind.com; ferruh.yi...@intel.com > Cc: dev@dpdk.org; linux...@huawei.com; nd

Re: [dpdk-dev] [PATCH v2] app/testpmd: fix txonly mode timestamp intitialization

2020-07-29 Thread Phil Yang
> -Original Message- > From: Viacheslav Ovsiienko > Sent: Wednesday, July 29, 2020 8:30 PM > To: dev@dpdk.org > Cc: ma...@mellanox.com; rasl...@mellanox.com; tho...@monjalon.net; > ferruh.yi...@intel.com; Phil Yang > Subject: [PATCH v2] app/testpmd: fix

Re: [dpdk-dev] [PATCH] app/testpmd: fix txonly mode timestamp intitialization

2020-07-29 Thread Phil Yang
Hi Slava, Thanks for your analysis. Some comments inline. > -Original Message- > From: Slava Ovsiienko > Sent: Wednesday, July 29, 2020 4:08 PM > To: Phil Yang > Cc: Matan Azrad ; Raslan Darawsheh > ; tho...@monjalon.net; ferruh.yi...@intel.com; > Honnappa Nag

Re: [dpdk-dev] [PATCH] app/testpmd: fix txonly mode timestamp intitialization

2020-07-28 Thread Phil Yang
> -Original Message- > From: dev On Behalf Of Viacheslav Ovsiienko > Sent: Monday, July 27, 2020 11:27 PM > To: dev@dpdk.org > Cc: ma...@mellanox.com; rasl...@mellanox.com; tho...@monjalon.net; > ferruh.yi...@intel.com > Subject: [dpdk-dev] [PATCH] app/testpmd: fix txonly mode timestamp >

[dpdk-dev] [PATCH v2] test/atomic: reduce the number of loops to avoid timeouts

2020-07-27 Thread Phil Yang
Reduce the number of loops to 10K to avoid the meson test timeout warning. For example: $ sudo meson test -C build --suite DPDK:fast-tests / atomic_autotest -t 50 [...] 1/1 DPDK:fast-tests / atomic_autotest OK 187.35s Signed-off-by: Phil Yang --- v2: Split from the original patchset

[dpdk-dev] [PATCH v2] test/mcslock: move performance test to perf tests

2020-07-27 Thread Phil Yang
Move the MCS lock performance test into perf tests. Signed-off-by: Phil Yang Reviewed-by: Gavin Hu --- v2: 1. Rebase code. 2. Split from the original patchset. MAINTAINERS | 1 + app/test/Makefile| 1 + app/test/autotest_data.py| 6 +++ app/test

Re: [dpdk-dev] [PATCH v3] net/mlx5: relaxed ordering for multi-packet RQ buffer refcnt

2020-07-27 Thread Phil Yang
Alexander Kozyrev writes: > > > > > > @@ -1790,9 +1792,9 @@ mlx5_rx_burst_mprq(void *dpdk_rxq, > > struct > > > > > > rte_mbuf **pkts, uint16_t pkts_n) void *buf_addr; > > > > > > > > > > > > /* Increment the refcnt of the whole chunk. */ > > > > > > -rte_atomic16_add_return(&buf->refcnt, 1);

Re: [dpdk-dev] [PATCH v3] net/mlx5: relaxed ordering for multi-packet RQ buffer refcnt

2020-07-22 Thread Phil Yang
> > > > Subject: Re: [dpdk-dev] [PATCH v3] net/mlx5: relaxed ordering for > > > multi-packet RQ buffer refcnt > > > > > > Hi, > > > > > > We are also doing C11 atomics converting for other components. > > > Your insi

Re: [dpdk-dev] [PATCH 1/2] test/mcslock: move performance test to perf tests

2020-07-22 Thread Phil Yang
platforms. Move the performance test > into perf tests. > > Signed-off-by: Phil Yang > Reviewed-by: Gavin Hu > --- > MAINTAINERS | 1 + > app/test/Makefile| 1 + > app/test/autotest_data.py| 6 +++ > app/test/meson.build

Re: [dpdk-dev] [PATCH v3] net/mlx5: relaxed ordering for multi-packet RQ buffer refcnt

2020-07-22 Thread Phil Yang
Alexander Kozyrev writes: > > > > > > > Subject: RE: [dpdk-dev] [PATCH v3] net/mlx5: relaxed ordering for > > > > > multi- packet RQ buffer refcnt > > > > > > > > > > Hi Phil Yang, we noticed that this patch gives us 10% of &

Re: [dpdk-dev] [PATCH v2 2/2] test/service: fix race condition on stopping lcore

2020-07-21 Thread Phil Yang
> Reported-by: David Marchand > Signed-off-by: Harry van Haaren Minor nit, otherwise it looks good to me. Reviewed-by: Phil Yang > > --- > > Thanks for discussion on v1, this v2 fixup for the CI > including previous feedback on ML. > --- > app/test/test_service_cor

Re: [dpdk-dev] [PATCH v2 1/2] service: add API to retrieve service core active

2020-07-21 Thread Phil Yang
d from the service_runner_func() function. > > Suggested-by: Lukasz Wojciechowski > Signed-off-by: Harry van Haaren > It looks good to me. Reviewed-by: Phil Yang Thanks, Phil <...>

Re: [dpdk-dev] [PATCH v3] net/mlx5: relaxed ordering for multi-packet RQ buffer refcnt

2020-07-20 Thread Phil Yang
Alexander Kozyrev writes: <...> > Subject: RE: [dpdk-dev] [PATCH v3] net/mlx5: relaxed ordering for multi- > packet RQ buffer refcnt > > Hi Phil Yang, we noticed that this patch gives us 10% of performance > degradation on ARM. > x86 seems to be unaffected though. Do

Re: [dpdk-dev] [PATCH v10 0/3] generic rte atomic APIs deprecate proposal

2020-07-20 Thread Phil Yang
> -Original Message- > From: David Marchand > Sent: Friday, July 17, 2020 9:59 PM > To: Phil Yang > Cc: tho...@monjalon.net; dev ; Mcnamara, John > ; Honnappa Nagarahalli > ; David Christensen > ; jer...@marvell.com; Ananyev, Konstantin > ; Ola Liljedahl ; &

Re: [dpdk-dev] Random failure in service_autotest

2020-07-18 Thread Phil Yang
> -Original Message- > From: Aaron Conole > Sent: Saturday, July 18, 2020 6:39 AM > To: Lukasz Wojciechowski > Cc: David Marchand ; Van Haaren Harry > ; Igor Romanov > ; Honnappa Nagarahalli > ; Phil Yang ; dev > ; Ferruh Yigit > Subject: Re

[dpdk-dev] [PATCH v10 3/3] devtools: prevent use of rte atomic APIs in future patches

2020-07-17 Thread Phil Yang
: Phil Yang Reviewed-by: Ruifeng Wang --- devtools/checkpatches.sh | 35 +++ 1 file changed, 35 insertions(+) diff --git a/devtools/checkpatches.sh b/devtools/checkpatches.sh index 58021aa..990a4d0 100755 --- a/devtools/checkpatches.sh +++ b/devtools/checkpatches.sh

[dpdk-dev] [PATCH v10 2/3] eal/atomic: add wrapper for C11 atomic thread fence

2020-07-17 Thread Phil Yang
Provide a wrapper for __atomic_thread_fence builtins to support optimized code for __ATOMIC_SEQ_CST memory order for x86 platforms. Suggested-by: Honnappa Nagarahalli Signed-off-by: Phil Yang Reviewed-by: Ola Liljedahl Acked-by: Konstantin Ananyev --- lib/librte_eal/arm/include/rte_atomic_32

[dpdk-dev] [PATCH v10 1/3] doc: add optimizations using C11 atomic builtins

2020-07-17 Thread Phil Yang
Add information about possible optimizations using C11 atomic builtins. Signed-off-by: Phil Yang Signed-off-by: Honnappa Nagarahalli Reviewed-by: Honnappa Nagarahalli --- doc/guides/prog_guide/writing_efficient_code.rst | 59 +++- 1 file changed, 58 insertions(+), 1

[dpdk-dev] [PATCH v10 0/3] generic rte atomic APIs deprecate proposal

2020-07-17 Thread Phil Yang
changes of libraries which make use of c11 atomic APIs out of this patchset. v3: add libatomic dependency for 32-bit clang v2: 1. fix Clang '-Wincompatible-pointer-types' WARNING. 2. fix typos. Phil Yang (3): doc: add optimizations using C11 atomic builtins eal/atomic: add wrapper for

Re: [dpdk-dev] [PATCH v9 2/3] devtools: prevent use of rte atomic APIs in future patches

2020-07-17 Thread Phil Yang
Thomas Monjalon wrties: > > In order to deprecate the rte_atomic and rte_smp barrier APIs, prevent > > the patches from using these APIs and __sync builtins in new code. > > > > On x86 the __atomic_thread_fence(__ATOMIC_SEQ_CST) is quite > expensive > > for SMP case. Flag the new code which use

Re: [dpdk-dev] [PATCH v9 3/3] eal/atomic: add wrapper for C11 atomic thread fence

2020-07-17 Thread Phil Yang
Thomas Monjalon writes: > > Provide a wrapper for __atomic_thread_fence builtins to support > > optimized code for __ATOMIC_SEQ_CST memory order for x86 platforms. > > Logically, it should be the patch 2. > So you can recommend using this wrapper in the explanation > of the actual patch 2. Inde

Re: [dpdk-dev] [PATCH] app/testpmd: fix the default RSS key configuration

2020-07-17 Thread Phil Yang
> >> Subject: [dpdk-dev] [PATCH] app/testpmd: fix the default RSS key > >> configuration > >> > >> When an user runs a flow create cmd to configure an RSS rule > >> without specifying the empty rss actions in testpmd, this mean > >> that the flow gets the default RSS functions. However, the > >>

[dpdk-dev] [PATCH v9 1/3] doc: add optimizations using C11 atomic builtins

2020-07-16 Thread Phil Yang
Add information about possible optimizations using C11 atomic builtins. Signed-off-by: Phil Yang Signed-off-by: Honnappa Nagarahalli Reviewed-by: Honnappa Nagarahalli --- doc/guides/prog_guide/writing_efficient_code.rst | 59 +++- 1 file changed, 58 insertions(+), 1

[dpdk-dev] [PATCH v9 2/3] devtools: prevent use of rte atomic APIs in future patches

2020-07-16 Thread Phil Yang
In order to deprecate the rte_atomic and rte_smp barrier APIs, prevent the patches from using these APIs and __sync builtins in new code. On x86 the __atomic_thread_fence(__ATOMIC_SEQ_CST) is quite expensive for SMP case. Flag the new code which use __atomic_thread_fence API. Signed-off-by: Phil

[dpdk-dev] [PATCH v9 3/3] eal/atomic: add wrapper for C11 atomic thread fence

2020-07-16 Thread Phil Yang
Provide a wrapper for __atomic_thread_fence builtins to support optimized code for __ATOMIC_SEQ_CST memory order for x86 platforms. Suggested-by: Honnappa Nagarahalli Signed-off-by: Phil Yang Reviewed-by: Ola Liljedahl Acked-by: Konstantin Ananyev --- lib/librte_eal/arm/include/rte_atomic_32

[dpdk-dev] [PATCH v9 0/3] generic rte atomic APIs deprecate proposal

2020-07-16 Thread Phil Yang
libatomic dependency for 32-bit clang v2: 1. fix Clang '-Wincompatible-pointer-types' WARNING. 2. fix typos. Phil Yang (3): doc: add optimizations using C11 atomic builtins devtools: prevent use of rte atomic APIs in future patches eal/atomic: add wrapper for C11 atomic thread fence

Re: [dpdk-dev] [PATCH v8 2/3] devtools: prevent use of rte atomic APIs in future patches

2020-07-16 Thread Phil Yang
Honnappa Nagarahalli writes: > > > > > > > > Subject: Re: [dpdk-dev] [PATCH v8 2/3] devtools: prevent use of rte > > > > atomic APIs in future patches > > > > > > > > 16/07/2020 12:48, David Marchand

Re: [dpdk-dev] [PATCH v8 1/3] doc: add optimizations using C11 atomic built-ins

2020-07-16 Thread Phil Yang
Honnappa Nagarahalli writes: > > > Subject: [PATCH v8 1/3] doc: add optimizations using C11 atomic built-ins > > > > Add information about possible optimizations using C11 atomic built-ins. > > > > Signed-off-by: Phil Yang > > Signed-off-by: Honnappa N

Re: [dpdk-dev] [PATCH v4 1/2] mbuf: use C11 atomic built-ins for refcnt operations

2020-07-16 Thread Phil Yang
> On Thu, Jul 16, 2020 at 3:21 PM Dodji Seketeli wrote: > > Just for the sake of precision, I'd like to say that in the coming 1.8 > > version of libabigail, this change won't be reported by the tooling as a > > problem anymore. This is thanks to David filing the feature request > > https://sou

[dpdk-dev] [PATCH v5 2/2] doc: announce deprecation of refcnt atomic member

2020-07-16 Thread Phil Yang
refcnt_atomic member in structures rte_mbuf and rte_mbuf_ext_shared_info will be deprecated in 20.11 release. Suggested-by: Honnappa Nagarahalli Signed-off-by: Phil Yang Acked-by: Konstantin Ananyev --- doc/guides/rel_notes/deprecation.rst | 6 ++ 1 file changed, 6 insertions(+) diff

[dpdk-dev] [PATCH v5 1/2] mbuf: use C11 atomic builtins for refcnt operations

2020-07-16 Thread Phil Yang
Use C11 atomic builtins with explicit ordering instead of rte_atomic ops which enforce unnecessary barriers on aarch64. Suggested-by: Olivier Matz Suggested-by: Dodji Seketeli Signed-off-by: Phil Yang Reviewed-by: Ruifeng Wang Acked-by: Olivier Matz --- v5: 1. Change built-ins to builtins. 2

Re: [dpdk-dev] [PATCH v8 2/3] devtools: prevent use of rte atomic APIs in future patches

2020-07-16 Thread Phil Yang
Hello, Thomas Monjalon writes: > Subject: Re: [dpdk-dev] [PATCH v8 2/3] devtools: prevent use of rte atomic > APIs in future patches > > 16/07/2020 12:48, David Marchand: > > On Thu, Jul 16, 2020 at 6:58 AM Phil Yang wrote: > > > check_forbidden_additions

Re: [dpdk-dev] [PATCH v8 2/3] devtools: prevent use of rte atomic APIs in future patches

2020-07-16 Thread Phil Yang
> -Original Message- > From: David Marchand > Sent: Thursday, July 16, 2020 6:49 PM > To: Phil Yang > Cc: tho...@monjalon.net; Mcnamara, John ; > Honnappa Nagarahalli ; David Christensen > ; dev ; jer...@marvell.com; > Ananyev, Konstantin ; Ola Liljedahl > ; B

[dpdk-dev] [PATCH v8 3/3] eal/atomic: add wrapper for C11 atomic thread fence

2020-07-15 Thread Phil Yang
Provide a wrapper for __atomic_thread_fence built-in to support optimized code for __ATOMIC_SEQ_CST memory order for x86 platforms. Suggested-by: Honnappa Nagarahalli Signed-off-by: Phil Yang Reviewed-by: Ola Liljedahl Acked-by: Konstantin Ananyev --- lib/librte_eal/arm/include/rte_atomic_32

[dpdk-dev] [PATCH v8 0/3] generic rte atomic APIs deprecate proposal

2020-07-15 Thread Phil Yang
libraries which make use of c11 atomic APIs out of this patchset. v3: add libatomic dependency for 32-bit clang v2: 1. fix Clang '-Wincompatible-pointer-types' WARNING. 2. fix typos. Phil Yang (3): doc: add optimizations using C11 atomic built-ins devtools: prevent use of rte atom

[dpdk-dev] [PATCH v8 2/3] devtools: prevent use of rte atomic APIs in future patches

2020-07-15 Thread Phil Yang
__atomic_thread_fence(__ATOMIC_SEQ_CST) is quite expensive for SMP case. Flag the new code which use __atomic_thread_fence API. Signed-off-by: Phil Yang Reviewed-by: Ruifeng Wang --- devtools/checkpatches.sh | 40 1 file changed, 40 insertions(+) diff --git a/devtools

[dpdk-dev] [PATCH v8 1/3] doc: add optimizations using C11 atomic built-ins

2020-07-15 Thread Phil Yang
Add information about possible optimizations using C11 atomic built-ins. Signed-off-by: Phil Yang Signed-off-by: Honnappa Nagarahalli --- doc/guides/prog_guide/writing_efficient_code.rst | 59 +++- 1 file changed, 58 insertions(+), 1 deletion(-) diff --git a/doc/guides

Re: [dpdk-dev] [PATCH v4 1/2] mbuf: use C11 atomic built-ins for refcnt operations

2020-07-15 Thread Phil Yang
David Marchand writes: > Subject: Re: [PATCH v4 1/2] mbuf: use C11 atomic built-ins for refcnt > operations > > On Thu, Jul 9, 2020 at 5:59 PM Phil Yang wrote: > > > > Use C11 atomic built-ins with explicit ordering instead of rte_atomic > > ops which enforce u

Re: [dpdk-dev] [PATCH v4 1/2] mbuf: use C11 atomic built-ins for refcnt operations

2020-07-15 Thread Phil Yang
> -Original Message- > From: David Marchand > Sent: Wednesday, July 15, 2020 8:29 PM > To: Phil Yang > Cc: Olivier Matz ; dev ; Stephen > Hemminger ; David Christensen > ; Honnappa Nagarahalli > ; Ruifeng Wang > ; nd ; Dodji Seketeli > ; Aaron Conole >

Re: [dpdk-dev] [PATCH v2] app/testpmd: fix missing set for current forward engine

2020-07-15 Thread Phil Yang
> > -Original Message- > > From: dev On Behalf Of Lijun Ou > > Sent: Wednesday, July 1, 2020 3:43 PM > > To: wenzhuo...@intel.com; beilei.x...@intel.com; > > bernard.iremon...@intel.com; ferruh.yi...@intel.com > > Cc: dev@dpdk.org; linux...@huawei.com > > Subject: [dpdk-dev] [PATCH v2] a

Re: [dpdk-dev] [PATCH] app/testpmd: fix the default RSS key configuration

2020-07-15 Thread Phil Yang
> -Original Message- > From: dev On Behalf Of Lijun Ou > Sent: Thursday, July 9, 2020 9:48 PM > To: wenzhuo...@intel.com; beilei.x...@intel.com; > bernard.iremon...@intel.com; adrien.mazarg...@6wind.com; > ferruh.yi...@intel.com > Cc: dev@dpdk.org; linux...@huawei.com > Subject: [dpdk-dev]

Re: [dpdk-dev] [PATCH 6/6] app/testpmd: enable empty polls in 5tswap

2020-07-14 Thread Phil Yang
ls in 5tswap > > Enable empty polls in burst stats within 5tswap.c > > Signed-off-by: Dharmik Thakkar > Reviewed-by: Honnappa Nagarahalli Reviewed-by: Phil Yang

Re: [dpdk-dev] [PATCH v7 1/3] doc: add generic atomic deprecation section

2020-07-14 Thread Phil Yang
; I think same here, something like following would help: > "Add information about possible optimizations using C11 atomic built-ins" > > > > > Signed-off-by: Phil Yang > > Signed-off-by: Honnappa Nagarahalli > > --- > > doc/guides/prog_guide/

Re: [dpdk-dev] [PATCH v2] app/testpmd: fix incorrect output format in flow query

2020-07-14 Thread Phil Yang
tput format in > flow query > > This patch fix the error line break in the output format of flow query > > Fixes: bdb1d61690f7 ("app/testpmd: support RSS config in flow query") > > Signed-off-by: Chenxu Di Tested-by: Phil Yang > --- > app/test-pmd/

Re: [dpdk-dev] [PATCH v4 2/2] doc: announce deprecation of refcnt atomic member

2020-07-13 Thread Phil Yang
20.08 release and remove it in 20.11 > release. Yes. Just like Oliver suggested, we will deprecate it in 20.08 release and remove it in 20.11. http://patchwork.dpdk.org/patch/73632/ Let's see if we have any other comments. +Jerin and Konstantin. Thanks, Phil > > > > > Signed

Re: [dpdk-dev] [PATCH v6 2/4] maintainers: claim maintainers of C11 atomics

2020-07-12 Thread Phil Yang
Honnappa Nagarahalli writes: > > > > > 07/07/2020 11:50, Phil Yang: > > > Add the maintainership of C11 atomics code. Different maintainers > > > focus on different platforms C11 atomics. > > > --- a/MAINTAINERS > > > +++ b/MAINTAINERS &g

[dpdk-dev] [PATCH v7 2/3] devtools: prevent use of rte atomic APIs in future patches

2020-07-12 Thread Phil Yang
__atomic_thread_fence(__ATOMIC_SEQ_CST) is quite expensive for SMP case. Flag the new code which use __atomic_thread_fence API. Signed-off-by: Phil Yang Reviewed-by: Ruifeng Wang --- devtools/checkpatches.sh | 40 1 file changed, 40 insertions(+) diff --git a/devtools

  1   2   3   4   5   >