RE: [PATCH v2 08/12] net/ngbe: fix debug log

2022-02-10 Thread Jiawen Wu
On February 10, 2022 3:07 AM, Ferruh Yigit wrote: > On 2/9/2022 10:42 AM, Jiawen Wu wrote: > > Remove 'DEBUGFUNC' due to too many invalid debug log prints. And fix > > that double line was added by using 'DEBUGOUT'. > > > > Fixes: cc934df178ab ("net/ngbe: add log and error types") > > Cc: sta...@dp

RE: [PATCH] net/mlx5: fix risk in Rx descriptor read in NEON vector path

2022-02-10 Thread Slava Ovsiienko
Hi Ruifeng, Patch looks reasonable, thank you. Just curious - did you see the real issue with re-ordering in this code fragment? And, please, let us do performance check. With best regards, Slava > -Original Message- > From: Ruifeng Wang > Sent: Thursday, February 10, 2022 8:25 > To: M

RE: [PATCH] net/mlx5: fix risk in Rx descriptor read in NEON vector path

2022-02-10 Thread Ruifeng Wang
> -Original Message- > From: Slava Ovsiienko > Sent: Thursday, February 10, 2022 4:17 PM > To: Ruifeng Wang ; Matan Azrad > > Cc: dev@dpdk.org; Honnappa Nagarahalli > ; sta...@dpdk.org; nd ; > nd > Subject: RE: [PATCH] net/mlx5: fix risk in Rx descriptor read in NEON vector > path > > H

RE: [PATCH v1] net/af_xdp: make umem configure code more readable

2022-02-10 Thread Loftus, Ciara
> Subject: [PATCH v1] net/af_xdp: make umem configure code more readable > > The below compile time defined style make the code not so readable, the > first function end block is after "#endif" segment. > > #if defined(XDP_UMEM_UNALIGNED_CHUNK_FLAG) > > xdp_umem_configure() > {

Re: [PATCH v6 2/3] ethdev: add mbuf dynfield for incomplete IP reassembly

2022-02-10 Thread Ferruh Yigit
On 2/8/2022 10:20 PM, Akhil Goyal wrote: Hardware IP reassembly may be incomplete for multiple reasons like reassembly timeout reached, duplicate fragments, etc. To save application cycles to process these packets again, a new mbuf dynflag is added to show that the mbuf received is not reassemble

Re: [PATCH v6 1/3] ethdev: introduce IP reassembly offload

2022-02-10 Thread Ferruh Yigit
On 2/8/2022 10:20 PM, Akhil Goyal wrote: IP Reassembly is a costly operation if it is done in software. The operation becomes even more costlier if IP fragments are encrypted. However, if it is offloaded to HW, it can considerably save application cycles. Hence, a new offload feature is exposed

Re: [PATCH v6 0/3] ethdev: introduce IP reassembly offload

2022-02-10 Thread Ferruh Yigit
On 2/8/2022 10:20 PM, Akhil Goyal wrote: As discussed in the RFC[1] sent in 21.11, a new offload is introduced in ethdev for IP reassembly. This patchset add the IP reassembly RX offload. Currently, the offload is tested along with inline IPsec processing. It can also be updated as a standalone

[PATCH] stack: fix stubs header export

2022-02-10 Thread David Marchand
The stubs header is included as part of rte_stack.h for architectures other than x86_64 and aarch64 (i.e. x86 32 bits and ppc). Note: chkincs won't catch this issue since it checks headers from within the source directory. Fixes: 7911ba0473e0 ("stack: enable lock-free implementation for aarch64")

Re: Can I use rte_pktmbuf_chain to chain multiple mbuffs for calling only single tx_eth_burst API

2022-02-10 Thread Ferruh Yigit
On 2/9/2022 10:46 PM, Stephen Hemminger wrote: On Wed, 9 Feb 2022 22:18:24 + Ferruh Yigit wrote: On 2/9/2022 6:03 PM, Ansar Kannankattil wrote: Hi My intention is to decrease the number of rte_tx_eth_burst calls, I know that mentioning nb_pkts will result in sending multiple packets in a

Re: [PATCH] ethdev: introduce generic dummy packet burst function

2022-02-10 Thread Ferruh Yigit
On 2/10/2022 7:38 AM, Loftus, Ciara wrote: Subject: [PATCH] ethdev: introduce generic dummy packet burst function Multiple PMDs have dummy/noop Rx/Tx packet burst functions. These dummy functions are very simple, introduce a common function in the ethdev and update drivers to use it instead of

Re: [PATCH v2 08/12] net/ngbe: fix debug log

