[dpdk-dev] [RFC] Add selection between vector and scalar mode in ixgbe

2021-05-24 Thread Muhammad Ahmad
The selection between scalar mode and vector mode was removed for ixgbe driver in DPDK 20.02. The code base still has code for scalar mode but it cannot be selected at compile time. The vector mode is adequate for applications which require high throughput which is the case most of the time, but

Re: [dpdk-dev] [PATCH v2] graph: do not use a possibly NULL Pointer

2021-05-24 Thread David Marchand
On Mon, May 24, 2021 at 11:31 AM Thierry Herbelot wrote: > > Use stats only after it was checked not to be NULL. > > Fixes: af1ae8b6a32c9 ("graph: implement stats") > Cc: sta...@dpdk.org > Cc: Jerin Jacob > Cc: Kiran Kumar K > > Signed-off-by: Thierry Herbelot > -- > V2: reword patch title > --

Re: [dpdk-dev] [PATCH v8 2/2] net/hns3: refactor SVE code compile method

2021-05-24 Thread Ruifeng Wang
> -Original Message- > From: Chengwen Feng > Sent: Monday, May 24, 2021 9:23 PM > To: tho...@monjalon.net; ferruh.yi...@intel.com > Cc: dev@dpdk.org; jer...@marvell.com; Ruifeng Wang > ; vikto...@rehivetech.com; > bruce.richard...@intel.com; Honnappa Nagarahalli > ; jerinjac...@gmail.com;

Re: [dpdk-dev] [PATCH v3] build: fix SVE compile error with gcc8.3

