RE: [EXT] [PATCH 11/40] cryptodev: remove asym crypto next xform

2022-05-25 Thread Anoob Joseph
Hi Arek, Akhil, Please see inline. Thanks, Anoob > -Original Message- > From: Kusztal, ArkadiuszX > Sent: Wednesday, May 25, 2022 12:06 PM > To: Akhil Goyal ; dev@dpdk.org; Kiran Kumar > Kokkilagadda ; Anoob Joseph > > Cc: Zhang, Roy Fan > Subject: RE: [EXT] [PATCH 11/40] cryptodev: r

RE: [PATCH v2] app/procinfo: show all non-owned ports

2022-05-25 Thread Morten Brørup
> From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Wednesday, 25 May 2022 08.04 > > On Tue, 24 May 2022 22:46:05 -0700 > Subendu Santra wrote: > > > Show all non-owned ports when no port mask is specified > > > > show-port option without the mask option, displays only the last

Re: [PATCH v2] ixgbe/base: Manual AN-37 for troublesome link partners for X550 SFI

2022-05-25 Thread Thomas Monjalon
25/05/2022 02:11, Zhang, Qi Z: > From: Thomas Monjalon > > 24/05/2022 15:42, Zhang, Qi Z: > > > From: Thomas Monjalon > > > > 18/05/2022 02:03, Zhang, Qi Z: > > > > > From: Jeff Daly > > > > > > > > > > > > Some SFP link partners exhibit a disinclination to autonegotiate > > > > > > with X550 co

Re: [EXT] Re: [dpdk-stable] [PATCH v2] test: avoid hang if queues are full and Tx fails

2022-05-25 Thread Thomas Monjalon
I'm pretty sure there is something wrong in the driver cnxk, but you keep insisting and nobody complained, so I accept the patch for the test application. Applied 24/05/2022 07:39, Rakesh Kudurumalla: > ping > > > From: Rakesh Kudurumalla > > Sent: Monday, May 9, 2022 3:32 PM > > > > Hi Thomas

Re: [PATCH] avoid AltiVec keyword vector

2022-05-25 Thread Thomas Monjalon
04/05/2022 22:40, David Christensen: > On 5/3/22 5:03 AM, Thomas Monjalon wrote: > > The keyword "vector" may conflict easily. > > As a rule, it is better to use the alternative keyword "__vector". > > > > Signed-off-by: Thomas Monjalon > > Reviewed-by: David Christensen Applied with a longer

RE: [PATCH v2] ixgbe/base: Manual AN-37 for troublesome link partners for X550 SFI

2022-05-25 Thread Zhang, Qi Z
> -Original Message- > From: Thomas Monjalon > Sent: Wednesday, May 25, 2022 3:56 PM > To: Zhang, Qi Z > Cc: Daly, Jeff ; dev@dpdk.org; Wang, Haiyue > ; ferruh.yi...@amd.com; > andrew.rybche...@oktetlabs.ru; Richardson, Bruce > ; Mcnamara, John > > Subject: Re: [PATCH v2] ixgbe/base:

Re: [PATCH v6 6/9] net/vmxnet3: add version 6 support

2022-05-25 Thread Andrew Rybchenko
Hi, Pankaj, On 5/25/22 03:40, Pankaj Gupta wrote: VMXNET3 version 6 supports some new features, including but not limited to: - Increased max MTU up to 9190 - Increased max number of queues, both for Rx and Tx - Removes power-of-two limitations - Extended interrupt structures, required implement

Re: [PATCH v8 2/5] ethdev: common utilities for different SFF specs