2022-02-10 Thread Ferruh Yigit
On 2/10/2022 8:03 AM, Jiawen Wu wrote: On February 10, 2022 3:07 AM, Ferruh Yigit wrote: On 2/9/2022 10:42 AM, Jiawen Wu wrote: Remove 'DEBUGFUNC' due to too many invalid debug log prints. And fix that double line was added by using 'DEBUGOUT'. Fixes: cc934df178ab ("net/ngbe: add log and error

[PATCH v2] maintainers: update for testpmd

2022-02-10 Thread Yuying Zhang
Move 'test-pmd/cmdline_tm.*' files under "Traffic Management API" component. Move 'test-pmd/cmdline_mtr.*' files under "Traffic Metering and Policing API" component. Signed-off-by: Yuying Zhang --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index

Re: [PATCH 0/2] add telemetry for inline IPsec

2022-02-10 Thread Bruce Richardson
On Thu, Feb 10, 2022 at 12:23:32PM +0530, Ankur Dwivedi wrote: > Adds telemetry function for inline ipsec in net CNXK driver. > > This series depends on the following patch series: > > Series: Adding new features and improvements in cnxk crypto PMD > http://patches.dpdk.org/project/dpdk/list/?ser

RE: [PATCH] net/ice: fix gcc error with -DRTE_LIBRTE_ICE_16BYTE_RX_DESC

2022-02-10 Thread Zhang, Qi Z
> -Original Message- > From: Ling, WeiX > Sent: Thursday, February 10, 2022 11:09 AM > To: Zhou, YidingX ; Richardson, Bruce > ; Wang, Haiyue > Cc: Yang, Qiming ; Zhang, Qi Z > ; dev@dpdk.org > Subject: RE: [PATCH] net/ice: fix gcc error with - > DRTE_LIBRTE_ICE_16BYTE_RX_DESC > > > -

Re: [PATCH v4 04/10] app/testpmd: implement rte flow configuration

2022-02-10 Thread Thomas Monjalon
09/02/2022 22:38, Alexander Kozyrev: > Add testpmd support for the rte_flow_configure API. A note about the titles for testpmd patches in this series: You don't "implement" because it was implemented in rte_flow.c. Instead, better to say "add" in the testpmd app context. Also you should not menti

RE: [PATCH v2 08/12] net/ngbe: fix debug log

2022-02-10 Thread Jiawen Wu
On February 10, 2022 5:03 PM, Ferruh Yigit wrote: > On 2/10/2022 8:03 AM, Jiawen Wu wrote: > > On February 10, 2022 3:07 AM, Ferruh Yigit wrote: > >> On 2/9/2022 10:42 AM, Jiawen Wu wrote: > >>> Remove 'DEBUGFUNC' due to too many invalid debug log prints. And fix > >>> that double line was added by

RE: [EXT] Re: [PATCH 0/2] add telemetry for inline IPsec

2022-02-10 Thread Ankur Dwivedi
Hi Bruce, Please see my comment inline. Regards, Ankur >-Original Message- >From: Bruce Richardson >Sent: Thursday, February 10, 2022 2:42 PM >To: Ankur Dwivedi >Cc: dev@dpdk.org; Nithin Kumar Dabilpuram ; >Kiran Kumar Kokkilagadda ; Sunil Kumar Kori >; Satha Koteswara Rao Kottidi >; J

Re: [PATCH v6 1/3] ethdev: introduce IP reassembly offload

2022-02-10 Thread Andrew Rybchenko
On 2/9/22 01:20, Akhil Goyal wrote: IP Reassembly is a costly operation if it is done in software. The operation becomes even more costlier if IP fragments are encrypted. However, if it is offloaded to HW, it can considerably save application cycles. Hence, a new offload feature is exposed in et

Re: [PATCH v2] maintainers: update for testpmd

2022-02-10 Thread Ferruh Yigit
On 2/10/2022 5:11 PM, Yuying Zhang wrote: Move 'test-pmd/cmdline_tm.*' files under "Traffic Management API" component. Move 'test-pmd/cmdline_mtr.*' files under "Traffic Metering and Policing API" component. Signed-off-by: Yuying Zhang --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+)

Re: [PATCH] net/ice: fix gcc error with -DRTE_LIBRTE_ICE_16BYTE_RX_DESC

2022-02-10 Thread Ferruh Yigit
On 2/10/2022 9:30 AM, Zhang, Qi Z wrote: -Original Message- From: Ling, WeiX Sent: Thursday, February 10, 2022 11:09 AM To: Zhou, YidingX ; Richardson, Bruce ; Wang, Haiyue Cc: Yang, Qiming ; Zhang, Qi Z ; dev@dpdk.org Subject: RE: [PATCH] net/ice: fix gcc error with - DRTE_LIBRTE_IC

[PATCH v3] net/cnxk: avoid command copy from Tx queue

2022-02-10 Thread pbhagavatula
From: Pavan Nikhilesh Tx command is prepared based on offloads enabled and stored in Tx queue structure at tx_queue_setup phase. In fastpath the command is copied from Tx queue to LMT line for all the packets. Since, the command contents are mostly constants we can move the command preparation to

Re: [PATCH v2 08/12] net/ngbe: fix debug log

2022-02-10 Thread Ferruh Yigit
On 2/10/2022 9:49 AM, Jiawen Wu wrote: On February 10, 2022 5:03 PM, Ferruh Yigit wrote: On 2/10/2022 8:03 AM, Jiawen Wu wrote: On February 10, 2022 3:07 AM, Ferruh Yigit wrote: On 2/9/2022 10:42 AM, Jiawen Wu wrote: Remove 'DEBUGFUNC' due to too many invalid debug log prints. And fix that do

RE: [EXT] [PATCH v2 4/4] crypto: reorganize endianness comments, add crypto uint

2022-02-10 Thread Akhil Goyal
> This patch adds crypto uint typedef so adding comment > about byte-order becomes unnecessary. > > It makes API comments more tidy, and more consistent > with other asymmetric crypto APIs. > > Additionally it reorganizes code that enums, externs > and forward declarations are moved to the top of

Re: [PATCH v3] net/cnxk: avoid command copy from Tx queue

2022-02-10 Thread Jerin Jacob
On Thu, Feb 10, 2022 at 3:43 PM wrote: > > From: Pavan Nikhilesh > > Tx command is prepared based on offloads enabled and stored in > Tx queue structure at tx_queue_setup phase. > In fastpath the command is copied from Tx queue to LMT line for > all the packets. > Since, the command contents are

