[dpdk-dev v2 3/5] crypto/openssl: 3.0 EVP update on RSA routine

2022-05-16 Thread Kai Ji
This patch updates asymmetric RSA routine in crypto openssl pmd to adopt openssl 3.0 EVP apis. Signed-off-by: Kai Ji --- drivers/crypto/openssl/openssl_pmd_private.h | 7 + drivers/crypto/openssl/rte_openssl_pmd.c | 149 +++ drivers/crypto/openssl/rte_openssl_pmd_ops.c | 11

[dpdk-dev v2 4/5] crypto/openssl: 3.0 EVP update on DH routine

2022-05-16 Thread Kai Ji
This patch updates asymmetric DH routine in crypto openssl pmd to adopt openssl 3.0 EVP apis. Signed-off-by: Kai Ji --- drivers/crypto/openssl/openssl_pmd_private.h | 4 + drivers/crypto/openssl/rte_openssl_pmd.c | 186 ++- drivers/crypto/openssl/rte_openssl_pmd_ops.c | 47

[dpdk-dev v2 5/5] crypto/openssl: 3.0 EVP update on DSA routine

2022-05-16 Thread Kai Ji
This patch updates asymmetric DSA routine in crypto openssl pmd to adopt openssl 3.0 EVP apis. Divide the single combined dsa sign test to two indiviual dsa sign and dsa verfiy tests. Signed-off-by: Kai Ji --- app/test/test_cryptodev_asym.c | 91 -- drivers/crypto/openssl/

Re: [PATCH v3 1/5] eventdev: support to set queue attributes at runtime

2022-05-16 Thread Mattias Rönnblom
On 2022-05-16 05:57, Shijith Thotton wrote: >>> Added a new eventdev API rte_event_queue_attr_set(), to set event queue >>> attributes at runtime from the values set during initialization using >>> rte_event_queue_setup(). PMD's supporting this feature should expose the >>> capability RTE_EVENT_DEV

[PATCH v2] net/cxgbe: read firmware configuration file from filesystem

2022-05-16 Thread Rahul Lakkireddy
Add support to read firmware configuration file from /lib/firmware/cxgb4/ path in the filesystem. The firmware config file is used to enable or disable NIC features before firmware initialization to help retrieve better debug data to analyze firmware init failures. The config file can also be used

Re: [PATCH v3] doc: update matching versions in i40e guide

2022-05-16 Thread Kevin Traynor
On 16/05/2022 06:55, Qiming Yang wrote: Add recommended matching list for i40e PMD in DPDK 21.05, 21.08, 21.11 and 22.03. And add a known issue when FW upgrade to a version higher than 8.4. Just a minor thing on the wording, 'version higher than 8.4' suggests that 8.4 is not impacted by this

Re: [PATCH v2] net/cxgbe: read firmware configuration file from filesystem

2022-05-16 Thread Ferruh Yigit
On 5/16/2022 11:27 AM, Rahul Lakkireddy wrote: Add support to read firmware configuration file from /lib/firmware/cxgb4/ path in the filesystem. The firmware config file is used to enable or disable NIC features before firmware initialization to help retrieve better debug data to analyze firmware

[PATCH v8 0/5] vhost: support async dequeue data path

2022-05-16 Thread xuan . ding
From: Xuan Ding The presence of asynchronous path allows applications to offload memory copies to DMA engine, so as to save CPU cycles and improve the copy performance. This patch set implements vhost async dequeue data path for split ring. The code is based on latest enqueue changes [1]. This p

[PATCH v8 1/5] vhost: prepare sync for descriptor to mbuf refactoring

2022-05-16 Thread xuan . ding
From: Xuan Ding This patch extracts the descriptors to buffers filling from copy_desc_to_mbuf() into a dedicated function. Besides, enqueue and dequeue path are refactored to use the same function sync_fill_seg() for preparing batch elements, which simplifies the code without performance degradat

[PATCH v8 2/5] vhost: prepare async for descriptor to mbuf refactoring

2022-05-16 Thread xuan . ding
From: Xuan Ding This patch refactors vhost async enqueue path and dequeue path to use the same function async_fill_seg() for preparing batch elements, which simplifies the code without performance degradation. Signed-off-by: Xuan Ding Tested-by: Yvonne Yang Reviewed-by: Maxime Coquelin --- l

[PATCH v8 3/5] vhost: merge sync and async descriptor to mbuf filling

2022-05-16 Thread xuan . ding
From: Xuan Ding This patch refactors copy_desc_to_mbuf() used by the sync path to support both sync and async descriptor to mbuf filling. Signed-off-by: Xuan Ding Tested-by: Yvonne Yang Reviewed-by: Maxime Coquelin --- lib/vhost/vhost.h | 1 + lib/vhost/virtio_net.c | 48 ++

[PATCH v8 4/5] vhost: support async dequeue for split ring

2022-05-16 Thread xuan . ding
From: Xuan Ding This patch implements asynchronous dequeue data path for vhost split ring, a new API rte_vhost_async_try_dequeue_burst() is introduced. Signed-off-by: Xuan Ding Signed-off-by: Yuan Wang Tested-by: Yvonne Yang Reviewed-by: Maxime Coquelin --- doc/guides/prog_guide/vhost_lib.r

[PATCH v8 5/5] examples/vhost: support async dequeue data path

2022-05-16 Thread xuan . ding
From: Xuan Ding This patch adds the use case for async dequeue API. Vswitch can leverage DMA device to accelerate vhost async dequeue path. Signed-off-by: Wenwu Ma Signed-off-by: Yuan Wang Signed-off-by: Xuan Ding Tested-by: Yvonne Yang Reviewed-by: Maxime Coquelin --- doc/guides/sample_ap