2022-05-25 Thread Andrew Rybchenko
On 5/25/22 06:14, Robin Zhang wrote: This patch implements SFF-8024 Rev 4.0 of pluggable I/O configuration and some common utilities for SFF-8436/8636 and SFF-8472/8079. Signed-off-by: Robin Zhang [snip] checkpatches.sh complains on the following, please, fix: + /* SFP Temp in 16-bit

RE: [PATCH v2] net/iavf: fix device stop

2022-05-25 Thread Zhang, Qi Z
> -Original Message- > From: Nicolau, Radu > Sent: Monday, May 23, 2022 8:05 PM > To: Wu, Jingjing ; Xing, Beilei > Cc: dev@dpdk.org; Buckley, Daniel M ; Zhang, > Qi Z ; Nicolau, Radu ; > sta...@dpdk.org > Subject: [PATCH v2] net/iavf: fix device stop > > Move security context destroy

RE: [PATCH v2] net/igc: add I226 support

2022-05-25 Thread Zhang, Qi Z
> -Original Message- > From: Yang, Qiming > Sent: Wednesday, May 25, 2022 1:58 PM > To: Zhang, Qi Z ; dev@dpdk.org > Cc: Yang, Qiming ; Liu, KevinX > > Subject: [PATCH v2] net/igc: add I226 support > > Added I226 Series device ID in igc driver and updated igc guide document for > new dev

[PATCH] app/eventdev: add Tx first option to pipeline mode

2022-05-25 Thread pbhagavatula
From: Pavan Nikhilesh Add Tx first support to pipeline mode tests, the transmition is done on all the ethernet ports. This helps in testing eventdev performance with standalone loopback interfaces. Example: ./dpdk-test-eventdev ... -- ... --tx_first 512 512 defines the number of

Re: [PATCH v8 5/5] ethdev: format module EEPROM for SFF-8636

2022-05-25 Thread Andrew Rybchenko
On 5/25/22 06:14, Robin Zhang wrote: This patch implements format module EEPROM information for SFF-8636 Rev 2.7 Signed-off-by: Robin Zhang [snip] + /* +* There is no clear identifier to signify the existence of +* optical diagnostics similar to SFF-8472. So checking e

[PATCH] examples/l2fwd: add check of Rx packets count

2022-05-25 Thread Rahul Bhansali
An additional check is added to avoid extra processing if receive packets are 0. Performance impact: with Marvell OCTEON TX2 platform, observed an improvement by ~14%. Signed-off-by: Rahul Bhansali --- examples/l2fwd/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/l2fwd/m

Re: [PATCH v8 1/5] ethdev: add telemetry command for module EEPROM

2022-05-25 Thread Andrew Rybchenko
On 5/25/22 06:14, Robin Zhang wrote: Add a new telemetry command /ethdev/module_eeprom to dump the module EEPROM of each port. The format of module EEPROM information follows the SFF(Small Form Factor) Committee specifications. Please, add SFF to devtools/words-case.txt Signed-off-by: Robin

Re: [PATCH v8 2/5] ethdev: common utilities for different SFF specs

2022-05-25 Thread Andrew Rybchenko
Summary must not be a statement. Consider: "add common code for different SFF specs" or something like this. On 5/25/22 06:14, Robin Zhang wrote: This patch implements SFF-8024 Rev 4.0 of pluggable I/O configuration "This patch implements" -> "Add support for" Basicaly "This patches" does no

[PATCH] eal/ppc: undefine AltiVec keyword vector

2022-05-25 Thread Thomas Monjalon
The AltiVec header file is defining "vector", except in C++ build. The keyword "vector" may conflict easily. As a rule, it is better to use the alternative keyword "__vector". The DPDK header file rte_altivec.h takes care of undefining "vector", so the applications and dependencies are free to def

Re: [PATCH v8 3/5] ethdev: format module EEPROM for SFF-8079

2022-05-25 Thread Andrew Rybchenko
Consider: "support SFF-8079 module information telemetry" (if it fits in required number of symbols) On 5/25/22 06:14, Robin Zhang wrote: This patch implements format module EEPROM information for SFF-8079 Rev 1.7 Add support for module EEPROM information format defined in SFF-8079 Rev 1.7.

Re: [PATCH] eal/ppc: undefine AltiVec keyword vector

2022-05-25 Thread Tyler Retzlaff
On Wed, May 25, 2022 at 11:53:07AM +0200, Thomas Monjalon wrote: > The AltiVec header file is defining "vector", except in C++ build. > The keyword "vector" may conflict easily. > As a rule, it is better to use the alternative keyword "__vector". > > The DPDK header file rte_altivec.h takes care o

RE: [EXT] [RFC] examples/fips_validation: add fips 140-3 acvp aes-cbc test

2022-05-25 Thread Gowrishankar Muthukrishnan
Hi Brian, Thanks for the RFC and PFA inline my comments. > -Original Message- > From: Brian Dooley > Sent: Friday, May 20, 2022 9:36 PM > To: dev@dpdk.org > Cc: Akhil Goyal ; Gowrishankar Muthukrishnan > ; Brian Dooley ; Fan > Zhang > Subject: [EXT] [RFC] examples/fips_validation: add fi

[PATCH v4 1/2] mem: telemetry support for memseg and element information

2022-05-25 Thread Amit Prakash Shukla
Changes adds telemetry support to display memory occupancy in memseg and the information of the elements allocated from a memseg based on arguments provided by user. This patch adds following endpoints: 1. /eal/memseg_list_array The command displays the memseg list from which the memory has been a

[PATCH v4 2/2] mem: telemetry support for system memory information

2022-05-25 Thread Amit Prakash Shukla
Changes adds telemetry support to display system memory information, allocated using calls malloc, calloc, mmap, etc. This patch is based on malloc_info. This patch adds following endpoints: 1. /sysmem/sys_heap_list The commands displays the arenas currently in use. Example: --> /sysmem/sys_heap_l

Re: [PATCH] ethdev: prohibit polling of a stopped queue

2022-05-25 Thread Thomas Monjalon
25/04/2022 10:30, Thomas Monjalon: > 10/04/2022 23:35, Dmitry Kozlyuk: > > Whether it is allowed to call Rx/Tx functions for a stopped queue > > was undocumented. Some PMDs make this behavior a no-op > > either by explicitly checking the queue state > > or by the way how their routines are implemen

[PATCH v5] eal: add bus cleanup to eal cleanup

2022-05-25 Thread Kevin Laatz
During EAL init, all buses are probed and the devices found are initialized. On eal_cleanup(), the inverse does not happen, meaning any allocated memory and other configuration will not be cleaned up appropriately on exit. Currently, in order for device cleanup to take place, applications must cal

Re: [PATCH] app/testpmd: fix use of indirect action after port close

2022-05-25 Thread Thomas Monjalon
12/04/2022 07:41, Singh, Aman Deep: > On 4/11/2022 2:01 AM, Dmitry Kozlyuk wrote: > >> From: Dmitry Kozlyuk > >> Sent: Thursday, March 31, 2022 1:57 AM > >> [...] > >>> From: Singh, Aman Deep > >>> Sent: Wednesday, March 30, 2022 5:24 PM > >>> [...] > >>> On 3/7/2022 10:18 PM, Dmitry Kozlyuk wrot

RE: [EXT] Re: [PATCH] examples/ipsec-secgw: add support of NEON with poll mode

2022-05-25 Thread Rahul Bhansali
> -Original Message- > From: Konstantin Ananyev > Sent: Wednesday, May 25, 2022 4:30 AM > To: Rahul Bhansali ; dev@dpdk.org; Radu Nicolau > ; Akhil Goyal ; Ruifeng Wang > > Cc: Jerin Jacob Kollanukkaran > Subject: [EXT] Re: [PATCH] examples/ipsec-secgw: add support of NEON with > poll

RE: [PATCH] eal/ppc: undefine AltiVec keyword vector

2022-05-25 Thread Ali Alnubani
> -Original Message- > From: Thomas Monjalon > Sent: Wednesday, May 25, 2022 12:53 PM > To: dev@dpdk.org > Cc: m...@ashroe.eu; david.march...@redhat.com; techbo...@dpdk.org; > David Christensen > Subject: [PATCH] eal/ppc: undefine AltiVec keyword vector > > The AltiVec header file is def

RE: [PATCH] eal/ppc: undefine AltiVec keyword vector

2022-05-25 Thread Ali Alnubani
> -Original Message- > From: Ali Alnubani > Sent: Wednesday, May 25, 2022 2:09 PM > To: Thomas Monjalon ; dev@dpdk.org > Cc: m...@ashroe.eu; david.march...@redhat.com; techbo...@dpdk.org; > David Christensen > Subject: RE: [PATCH] eal/ppc: undefine AltiVec keyword vector > > > -Origin

Re: [PATCH v5] eal: add bus cleanup to eal cleanup

2022-05-25 Thread Bruce Richardson
On Wed, May 25, 2022 at 11:39:53AM +0100, Kevin Laatz wrote: > During EAL init, all buses are probed and the devices found are > initialized. On eal_cleanup(), the inverse does not happen, meaning any > allocated memory and other configuration will not be cleaned up > appropriately on exit. > > Cu

Re: [PATCH] eal/ppc: undefine AltiVec keyword vector

2022-05-25 Thread Ray Kinsella
Thomas Monjalon writes: > The AltiVec header file is defining "vector", except in C++ build. > The keyword "vector" may conflict easily. > As a rule, it is better to use the alternative keyword "__vector". > > The DPDK header file rte_altivec.h takes care of undefining "vector", > so the applic

Re: [RFT v2 1/3] random: add rte_rand_float()

2022-05-25 Thread Ray Kinsella
Stephen Hemminger writes: > The PIE code and other applications can benefit from having a > fast way to get a random floating point value. This new function > is equivalent to erand48_r in the standard library. > > Signed-off-by: Stephen Hemminger > --- > app/test/test_rand_perf.c

Re: [PATCH v8 4/5] ethdev: format module EEPROM for SFF-8472

2022-05-25 Thread Andrew Rybchenko
On 5/25/22 06:14, Robin Zhang wrote: This patch implements format module EEPROM information for SFF-8472 Rev 12.0 Signed-off-by: Robin Zhang [snip] diff --git a/lib/ethdev/sff_8472.c b/lib/ethdev/sff_8472.c new file mode 100644 index 00..98e31e9262 --- /dev/null +++ b/lib/ethdev/sff

Re: [PATCH v8 5/5] ethdev: format module EEPROM for SFF-8636

2022-05-25 Thread Andrew Rybchenko
On 5/25/22 06:14, Robin Zhang wrote: This patch implements format module EEPROM information for SFF-8636 Rev 2.7 Signed-off-by: Robin Zhang [snip] diff --git a/lib/ethdev/sff_8636.c b/lib/ethdev/sff_8636.c new file mode 100644 index 00..ad625fc73b --- /dev/null +++ b/lib/ethdev/sff_

RE: [PATCH] test/crypto-perf: allow auth generate followed by encryption

2022-05-25 Thread Akhil Goyal
> Allowing auth generation followed by encryption mode. > --optype auth-then-cipher can take cipher-op as encrypt > and auth-op as generate now. > > Signed-off-by: Tejasree Kondoj Acked-by: Akhil Goyal

RE: [PATCH v2 1/1] app/testpmd: support different input color method

2022-05-25 Thread Dumitrescu, Cristian
> -Original Message- > From: sk...@marvell.com > Sent: Tuesday, May 24, 2022 8:36 AM > To: Li, Xiaoyun ; Singh, Aman Deep > ; Zhang, Yuying ; > Dumitrescu, Cristian > Cc: dev@dpdk.org; Sunil Kumar Kori > Subject: [PATCH v2 1/1] app/testpmd: support different input color method > > Fr

Re: [RFC v2 3/7] ethdev: introduce Rx queue based limit watermark

2022-05-25 Thread Andrew Rybchenko
On 5/24/22 11:18, Thomas Monjalon wrote: 24/05/2022 04:50, Spike Du: From: Thomas Monjalon 23/05/2022 05:01, Spike Du: From: Stephen Hemminger Spike Du wrote: --- a/lib/ethdev/rte_ethdev.h +++ b/lib/ethdev/rte_ethdev.h @@ -1249,7 +1249,16 @@ struct rte_eth_rxconf { */ union