[PATCH v3 1/3] event/cnxk: store and reuse workslot status

2022-02-10 Thread pbhagavatula
From: Pavan Nikhilesh Store and reuse workslot status for TT, GRP and HEAD status instead of reading from GWC as reading from GWC imposes additional latency. Signed-off-by: Pavan Nikhilesh --- Depends-on: 21590 v3 Changes: - Split and rebase patches. v2 Changes: - Rebase. - Fix incorrec

[PATCH v3 2/3] event/cnxk: disable default wait time for dequeue

2022-02-10 Thread pbhagavatula
From: Pavan Nikhilesh Setting WAITW bit enables default min dequeue timeout of 1us. Avoid the min dequeue timeout by setting WAITW only when dequeue_timeout is configured. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn10k_eventdev.c | 8 +-- drivers/event/cnxk/cn9k_eventdev.c |

[PATCH v3 3/3] net/cnxk: improve Rx performance

2022-02-10 Thread pbhagavatula
From: Pavan Nikhilesh Improve vWQE and CQ Rx performance by tuning perfetches to 64B cacheline size. Also, prefetch the vWQE array offsets at cacheline boundaries. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn10k_worker.h | 25 +++-- drivers/net/cnxk/cn10k_rx.h

Re: [PATCH v6 1/3] ethdev: introduce IP reassembly offload

2022-02-10 Thread Ferruh Yigit
On 2/10/2022 10:08 AM, Andrew Rybchenko wrote: On 2/9/22 01:20, Akhil Goyal wrote: IP Reassembly is a costly operation if it is done in software. The operation becomes even more costlier if IP fragments are encrypted. However, if it is offloaded to HW, it can considerably save application cycles

[PATCH] crypto: fix misspelled key in qt format

2022-02-10 Thread Arek Kusztal
This patch fixes misspelled RTE_RSA_KEY_TYPE_QT, this will prevent checkpach from complaining wherever change to RSA is being made. Fixes: 26008aaed14c ("cryptodev: add asymmetric xform and op definitions") Signed-off-by: Arek Kusztal --- app/test/test_cryptodev_asym.c | 2 +- app/t

Re: [PATCH v6 1/3] ethdev: introduce IP reassembly offload

2022-02-10 Thread Ferruh Yigit
On 2/10/2022 10:20 AM, Ferruh Yigit wrote: On 2/10/2022 10:08 AM, Andrew Rybchenko wrote: On 2/9/22 01:20, Akhil Goyal wrote: IP Reassembly is a costly operation if it is done in software. The operation becomes even more costlier if IP fragments are encrypted. However, if it is offloaded to HW,

Re: [PATCH v1] net/af_xdp: make umem configure code more readable

2022-02-10 Thread Ferruh Yigit
On 2/10/2022 8:53 AM, Loftus, Ciara wrote: Subject: [PATCH v1] net/af_xdp: make umem configure code more readable The below compile time defined style make the code not so readable, the first function end block is after "#endif" segment. #if defined(XDP_UMEM_UNALIGNED_CHUNK_FLAG)

Re: [PATCH v4 1/2] gpudev: expose GPU memory to CPU

2022-02-10 Thread Elena Agostini
> From: Wang, Haiyue > Date: Thursday, 27 January 2022 at 07:56 > To: Elena Agostini , dev@dpdk.org > Subject: RE: [PATCH v4 1/2] gpudev: expose GPU memory to CPU > External email: Use caution opening links or attachments > > > > -Original Message- > > From: eagost...@nvidia.com > > Sent

Re: Can I use rte_pktmbuf_chain to chain multiple mbuffs for calling only single tx_eth_burst API

2022-02-10 Thread Ferruh Yigit
On 2/10/2022 10:37 AM, Ansar Kannankattil wrote: moved down, please avoid top post On Thu, Feb 10, 2022 at 2:26 PM Ferruh Yigit mailto:ferruh.yi...@intel.com>> wrote: On 2/9/2022 10:46 PM, Stephen Hemminger wrote: > On Wed, 9 Feb 2022 22:18:24 + > Ferruh Yigit mailto:ferruh.y

RE: [PATCH] raw/ntb: add check for DB intr handler registering

2022-02-10 Thread Guo, Junfeng
> -Original Message- > From: Guo, Junfeng > Sent: Thursday, February 10, 2022 15:18 > To: Wu, Jingjing > Cc: dev@dpdk.org; sta...@dpdk.org > Subject: RE: [PATCH] raw/ntb: add check for DB intr handler registering > > > > > -Original Message- > > From: Wu, Jingjing > > Sent:

[PATCH v2] net/iavf: initialize large VF setting at startup

2022-02-10 Thread Ghalem Boudour
lv_enabled is used to remember if large VF setting is configured, but its value is not initialized at startup. This can lead to a different configuration regarding the initial configuration of the PF. For example, a first start is done with 8 rx and 8 tx queues. Large VF is not needed and reta size

[PATCH v4 0/7] NXP crypto drivers changes

2022-02-10 Thread Gagandeep Singh
v4-change-log * fix i386 compilation v3-change-log * fix checkpatch issues * use devargs for strict ordering * fix AES_CMAC capabilities * remove GMAC patch from this series. I will send it as separate patch. v2-change-log * using dev args for both DPAA1 and DPAA2 drivers to dump debug prints on

[PATCH v4 1/7] common/dpaax: caamflib: Remove code related to SEC ERA 1 to 7