Re: [PATCH v2] net/cxgbe: read firmware configuration file from filesystem

2022-05-16 Thread Rahul Lakkireddy
On Monday, May 05/16/22, 2022 at 12:06:01 +0100, Ferruh Yigit wrote: > On 5/16/2022 11:27 AM, Rahul Lakkireddy wrote: > > Add support to read firmware configuration file from > > /lib/firmware/cxgb4/ path in the filesystem. The firmware > > config file is used to enable or disable NIC features befo

RE: [PATCH v3 1/5] eventdev: support to set queue attributes at runtime

2022-05-16 Thread Shijith Thotton
Added a new eventdev API rte_event_queue_attr_set(), to set event queue attributes at runtime from the values set during initialization using rte_event_queue_setup(). PMD's supporting this feature should expose the capability RTE_EVENT_DEV_CAP_RUNTIME_QUEUE_ATTR. Signe

RE: [PATCH v4] doc: fix vhost multi-queue reconnection

2022-05-16 Thread Xia, Chenbo
> -Original Message- > From: Ding, Xuan > Sent: Monday, May 9, 2022 12:12 PM > To: maxime.coque...@redhat.com; Xia, Chenbo > Cc: dev@dpdk.org; Hu, Jiayu ; Ding, Xuan > ; sta...@dpdk.org > Subject: [PATCH v4] doc: fix vhost multi-queue reconnection > > From: Xuan Ding > > Since QEMU 5.2

RE: [PATCH] examples/vhost: fix floating point exception when there is no VMDQ

2022-05-16 Thread Xia, Chenbo
Hi Yuan, > -Original Message- > From: Wang, YuanX > Sent: Tuesday, April 12, 2022 12:35 AM > To: maxime.coque...@redhat.com; Xia, Chenbo > Cc: dev@dpdk.org; Hu, Jiayu ; He, Xingguang > ; Wang, YuanX > Subject: [PATCH] examples/vhost: fix floating point exception when there > is no VMDQ

RE: [PATCH v1 0/4] Enable yellow meter hierarchy

2022-05-16 Thread Raslan Darawsheh
Hi, > -Original Message- > From: Shun Hao > Sent: Friday, May 13, 2022 10:33 AM > To: Slava Ovsiienko ; Matan Azrad > ; Ori Kam > Cc: dev@dpdk.org; Raslan Darawsheh > Subject: [PATCH v1 0/4] Enable yellow meter hierarchy > > To support yellow meter hierarchy, need to support meter acti

RE: [PATCH 1/6] Revert "app/testpmd: modify mac in csum forwarding"

2022-05-16 Thread Xia, Chenbo
+ testpmd maintainers > -Original Message- > From: Maxime Coquelin > Sent: Thursday, May 5, 2022 6:27 PM > To: dev@dpdk.org; jasow...@redhat.com; Xia, Chenbo ; > david.march...@redhat.com; olivier.m...@6wind.com > Cc: sta...@dpdk.org; Maxime Coquelin > Subject: [PATCH 1/6] Revert "app/te

RE: [PATCH 2/6] vhost: fix missing enqueue pseudo-header calculation

2022-05-16 Thread Xia, Chenbo
> -Original Message- > From: Maxime Coquelin > Sent: Thursday, May 5, 2022 6:27 PM > To: dev@dpdk.org; jasow...@redhat.com; Xia, Chenbo ; > david.march...@redhat.com; olivier.m...@6wind.com > Cc: sta...@dpdk.org; Maxime Coquelin > Subject: [PATCH 2/6] vhost: fix missing enqueue pseudo-hea

Re: [PATCH] libpcapng: fix timestamp wrapping in output files

2022-05-16 Thread Stephen Hemminger
On Sat, 14 May 2022 18:14:48 +0100 Quentin Armitage wrote: > The final statement of pcapng_tsc_to_ns() should be: > return pcapng_time.ns + elapsed * TICK_SCALE; > > There is also a problem that rte_get_tsc_hz() returns eal_tsc_resolution_hz, > but > this is not initialized until rte_eal_

RE: [PATCH 3/6] net/vhost: enable compliant offloading mode

2022-05-16 Thread Xia, Chenbo
Hi Maxime, > -Original Message- > From: Maxime Coquelin > Sent: Thursday, May 5, 2022 6:27 PM > To: dev@dpdk.org; jasow...@redhat.com; Xia, Chenbo ; > david.march...@redhat.com; olivier.m...@6wind.com > Cc: sta...@dpdk.org; Maxime Coquelin > Subject: [PATCH 3/6] net/vhost: enable complia

RE: [PATCH 4/6] net/vhost: make VLAN stripping flag a boolean

2022-05-16 Thread Xia, Chenbo
> -Original Message- > From: Maxime Coquelin > Sent: Thursday, May 5, 2022 6:27 PM > To: dev@dpdk.org; jasow...@redhat.com; Xia, Chenbo ; > david.march...@redhat.com; olivier.m...@6wind.com > Cc: sta...@dpdk.org; Maxime Coquelin > Subject: [PATCH 4/6] net/vhost: make VLAN stripping flag a

Re: [PATCH 3/6] net/vhost: enable compliant offloading mode

2022-05-16 Thread Maxime Coquelin
Hi Chenbo, On 5/16/22 15:26, Xia, Chenbo wrote: Hi Maxime, -Original Message- From: Maxime Coquelin Sent: Thursday, May 5, 2022 6:27 PM To: dev@dpdk.org; jasow...@redhat.com; Xia, Chenbo ; david.march...@redhat.com; olivier.m...@6wind.com Cc: sta...@dpdk.org; Maxime Coquelin Subject:

RE: [PATCH 3/6] net/vhost: enable compliant offloading mode

2022-05-16 Thread Xia, Chenbo
> -Original Message- > From: Maxime Coquelin > Sent: Monday, May 16, 2022 9:29 PM > To: Xia, Chenbo ; dev@dpdk.org; jasow...@redhat.com; > david.march...@redhat.com; olivier.m...@6wind.com > Cc: sta...@dpdk.org > Subject: Re: [PATCH 3/6] net/vhost: enable compliant offloading mode > > Hi

Re: [PATCH v2] net/cxgbe: read firmware configuration file from filesystem

2022-05-16 Thread Ferruh Yigit
On 5/16/2022 12:56 PM, Rahul Lakkireddy wrote: On Monday, May 05/16/22, 2022 at 12:06:01 +0100, Ferruh Yigit wrote: On 5/16/2022 11:27 AM, Rahul Lakkireddy wrote: Add support to read firmware configuration file from /lib/firmware/cxgb4/ path in the filesystem. The firmware config file is used t

Re: [PATCH 2/2] event/cnxk: move post-processing to separate function

2022-05-16 Thread Jerin Jacob
On Wed, Apr 27, 2022 at 3:17 AM Pavan Nikhilesh wrote: > > Move event post-processing to a separate function. > Do complete event post-processing in tear-down functions to prevent > incorrect memory free. > > Signed-off-by: Pavan Nikhilesh > --- > drivers/event/cnxk/cn10k_eventdev.c | 5 +- >

Re: [PATCH] event/cnxk: flush event queues over multiple pass

2022-05-16 Thread Jerin Jacob
On Sun, May 15, 2022 at 4:00 PM Shijith Thotton wrote: > > If an event queue flush does not complete after a fixed number of tries, > remaining queues are flushed before retrying the one with incomplete > flush. > > Signed-off-by: Shijith Thotton Please rebase with dpdk-next-net-eventdev/for-ma

[PATCH v2] event/cnxk: flush event queues over multiple pass

2022-05-16 Thread Shijith Thotton
If an event queue flush does not complete after a fixed number of tries, remaining queues are flushed before retrying the one with incomplete flush. Signed-off-by: Shijith Thotton --- drivers/event/cnxk/cn10k_eventdev.c | 10 +- drivers/event/cnxk/cn9k_eventdev.c | 10 +- driver

Re: [PATCH v2 1/6] app/eventdev: simplify signal handling and teardown

2022-05-16 Thread Jerin Jacob
On Fri, May 13, 2022 at 9:37 PM wrote: > > From: Pavan Nikhilesh > > Remove rte_*_dev calls from signal handler callback as signal handlers > are supposed to be light weight. > > Split ethernet device teardown into Rx and Tx sections, wait for > workers to finish processing after disabling Rx to

RE: [PATCH] event/dlb2: add support for single 512B write of 4 QEs

2022-05-16 Thread McDaniel, Timothy
> -Original Message- > From: Jerin Jacob > Sent: Saturday, May 14, 2022 7:08 AM > To: McDaniel, Timothy ; Richardson, Bruce > ; konstantin.v.anan...@yandex.ru > Cc: Jerin Jacob ; dpdk-dev > Subject: Re: [PATCH] event/dlb2: add support for single 512B write of 4 QEs > > On Sat, Apr 9, 2

[PATCH v2 1/1] common/cnxk: added additional platform macros

2022-05-16 Thread Srikanth Yalavarthi
Added new platform layer macros for pointer operations, bitwise operations, spinlocks and 32 bit read and write. Signed-off-by: Srikanth Yalavarthi Change-Id: Icb039b19492e927d922bbd66232416e963db2892 --- drivers/common/cnxk/roc_platform.h | 26 ++ 1 file changed, 22 inse

[PATCH v2 1/1] common/cnxk: added new macros to platform layer

2022-05-16 Thread Srikanth Yalavarthi
Added new platform layer macros for pointer operations, bitwise operations, spinlocks and 32 bit read and write. Signed-off-by: Srikanth Yalavarthi --- drivers/common/cnxk/roc_platform.h | 26 ++ 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/drivers/commo

[PATCH v4 0/5] Extend and set event queue attributes at runtime

2022-05-16 Thread Shijith Thotton
This series adds support for setting event queue attributes at runtime and adds two new event queue attributes weight and affinity. Eventdev capability RTE_EVENT_DEV_CAP_RUNTIME_QUEUE_ATTR is added to expose the capability to set attributes at runtime and rte_event_queue_attr_set() API is used to s

[PATCH v4 1/5] eventdev: support to set queue attributes at runtime

2022-05-16 Thread Shijith Thotton
Added a new eventdev API rte_event_queue_attr_set(), to set event queue attributes at runtime from the values set during initialization using rte_event_queue_setup(). PMD's supporting this feature should expose the capability RTE_EVENT_DEV_CAP_RUNTIME_QUEUE_ATTR. Signed-off-by: Shijith Thotton Ac

[PATCH v4 2/5] eventdev: add weight and affinity to queue attributes

2022-05-16 Thread Shijith Thotton
Extended eventdev queue QoS attributes to support weight and affinity. If queues are of the same priority, events from the queue with highest weight will be scheduled first. Affinity indicates the number of times, the subsequent schedule calls from an event port will use the same event queue. Sched

[PATCH v4 3/5] test/event: test cases to test runtime queue attribute