RE: [PATCH v3 0/7] introduce per-queue limit watermark and host shaper

2022-05-25 Thread Spike Du
> -Original Message- > From: Morten Brørup > Sent: Wednesday, May 25, 2022 3:00 AM > To: NBU-Contact-Thomas Monjalon (EXTERNAL) ; > Spike Du > Cc: Matan Azrad ; Slava Ovsiienko > ; Ori Kam ; dev@dpdk.org; > Raslan Darawsheh ; step...@networkplumber.org; > andrew.rybche...@oktetlabs.ru;

Re: [PATCH v5 5/5] baseband/acc100: configuration of ACC101 from PF

2022-05-25 Thread Maxime Coquelin
Hi Nicolas, On 5/24/22 02:08, Nicolas Chautru wrote: 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

RE: [PATCH v3 0/7] introduce per-queue limit watermark and host shaper

2022-05-25 Thread Morten Brørup
> From: Spike Du [mailto:spi...@nvidia.com] > Sent: Wednesday, 25 May 2022 15.15 > > > From: Morten Brørup > > Sent: Wednesday, May 25, 2022 3:00 AM > > > > > From: Thomas Monjalon [mailto:tho...@monjalon.net] > > > Sent: Tuesday, 24 May 2022 17.59 > > > > > > +Cc people involved in previous vers