2022-02-10 Thread Gagandeep Singh
From: Franck LENORMAND DPAA1 and DPAA2 platforms use SEC ERA 8 and 10 only. This patch removes code in SDAP and PDCP header related to these ERA to simplify the codebase: - Simplify logic using RTA_SEC_ERA_<> macro - Remove era_2_sw_hfn_ovrd dedicated to RTA_SEC_ERA_2 Signed-off-by: Franck LE

[PATCH v4 2/7] common/dpaax: change job processing mode for PDCP SDAP

2022-02-10 Thread Gagandeep Singh
For PDCP SDAP test cases, HW sec engine process the jobs in WAIT mode. Signed-off-by: Gagandeep Singh --- drivers/common/dpaax/caamflib/desc/sdap.h | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/common/dpaax/caamflib/desc/sdap.h b/drivers/comm

[PATCH v4 3/7] crypto/dpaa2_sec: change capabilities for AES_CMAC

2022-02-10 Thread Gagandeep Singh
From: Hemant Agrawal Add IV size and change the digest size to supported value by the HW engine. Signed-off-by: Hemant Agrawal Signed-off-by: Gagandeep Singh --- drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/d

[PATCH v4 4/7] crypto/dpaa2_sec: add useful debug prints in sec dequeue

2022-02-10 Thread Gagandeep Singh
Few useful debug prints added in dequeue function. Signed-off-by: Gagandeep Singh --- doc/guides/cryptodevs/dpaa2_sec.rst | 10 ++ drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 136 +++- 2 files changed, 144 insertions(+), 2 deletions(-) diff --git a/doc/guides/cryptode

[PATCH v4 5/7] crypto/dpaa2: fix to check next type for auth or cipher

2022-02-10 Thread Gagandeep Singh
From: Hemant Agrawal This patch add more checks on next type for PDCP cases. Fixes: 45e019608f31 ("crypto/dpaa2_sec: support integrity only PDCP") Fixes: a1173d55598c ("crypto/dpaa_sec: support PDCP offload") Cc: sta...@dpdk.org Signed-off-by: Hemant Agrawal --- drivers/crypto/dpaa2_sec/dpaa2

[PATCH v4 6/7] crypto/dpaa2_sec: ordered queue support

2022-02-10 Thread Gagandeep Singh
From: Nipun Gupta This patch supports ordered queue for DPAA2 platform. Signed-off-by: Nipun Gupta Signed-off-by: Gagandeep Singh --- doc/guides/cryptodevs/dpaa2_sec.rst | 7 + drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 288 ++-- drivers/crypto/dpaa2_sec/dpaa2_sec

[PATCH v4 7/7] crypto/dpaa_sec: add debug framework

2022-02-10 Thread Gagandeep Singh
Adding useful debug prints in DPAA driver for easy debugging. Signed-off-by: Gagandeep Singh --- doc/guides/cryptodevs/dpaa_sec.rst | 10 ++ drivers/bus/dpaa/dpaa_bus.c| 16 ++- drivers/crypto/dpaa_sec/dpaa_sec.c | 192 - 3 files changed, 213 insertions(+),

RE: [PATCH] ethdev: introduce generic dummy packet burst function

2022-02-10 Thread Morten Brørup
> From: Ferruh Yigit [mailto:ferruh.yi...@intel.com] > Sent: Tuesday, 8 February 2022 20.45 > > Multiple PMDs have dummy/noop Rx/Tx packet burst functions. > > These dummy functions are very simple, introduce a common function in > the ethdev and update drivers to use it instead of each driver ha

Re: [dpdk-dev] [PATCH] ethdev: remove unnecessary NULL check

2022-02-10 Thread Ferruh Yigit
On 2/9/2022 3:32 PM, Stephen Hemminger wrote: On Wed, 9 Feb 2022 20:24:10 +0800 Yunjian Wang wrote: This NULL check is unnecessary, 'eth_dev' is never NULL. Fixes: 58b43c1ddfd1 ("ethdev: add telemetry endpoint for device info") Cc: sta...@dpdk.org Signed-off-by: Yunjian Wang Acked-by: St

Re: Can I use rte_pktmbuf_chain to chain multiple mbuffs for calling only single tx_eth_burst API

2022-02-10 Thread Ansar Kannankattil
Thanks for the responses, Then what is the advantage of chaining mbuffs over using the mbuff array? On Thu, Feb 10, 2022 at 2:26 PM Ferruh Yigit wrote: > On 2/9/2022 10:46 PM, Stephen Hemminger wrote: > > On Wed, 9 Feb 2022 22:18:24 + > > Ferruh Yigit wrote: > > > >> On 2/9/2022 6:03 PM, An

Re: [EXT] Re: [PATCH 0/2] add telemetry for inline IPsec

2022-02-10 Thread Bruce Richardson
On Thu, Feb 10, 2022 at 10:04:22AM +, Ankur Dwivedi wrote: > Hi Bruce, > > Please see my comment inline. > > Regards, > Ankur > > >-Original Message- > >From: Bruce Richardson > >Sent: Thursday, February 10, 2022 2:42 PM > >To: Ankur Dwivedi > >Cc: dev@dpdk.org; Nithin Kumar Dabilp

Re: Can I use rte_pktmbuf_chain to chain multiple mbuffs for calling only single tx_eth_burst API

2022-02-10 Thread Bruce Richardson
On Thu, Feb 10, 2022 at 04:07:02PM +0530, Ansar Kannankattil wrote: >Thanks for the responses, >Then what is the advantage of chaining mbuffs over using the mbuff >array? > They imply different things. * An array of mbufs represents multiple packets. * A chain of mbufs is a single pack

Re: [PATCH] ethdev: introduce generic dummy packet burst function