2021-05-24 Thread Ruifeng Wang
> -Original Message- > From: Chengwen Feng > Sent: Friday, May 21, 2021 9:53 AM > To: tho...@monjalon.net; ferruh.yi...@intel.com; Ruifeng Wang > > Cc: dev@dpdk.org; bruce.richard...@intel.com; > vladimir.medved...@intel.com; vikto...@rehivetech.com; > jer...@marvell.com > Subject: [PATCH

[dpdk-dev] [PATCH] test: drop 'alarm_autotest' and 'cycles_autotest' from test suite

2021-05-24 Thread Aaron Conole
The tests 'alarm_autotest' and 'cycles_autotest' rely on the underlying system having very accurate and precise timing. On systems where the timing isn't as rigid, or the load is particularly high, these tests are unreliable since the wake latency from the scheduler can be high enough to miss the

[dpdk-dev] [PATCH 1/3] net/bnxt: refactor HW ptype mapping table

2021-05-24 Thread Lance Richardson
Make the definition of the table used to map hardware packet type information to DPDK packet type more generic. Add macro definitions for constants used in creating table indices, use these to eliminate raw constants in code. Add build-time assertions to validate ptype mapping constants. Signed-

[dpdk-dev] [PATCH 3/3] net/bnxt: add AVX2 vector PMD

2021-05-24 Thread Lance Richardson
Implement AVX2 vector PMD. Signed-off-by: Lance Richardson Reviewed-by: Ajit Khaparde --- doc/guides/nics/bnxt.rst | 57 ++- drivers/net/bnxt/bnxt_ethdev.c| 119 +++-- drivers/net/bnxt/bnxt_rxr.c | 4 +- drivers/net/bnxt/bnxt_rxr.h | 11 +- drivers/n

[dpdk-dev] [PATCH 2/3] net/bnxt: fix Rx burst size constraint

2021-05-24 Thread Lance Richardson
The burst receive function should return all packets currently present in the receive ring up to the requested burst size, update vector mode receive functions accordingly. Fixes: 398358341419 ("net/bnxt: support NEON") Fixes: bc4a000f2f53 ("net/bnxt: implement SSE vector mode") Cc: sta...@dpdk.or

[dpdk-dev] [PATCH 0/3] net/bnxt: vector mode patches

2021-05-24 Thread Lance Richardson
Vector mode updates for the bnxt PMD. Lance Richardson (3): net/bnxt: refactor HW ptype mapping table net/bnxt: fix Rx burst size constraint net/bnxt: add AVX2 vector PMD doc/guides/nics/bnxt.rst | 57 ++- drivers/net/bnxt/bnxt_ethdev.c| 119 +++-- drivers/net/bnxt/bn

[dpdk-dev] rte_memcpy - fence and stream

2021-05-24 Thread Manish Sharma
I am looking at the source for rte_memcpy (this is a discussion only for x86-64) For one of the cases, when aligned correctly, it uses /** * Copy 64 bytes from one location to another, * locations should not overlap. */ static __rte_always_inline void rte_mov64(uint8_t *dst, const uint8_t *src

[dpdk-dev] [dpdk-dev v2] test/crypto-perf: fix crypto perf out-of-place mempool alloc

2021-05-24 Thread Kai Ji
Add in missing rte_mbuf size in mempool allocation for out-of-place op. Fixes: bf9d6702eca9 ("app/crypto-perf: use single mempool") Cc: pablo.de.lara.gua...@intel.com Signed-off-by: Kai Ji Acked-by: Fan Zhang Acked-by: Pablo de Lara --- v2: -- commit message update app/test-crypto-pe

Re: [dpdk-dev] [RFC PATCH 0/3] Add PIE support for HQoS library

2021-05-24 Thread Stephen Hemminger
On Mon, 24 May 2021 11:58:19 +0100 "Liguzinski, WojciechX" wrote: > DPDK sched library is equipped with mechanism that secures it from the > bufferbloat problem > which is a situation when excess buffers in the network cause high latency > and latency > variation. Currently, it supports RED fo

[dpdk-dev] [PATCH v8 1/2] config/arm: select most suitable -march for kunpeng soc

2021-05-24 Thread Chengwen Feng
Currently, the soc_kunpeng930 declares '-march=armv8.2-a+crypto+sve', but some compiler doesn't recognize the march because it doesn't support sve. To solve this bug we use the following scheme: 1. Define 'march_base' tuple which defines support march, it should arrange from lower to higher. e.g.

[dpdk-dev] [PATCH v8 2/2] net/hns3: refactor SVE code compile method

2021-05-24 Thread Chengwen Feng
Currently, the SVE code is compiled only when -march supports SVE (e.g. '-march=armv8.2a+sve'), there maybe some problem[1] with this approach. The solution: a. If the minimum instruction set support SVE then compiles it. b. Else if the compiler support SVE then compiles it. c. Otherwise don't com

[dpdk-dev] [PATCH v8 0/2] bugfix for Kunpeng SVE compile

2021-05-24 Thread Chengwen Feng
This patch set contains two bugfixes for Kunpeng SVE compile. --- v8: * rm config/arm/meson.build from 2/2 patch which add in v7 v7: * reuse CC_SVE_ACLE_SUPPORT macro in 2/2 patch v6: * fix compile error with gcc8.3 and thunder2 of 2/2 patch v5: * make sure 'march_feature' parsed depend on 'march_

Re: [dpdk-dev] [PATCH v6 2/2] net/hns3: refactor SVE code compile method

2021-05-24 Thread fengchengwen
Fix in v7, thanks On 2021/5/24 18:03, Ruifeng Wang wrote: >> -Original Message- >> From: fengchengwen >> Sent: Monday, May 24, 2021 4:44 PM >> To: Ruifeng Wang ; tho...@monjalon.net; >> ferruh.yi...@intel.com >> Cc: dev@dpdk.org; jer...@marvell.com; vikto...@rehivetech.com; >> bruce.richa

[dpdk-dev] [PATCH v7 2/2] net/hns3: refactor SVE code compile method

2021-05-24 Thread Chengwen Feng
Currently, the SVE code is compiled only when -march supports SVE (e.g. '-march=armv8.2a+sve'), there maybe some problem[1] with this approach. The solution: a. If the minimum instruction set support SVE then compiles it. b. Else if the compiler support SVE then compiles it. c. Otherwise don't com

[dpdk-dev] [PATCH v7 1/2] config/arm: select most suitable -march for kunpeng soc

2021-05-24 Thread Chengwen Feng
Currently, the soc_kunpeng930 declares '-march=armv8.2-a+crypto+sve', but some compiler doesn't recognize the march because it doesn't support sve. To solve this bug we use the following scheme: 1. Define 'march_base' tuple which defines support march, it should arrange from lower to higher. e.g.

[dpdk-dev] [PATCH v7 0/2] bugfix for Kunpeng SVE compile

2021-05-24 Thread Chengwen Feng
This patch set contains two bugfixes for Kunpeng SVE compile. --- v7: * reuse CC_SVE_ACLE_SUPPORT macro in 2/2 patch v6: * fix compile error with gcc8.3 and thunder2 of 2/2 patch v5: * make sure 'march_feature' parsed depend on 'march_base' * only the kunpeng930 use the new option v4: * fix compil

[dpdk-dev] [PATCH 2/2] event/cnxk: add Rx event vector fastpath

2021-05-24 Thread pbhagavatula
From: Pavan Nikhilesh Add Rx event vector fastpath to convert HW defined metadata into rte_mbuf and rte_event_vector. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn10k_worker.h | 50 +++ 1 file changed, 50 insertions(+) diff --git a/drivers/event/cnxk/cn1

[dpdk-dev] [PATCH 1/2] event/cnxk: add Rx adapter vector support

2021-05-24 Thread pbhagavatula
From: Pavan Nikhilesh Add event vector support for cnxk event Rx adapter, add control path APIs to get vector limits and ability to configure event vectorization on a given Rx queue. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn10k_eventdev.c | 106 ++- driv

[dpdk-dev] [PATCH v2 4/4] event/cnxk: add Tx adapter fastpath ops

2021-05-24 Thread pbhagavatula
From: Pavan Nikhilesh Add support for event eth Tx adapter fastpath operations. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn10k_eventdev.c | 35 drivers/event/cnxk/cn10k_worker.c | 32 +++ drivers/event/cnxk/cn10k_worker.h | 67 ++ drive

[dpdk-dev] [PATCH v2 3/4] event/cnxk: add Tx adapter support

2021-05-24 Thread pbhagavatula
From: Pavan Nikhilesh Add support for event eth Tx adapter. Signed-off-by: Pavan Nikhilesh --- doc/guides/eventdevs/cnxk.rst| 4 +- drivers/event/cnxk/cn10k_eventdev.c | 90 + drivers/event/cnxk/cn9k_eventdev.c | 117 +++ drivers/ev

[dpdk-dev] [PATCH v2 2/4] event/cnxk: add Rx adapter fastpath ops

2021-05-24 Thread pbhagavatula
From: Pavan Nikhilesh Add support for event eth Rx adapter fastpath operations. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn10k_eventdev.c | 115 - drivers/event/cnxk/cn10k_worker.c | 164 + drivers/event/cnxk/cn10k_worker.h | 91 +-- drivers/event/cnxk

[dpdk-dev] [PATCH v2 1/4] event/cnxk: add Rx adapter support

2021-05-24 Thread pbhagavatula
From: Pavan Nikhilesh Add support for event eth Rx adapter. Signed-off-by: Pavan Nikhilesh --- This patch set depends on http://patches.dpdk.org/project/dpdk/list/?series=15515 doc/guides/eventdevs/cnxk.rst| 4 + drivers/event/cnxk/cn10k_eventdev.c | 76 +++ driv

Re: [dpdk-dev] [PATCH 0/2] bugfix for sched

2021-05-24 Thread Min Hu (Connor)
Hi, all, any comments for this set? 在 2021/4/23 19:01, Min Hu (Connor) 写道: This patch set contains two bugfixes for sched. Huisong Li (2): lib/sched: fix return value judgment lib/sched: optimize exception handling code lib/sched/rte_sched.c | 60 +++---

Re: [dpdk-dev] [PATCH v2] sched: check newly allocated pointer

2021-05-24 Thread Min Hu (Connor)
Hi, Thierry, This bug has been fixed in my earlier patch, please refer to: https://patches.dpdk.org/project/dpdk/patch/1619175672-20016-2-git-send-email-humi...@huawei.com/ Thanks. 在 2021/5/24 19:30, Thierry Herbelot 写道: Check port->subport_profiles after it was allocated. Fix

Re: [dpdk-dev] [dpdk-stable] [PATCH] app/regex: avoid division by zero

2021-05-24 Thread Min Hu (Connor)
Hi, Thierry, This bug has been fixed in my earlier patch, please refer to: https://patches.dpdk.org/project/dpdk/patch/1618839289-33224-5-git-send-email-humi...@huawei.com/ Thanks. 在 2021/5/24 16:57, Thierry Herbelot 写道: Check that nb_jobs is not zero before using it for a divi

[dpdk-dev] [PATCH] ixgbe: Add runtime tx/rx queue setup for X550

2021-05-24 Thread Wu Jianyue
X550 NIC can support runtime tx/rx queue setup. Add capacity in dev_capa and queue offload capacity. Signed-off-by: Wu Jianyue --- drivers/net/ixgbe/ixgbe_ethdev.c | 22 ++ drivers/net/ixgbe/ixgbe_rxtx.c | 21 +++-- 2 files changed, 41 insertions(+), 2 delet

[dpdk-dev] [PATCH v4 3/3] net/sfc: support matching on VLAN presence in transfer rules

2021-05-24 Thread Ivan Malov
Take into account VLAN presence fields in items ETH and VLAN. Provided that the item ETH does not match on the EtherType, the pattern behaviour will be as follows: - ETH (mask->has_vlan = 0) | IPv4= match both tagged and untagged; - ETH (mask->has_vlan = 1) | IPv4= match as per sp

[dpdk-dev] [PATCH v4 2/3] common/sfc_efx/base: add MAE VLAN presence match bits

2021-05-24 Thread Ivan Malov
Introduce necessary infrastructure for these fields to be set, validated and compared during class comparison. Enumeration and mappings envisaged are MCDI-compatible. Signed-off-by: Ivan Malov Reviewed-by: Andrew Rybchenko Reviewed-by: Andy Moreton Acked-by: Ray Kinsella --- drivers/common/sf

[dpdk-dev] [PATCH v4 0/3] Match On VLAN Presence In Transfer Flows

2021-05-24 Thread Ivan Malov
Changes in v2: * [1/3] no longer triggers spelling warnings Changes in v3: * Attempt to correct mailing order of the patches Changes in v4: * Yet another attempt to correct mailing order of the patches Andrew Rybchenko (1): common/sfc_efx/base: update MCDI headers Ivan Malov (2): common/sfc

Re: [dpdk-dev] [PATCH v2] sched: check newly allocated pointer

2021-05-24 Thread Dumitrescu, Cristian
> -Original Message- > From: Thierry Herbelot > Sent: Monday, May 24, 2021 12:30 PM > To: dev@dpdk.org > Cc: Thierry Herbelot ; Thomas Monjalon > ; sta...@dpdk.org; Dumitrescu, Cristian > ; Singh, Jasvinder > > Subject: [PATCH v2] sched: check newly allocated pointer > > Check port->s

Re: [dpdk-dev] [PATCH v2] table: fix typo

2021-05-24 Thread Dumitrescu, Cristian
> -Original Message- > From: Thierry Herbelot > Sent: Monday, May 24, 2021 12:29 PM > To: dev@dpdk.org > Cc: Thierry Herbelot ; Thomas Monjalon > ; sta...@dpdk.org; Dumitrescu, Cristian > > Subject: [PATCH v2] table: fix typo > > Check Bucket key for all possible indices. > > Fixes:

[dpdk-dev] [PATCH v2] sched: check newly allocated pointer

2021-05-24 Thread Thierry Herbelot
Check port->subport_profiles after it was allocated. Fixes: 0ea4c6afcaf14 ("sched: add subport profile table") Cc: sta...@dpdk.org Cc: Cristian Dumitrescu Cc: Jasvinder Singh Signed-off-by: Thierry Herbelot -- V2: reword patch title --- lib/sched/rte_sched.c | 2 +- 1 file changed, 1 insertio

[dpdk-dev] [PATCH v2] table: fix typo

2021-05-24 Thread Thierry Herbelot
Check Bucket key for all possible indices. Fixes: d0a00966618ba ("table: add exact match SWX table") Cc: sta...@dpdk.org Cc: Cristian Dumitrescu Signed-off-by: Thierry Herbelot -- V2: reword patch title --- lib/table/rte_swx_table_em.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) dif

Re: [dpdk-dev] [PATCH] rte_sched: check newly allocated pointer

2021-05-24 Thread Dumitrescu, Cristian
> -Original Message- > From: Thierry Herbelot > Sent: Monday, May 24, 2021 9:58 AM > To: dev@dpdk.org > Cc: Thierry Herbelot ; Thomas Monjalon > ; sta...@dpdk.org; Dumitrescu, Cristian > ; Singh, Jasvinder > > Subject: [PATCH] rte_sched: check newly allocated pointer > > Check port->s

Re: [dpdk-dev] [PATCH] rte_swx: fix typo

2021-05-24 Thread Dumitrescu, Cristian
> -Original Message- > From: Thierry Herbelot > Sent: Monday, May 24, 2021 9:54 AM > To: dev@dpdk.org > Cc: Thierry Herbelot ; Thomas Monjalon > ; sta...@dpdk.org; Dumitrescu, Cristian > > Subject: [PATCH] rte_swx: fix typo > > Check Bucket key for all possible indices. > > Fixes: d0

[dpdk-dev] [PATCH] net/sfc: fix typo

2021-05-24 Thread Thierry Herbelot
Do not return "GOOD" flag if the status was bad. Fixes: 9e6e7f479ae9b ("net/sfc: support Rx checksum offload for EF100") Cc: sta...@dpdk.org Cc: Andrew Rybchenko Signed-off-by: Thierry Herbelot --- drivers/net/sfc/sfc_ef100_rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[dpdk-dev] [PATCH v3 3/3] net/sfc: support matching on VLAN presence in transfer rules

2021-05-24 Thread Ivan Malov
Take into account VLAN presence fields in items ETH and VLAN. Provided that the item ETH does not match on the EtherType, the pattern behaviour will be as follows: - ETH (mask->has_vlan = 0) | IPv4= match both tagged and untagged; - ETH (mask->has_vlan = 1) | IPv4= match as per sp

[dpdk-dev] [PATCH v3 2/3] common/sfc_efx/base: add MAE VLAN presence match bits

2021-05-24 Thread Ivan Malov
Introduce necessary infrastructure for these fields to be set, validated and compared during class comparison. Enumeration and mappings envisaged are MCDI-compatible. Signed-off-by: Ivan Malov Reviewed-by: Andrew Rybchenko Reviewed-by: Andy Moreton Acked-by: Ray Kinsella --- drivers/common/sf

[dpdk-dev] [PATCH v3 0/3] Match On VLAN Presence In Transfer Flows

2021-05-24 Thread Ivan Malov
Changes in v2: * [1/3] no longer triggers spelling warnings Changes in v3: * Attempt to correct mailing order of the patches Andrew Rybchenko (1): common/sfc_efx/base: update MCDI headers Ivan Malov (2): common/sfc_efx/base: add MAE VLAN presence match bits net/sfc: support matching on VLA

[dpdk-dev] [RFC PATCH 3/3] example/ip_pipeline: add pie support

2021-05-24 Thread Liguzinski, WojciechX
Signed-off-by: Liguzinski, WojciechX --- examples/ip_pipeline/tmgr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/ip_pipeline/tmgr.c b/examples/ip_pipeline/tmgr.c index e4e364cbc0..406184e760 100644 --- a/examples/ip_pipeline/tmgr.c +++ b/examples/ip_pipeline/t

[dpdk-dev] [RFC PATCH 2/3] example/qos_sched: add pie support

2021-05-24 Thread Liguzinski, WojciechX
patch add support enable pie or red by parsing config file. Signed-off-by: Liguzinski, WojciechX --- config/rte_config.h | 1 - examples/qos_sched/app_thread.c | 1 - examples/qos_sched/cfg_file.c | 82 ++--- examples/qos_sched/init.c | 5 +- examples/qos_sched

[dpdk-dev] [RFC PATCH 1/3] sched: add pie based congestion management

2021-05-24 Thread Liguzinski, WojciechX
Implement pie based congestion management based on rfc8033 Signed-off-by: Liguzinski, WojciechX --- drivers/net/softnic/rte_eth_softnic_tm.c | 4 +- lib/sched/meson.build| 10 +- lib/sched/rte_sched.c| 220 +-- lib/sched/rte_sched.h

[dpdk-dev] [RFC PATCH 0/3] Add PIE support for HQoS library

2021-05-24 Thread Liguzinski, WojciechX
DPDK sched library is equipped with mechanism that secures it from the bufferbloat problem which is a situation when excess buffers in the network cause high latency and latency variation. Currently, it supports RED for queue congestion control (which is designed to control the queue length bu

Re: [dpdk-dev] [PATCH v2] net/pfe: no need to check dev to be NULL Pointer

2021-05-24 Thread Gagandeep Singh
> -Original Message- > From: Thierry Herbelot > Sent: Monday, May 24, 2021 3:08 PM > To: dev@dpdk.org > Cc: Thierry Herbelot ; Thomas Monjalon > ; sta...@dpdk.org; Gagandeep Singh > > Subject: [PATCH v2] net/pfe: no need to check dev to be NULL Pointer > > librte_ethdev library is alr

Re: [dpdk-dev] [PATCH v6 2/2] net/hns3: refactor SVE code compile method

2021-05-24 Thread Ruifeng Wang
> -Original Message- > From: fengchengwen > Sent: Monday, May 24, 2021 4:44 PM > To: Ruifeng Wang ; tho...@monjalon.net; > ferruh.yi...@intel.com > Cc: dev@dpdk.org; jer...@marvell.com; vikto...@rehivetech.com; > bruce.richard...@intel.com; Honnappa Nagarahalli > ; jerinjac...@gmail.com; >

[dpdk-dev] [PATCH v2] net/pfe: no need to check dev to be NULL Pointer

2021-05-24 Thread Thierry Herbelot
librte_ethdev library is already doing some checks on dev before calling the link update. Fixes: acd4818ea2a45 ("net/pfe: add link status update") Cc: sta...@dpdk.org Cc: Gagandeep Singh Signed-off-by: Thierry Herbelot -- V2: rework after noting dev cannot be NULL --- drivers/net/pfe/pfe_ethde

[dpdk-dev] [PATCH v2] graph: do not use a possibly NULL Pointer

2021-05-24 Thread Thierry Herbelot
Use stats only after it was checked not to be NULL. Fixes: af1ae8b6a32c9 ("graph: implement stats") Cc: sta...@dpdk.org Cc: Jerin Jacob Cc: Kiran Kumar K Signed-off-by: Thierry Herbelot -- V2: reword patch title --- lib/graph/graph_stats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [dpdk-dev] [PATCH] net/pfe: do not use a possibly NULL Pointer

2021-05-24 Thread Gagandeep Singh
> -Original Message- > From: Thierry Herbelot > Sent: Monday, May 24, 2021 2:29 PM > To: dev@dpdk.org > Cc: Thierry Herbelot ; Thomas Monjalon > ; sta...@dpdk.org; Gagandeep Singh > > Subject: [PATCH] net/pfe: do not use a possibly NULL Pointer > > Use dev only after it was checked no

Re: [dpdk-dev] [PATCH] graph_stats: do not use a possibly NULL Pointer

2021-05-24 Thread Jerin Jacob
On Mon, May 24, 2021 at 2:28 PM Thierry Herbelot wrote: > > Use stats only after it was checked not to be NULL. Please change the subject to graph: .. With the above fix: Acked-by: Jerin Jacob > > Fixes: af1ae8b6a32c9 ("graph: implement stats") > Cc: sta...@dpdk.org > Cc: Jerin Jacob > C

[dpdk-dev] [PATCH v2] vhost/vhost_crypto: do not use possibly NULL Pointers

2021-05-24 Thread Thierry Herbelot
Use vc_req only after it was checked not to be NULL. Fixes: 2d962bb736521 ("vhost/crypto: fix possible TOCTOU attack") Cc: sta...@dpdk.org Cc: Maxime Coquelin Cc: Chenbo Xia Signed-off-by: Thierry Herbelot -- V2: fix copy/paste typo --- lib/vhost/vhost_crypto.c | 6 -- 1 file changed, 4 i

[dpdk-dev] [PATCH] net/ice: fix wrong data path selection in secondary process

2021-05-24 Thread Qi Zhang
The flag use_avx2 and use_avx512 are defined as local variables, they will not be aware by the secondary process, then wrong data path is selected. Fix the issue by moving them into struct ice_adapter. Fixes: ae60d3c9b227 ("net/ice: support Rx AVX2 vector") Fixes: 2d5f6953d56d ("net/ice: support v

[dpdk-dev] [PATCH] app/testpmd: do not use a possibly NULL Pointer

2021-05-24 Thread Thierry Herbelot
Use out only after it was checked not to be NULL. Fixes: 4d07cbefe3ba0 ("app/testpmd: add commands for conntrack") Cc: sta...@dpdk.org Cc: Ori Kam Signed-off-by: Thierry Herbelot --- app/test-pmd/cmdline_flow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test-pmd/cm

[dpdk-dev] [PATCH] test/test_cryptodev: do not use a possibly NULL Pointer

2021-05-24 Thread Thierry Herbelot
Use m only after it was checked not to be NULL. Fixes: 202d375c60bc1 ("app/test: add cryptodev unit and performance tests") Cc: sta...@dpdk.org Cc: Declan Doherty Signed-off-by: Thierry Herbelot --- app/test/test_cryptodev.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --gi

[dpdk-dev] [PATCH] net/bnxt: do not use possibly NULL pointers

2021-05-24 Thread Thierry Herbelot
Check that pointers are valid before using them. Fixes: 7bc8e9a227ccb ("net/bnxt: support async link notification") Cc: sta...@dpdk.org Cc: Ajit Khaparde Cc: Somnath Kotur Signed-off-by: Thierry Herbelot --- drivers/net/bnxt/bnxt_irq.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-)

[dpdk-dev] [PATCH] net/octeontx_ep: do not use a NULL Pointer

2021-05-24 Thread Thierry Herbelot
mz is known to be NULL: do not use it to print a memzone name. Fixes: 242e18c056890 ("net/octeontx_ep: add Rx queue setup and release") Cc: sta...@dpdk.org Cc: Nalla Pradeep Cc: Radha Mohan Chintakuntla Cc: Veerasenareddy Burru Signed-off-by: Thierry Herbelot --- drivers/net/octeontx_ep/otx_

[dpdk-dev] [PATCH] net/pfe: do not use a possibly NULL Pointer

2021-05-24 Thread Thierry Herbelot
Use dev only after it was checked not to be NULL. Fixes: acd4818ea2a45 ("net/pfe: add link status update") Cc: sta...@dpdk.org Cc: Gagandeep Singh Signed-off-by: Thierry Herbelot --- drivers/net/pfe/pfe_ethdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/

[dpdk-dev] [PATCH] graph_stats: do not use a possibly NULL Pointer

2021-05-24 Thread Thierry Herbelot
Use stats only after it was checked not to be NULL. Fixes: af1ae8b6a32c9 ("graph: implement stats") Cc: sta...@dpdk.org Cc: Jerin Jacob Cc: Kiran Kumar K Signed-off-by: Thierry Herbelot --- lib/graph/graph_stats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/graph/g

[dpdk-dev] [PATCH] vhost/vhost_crypto: do not use possibly NULL Pointers

2021-05-24 Thread Thierry Herbelot
Use vc_req only after it was checked not to be NULL. Fixes: 2d962bb736521 ("vhost/crypto: fix possible TOCTOU attack") Cc: sta...@dpdk.org Cc: Maxime Coquelin Cc: Chenbo Xia Signed-off-by: Thierry Herbelot --- lib/vhost/vhost_crypto.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-

[dpdk-dev] [PATCH] rte_sched: check newly allocated pointer

2021-05-24 Thread Thierry Herbelot
Check port->subport_profiles after it was allocated. Fixes: 0ea4c6afcaf14 ("sched: add subport profile table") Cc: sta...@dpdk.org Cc: Cristian Dumitrescu Cc: Jasvinder Singh Signed-off-by: Thierry Herbelot --- lib/sched/rte_sched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[dpdk-dev] [PATCH] app/regex: avoid division by zero

2021-05-24 Thread Thierry Herbelot
Check that nb_jobs is not zero before using it for a division. Fixes: f5cffb7eb7fb6 ("app/regex: read data file once at startup") Cc: sta...@dpdk.org Cc: Ori Kam Signed-off-by: Thierry Herbelot --- app/test-regex/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/test-regex/main.

[dpdk-dev] [PATCH] rte_swx: fix typo

2021-05-24 Thread Thierry Herbelot
Check Bucket key for all possible indices. Fixes: d0a00966618ba ("table: add exact match SWX table") Cc: sta...@dpdk.org Cc: Cristian Dumitrescu Signed-off-by: Thierry Herbelot --- lib/table/rte_swx_table_em.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/table/rte_sw

[dpdk-dev] rte_memcpy

2021-05-24 Thread Manish Sharma
I am looking at the source for rte_memcpy (this is a discussion only for x64-64) For one of the cases, when aligned correctly, it uses /** * Copy 64 bytes from one location to another, * locations should not overlap. */ static __rte_always_inline void rte_mov64(uint8_t *dst, const uint8_t *src

Re: [dpdk-dev] [PATCH v6 2/2] net/hns3: refactor SVE code compile method

2021-05-24 Thread fengchengwen
On 2021/5/24 13:38, Ruifeng Wang wrote: >> -Original Message- >> From: fengchengwen >> Sent: Friday, May 21, 2021 2:53 PM >> To: Ruifeng Wang ; tho...@monjalon.net; >> ferruh.yi...@intel.com >> Cc: dev@dpdk.org; jer...@marvell.com; vikto...@rehivetech.com; >> bruce.richard...@intel.com;

Re: [dpdk-dev] [dpdk-dev v1] cperf: fix crypto perf out-of-place mempool alloc

2021-05-24 Thread Zhang, Roy Fan
Hi Thomas, Sure, no problem. Thanks. Congrats on 21.05 release! Regards, Fan > -Original Message- > From: Thomas Monjalon > Sent: Friday, May 21, 2021 4:37 PM > To: Zhang, Roy Fan ; Ji, Kai ; > De Lara Guarch, Pablo > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] [dpdk-dev v1] cperf: fix