Re: [RFC v2 3/7] ethdev: introduce Rx queue based limit watermark

2022-05-25 Thread Thomas Monjalon
25/05/2022 14:59, Andrew Rybchenko: > On 5/24/22 11:18, Thomas Monjalon wrote: > > 24/05/2022 04:50, Spike Du: > >> From: Thomas Monjalon > >>> 23/05/2022 05:01, Spike Du: > From: Stephen Hemminger > > Spike Du wrote: > >> --- a/lib/ethdev/rte_ethdev.h > >> +++ b/lib/ethdev/rte_

[PATCH 1/3] ipsec: fix NAT-T ports and length

2022-05-25 Thread Radu Nicolau
Fix the UDP header fields, wrong byte order used for src and dst port and wrong offset used when updating UDP datagram length. Fixes: 01eef5907fc3 ("ipsec: support NAT-T") Cc: sta...@dpdk.org Signed-off-by: Radu Nicolau --- lib/ipsec/esp_outb.c | 2 +- lib/ipsec/sa.c | 4 ++-- 2 files cha

[PATCH 2/3] examples/ipsec-secgw: fix NAT-T header fields

2022-05-25 Thread Radu Nicolau
Use the proper IP protocol (UDP instead of ESP) and set the ports when UDP encapsulation is enabled. Fixes: 9ae86b4cfc77 ("examples/ipsec-secgw: support UDP encap for inline crypto") Cc: sta...@dpdk.org Signed-off-by: Radu Nicolau --- examples/ipsec-secgw/sa.c | 6 -- 1 file changed, 4 ins

[PATCH 3/3] net/iavf: fix NAT-T payload length

2022-05-25 Thread Radu Nicolau
Correct the length calculation used for NAT-T Fixes: 6bc987ecb860 ("net/iavf: support IPsec inline crypto") Cc: sta...@dpdk.org Signed-off-by: Radu Nicolau --- drivers/net/iavf/iavf_ipsec_crypto.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/net/iavf/i

RE: [PATCH v3 0/7] introduce per-queue limit watermark and host shaper

2022-05-25 Thread Spike Du
> -Original Message- > From: Morten Brørup > Sent: Wednesday, May 25, 2022 9:40 PM > To: Spike Du ; NBU-Contact-Thomas Monjalon > (EXTERNAL) > Cc: Matan Azrad ; Slava Ovsiienko > ; Ori Kam ; dev@dpdk.org; > Raslan Darawsheh ; step...@networkplumber.org; > andrew.rybche...@oktetlabs.ru;

Re: [PATCH v3 0/7] introduce per-queue limit watermark and host shaper

2022-05-25 Thread Andrew Rybchenko
On 5/24/22 22:22, Thomas Monjalon wrote: 24/05/2022 21:00, Morten Brørup: From: Thomas Monjalon [mailto:tho...@monjalon.net] 24/05/2022 17:20, Spike Du: LWM(limit watermark) is per RX queue attribute, when RX queue fullness reach the LWM limit, HW sends an event to dpdk application. Please

RE: [PATCH v3 0/7] introduce per-queue limit watermark and host shaper

2022-05-25 Thread Morten Brørup
> From: Spike Du [mailto:spi...@nvidia.com] > Sent: Wednesday, 25 May 2022 15.59 > > > From: Morten Brørup > > Sent: Wednesday, May 25, 2022 9:40 PM > > > > > From: Spike Du [mailto:spi...@nvidia.com] > > > Sent: Wednesday, 25 May 2022 15.15 > > > > > > > From: Morten Brørup > > > > Sent: Wednes

RE: [PATCH v4] sched: enable traffic class oversubscription conditionally

2022-05-25 Thread Danilewicz, MarcinX
Hi Cristian, Oh .. you absolutely right. I did not found them all .. I've missed them in all unneeded lines when you reply to full source code in message. I'll add changes from rest of the comments asap. BR, /Marcin -Original Message- From: Dumitrescu, Cristian Sent: Tuesday, May 2

Re: [RFC v2 3/7] ethdev: introduce Rx queue based limit watermark

2022-05-25 Thread Andrew Rybchenko
On 5/25/22 16:58, Thomas Monjalon wrote: 25/05/2022 14:59, Andrew Rybchenko: On 5/24/22 11:18, Thomas Monjalon wrote: 24/05/2022 04:50, Spike Du: From: Thomas Monjalon 23/05/2022 05:01, Spike Du: From: Stephen Hemminger Spike Du wrote: --- a/lib/ethdev/rte_ethdev.h +++ b/lib/ethdev/rte_