2022-02-10 Thread Andrew Rybchenko
On 2/10/22 14:04, Morten Brørup wrote: From: Ferruh Yigit [mailto:ferruh.yi...@intel.com] Sent: Tuesday, 8 February 2022 20.45 Multiple PMDs have dummy/noop Rx/Tx packet burst functions. These dummy functions are very simple, introduce a common function in the ethdev and update drivers to use i

RE: [PATCH] ethdev: introduce generic dummy packet burst function

2022-02-10 Thread Morten Brørup
> From: Andrew Rybchenko [mailto:andrew.rybche...@oktetlabs.ru] > Sent: Thursday, 10 February 2022 12.39 > > On 2/10/22 14:04, Morten Brørup wrote: > >> From: Ferruh Yigit [mailto:ferruh.yi...@intel.com] > >> Sent: Tuesday, 8 February 2022 20.45 > >> > >> Multiple PMDs have dummy/noop Rx/Tx packet

[PATCH] mempool/cnxk: fix bug in batch alloc issue failure path

2022-02-10 Thread Ashwin Sekhar T K
Fix bug in batch alloc issue failure path. Fixes: 91531e63f4 ("mempool/cnxk: add cn10k batch dequeue") Signed-off-by: Ashwin Sekhar T K --- drivers/mempool/cnxk/cn10k_mempool_ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mempool/cnxk/cn10k_mempool_ops.c b/dr

Re: [PATCH] ethdev: introduce generic dummy packet burst function

2022-02-10 Thread Andrew Rybchenko
On 2/10/22 14:47, Morten Brørup wrote: From: Andrew Rybchenko [mailto:andrew.rybche...@oktetlabs.ru] Sent: Thursday, 10 February 2022 12.39 On 2/10/22 14:04, Morten Brørup wrote: From: Ferruh Yigit [mailto:ferruh.yi...@intel.com] Sent: Tuesday, 8 February 2022 20.45 Multiple PMDs have dummy/no

[PATCH v2 0/7] Verify C++ compatibility of public headers

2022-02-10 Thread Bruce Richardson
This patchset expands upon the exiting chkincs infrastructure to build a C++ test application as well as the existing C test app, which helps catch any build errors when the public DPDK headers are included in C++ code. The rest of this patchset fixes the errors caught by this additional check - mo

[PATCH v2 1/7] eal: fix header build with C++

2022-02-10 Thread Bruce Richardson
C++ files could not include some headers because: * "new" is a keyword in C++, so can't be a variable name * there is no automatic casting to/from void * Fixes: 184104fc6121 ("ticketlock: introduce fair ticket based locking") Fixes: ebaee6409702 ("trace: simplify trace point headers") Cc: joyce.k

[PATCH v2 2/7] eventdev: fix header build with C++

2022-02-10 Thread Bruce Richardson
The eventdev headers had issues when used from C++ * Missing closing "}" for the extern "C" block * No automatic casting to/from void * Fixes: a6562f6d6f8e ("eventdev: introduce event timer adapter") Fixes: 32e326869ed6 ("eventdev: add tracepoints") Cc: erik.g.carri...@intel.com Cc: sk...@marvell

[PATCH v2 3/7] graph: fix missing explicit cast for C++ build

2022-02-10 Thread Bruce Richardson
C++ does not have automatic casting to/from void pointers, so need explicit cast if header is to be included in C++ code Fixes: 40d4f51403ec ("graph: implement fastpath routines") Cc: jer...@marvell.com Cc: sta...@dpdk.org Signed-off-by: Bruce Richardson Acked-by: Jerin Jacob --- lib/graph/rte

[PATCH v2 4/7] ipsec: fix missing explicit cast for C++ build

2022-02-10 Thread Bruce Richardson
C++ does not have automatic casting to/from void pointers, so need explicit cast if header is to be included in C++ code Fixes: f901d9c82688 ("ipsec: add helpers to group completed crypto-ops") Cc: konstantin.anan...@intel.com Cc: sta...@dpdk.org Signed-off-by: Bruce Richardson --- lib/ipsec/rt

[PATCH v2 5/7] table: fix missing explicit casts for C++ build

2022-02-10 Thread Bruce Richardson
Since C++ doesn't support automatic casting from void * to other types, we need to explicitly add the casts to any header files in DPDK. Fixes: ea7be0a0386e ("lib/librte_table: add hash function headers") Cc: kevin.la...@intel.com Cc: cristian.dumitre...@intel.com Cc: sta...@dpdk.org Signed-off-b

[PATCH v2 6/7] vhost: fix incompatible header includes for C++

2022-02-10 Thread Bruce Richardson
The virtio kernel header includes are already noted as being incompatible with C++. We can ensure that the header is safe for inclusion in C++ code by not including those headers during C++ builds. While not ideal, this does ensure that all DPDK headers can be included in C++ code without errors.

[PATCH v2 7/7] buildtools/chkincs: test headers for C++ compatibility

2022-02-10 Thread Bruce Richardson
Add support for checking each of our headers for issues when included in a C++ file. Signed-off-by: Bruce Richardson --- buildtools/chkincs/main.cpp| 4 buildtools/chkincs/meson.build | 20 2 files changed, 24 insertions(+) create mode 100644 buildtools/chkincs/ma

Re: [PATCH] ip_frag: add IPv4 options fragment and unit test data

2022-02-10 Thread Ananyev, Konstantin
> > According to RFC791,the options may appear or not in datagrams. > They must be implemented by all IP modules (host and gateways). > What is optional is their transmission in any particular datagram, > not their implementation.So we have to deal with it during the > fragmenting process.Add s