2022-05-16 Thread Shijith Thotton
Added test cases to test changing of queue QoS attributes priority, weight and affinity at runtime. Signed-off-by: Shijith Thotton --- app/test/test_eventdev.c | 201 +++ 1 file changed, 201 insertions(+) diff --git a/app/test/test_eventdev.c b/app/test/test_

[PATCH v4 4/5] common/cnxk: use lock when accessing mbox of SSO

2022-05-16 Thread Shijith Thotton
From: Pavan Nikhilesh Since mbox is now accessed from multiple threads, use lock to synchronize access. Signed-off-by: Pavan Nikhilesh Signed-off-by: Shijith Thotton --- drivers/common/cnxk/roc_sso.c | 174 + drivers/common/cnxk/roc_sso_priv.h | 1 + drivers

[PATCH v4 5/5] event/cnxk: support to set runtime queue attributes

2022-05-16 Thread Shijith Thotton
Added API to set queue attributes at runtime and API to get weight and affinity. Signed-off-by: Shijith Thotton --- doc/guides/eventdevs/features/cnxk.ini | 1 + drivers/event/cnxk/cn10k_eventdev.c| 4 ++ drivers/event/cnxk/cn9k_eventdev.c | 4 ++ drivers/event/cnxk/cnxk_eventdev.c

RE: [PATCH v1] app/testpmd: fix metering and policing command for rfc4115

2022-05-16 Thread Dumitrescu, Cristian
> -Original Message- > From: Shun Hao > Sent: Friday, May 13, 2022 4:58 AM > To: viachesl...@nvidia.com; ma...@nvidia.com; or...@nvidia.com; Li, > Xiaoyun ; Singh, Aman Deep > ; Zhang, Yuying ; Wu, > Jingjing ; Singh, Jasvinder > ; Adrien Mazarguil > ; Dumitrescu, Cristian > > Cc: dev@

Re: [PATCH v4 1/5] eventdev: support to set queue attributes at runtime

2022-05-16 Thread Jerin Jacob
On Mon, May 16, 2022 at 11:09 PM Shijith Thotton wrote: > > Added a new eventdev API rte_event_queue_attr_set(), to set event queue > attributes at runtime from the values set during initialization using > rte_event_queue_setup(). PMD's supporting this feature should expose the > capability RTE_EV

RE: [EXT] [PATCH v1 5/5] baseband/fpga_5gnr_fec: remove filler from HARQ

2022-05-16 Thread Akhil Goyal
> Removed dec->n_filler from harq_out_length calculation. > Please provide a better description describing the reason to remove it.

RE: [EXT] [PATCH v1 2/5] baseband/fpga_5gnr_fec: add FPGA Mutex

2022-05-16 Thread Akhil Goyal
> FPGA mutex acquisition and mutex free implemented. Please provide better description to the patches. > > Signed-off-by: Hernan > --- > .../baseband/fpga_5gnr_fec/fpga_5gnr_fec.h| 6 +- > .../fpga_5gnr_fec/rte_fpga_5gnr_fec.c | 77 ++- > 2 files changed, 62 insert

[RFC] ethdev: datapath-focused meter actions, continue

2022-05-16 Thread Alexander Kozyrev
BEGIN:VCALENDAR METHOD:REQUEST PRODID:Microsoft Exchange Server 2010 VERSION:2.0 BEGIN:VTIMEZONE TZID:UTC BEGIN:STANDARD DTSTART:16010101T00 TZOFFSETFROM:+ TZOFFSETTO:+ END:STANDARD BEGIN:DAYLIGHT DTSTART:16010101T00 TZOFFSETFROM:+ TZOFFSETTO:+ END:DAYLIGHT END:VTIMEZONE BEG

RE: [PATCH v5 0/7] Add new cryptodev op for event metadata

2022-05-16 Thread Akhil Goyal
> Subject: [PATCH v5 0/7] Add new cryptodev op for event metadata > > For using event crypto metadata, event metadata need to be set > in session. For this session user data was used for symmetric > crypto sessions and no support was present for asymmetric and > security sessions. > The use of use

RE: [EXT] [PATCH v2] cryptodev: add elliptic curve diffie hellman

2022-05-16 Thread Akhil Goyal
> This commit adds Elliptic Curve Diffie-Hellman option to Cryptodev. > This could be achieved with EC point multiplication but: > 1) Phase 1 of DH is used with EC generator, multiplication expect > setting generator manually. > 2) It will unify usage of DH. > 3) Can be extended easily to support X

RE: [EXT] [PATCH v2 1/2] cryptodev: add dh verify option

2022-05-16 Thread Akhil Goyal
> For some elliptic curves public point in DH exchange > needs to be checked, if lays on the curve. > Modular exponentiation needs certain checks as well, though > mathematically much easier. > This commit adds verify option to asym_op operations. > > Signed-off-by: Arek Kusztal > --- > lib/cryp

RE: [EXT] [PATCH v2 2/2] cryptodev: add dh padding options

2022-05-16 Thread Akhil Goyal
> Diffie-Hellman padding is used in certain protocols, > in others, leading zero bytes need to be stripped. > Even same protocol may use a different approach - most > glaring example is TLS1.2 - TLS1.3. > To make the user life easier, and to avoid additional copy > on certain occasions, driver shou

RE: [EXT] [RFC PATCH] cryptodev: add basic asymmetric crypto capability structs

2022-05-16 Thread Akhil Goyal
Hi Arek, Are you planning for a formal patch for adding asym capabilities? > This commit adds basic structs to handle asymmetric crypto capability. > > Signed-off-by: Arek Kusztal > --- > lib/cryptodev/rte_crypto_asym.h | 47 + > lib/cryptodev/rte_cryptodev.h