Re: [PATCH v3 0/7] introduce per-queue limit watermark and host shaper

2022-05-25 Thread Andrew Rybchenko
On 5/25/22 17:16, Morten Brørup wrote: From: Spike Du [mailto:spi...@nvidia.com] Sent: Wednesday, 25 May 2022 15.59 From: Morten Brørup Sent: Wednesday, May 25, 2022 9:40 PM From: Spike Du [mailto:spi...@nvidia.com] Sent: Wednesday, 25 May 2022 15.15 From: Morten Brørup Sent: Wednesday, M

RE: [PATCH v2 1/1] app/testpmd: support different input color method

2022-05-25 Thread Sunil Kumar Kori
> -Original Message- > From: Dumitrescu, Cristian > Sent: Wednesday, May 25, 2022 6:07 PM > To: Sunil Kumar Kori ; Li, Xiaoyun > ; Singh, Aman Deep ; > Zhang, Yuying > Cc: dev@dpdk.org > Subject: [EXT] RE: [PATCH v2 1/1] app/testpmd: support different input color > method > > External

Re: [PATCH v5 4/5] baseband/acc100: modify validation code for ACC101

2022-05-25 Thread Maxime Coquelin
On 5/24/22 02:08, Nicolas Chautru wrote: The validation requirement is different for the two devices. Signed-off-by: Nicolas Chautru --- drivers/baseband/acc100/rte_acc100_pmd.c | 47 1 file changed, 35 insertions(+), 12 deletions(-) diff --git a/drivers/

RE: [PATCH v2] app/procinfo: add devcie private info dump