Re: [PATCH v3] ethdev: introduce dump API

2022-02-10 Thread Ferruh Yigit
On 2/9/2022 1:21 AM, Min Hu (Connor) wrote: Added the ethdev dump API which provides querying private info from ethdev. There exists many private properties in different PMD drivers, such as adapter state, Rx/Tx func algorithm in hns3 PMD. The information of these properties is important for debu

Re: [PATCH v3] ethdev: introduce dump API

2022-02-10 Thread Ferruh Yigit
On 2/10/2022 12:32 PM, Ferruh Yigit wrote: On 2/9/2022 1:21 AM, Min Hu (Connor) wrote: Added the ethdev dump API which provides querying private info from ethdev. There exists many private properties in different PMD drivers, such as adapter state, Rx/Tx func algorithm in hns3 PMD. The informati

Re: [PATCH v3] ethdev: introduce dump API

2022-02-10 Thread Ferruh Yigit
On 2/9/2022 1:21 AM, Min Hu (Connor) wrote: Added the ethdev dump API which provides querying private info from ethdev. There exists many private properties in different PMD drivers, such as adapter state, Rx/Tx func algorithm in hns3 PMD. The information of these properties is important for debu

RE: [PATCH v2 4/7] ipsec: fix missing explicit cast for C++ build

2022-02-10 Thread Ananyev, Konstantin
> C++ does not have automatic casting to/from void pointers, so need > explicit cast if header is to be included in C++ code > > Fixes: f901d9c82688 ("ipsec: add helpers to group completed crypto-ops") > Cc: konstantin.anan...@intel.com > Cc: sta...@dpdk.org > > Signed-off-by: Bruce Richardson

Re: [PATCH v2 1/7] eal: fix header build with C++

2022-02-10 Thread David Marchand
On Thu, Feb 10, 2022 at 1:03 PM Bruce Richardson wrote: > > C++ files could not include some headers because: > > * "new" is a keyword in C++, so can't be a variable name > * there is no automatic casting to/from void * > > Fixes: 184104fc6121 ("ticketlock: introduce fair ticket based locking") >

[PATCH] net/iavf: fix segmentation offload buffer size

2022-02-10 Thread Radu Nicolau
This reverts commit ff8b8bcd2ebe, which resulted in incorrect buffer size being computed for TSO packets. Fixes: ff8b8bcd2ebe ("net/iavf: fix segmentation offload condition") Signed-off-by: Radu Nicolau --- drivers/net/iavf/iavf_rxtx.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-

[PATCH v4] net/cnxk: avoid command copy from Tx queue

2022-02-10 Thread pbhagavatula
From: Pavan Nikhilesh Tx command is prepared based on offloads enabled and stored in Tx queue structure at tx_queue_setup phase. In fastpath the command is copied from Tx queue to LMT line for all the packets. Since, the command contents are mostly constants we can move the command preparation to

[PATCH v4 1/3] event/cnxk: store and reuse workslot status

2022-02-10 Thread pbhagavatula
From: Pavan Nikhilesh Store and reuse workslot status for TT, GRP and HEAD status instead of reading from GWC as reading from GWC imposes additional latency. Signed-off-by: Pavan Nikhilesh --- Depends-on: 21590 v4 Changes: - Update commit title for 3/3 v3 Changes: - Split and rebase patc

[PATCH v4 2/3] event/cnxk: disable default wait time for dequeue

2022-02-10 Thread pbhagavatula
From: Pavan Nikhilesh Setting WAITW bit enables default min dequeue timeout of 1us. Avoid the min dequeue timeout by setting WAITW only when dequeue_timeout is configured. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn10k_eventdev.c | 8 +-- drivers/event/cnxk/cn9k_eventdev.c |

[PATCH v4 3/3] event/cnxk: improve Rx performance

2022-02-10 Thread pbhagavatula
From: Pavan Nikhilesh Improve vWQE and CQ Rx performance by tuning perfetches to 64B cacheline size. Also, prefetch the vWQE array offsets at cacheline boundaries. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn10k_worker.h | 25 +++-- drivers/net/cnxk/cn10k_rx.h

Re: [PATCH v3] ethdev: introduce dump API

2022-02-10 Thread Ferruh Yigit
On 2/10/2022 1:16 PM, Min Hu (Connor) wrote: Hi, Ferruh, 在 2022/2/10 20:37, Ferruh Yigit 写道: On 2/9/2022 1:21 AM, Min Hu (Connor) wrote: Added the ethdev dump API which provides querying private info from ethdev. There exists many private properties in different PMD drivers, such as adapter st

Re: [PATCH v2] devtools/cocci: update cocci for ethdev namespace

2022-02-10 Thread Singh, Aman Deep
On 2/4/2022 1:17 PM, Thomas Monjalon wrote: 04/02/2022 07:13, Singh, Aman Deep: Hi Thomas On 2/3/2022 2:31 AM, Thomas Monjalon wrote: 23/01/2022 18:20, Aman Singh: Added two specific exceptions for ETH_SPEED_10G and ETH_SPEED_25G to avoid there name change. Added check for ETH_TUNNEL_FILTER

RE: [EXT] Re: [PATCH 0/2] add telemetry for inline IPsec

2022-02-10 Thread Ankur Dwivedi
>-Original Message- >From: Bruce Richardson >Sent: Thursday, February 10, 2022 5:02 PM >To: Ankur Dwivedi >Cc: dev@dpdk.org; Nithin Kumar Dabilpuram ; >Kiran Kumar Kokkilagadda ; Sunil Kumar Kori >; Satha Koteswara Rao Kottidi >; Jerin Jacob Kollanukkaran >; Anoob Joseph ; Tejasree >Ko