RE: [EXT] [PATCH] cryptodev: add support for 25519 and 448 curves

2022-05-16 Thread Akhil Goyal
> This commit adds support for following elliptic curves: > 1) Curve25519 > 2) Curve448 > > Signed-off-by: Arek Kusztal > --- > lib/cryptodev/rte_crypto_asym.h | 14 -- > 1 file changed, 12 insertions(+), 2 deletions(-) > > diff --git a/lib/cryptodev/rte_crypto_asym.h b/lib/cryptode

RE: [EXT] [dpdk-dev v2 1/5] drivers/crypto: suppress openssl deprecated api warning messages

2022-05-16 Thread Akhil Goyal
Hi Kai, > Enable openssl_api_compat cflag to suppress deprecated api warning > messages in crypto pmd drivers: ccp, openssl and qat. > > Signed-off-by: Kai Ji This patch may not be required if we use this http://patches.dpdk.org/project/dpdk/patch/20220510150635.61975-1-heinrich.schucha...@canoni

[PATCH v3] net/cxgbe: read firmware configuration file from filesystem

2022-05-16 Thread Rahul Lakkireddy
Add support to read firmware configuration file from /lib/firmware/cxgb4/ path in the filesystem. The firmware config file is used to enable or disable NIC features before firmware initialization to help retrieve better debug data to analyze firmware init failures. The config file can also be used

Re: [PATCH v2] eal: allow worker lcore stacks to be allocated from hugepage memory