2022-05-25 Thread Pattan, Reshma
> -Original Message- > From: Min Hu (Connor) > Subject: [PATCH v2] app/procinfo: add devcie private info dump Typo: device* > +static void > +show_port_private_info(void) > +{ > + int i; > + > + snprintf(bdr_str, MAX_STRING_LEN, " show - Port PMD Private "); Better to have h

[PATCH v2 1/1] app/testpmd: support different input color method

2022-05-25 Thread skori
From: Sunil Kumar Kori To enable input coloring, based on VLAN or DSCP, patch adds command line interface to configure the following: - configuring input coloring using VLAN or DSCP while creating meter i.e. during rte_mtr_create() - Update VLAN input coloring table at runtime. - configu

RE: [PATCH v2 1/1] app/testpmd: support different input color method

2022-05-25 Thread Dumitrescu, Cristian
> -Original Message- > From: sk...@marvell.com > Sent: Wednesday, May 25, 2022 3:37 PM > To: Li, Xiaoyun ; Singh, Aman Deep > ; Zhang, Yuying ; > Dumitrescu, Cristian > Cc: dev@dpdk.org; Sunil Kumar Kori > Subject: [PATCH v2 1/1] app/testpmd: support different input color method > >

Re: [RFT v2 1/3] random: add rte_rand_float()

2022-05-25 Thread Mattias Rönnblom
On 2022-05-25 00:18, Stephen Hemminger wrote: > The PIE code and other applications can benefit from having a > fast way to get a random floating point value. This new function > is equivalent to erand48_r in the standard library. > Seems like a good addition to the API. > Signed-off-by: Stephen

RE: [PATCH] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devices

2022-05-25 Thread Jeff Daly
> -Original Message- > From: Zhang, Qi Z > Sent: Monday, May 23, 2022 7:22 PM > To: Jeff Daly ; Thomas Monjalon > ; dev@dpdk.org > Cc: Stephen Douthit ; Yang, Qiming > ; Wu, Wenjun1 > Subject: RE: [PATCH] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 > devices > > Caution: This is

RE: [RFT v2 1/3] random: add rte_rand_float()

2022-05-25 Thread Morten Brørup
> From: Mattias Rönnblom [mailto:mattias.ronnb...@ericsson.com] > Sent: Wednesday, 25 May 2022 16.46 > > On 2022-05-25 00:18, Stephen Hemminger wrote: > > The PIE code and other applications can benefit from having a > > fast way to get a random floating point value. This new function > > is equiv

Re: [PATCH] eal/ppc: undefine AltiVec keyword vector

2022-05-25 Thread Thomas Monjalon
25/05/2022 13:48, Ray Kinsella: > > Thomas Monjalon writes: > > > The AltiVec header file is defining "vector", except in C++ build. > > The keyword "vector" may conflict easily. > > As a rule, it is better to use the alternative keyword "__vector". > > > > The DPDK header file rte_altivec.h tak

Re: [RFT v2 1/3] random: add rte_rand_float()

2022-05-25 Thread Stephen Hemminger
On Wed, 25 May 2022 14:45:37 + Mattias Rönnblom wrote: > On 2022-05-25 00:18, Stephen Hemminger wrote: > > The PIE code and other applications can benefit from having a > > fast way to get a random floating point value. This new function > > is equivalent to erand48_r in the standard library.

[v5, 00/11] Add JSON vector set support to fips validation

2022-05-25 Thread Gowrishankar Muthukrishnan
Adds a very basic introduction to JSON vector sets in the fips validation example application. This patch set will only introduce the AES-GCM test using a JSON request file because the other algorithms need more information than what is given in the new JSON format. v5: * AES_CBC support appended

[v5, 01/11] examples/fips_validation: add jansson dependency

2022-05-25 Thread Gowrishankar Muthukrishnan
From: Brandon Lo Added a check for RTE_HAS_JANSSON into the meson configuration file for JSON support. Signed-off-by: Brandon Lo --- examples/fips_validation/meson.build | 4 1 file changed, 4 insertions(+) diff --git a/examples/fips_validation/meson.build b/examples/fips_validation/mes

[v5, 02/11] examples/fips_validation: add json info to header

2022-05-25 Thread Gowrishankar Muthukrishnan
From: Brandon Lo Added json-specific functions and other information needed to test the new FIPS test vectors. Signed-off-by: Brandon Lo Signed-off-by: Gowrishankar Muthukrishnan --- v5: * fix typo in macro name for prefixes. v2: * fix type of prefix to suffix --- examples/fips_validation/fi

[v5, 03/11] examples/fips_validation: add json parsing

2022-05-25 Thread Gowrishankar Muthukrishnan
From: Brandon Lo Added functions to parse the required information from a vector set given in the new json format. Signed-off-by: Brandon Lo --- v3: * fix checkpatch warnings v2: * fix for loop initialization --- examples/fips_validation/fips_validation.c | 92 ++ 1 file c

[v5, 04/11] examples/fips_validation: allow json file as input

2022-05-25 Thread Gowrishankar Muthukrishnan
From: Brandon Lo Added the ability to use the json format as the input and output of the example application. Signed-off-by: Brandon Lo Signed-off-by: Gowrishankar Muthukrishnan -- v5: * fix to check info.file_type in json file type as well. v3: * fix checkpatch warnings v2: * remove use_jso

[v5, 05/11] examples/fips_validation: add json to gcm test

2022-05-25 Thread Gowrishankar Muthukrishnan
From: Brandon Lo Adds json-specific testing and writeback function. Allows the user to test AES-GCM vector sets. Signed-off-by: Brandon Lo --- v3: * fix checkpatch warnings --- examples/fips_validation/fips_validation.h| 3 + .../fips_validation/fips_validation_gcm.c | 151 ++

[v5, 06/11] examples/fips_validation: add json to hmac

2022-05-25 Thread Gowrishankar Muthukrishnan
From: Brandon Lo Adds JSON support for the HMAC algorithm. Signed-off-by: Brandon Lo --- examples/fips_validation/fips_validation.c| 2 + examples/fips_validation/fips_validation.h| 6 ++ .../fips_validation/fips_validation_hmac.c| 93 +++ examples/fips_validation

[v5, 07/11] examples/fips_validation: implement json cmac test

2022-05-25 Thread Gowrishankar Muthukrishnan
From: Brandon Lo Implemented JSON support for the CMAC test. Signed-off-by: Brandon Lo -- v5: * parser_read_cmac_direction_str is static. --- examples/fips_validation/fips_validation.h| 3 + .../fips_validation/fips_validation_cmac.c| 80 +++ 2 files changed, 83 insert

Re: [PATCH v3 1/2] app/testpmd: do not poll stopped queues

2022-05-25 Thread Thomas Monjalon
07/03/2022 13:53, Dmitry Kozlyuk: > Calling Rx/Tx functions on a stopped queue is not supported. > Do not run packet forwarding for streams that use stopped queues. > > Each stream has a read-only "disabled" field, > so that lcore function can skip such streams. > Forwarding engines can set this f

[v5, 08/11] examples/fips_validation: add parsing for cmac

2022-05-25 Thread Gowrishankar Muthukrishnan
From: Brandon Lo Added function to parse algorithm for CMAC test. Signed-off-by: Brandon Lo Signed-off-by: Gowrishankar Muthukrishnan -- v5: * parser_read_cmac_direction_str implementation moved to static. --- examples/fips_validation/fips_validation.c | 19 --- examples/fips_

[v5, 09/11] examples/fips_validation: cleanup bypass tests in response file

2022-05-25 Thread Gowrishankar Muthukrishnan
Remove garbage entries for bypassed tests in response file. Signed-off-by: Gowrishankar Muthukrishnan --- examples/fips_validation/main.c | 74 - 1 file changed, 35 insertions(+), 39 deletions(-) diff --git a/examples/fips_validation/main.c b/examples/fips_valida

[v5, 10/11] examples/fips_validation: reset IV generation in every test group

2022-05-25 Thread Gowrishankar Muthukrishnan
Reset IV generation in every test group. Signed-off-by: Gowrishankar Muthukrishnan --- examples/fips_validation/fips_validation_gcm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/fips_validation/fips_validation_gcm.c b/examples/fips_validation/fips_validation_gcm.c index 3604b21

[v5, 11/11] examples/fips_validation: add parsing for aes_cbc

2022-05-25 Thread Gowrishankar Muthukrishnan
Added function to parse algorithm for AES_CBC test. Signed-off-by: Gowrishankar Muthukrishnan --- examples/fips_validation/fips_validation.c| 8 +- examples/fips_validation/fips_validation.h| 4 + .../fips_validation/fips_validation_aes.c | 223 ++ examples/fips_v

Re: [RFT v2 1/3] random: add rte_rand_float()

2022-05-25 Thread Stephen Hemminger
On Wed, 25 May 2022 14:45:37 + Mattias Rönnblom wrote: > I would call it something else than "float", in particular since it > doesn't return "float" but a "double" type floating point value. > > rte_drand() maybe? Short, but might be confused with rte_rand(), given > the visual similarity

[dpdk-dev v3] crypto/qat: use intel-ipsec-mb for partial hash & aes

2022-05-25 Thread Kai Ji
Since openssl 3.0 now deprecates the low level API QAT required to perform partial hash & aes operation when creating the session. This patch add in qat_ipsec_mb_lib driver parameter to allow QAT PMD to switch APIs between openssl and intel ipsec-mb library. Signed-off-by: Kai Ji Signed-off-by: F

RE: [PATCH v6 2/2] net/ixgbe: Fix SFP detection and linking on hotplug

2022-05-25 Thread Jeff Daly
> -Original Message- > From: Zhang, Qi Z > Sent: Wednesday, May 11, 2022 9:27 PM > To: Jeff Daly ; dev@dpdk.org > Cc: sta...@dpdk.org; Stephen Douthit > Subject: RE: [PATCH v6 2/2] net/ixgbe: Fix SFP detection and linking on > hotplug > > Caution: This is an external email. Please tak

[PATCH v2 00/14] cryptodev: rsa, dh, ecdh changes

2022-05-25 Thread Arek Kusztal
This patchset introduces some of changes discussed on mailing list for 22.07 release in cryptodev asym. Key changes: - It fixes API for RSA (expescially signature paddings) - Adds Elliptic-Curve Diffie-Hellman - Adds Eliiptic-Curve point verification - Adds RSA missing padding fields - Adds asym

[PATCH v2 01/14] cryptodev: redefine ec group enum

2022-05-25 Thread Arek Kusztal
- EC enum was renamed to rte_crypto_curve_id. Elliptic curve enum name was incorrectly associated with group (it comes from current tls registry name). - Clarified comments about TLS deprecation. Some curves included are deprecated with TLS 1.3. Comments to address it were added. - Clarified FFDH g

[PATCH v2 02/14] cryptodev: reduce number of comments in asym xform

2022-05-25 Thread Arek Kusztal
- Reduced number of comments in asymmetric xform. Information describing basic functionality of well known algorithms are unnecessary. - Removed NONE asymetric xform. Signed-off-by: Arek Kusztal --- app/test/test_cryptodev_asym.c | 2 - lib/cryptodev/rte_crypto_asym.h | 114 --

[PATCH v2 03/14] cryptodev: separate key exchange operation enum

2022-05-25 Thread Arek Kusztal
- Separated key exchange enum from asym op type. Key exchange and asymmetric crypto operations like signatures, encryption/decryption should not share same operation enum as its use cases are unrelated and mutually exclusive. Therefore op_type was separate into: 1) operation type 2) key exchange op