Re: [PATCH 1/2] net/sfc: do not push fast free offload to default TxQ config

2022-02-10 Thread Ferruh Yigit
On 2/8/2022 11:26 PM, Ivan Malov wrote: Doing so is wrong since fast free is an adapter-wide offload. Technically, the offending commit (see "Fixes" tag) does not induce failures, however, such started to occur after commit a4996bd89c42 ("ethdev: new Rx/Tx offloads API") had shown up, because of

Re: [PATCH v4 1/1] vhost: integrate dmadev in asynchronous data-path

2022-02-10 Thread Maxime Coquelin
On 2/9/22 13:51, Jiayu Hu wrote: Since dmadev is introduced in 21.11, to avoid the overhead of vhost DMA abstraction layer and simplify application logics, this patch integrates dmadev in asynchronous data path. Signed-off-by: Jiayu Hu Signed-off-by: Sunil Pai G --- doc/guides/prog_guide/

Re: [PATCH] ethdev: introduce generic dummy packet burst function

2022-02-10 Thread Ferruh Yigit
On 2/8/2022 7:44 PM, Ferruh Yigit wrote: diff --git a/drivers/net/mlx5/linux/mlx5_os.c b/drivers/net/mlx5/linux/mlx5_os.c index aecdc5a68abb..bbe05bb837e0 100644 --- a/drivers/net/mlx5/linux/mlx5_os.c +++ b/drivers/net/mlx5/linux/mlx5_os.c @@ -1623,8 +1623,8 @@ mlx5_dev_spawn(struct rte_device *d

[PATCH v5 0/5] crypto: improve asym session usage

2022-02-10 Thread Ciara Power
This patchset includes improvements for the asymmetric session. The main change is to the session structure, which is now a single mempool object, rather than having pointers to private data elsewhere. This session structure is now hidden in an internal header, so the app will never use it directly

[PATCH v5 1/5] doc: replace asym crypto code with literal includes

2022-02-10 Thread Ciara Power
The programmer's guide for cryptodev included sample code for using Asymmetric crypto. This is now replaced with direct code from the test application, using literal includes. It is broken into snippets as the test application didn't have all of the required code in one function. Signed-off-by: Ci

[PATCH v5 2/5] crypto: use single buffer for asymmetric session

2022-02-10 Thread Ciara Power
Rather than using a session buffer that contains pointers to private session data elsewhere, have a single session buffer. This session is created for a driver ID, and the mempool element contains space for the max session private data needed for any driver. Signed-off-by: Ciara Power Acked-by: F

[PATCH v5 3/5] crypto: hide asym session structure

2022-02-10 Thread Ciara Power
The rte_cryptodev_asym_session structure is now moved to an internal header. This will no longer be used directly by apps, private session data can be accessed via get API. Signed-off-by: Ciara Power Acked-by: Fan Zhang --- v4: - Initialised session variables as NULL. - Removed docs code ad

[PATCH v5 4/5] crypto: add asym session user data API

2022-02-10 Thread Ciara Power
A user data field is added to the asymmetric session structure. Relevant API added to get/set the field. Signed-off-by: Ciara Power Acked-by: Fan Zhang Acked-by: Anoob Joseph --- v4: - Reworded release notes. - Added possible error return values in function comment. - Removed docs code a

[PATCH v5 5/5] crypto: modify return value for asym session create

2022-02-10 Thread Ciara Power
Rather than the asym session create function returning a session on success, and a NULL value on error, it is modified to now return int values - 0 on success or -EINVAL/-ENOTSUP/-ENOMEM on failure. The session to be used is passed as input. This adds clarity on the failure of the create function,

[PATCH v3 0/7] Verify C++ compatibility of public headers

2022-02-10 Thread Bruce Richardson
This patchset expands upon the exiting chkincs infrastructure to build a C++ test application as well as the existing C test app, which helps catch any build errors when the public DPDK headers are included in C++ code. The rest of this patchset fixes the errors caught by this additional check - mo

[PATCH v3 1/7] eal: fix header build with C++

2022-02-10 Thread Bruce Richardson
C++ files could not include some headers because: * "new" is a keyword in C++, so can't be a variable name * there is no automatic casting to/from void * Fixes: 184104fc6121 ("ticketlock: introduce fair ticket based locking") Fixes: ebaee6409702 ("trace: simplify trace point headers") Cc: joyce.k

[PATCH v3 2/7] eventdev: fix header build with C++

2022-02-10 Thread Bruce Richardson
The eventdev headers had issues when used from C++ * Missing closing "}" for the extern "C" block * No automatic casting to/from void * Fixes: a6562f6d6f8e ("eventdev: introduce event timer adapter") Fixes: 32e326869ed6 ("eventdev: add tracepoints") Cc: erik.g.carri...@intel.com Cc: sk...@marvell

[PATCH v3 3/7] graph: fix missing explicit cast for C++ build

2022-02-10 Thread Bruce Richardson
C++ does not have automatic casting to/from void pointers, so need explicit cast if header is to be included in C++ code Fixes: 40d4f51403ec ("graph: implement fastpath routines") Cc: jer...@marvell.com Cc: sta...@dpdk.org Signed-off-by: Bruce Richardson Acked-by: Jerin Jacob --- lib/graph/rte

[PATCH v3 4/7] ipsec: fix missing explicit cast for C++ build

2022-02-10 Thread Bruce Richardson
C++ does not have automatic casting to/from void pointers, so need explicit cast if header is to be included in C++ code Fixes: f901d9c82688 ("ipsec: add helpers to group completed crypto-ops") Cc: konstantin.anan...@intel.com Cc: sta...@dpdk.org Signed-off-by: Bruce Richardson --- lib/ipsec/rt

[PATCH v3 5/7] table: fix missing explicit casts for C++ build

2022-02-10 Thread Bruce Richardson
Since C++ doesn't support automatic casting from void * to other types, we need to explicitly add the casts to any header files in DPDK. Fixes: ea7be0a0386e ("lib/librte_table: add hash function headers") Cc: kevin.la...@intel.com Cc: cristian.dumitre...@intel.com Cc: sta...@dpdk.org Signed-off-b

[PATCH v3 6/7] vhost: fix incompatible header includes for C++

2022-02-10 Thread Bruce Richardson
The virtio kernel header includes are already noted as being incompatible with C++. We can ensure that the header is safe for inclusion in C++ code by not including those headers during C++ builds. While not ideal, this does ensure that all DPDK headers can be included in C++ code without errors.

[PATCH v3 7/7] buildtools/chkincs: test headers for C++ compatibility

2022-02-10 Thread Bruce Richardson
Add support for checking each of our headers for issues when included in a C++ file. Signed-off-by: Bruce Richardson --- .ci/linux-build.sh | 1 + buildtools/chkincs/main.cpp| 4 buildtools/chkincs/meson.build | 20 3 files changed, 25 insertions(+) c

RE: [PATCH v5] eal: fix unaligned loads/stores in rte_memcpy_generic

2022-02-10 Thread Ananyev, Konstantin
Hi Luc, > > > Calls to rte_memcpy_generic could result in unaligned loads/stores for > > > 1 < n < 16. This is undefined behavior according to the C standard, > > > and it gets flagged by the clang undefined behavior sanitizer. > > > > > > rte_memcpy_generic is called with unaligned src and dst ad

Re: [PATCH v2 1/7] eal: fix header build with C++

2022-02-10 Thread Bruce Richardson
On Thu, Feb 10, 2022 at 01:57:09PM +0100, David Marchand wrote: > On Thu, Feb 10, 2022 at 1:03 PM Bruce Richardson > wrote: > > > > C++ files could not include some headers because: > > > > * "new" is a keyword in C++, so can't be a variable name > > * there is no automatic casting to/from void *

RE: [PATCH v2] net/iavf: initialize large VF setting at startup

2022-02-10 Thread Xu, Ting
> -Original Message- > From: Ghalem Boudour > Sent: Thursday, February 10, 2022 6:49 PM > To: Wu, Jingjing ; Xing, Beilei > Cc: dev@dpdk.org; Xu, Ting ; Ghalem Boudour > ; Thibaut Collet ; > Olivier Matz > Subject: [PATCH v2] net/iavf: initialize large VF setting at startup > > lv_enabl

RE: [EXT] [PATCH v5 2/5] crypto: use single buffer for asymmetric session

2022-02-10 Thread Anoob Joseph
Hi Ciara, Minor nit inline. With that Series Acked-by: Anoob Joseph Thanks, Anoob > -Original Message- > From: Ciara Power > Sent: Thursday, February 10, 2022 7:32 PM > To: dev@dpdk.org > Cc: roy.fan.zh...@intel.com; Akhil Goyal ; Anoob Joseph > ; m...@ashroe.eu; Ciara Power > ; Decla

[PATCH v2 1/3] net/ark: add device capabilities record

2022-02-10 Thread John Miller
--- v2: Certain variants require that PCIe read-requests be correctly throttled. This is called "rqpacing" in Arkville, and has to do with credit and flow control on certain Arkville implementations. Improved code readability and comments. --- Signed-off-by: John Miller --- drivers/net/ark/a

[PATCH v2 2/3] net/ark: support arbitrary mbuf size

2022-02-10 Thread John Miller
--- v2: Added arbitrary mbuf size per queue capability. Updated ARK_UDM_CONST3 value to reflect the version number read from the HW that is required to support this change. --- Signed-off-by: John Miller --- drivers/net/ark/ark_ethdev.c| 8 drivers/net/ark/ark_ethdev_rx.c | 23 +

[PATCH v2 3/3] net/ark: support chunk DMA transfers

2022-02-10 Thread John Miller
--- v2: Various performance optimizations and behavior fixes - Chunk mpu transfer use 64 objects (512 byte) to maintain memory read alignment - Align mpu memory allocation to be at 512 byte boundaries - Reduce force-close allocation from 1 objects to 64 objects - Add memory write barriers

Re: [PATCH v3 7/7] buildtools/chkincs: test headers for C++ compatibility

2022-02-10 Thread David Marchand
On Thu, Feb 10, 2022 at 3:05 PM Bruce Richardson wrote: > > Add support for checking each of our headers for issues when included in > a C++ file. > > Signed-off-by: Bruce Richardson > --- > .ci/linux-build.sh | 1 + > buildtools/chkincs/main.cpp| 4 > buildtools/chkincs/m

Re: [PATCH] vdpa/sfc: fix null pointer dereference

2022-02-10 Thread Maxime Coquelin
Hi, On 2/4/22 12:56, Weiguo Li wrote: The macro sfc_vdpa_info(sva, ...) will invoke sva->logtype_main, It'll trigger a NULL dereference when sva is NULL. This patch fix it. BTW this patch is not superseded by another one: [v2] vdpa/sfc: fix null dereference (http://dpdk.org/patch/106720)

  1   2   3   >