2022-05-16 Thread Don Wallwork
On 5/13/2022 5:38 PM, Stephen Hemminger wrote: On Fri, 13 May 2022 13:58:22 -0400 Don Wallwork wrote: +static int +eal_parse_huge_worker_stack(const char *arg, size_t *huge_worker_stack_size) +{ + size_t worker_stack_size; + if (arg == NULL) { + *huge_worker_stack_

Re: [PATCH v2] eal: allow worker lcore stacks to be allocated from hugepage memory

2022-05-16 Thread Don Wallwork
On 5/13/2022 11:31 PM, fengchengwen wrote: Also, this patch seem only adapt linux, what about freebsd/windows? The intent was to add this support for this optimization for Linix only initially.  Support for other OSes can be added later.  I currently don't have a means to test the other envir

[PATCH v3] eal: allow worker lcore stacks to be allocated from hugepage memory

2022-05-16 Thread Don Wallwork
Add support for using hugepages for worker lcore stack memory. The intent is to improve performance by reducing stack memory related TLB misses and also by using memory local to the NUMA node of each lcore. EAL option '--huge-worker-stack [stack-size-in-kbytes]' is added to allow the feature to b

Re: [EXT] [dpdk-dev v2 1/5] drivers/crypto: suppress openssl deprecated api warning messages

2022-05-16 Thread Stephen Hemminger
On Mon, 16 May 2022 19:21:01 + Akhil Goyal wrote: > Hi Kai, > > Enable openssl_api_compat cflag to suppress deprecated api warning > > messages in crypto pmd drivers: ccp, openssl and qat. > > > > Signed-off-by: Kai Ji > This patch may not be required if we use this > http://patches.dpdk.

Re: [PATCH v3] eal: allow worker lcore stacks to be allocated from hugepage memory

2022-05-16 Thread Stephen Hemminger
On Mon, 16 May 2022 15:50:04 -0400 Don Wallwork wrote: > +static int > +eal_parse_huge_worker_stack(const char *arg, size_t *huge_worker_stack_size) > +{ > + size_t worker_stack_size; > + char *end; > + if (arg == NULL || arg[0] == '\0') { > + *huge_worker_stack_size = WO

Re: [PATCH v3] eal: allow worker lcore stacks to be allocated from hugepage memory

2022-05-16 Thread Don Wallwork
On 5/16/2022 4:28 PM, Stephen Hemminger wrote: On Mon, 16 May 2022 15:50:04 -0400 Don Wallwork wrote: +static int +eal_parse_huge_worker_stack(const char *arg, size_t *huge_worker_stack_size) +{ + size_t worker_stack_size; + char *end; + if (arg == NULL || arg[0] == '\0') {

[PATCH v3 0/4] drivers/baseband: PMD to support ACC101 device

2022-05-16 Thread Nicolas Chautru
v3: Feedback from Tom Rix: missing copyright, refactor bbdev-test section calling the configure companion function for ACC100/101, taking the Pmon commit out which is not directly required. v2: Based on good feedback from Thomas and David, now implementing the ACC101 PMD as a close derivative fr

[PATCH v3 1/4] baseband/acc100: introduce PMD for ACC101

2022-05-16 Thread Nicolas Chautru
Support for ACC101 as a derivative of ACC100. Reusing existing code when possible. Signed-off-by: Nicolas Chautru --- doc/guides/bbdevs/acc101.rst | 237 +++ doc/guides/bbdevs/features/acc101.ini| 13 ++ doc/guides/bbdevs/index.rst | 1

[PATCH v3 2/4] baseband/acc100: modify validation code for ACC101

2022-05-16 Thread Nicolas Chautru
The validation requirement is different for the two devices. Signed-off-by: Nicolas Chautru --- drivers/baseband/acc100/rte_acc100_pmd.c | 40 ++-- 1 file changed, 28 insertions(+), 12 deletions(-) diff --git a/drivers/baseband/acc100/rte_acc100_pmd.c b/drivers/base

[PATCH v3 3/4] baseband/acc100: configuration of ACC101 from PF

2022-05-16 Thread Nicolas Chautru
Adding companion function specific to ACC100 and it can be called from bbdev-test when running from PF. Signed-off-by: Nicolas Chautru --- app/test-bbdev/test_bbdev_perf.c | 22 ++- drivers/baseband/acc100/rte_acc100_cfg.h | 17 ++ drivers/baseband/acc100/rte_acc100_pmd.c | 302 +++

[PATCH v3 4/4] baseband/acc100: add protection for some negative scenario

2022-05-16 Thread Nicolas Chautru
Catch exception in PMD in case of invalid input parameter. Signed-off-by: Nicolas Chautru --- drivers/baseband/acc100/rte_acc100_pmd.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/baseband/acc100/rte_acc100_pmd.c b/drivers/baseband/acc100/rte_acc100_pmd.c index b03cedc..b59

RE: [EXT] Re: OVS DPDK DMA-Dev library/Design Discussion

2022-05-16 Thread Radha Chintakuntla
> -Original Message- > From: Bruce Richardson > Sent: Friday, May 13, 2022 3:34 AM > To: fengchengwen > Cc: Pai G, Sunil ; Ilya Maximets > ; Radha Chintakuntla ; > Veerasenareddy Burru ; Gagandeep Singh > ; Nipun Gupta ; Stokes, Ian > ; Hu, Jiayu ; Ferriter, Cian > ; Van Haaren, Harry > ;

RE: [PATCH v2] net/iavf: fix mismatch between rx_pkt_burst and RX descriptor

2022-05-16 Thread Zhang, Qi Z
> -Original Message- > From: Zhang, Qi Z > Sent: Wednesday, May 11, 2022 8:04 AM > To: Zhang, Qi Z ; Zhou, YidingX > ; dev@dpdk.org; Wu, Jingjing > ; Xing, Beilei > Cc: Yang, Qiming ; sta...@dpdk.org; Yeleswarapu, > Ramamani > Subject: RE: [PATCH v2] net/iavf: fix mismatch between rx_

RE: [PATCH v1] net/iavf: fix resource leak issue

2022-05-16 Thread Zhang, Qi Z
> -Original Message- > From: Zhang, Qi Z > Sent: Thursday, May 12, 2022 3:21 PM > To: Thomas Monjalon > Cc: Wu, Wenjun1 ; dev@dpdk.org; Wu, Jingjing > ; Xing, Beilei > Subject: RE: [PATCH v1] net/iavf: fix resource leak issue > > > > > -Original Message- > > From: Thomas Mo

RE: [PATCH v3] app/testpmd: perform SW IP checksum for GRO/GSO packets

2022-05-16 Thread Ling, WeiX
> -Original Message- > From: Wenwu Ma > Sent: Thursday, May 12, 2022 9:08 AM > To: Li, Xiaoyun ; Singh, Aman Deep > ; Zhang, Yuying ; > dev@dpdk.org > Cc: Hu, Jiayu ; Wang, Yinan ; > He, Xingguang ; Ma, WenwuX > ; sta...@dpdk.org > Subject: [PATCH v3] app/testpmd: perform SW IP checksum fo

[PATCH] maintainers: update for nfp

2022-05-16 Thread Chaoyong He
Add Chaoyong as nfp maintainer. Signed-off-by: Chaoyong He Signed-off-by: Niklas Soderlund --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 7c4f541..8abd180 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -834,6 +834,7 @@ F: doc/guides/nics/nfb.r

[PATCH v2 0/7] Crypto related changes in sample/test apps

2022-05-16 Thread Gagandeep Singh
v2-change-log: * dropped qeueue improve logic in crypto-perf app patch * removed external buffer patch in this series. * update documentation. Gagandeep Singh (7): app/test-crypto-perf: support SDAP for PDCP operations examples/ipsec-secgw: support XCBC-MAC/DES-CBC examples/l2fwd-crypto: add

[PATCH v2 1/7] app/test-crypto-perf: support SDAP for PDCP operations

2022-05-16 Thread Gagandeep Singh
Add a command line option "--enable-sdap" to enable Service Data Adaptation Protocol. example command: ./dpdk-test-crypto-perf -c 0xc --log-level=8 -- --devtype crypto_dpaa2_sec --optype pdcp --cipher-algo aes-ctr --cipher-op encrypt --auth-algo zuc-eia3 --auth-op generate --auth-key-sz 16 --ptes

[PATCH v2 2/7] examples/ipsec-secgw: support XCBC-MAC/DES-CBC

2022-05-16 Thread Gagandeep Singh
ipsec-secgw application is updated to support DES-CBC ciphering and XCBC-MAC authentication based IPsec functionality. Signed-off-by: Gagandeep Singh --- doc/guides/sample_app_ug/ipsec_secgw.rst | 7 +-- examples/ipsec-secgw/esp.c | 5 + examples/ipsec-secgw/sa.c

[PATCH v2 3/7] examples/l2fwd-crypto: add signal handler for exit

2022-05-16 Thread Gagandeep Singh
Handle SIGINT and SIGTERM signals. Signed-off-by: Gagandeep Singh --- examples/l2fwd-crypto/main.c | 16 1 file changed, 16 insertions(+) diff --git a/examples/l2fwd-crypto/main.c b/examples/l2fwd-crypto/main.c index b1e2613ccf..0a1fc790fc 100644 --- a/examples/l2fwd-crypto/mai

[PATCH v2 4/7] test/crypto: fix PMD name for dpaa raw buffer crypto driver

2022-05-16 Thread Gagandeep Singh
PMD name for DPAA raw buffer crypto driver test cases is updated with correct name. Fixes: cd8166c28cd1 ("test/crypto: add raw API test for dpaax") Cc: sta...@dpdk.org Signed-off-by: Gagandeep Singh --- app/test/test_cryptodev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 5/7] test/crypto: support raw buffer APIs for PDCP

2022-05-16 Thread Gagandeep Singh
This patch supports raw buffer APIs testing for PDCP test cases. Signed-off-by: Gagandeep Singh --- app/test/test_cryptodev.c | 22 -- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 7c5d55368b..524019

[PATCH v2 6/7] test/crypto: add short MAC-I test vector for zuc

2022-05-16 Thread Gagandeep Singh
Add a ZUC based short MAC-I test vector. Signed-off-by: Gagandeep Singh --- ...est_cryptodev_security_pdcp_test_vectors.h | 20 +-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/app/test/test_cryptodev_security_pdcp_test_vectors.h b/app/test/test_cryptodev_secur

[PATCH v2 7/7] doc: add missing authentication algorithm

2022-05-16 Thread Gagandeep Singh
Adding the missing SHA256-HMAC authentication algorithm in ipsec-secgw guide. Fixes: b5350285ce6e ("examples/ipsec-secgw: support SHA256 HMAC") Cc: sta...@dpdk.org Signed-off-by: Gagandeep Singh --- doc/guides/sample_app_ug/ipsec_secgw.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions

[dpdk-dev] [PATCH] common/cnxk: dump hardware flow MCAM entry data

2022-05-16 Thread psatheesh
From: Satheesh Paul When dumping flow data, read hardware MCAM entry corresponding to the flow and print that data also. Signed-off-by: Satheesh Paul Reviewed-by: Kiran Kumar Kokkilagadda --- drivers/common/cnxk/roc_npc_mcam_dump.c | 26 - 1 file changed, 25 insertions

[PATCH v10 0/7] Enable ETS-based TX QoS on PF

2022-05-16 Thread Wenjun Wu
This patch set enables ETS-based TX QoS on PF. It is supported to configure bandwidth and priority in both queue and queue group level, and weight only in queue level. v2: fix code style issue. v3: fix uninitialization issue. v4: fix logical issue. v5: fix CI testing issue. Add explicit cast. v6:

[PATCH v10 1/7] net/ice/base: fix dead lock issue when getting node from ID type

2022-05-16 Thread Wenjun Wu
The function ice_sched_get_node_by_id_type needs to be called with the scheduler lock held. However, the function ice_sched_get_node also requests the scheduler lock. It will cause the dead lock issue. This patch replaces function ice_sched_get_node with function ice_sched_find_node_by_teid to sol

[PATCH v10 2/7] net/ice/base: support queue BW allocation configuration

2022-05-16 Thread Wenjun Wu
This patch adds BW allocation support of queue scheduling node to support WFQ in queue level. Signed-off-by: Wenjun Wu --- drivers/net/ice/base/ice_sched.c | 64 drivers/net/ice/base/ice_sched.h | 3 ++ 2 files changed, 67 insertions(+) diff --git a/drivers/net

[PATCH v10 3/7] net/ice/base: support priority configuration of the exact node

2022-05-16 Thread Wenjun Wu
This patch adds priority configuration support of the exact node in the scheduler tree. This function does not need additional calls to the scheduler lock. Signed-off-by: Wenjun Wu --- drivers/net/ice/base/ice_sched.c | 22 ++ drivers/net/ice/base/ice_sched.h | 3 +++ 2 file

[PATCH v10 4/7] net/ice: support queue and queue group bandwidth limit

2022-05-16 Thread Wenjun Wu
From: Ting Xu Enable basic TM API for PF only. Support for adding profiles and queue nodes. Only max bandwidth is supported in profiles. Profiles can be assigned to target queues and queue group. To set up the exact queue group, we need to reconfigure topology by delete and then recreate queue no

[PATCH v10 5/7] net/ice: support queue and queue group priority configuration

2022-05-16 Thread Wenjun Wu
This patch adds queue and queue group priority configuration support. The highest priority is 0, and the lowest priority is 7. Signed-off-by: Wenjun Wu --- doc/guides/rel_notes/release_22_07.rst | 1 + drivers/net/ice/ice_tm.c | 23 +-- 2 files changed, 22 inse

[PATCH v10 6/7] net/ice: support queue weight configuration

2022-05-16 Thread Wenjun Wu
This patch adds queue weight configuration support. Signed-off-by: Wenjun Wu --- doc/guides/rel_notes/release_22_07.rst | 1 + drivers/net/ice/ice_tm.c | 13 +++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/doc/guides/rel_notes/release_22_07.rst b/doc

[PATCH v10 7/7] net/ice: add warning log for unsupported configuration

2022-05-16 Thread Wenjun Wu
Priority configuration is enabled in level 3 and level 4. Weight configuration is enabled in level 4. This patch adds warning log for unsupported priority and weight configuration. Signed-off-by: Wenjun Wu --- drivers/net/ice/ice_tm.c | 9 + 1 file changed, 9 insertions(+) diff --git a/

[PATCH v11 0/7] Enable ETS-based TX QoS on PF

2022-05-16 Thread Wenjun Wu
This patch set enables ETS-based TX QoS on PF. It is supported to configure bandwidth and priority in both queue and queue group level, and weight only in queue level. v2: fix code style issue. v3: fix uninitialization issue. v4: fix logical issue. v5: fix CI testing issue. Add explicit cast. v6:

[PATCH v11 1/7] net/ice/base: fix dead lock issue when getting node from ID type

2022-05-16 Thread Wenjun Wu
The function ice_sched_get_node_by_id_type needs to be called with the scheduler lock held. However, the function ice_sched_get_node also requests the scheduler lock. It will cause the dead lock issue. This patch replaces function ice_sched_get_node with function ice_sched_find_node_by_teid to sol

[PATCH v11 2/7] net/ice/base: support queue BW allocation configuration

2022-05-16 Thread Wenjun Wu
This patch adds BW allocation support of queue scheduling node to support WFQ in queue level. Signed-off-by: Wenjun Wu --- drivers/net/ice/base/ice_sched.c | 64 drivers/net/ice/base/ice_sched.h | 3 ++ 2 files changed, 67 insertions(+) diff --git a/drivers/net

[PATCH v11 3/7] net/ice/base: support priority configuration of the exact node

2022-05-16 Thread Wenjun Wu
This patch adds priority configuration support of the exact node in the scheduler tree. This function does not need additional calls to the scheduler lock. Signed-off-by: Wenjun Wu --- drivers/net/ice/base/ice_sched.c | 22 ++ drivers/net/ice/base/ice_sched.h | 3 +++ 2 file

[PATCH v11 4/7] net/ice: support queue and queue group bandwidth limit

2022-05-16 Thread Wenjun Wu
From: Ting Xu Enable basic TM API for PF only. Support for adding profiles and queue nodes. Only max bandwidth is supported in profiles. Profiles can be assigned to target queues and queue group. To set up the exact queue group, we need to reconfigure topology by delete and then recreate queue no

[PATCH v11 5/7] net/ice: support queue and queue group priority configuration

2022-05-16 Thread Wenjun Wu
This patch adds queue and queue group priority configuration support. The highest priority is 0, and the lowest priority is 7. Signed-off-by: Wenjun Wu --- doc/guides/rel_notes/release_22_07.rst | 1 + drivers/net/ice/ice_tm.c | 23 +-- 2 files changed, 22 inse

[PATCH v11 6/7] net/ice: support queue weight configuration

2022-05-16 Thread Wenjun Wu
This patch adds queue weight configuration support. Signed-off-by: Wenjun Wu --- doc/guides/rel_notes/release_22_07.rst | 1 + drivers/net/ice/ice_tm.c | 13 +++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/doc/guides/rel_notes/release_22_07.rst b/doc

[PATCH v11 7/7] net/ice: add warning log for unsupported configuration

2022-05-16 Thread Wenjun Wu
Priority configuration is enabled in level 3 and level 4. Weight configuration is enabled in level 4. This patch adds warning log for unsupported priority and weight configuration. Signed-off-by: Wenjun Wu --- drivers/net/ice/ice_tm.c | 9 + 1 file changed, 9 insertions(+) diff --git a/

RE: [PATCH v2] eal: allow worker lcore stacks to be allocated from hugepage memory

2022-05-16 Thread Morten Brørup
> From: Don Wallwork [mailto:d...@xsightlabs.com] > Sent: Monday, 16 May 2022 21.48 > > On 5/13/2022 11:31 PM, fengchengwen wrote: > > Also, this patch seem only adapt linux, what about freebsd/windows? > > The intent was to add this support for this optimization for Linix only > initially.  Supp

[PATCH v1 0/4] Support OFS card

2022-05-16 Thread Wei Huang
The first patch turns some experimental APIs to formal. The second patch is a fix for virtual device release, because in OFS card, AFU (Acceleration Function Unit) is always used as a virtual device. The third patch is a improvement for interrupt release. The fourth patch is for OFS (Open FPGA Stac

[PATCH v1 1/4] raw/ifpga: remove experimental tag from ifpga APIs

2022-05-16 Thread Wei Huang
These APIs are introduced in DPDK 21.05 and have been tested in several release, experimental tag can be formally removed. Signed-off-by: Wei Huang Acked-by: Tianfei Zhang --- drivers/raw/ifpga/rte_pmd_ifpga.h | 48 --- drivers/raw/ifpga/version.map | 7

[PATCH v1 3/4] raw/ifpga: unregister interrupt in ifpga close function

2022-05-16 Thread Wei Huang
Move interrupt unregistration from ifpga destroy function to ifpga close function, so rte_rawdev_pmd_release function can release interrupt resource. Signed-off-by: Wei Huang Acked-by: Tianfei Zhang --- drivers/raw/ifpga/ifpga_rawdev.c | 29 +++-- 1 file changed, 11 inse

[PATCH v1 2/4] raw/ifpga: remove vdev when ifpga is closed

2022-05-16 Thread Wei Huang
Virtual devices created on ifpga raw device are not removed when ifpga is closed. To avoid such problem, ifpga virtual device remove function is implemented, virtual device is removed in raw device close function. Fixes: ef1e8ede3da5 ("raw/ifpga: add Intel FPGA bus rawdev driver") Cc: sta...@dpdk.

[PATCH v1 4/4] raw/ifpga: support ofs card probe

2022-05-16 Thread Wei Huang
ofs card introduces some changes in DFL (Device Feature List) and DFH (Device Feature Header) of FPGA. ifpga driver adapt these changes mainly by adjusting enumeration process. Signed-off-by: Wei Huang Acked-by: Tianfei Zhang --- drivers/raw/ifpga/base/ifpga_api.c | 28 +- drivers/raw/

[PATCH v1] raw/afu_mf: introduce AFU MF device driver

2022-05-16 Thread Wei Huang
Add afu_mf driver to manage various AFU (Acceleration Function Unit) in FPGA. Signed-off-by: Wei Huang Acked-by: Tianfei Zhang --- drivers/raw/afu_mf/afu_mf_rawdev.c | 440 drivers/raw/afu_mf/afu_mf_rawdev.h | 89 ++ drivers/raw/afu_mf/he_hssi.c | 369 +++ drivers/raw/afu

  1   2   >