[PATCH v2 04/14] cryptodev: remove comment about using ephemeral key in dsa

2022-05-25 Thread Arek Kusztal
- Removed comment that stated dsa can be used with Diffie Hellman ephemeral key. DH and DSA integration allowed to use ephemeral keys for random integer but not for private keys. Signed-off-by: Arek Kusztal --- lib/cryptodev/rte_crypto_asym.h | 8 +--- 1 file changed, 1 insertion(+), 7 delet

[PATCH v2 05/14] cryptodev: clarify usage of private key in dh

2022-05-25 Thread Arek Kusztal
- Clarified usage of private key in Diffie-Hellman. CSRNG capable device should generate private key and then use it for public key generation. Signed-off-by: Arek Kusztal --- lib/cryptodev/rte_crypto_asym.h | 5 + 1 file changed, 5 insertions(+) diff --git a/lib/cryptodev/rte_crypto_asym.h

[PATCH v2 06/14] cryptodev: move dh type from xform to dh op

2022-05-25 Thread Arek Kusztal
- Moved dh operation type to dh operation struct. Operation type (PUBLIC_KEY_GENERATION, SHARED_SECRET) should be free to choose for any operation. One xform/session should be enough to perform both DH operations, if op_type would be xform member, session would have to be to be created twice for th

[PATCH v2 07/14] cryptodev: add elliptic curve diffie hellman

2022-05-25 Thread Arek Kusztal
- Added elliptic curve Diffie-Hellman parameters. Point multiplication allows the user to process every phase of ECDH, but for phase 1, user should not really care about the generator. The user does not even need to know what the generator looks like, therefore setting ec xform would make this work

[PATCH v2 08/14] cryptodev: add public key verify option

2022-05-25 Thread Arek Kusztal
- Added key exchange public key verify option. For some elliptic curves public point in DH exchange needs to be checked, if it 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

[PATCH v2 09/14] cryptodev: add asym op flags

2022-05-25 Thread Arek Kusztal
- Added flags to rte_crypto_asym_op struct. It may be shared between different algorithms. - Added Diffie-Hellman padding flags. 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 exa

[PATCH v2 10/14] cryptodev: clarify usage of rsa padding hash

2022-05-25 Thread Arek Kusztal
- Clarified usage of RSA padding hash. It was not specified how to use hash for PKCS1_5 padding. This could lead to incorrect implementation. Signed-off-by: Arek Kusztal --- lib/cryptodev/rte_crypto_asym.h | 25 + 1 file changed, 21 insertions(+), 4 deletions(-) diff --g

[PATCH v2 11/14] cryptodev: move RSA padding into separate struct

2022-05-25 Thread Arek Kusztal
- move RSA padding into separate struct. More padding members should be added into padding, therefore having separate struct for padding parameters will make this more readable. Signed-off-by: Arek Kusztal --- app/test/test_cryptodev_asym.c | 10 ++-- drivers/common/cpt/cpt_ucode_as

[PATCH v2 12/14] cryptodev: clarify rsa verify with none padding

2022-05-25 Thread Arek Kusztal
- Clarified where should output be stored of signature decryption with padding none. PMD is not able to know what padding algorithm was used, therefore decrypted signature should be returned to the user. Signed-off-by: Arek Kusztal --- lib/cryptodev/rte_crypto_asym.h | 7 ++- 1 file changed,

[PATCH v2 13/14] cryptodev: add salt length and optional label

2022-05-25 Thread Arek Kusztal
- Added salt length and optional label. Common parameters to PSS and OAEP padding for RSA. - Fixed hash API in RSA padding. Now it is specified how hash should be used with particular RSA padding modes. Signed-off-by: Arek Kusztal --- lib/cryptodev/rte_crypto_asym.h | 19 +-- 1 f

[PATCH v2 14/14] cryptodev: add asym algorithms capabilities

2022-05-25 Thread Arek Kusztal
- Added asymmetric crypto algorithm specific capability struct. Included fields like random number capability, padding flags etc. Signed-off-by: Arek Kusztal --- app/test-crypto-perf/main.c | 12 +- app/test-eventdev/test_perf_common.c | 2 +- app/test/test_cryptodev_

[v5,11/11] examples/fips_validation: add parsing for aes_cbc

2022-05-25 Thread Gowrishankar Muthukrishnan
Added function to parse algorithm for AES_CBC test. Signed-off-by: Gowrishankar Muthukrishnan --- examples/fips_validation/fips_validation.c| 8 +- examples/fips_validation/fips_validation.h| 4 + .../fips_validation/fips_validation_aes.c | 223 ++ examples/fips_v

Additional reviewers

2022-05-25 Thread Ben Magistro
Hello, I recently wrapped up the conversion from makefiles to meson on another project and while everything seems functional, if there is anyone that has experience with meson/time/interest, I would appreciate some more eyes on this change. For the change, most things were modeled off of how DPDK

[PATCH v3 0/3] introduce random floating point function

2022-05-25 Thread Stephen Hemminger
Introduce a new random number function to get a floating point value. Then use it to fix PIE scheduler. v3 - rename to rte_drand() and other review feedback - fix warnings with some compilers in test code Stephen Hemminger (3): random: add rte_drand() funciton rte_pie: remove unnecessar

[PATCH v3 1/3] random: add rte_drand() funciton

2022-05-25 Thread Stephen Hemminger
The PIE code and other applications can benefit from having a fast way to get a random floating point value. This new function is equivalent to drand() in the standard library. Signed-off-by: Stephen Hemminger --- app/test/test_rand_perf.c | 7 +++ doc/guides/rel_notes/release_

[PATCH v3 2/3] rte_pie: remove unnecessary floating point

2022-05-25 Thread Stephen Hemminger
The qdelay variable is derived from and compared to 64 bit value so it doesn't have to be floating point. Fixes: 44c730b0e379 ("sched: add PIE based congestion management") Cc: wojciechx.liguzin...@intel.com Signed-off-by: Stephen Hemminger --- lib/sched/rte_pie.h | 2 +- 1 file changed, 1 inser

[PATCH v3 3/3] rte_pie: fix incorrect floating point math

2022-05-25 Thread Stephen Hemminger
The function rte_pie_drop was attempting to do a random probability drop, but because of incorrect usage of fixed point divide it would always return 1. Change to use new rte_drand() instead. Fixes: 44c730b0e379 ("sched: add PIE based congestion management") Cc: wojciechx.liguzin...@intel.com Sig

Re: [PATCH v6 6/9] net/vmxnet3: add version 6 support

2022-05-25 Thread Pankaj Gupta
Hi Andrew, >> Extended interrupt structures, required implementation for additional number >> of queues It is about Vmxnet3_IntrConfExt. Vmxnet3_IntrConfExt is a control data structure shared with ESX. ESX introduced it for this version to increase the number of queues that can be used. Vmxnet3

[v6, 00/11] Add JSON vector set support to fips validation

2022-05-25 Thread Gowrishankar Muthukrishnan
Adds a very basic introduction to JSON vector sets in the fips validation example application. This patch set will only introduce the AES-GCM test using a JSON request file because the other algorithms need more information than what is given in the new JSON format. v6: * CI centos platform fix.

[v6, 01/11] examples/fips_validation: add jansson dependency

2022-05-25 Thread Gowrishankar Muthukrishnan
From: Brandon Lo Added a check for RTE_HAS_JANSSON into the meson configuration file for JSON support. Signed-off-by: Brandon Lo --- examples/fips_validation/meson.build | 4 1 file changed, 4 insertions(+) diff --git a/examples/fips_validation/meson.build b/examples/fips_validation/mes

[v6, 02/11] examples/fips_validation: add json info to header

2022-05-25 Thread Gowrishankar Muthukrishnan
From: Brandon Lo Added json-specific functions and other information needed to test the new FIPS test vectors. Signed-off-by: Brandon Lo Signed-off-by: Gowrishankar Muthukrishnan --- v5: * fix typo in macro name for prefixes. v2: * fix type of prefix to suffix --- examples/fips_validation/fi

[v6, 03/11] examples/fips_validation: add json parsing

2022-05-25 Thread Gowrishankar Muthukrishnan
From: Brandon Lo Added functions to parse the required information from a vector set given in the new json format. Signed-off-by: Brandon Lo --- v3: * fix checkpatch warnings v2: * fix for loop initialization --- examples/fips_validation/fips_validation.c | 92 ++ 1 file c

  1   2   >