Re: [dpdk-dev] [PATCH v2 1/3] vhost: add unsafe API to drain pkts in async vhost

2021-07-08 Thread Pai G, Sunil
Hi Cheng, Repsonse inline. > As for this one, I'm not sure why we need have the loop in the application. > The function of this API is that caller need to drain all the inflight pkts, > it > should be called only once to get the job done. > Don't you think? Perhaps yes, but my thought was to

Re: [dpdk-dev] [PATCH v2] ipc: stop mp control thread on cleanup

2021-07-08 Thread Maxime Coquelin
On 7/7/21 1:02 PM, David Marchand wrote: > When calling rte_eal_cleanup, the mp channel cleanup routine only sets > mp_fd to -1 leaving the rte_mp_handle control thread running. > This control thread can spew warnings on reading on an invalid fd. > This is especially noticed with ASAN enabled. >

Re: [dpdk-dev] [PATCH v4 3/3] build: add option to enable wait until equal

2021-07-08 Thread Thomas Monjalon
08/07/2021 08:32, Jerin Jacob: > On Thu, Jul 8, 2021 at 11:55 AM Ruifeng Wang wrote: > > From: Jerin Jacob > > > On Wed, Jul 7, 2021 at 5:57 PM Bruce Richardson > > > wrote: > > > > On Wed, Jul 07, 2021 at 06:46:33AM +, Ruifeng Wang wrote: > > > > > From: Thomas Monjalon > > > > > > 07/07/2

Re: [dpdk-dev] [PATCH v7 14/19] net/ngbe: add device start and stop operations

2021-07-08 Thread Andrew Rybchenko
On 7/8/21 9:09 AM, Jiawen Wu wrote: > On July 7, 2021 10:05 PM, Andrew Rybchenko wrote: >> On 7/6/21 12:55 PM, Jiawen Wu wrote: >>> Setup MSI-X interrupt, complete PHY configuration and set device link >>> speed to start device. Disable interrupt, stop hardware and clear >>> queues to stop device.

Re: [dpdk-dev] [EXT] Re: [pull-request] next-crypto 21.08 rc1

2021-07-08 Thread Akhil Goyal
> 07/07/2021 21:30, Akhil Goyal: > > Shijith Thotton (2): > > drivers: add octeontx crypto adapter framework > > drivers: add octeontx crypto adapter data path > > It seems there is an ABI breakage: > > devtools/check-abi.sh: line 38: 958581 Segmentation fault > (core dumped) abidiff

Re: [dpdk-dev] [pull-request] next-crypto 21.08 rc1

2021-07-08 Thread Thomas Monjalon
07/07/2021 23:57, Thomas Monjalon: > 07/07/2021 21:30, Akhil Goyal: > > Shijith Thotton (2): > > drivers: add octeontx crypto adapter framework > > drivers: add octeontx crypto adapter data path > > It seems there is an ABI breakage: > > devtools/check-abi.sh: line 38: 958581 Segmenta

Re: [dpdk-dev] [PATCH v3] ethdev: add IPv4 and L4 checksum RSS offload types

2021-07-08 Thread Andrew Rybchenko
@Thomas, @Ferruh, @Ori I need your opinion on the discussion. On 7/8/21 4:07 AM, Zhang, Qi Z wrote: > > >> -Original Message- >> From: Andrew Rybchenko >> Sent: Wednesday, July 7, 2021 9:11 PM >> To: Zhang, Qi Z ; Zhang, AlvinX >> ; ajit.khapa...@broadcom.com >> Cc: dev@dpdk.org >> Subj

Re: [dpdk-dev] [EXT] Re: [pull-request] next-crypto 21.08 rc1

2021-07-08 Thread Akhil Goyal
> 07/07/2021 23:57, Thomas Monjalon: > > 07/07/2021 21:30, Akhil Goyal: > > > Shijith Thotton (2): > > > drivers: add octeontx crypto adapter framework > > > drivers: add octeontx crypto adapter data path > > > > It seems there is an ABI breakage: > > > > devtools/check-abi.sh: line 38:

Re: [dpdk-dev] [PATCH v7 14/19] net/ngbe: add device start and stop operations

2021-07-08 Thread Jiawen Wu
On July 8, 2021 3:37 PM, Andrew Rybchenko wrote: > On 7/8/21 9:09 AM, Jiawen Wu wrote: > > On July 7, 2021 10:05 PM, Andrew Rybchenko wrote: > >> On 7/6/21 12:55 PM, Jiawen Wu wrote: > >>> Setup MSI-X interrupt, complete PHY configuration and set device > >>> link speed to start device. Disable int

Re: [dpdk-dev] [pull-request] next-crypto 21.08 rc1

2021-07-08 Thread David Marchand
On Thu, Jul 8, 2021 at 9:41 AM Thomas Monjalon wrote: > > 07/07/2021 23:57, Thomas Monjalon: > > 07/07/2021 21:30, Akhil Goyal: > > > Shijith Thotton (2): > > > drivers: add octeontx crypto adapter framework > > > drivers: add octeontx crypto adapter data path > > > > It seems there is

Re: [dpdk-dev] [PATCH v2 00/58] enhancements to host based flow table management

2021-07-08 Thread Ajit Khaparde
On Wed, Jul 7, 2021 at 1:43 AM Thomas Monjalon wrote: > 15/06/2021 21:33, Ajit Khaparde: > > On Sat, Jun 12, 2021 at 5:06 PM Ajit Khaparde > > wrote: > > > > > > This patchset adds flow table management support for > > > Thor network adapter and introduces enhancements to > > > the existing flow

Re: [dpdk-dev] [PATCH v7 14/19] net/ngbe: add device start and stop operations

2021-07-08 Thread Andrew Rybchenko
On 7/8/21 10:50 AM, Jiawen Wu wrote: > On July 8, 2021 3:37 PM, Andrew Rybchenko wrote: >> On 7/8/21 9:09 AM, Jiawen Wu wrote: >>> On July 7, 2021 10:05 PM, Andrew Rybchenko wrote: On 7/6/21 12:55 PM, Jiawen Wu wrote: > Setup MSI-X interrupt, complete PHY configuration and set device >

Re: [dpdk-dev] [PATCH v6 1/2] power: add support for cppc cpufreq

2021-07-08 Thread David Hunt
On 8/7/2021 3:34 AM, Richael Zhuang wrote: Currently in DPDK only acpi_cpufreq and pstate_cpufreq drivers are supported, which are both not available on arm64 platforms. Add support for cppc_cpufreq driver which works on most arm64 platforms. Signed-off-by: Richael Zhuang --- app/test/test_

Re: [dpdk-dev] [PATCH v6 2/2] test/power: round cpuinfo cur freq only in CPPC cpufreq

2021-07-08 Thread David Hunt
On 8/7/2021 3:34 AM, Richael Zhuang wrote: On arm platform, the value in "/sys/.../cpuinfo_cur_freq" may not be exactly the same as what was set when using CPPC cpufreq driver. For other cpufreq driver, no need to round it currently, or else this check will fail with turbo enabled. For example,

[dpdk-dev] [PATCH] net/softnic: fix memory leak in parsing arguments

2021-07-08 Thread dapengx . yu
From: Dapeng Yu In function pmd_parse_args(), firmware path is duplicated from device arguments as character string, but is never freed, which cause memory leak. This patch changes the type of firmware member of struct pmd_params to character array, to make memory resource release unnecessary, a

Re: [dpdk-dev] [PATCH v7 19/19] net/ngbe: support to close and reset device

2021-07-08 Thread Jiawen Wu
On July 7, 2021 10:13 PM, Andrew Rybchenko wrote: > On 7/6/21 12:55 PM, Jiawen Wu wrote: > > Support to close and reset device. > > > > Signed-off-by: Jiawen Wu > > --- > > drivers/net/ngbe/ngbe_ethdev.c | 63 > > -- > > drivers/net/ngbe/ngbe_ethdev.h | 2 ++ > >

Re: [dpdk-dev] [PATCH v4 3/3] build: add option to enable wait until equal

2021-07-08 Thread Ruifeng Wang
> -Original Message- > From: Thomas Monjalon > Sent: Thursday, July 8, 2021 3:33 PM > To: Ruifeng Wang ; Jerin Jacob > > Cc: Bruce Richardson ; Jan Viktorin > ; jer...@marvell.com; dev@dpdk.org; > david.march...@redhat.com; nd ; Honnappa Nagarahalli > > Subject: Re: [dpdk-dev] [PATCH v4

Re: [dpdk-dev] [PATCH v6] ethdev: add new ext hdr for gtp psc

2021-07-08 Thread Andrew Rybchenko
Hi Raslan, On 7/6/21 5:24 PM, Raslan Darawsheh wrote: > Hi Guys, > > Sorry for missing this mail, for some reason it was missed in my inbox, > This is the link to this rfc: > https://www.3gpp.org/ftp/Specs/archive/38_series/38.415/38415-g30.zip Thanks for the link. The patch LGTM, but I have onl

Re: [dpdk-dev] [PATCH v6] ethdev: add new ext hdr for gtp psc

2021-07-08 Thread Andrew Rybchenko
On 6/17/21 12:17 PM, Raslan Darawsheh wrote: > Define new rte header for gtp PDU session container > based on RFC 38415-g30 > > Signed-off-by: Raslan Darawsheh As I understand prefix should be "net: ", not "ethdev: ". Reviewed-by: Andrew Rybchenko > --- > v6 : fixed typos > fixed indenta

Re: [dpdk-dev] [PATCH v6] ethdev: add new ext hdr for gtp psc

2021-07-08 Thread Raslan Darawsheh
Thank you for the review, Basically it's not used yet since it will break the abi The main usage was in rte_flow item of gtp_psc To replace the current structure with the header definition. And since this will break the abi I'm adding the header definition now but will be used later in rte_flow.

[dpdk-dev] [PATCH v8 01/19] net/ngbe: add build and doc infrastructure

2021-07-08 Thread Jiawen Wu
Adding bare minimum PMD library and doc build infrastructure and claim the maintainership for ngbe PMD. Signed-off-by: Jiawen Wu --- MAINTAINERS| 6 + doc/guides/nics/features/ngbe.ini | 10 + doc/guides/nics/index.rst | 1 + doc/guides

[dpdk-dev] [PATCH v8 02/19] net/ngbe: support probe and remove

2021-07-08 Thread Jiawen Wu
Add device IDs for Wangxun 1Gb NICs, map device IDs to register ngbe PMD. Add basic PCIe ethdev probe and remove. Signed-off-by: Jiawen Wu --- doc/guides/nics/features/ngbe.ini | 1 + drivers/net/ngbe/base/meson.build | 13 + drivers/net/ngbe/base/ngbe_devids.h | 83

[dpdk-dev] [PATCH v8 04/19] net/ngbe: define registers

2021-07-08 Thread Jiawen Wu
Define all registers that will be used. Signed-off-by: Jiawen Wu --- drivers/net/ngbe/base/ngbe_regs.h | 1490 + 1 file changed, 1490 insertions(+) create mode 100644 drivers/net/ngbe/base/ngbe_regs.h diff --git a/drivers/net/ngbe/base/ngbe_regs.h b/drivers/net/ngb

[dpdk-dev] [PATCH v8 05/19] net/ngbe: set MAC type and LAN ID with device initialization

2021-07-08 Thread Jiawen Wu
Add basic init and uninit function. Map device IDs and subsystem IDs to single ID for easy operation. Then initialize the shared code. Signed-off-by: Jiawen Wu --- drivers/net/ngbe/base/meson.build | 4 +- drivers/net/ngbe/base/ngbe.h | 11 ++ drivers/net/ngbe/base/ngbe_dummy.h | 37 +

[dpdk-dev] [PATCH v8 07/19] net/ngbe: add HW initialization

2021-07-08 Thread Jiawen Wu
Initialize the hardware by resetting the hardware in base code. Signed-off-by: Jiawen Wu --- drivers/net/ngbe/base/ngbe_dummy.h | 21 +++ drivers/net/ngbe/base/ngbe_hw.c| 235 + drivers/net/ngbe/base/ngbe_hw.h| 9 ++ drivers/net/ngbe/base/ngbe_type.h | 30

[dpdk-dev] [PATCH v8 08/19] net/ngbe: identify PHY and reset PHY

2021-07-08 Thread Jiawen Wu
Identify PHY to get the PHY type, and perform a PHY reset. Signed-off-by: Jiawen Wu --- drivers/net/ngbe/base/meson.build| 4 + drivers/net/ngbe/base/ngbe_dummy.h | 40 +++ drivers/net/ngbe/base/ngbe_hw.c | 38 +++ drivers/net/ngbe/base/ngbe_hw.h | 2 + drivers/net/ngbe/bas

[dpdk-dev] [PATCH v8 09/19] net/ngbe: store MAC address

2021-07-08 Thread Jiawen Wu
Store MAC addresses and init receive address filters. Signed-off-by: Jiawen Wu --- drivers/net/ngbe/base/ngbe_dummy.h | 33 +++ drivers/net/ngbe/base/ngbe_hw.c| 323 + drivers/net/ngbe/base/ngbe_hw.h| 13 ++ drivers/net/ngbe/base/ngbe_type.h | 19 ++ drive

[dpdk-dev] [PATCH v8 10/19] net/ngbe: support link update

2021-07-08 Thread Jiawen Wu
Register to handle device interrupt. Signed-off-by: Jiawen Wu --- doc/guides/nics/features/ngbe.ini | 3 + doc/guides/nics/ngbe.rst | 6 + drivers/net/ngbe/base/ngbe_dummy.h | 6 + drivers/net/ngbe/base/ngbe_type.h | 11 + drivers/net/ngbe/ngbe_ethdev.c | 369 +

[dpdk-dev] [PATCH v8 12/19] net/ngbe: add Rx queue setup and release

2021-07-08 Thread Jiawen Wu
Setup device Rx queue and release Rx queue. Signed-off-by: Jiawen Wu --- drivers/net/ngbe/meson.build | 1 + drivers/net/ngbe/ngbe_ethdev.c | 37 - drivers/net/ngbe/ngbe_ethdev.h | 16 ++ drivers/net/ngbe/ngbe_rxtx.c | 291 + drivers/net/ngbe/ngbe_rxtx

[dpdk-dev] [PATCH v8 13/19] net/ngbe: add Tx queue setup and release

2021-07-08 Thread Jiawen Wu
Setup device Tx queue and release Tx queue. Signed-off-by: Jiawen Wu --- drivers/net/ngbe/ngbe_ethdev.c | 24 drivers/net/ngbe/ngbe_ethdev.h | 11 ++ drivers/net/ngbe/ngbe_rxtx.c | 195 + drivers/net/ngbe/ngbe_rxtx.h | 98 + 4 files cha

[dpdk-dev] [PATCH v8 14/19] net/ngbe: add device start and stop operations

2021-07-08 Thread Jiawen Wu
Setup MSI-X interrupt, complete PHY configuration and set device link speed to start device. Disable interrupt, stop hardware and clear queues to stop device. Signed-off-by: Jiawen Wu --- drivers/net/ngbe/base/ngbe_dummy.h | 16 + drivers/net/ngbe/base/ngbe_hw.c | 49 +++ drivers/net/ng

[dpdk-dev] [PATCH v8 16/19] net/ngbe: add Rx queue start and stop

2021-07-08 Thread Jiawen Wu
Initializes receive unit, support to start and stop receive unit for specified queues. Signed-off-by: Jiawen Wu --- drivers/net/ngbe/base/ngbe_dummy.h | 15 ++ drivers/net/ngbe/base/ngbe_hw.c| 105 ++ drivers/net/ngbe/base/ngbe_hw.h| 4 + drivers/net/ngbe/base/ngbe_type.h

[dpdk-dev] [PATCH v8 18/19] net/ngbe: add simple Tx flow

2021-07-08 Thread Jiawen Wu
Initialize device with the simplest transmit functions. Signed-off-by: Jiawen Wu --- drivers/net/ngbe/ngbe_ethdev.c | 1 + drivers/net/ngbe/ngbe_ethdev.h | 3 + drivers/net/ngbe/ngbe_rxtx.c | 228 + drivers/net/ngbe/ngbe_rxtx.h | 27 4 files changed,

[dpdk-dev] [PATCH v8 19/19] net/ngbe: support to close and reset device

2021-07-08 Thread Jiawen Wu
Support to close and reset device. Signed-off-by: Jiawen Wu --- drivers/net/ngbe/ngbe_ethdev.c | 63 -- drivers/net/ngbe/ngbe_ethdev.h | 2 ++ drivers/net/ngbe/ngbe_rxtx.c | 20 +++ 3 files changed, 82 insertions(+), 3 deletions(-) diff --git a/drivers

[dpdk-dev] [PATCH v8 06/19] net/ngbe: init and validate EEPROM

2021-07-08 Thread Jiawen Wu
Reset swfw lock before NVM access, init EEPROM and validate the checksum. Signed-off-by: Jiawen Wu --- drivers/net/ngbe/base/meson.build | 2 + drivers/net/ngbe/base/ngbe_dummy.h | 23 drivers/net/ngbe/base/ngbe_eeprom.c | 203 drivers/net/ngbe/base/ngbe_e

[dpdk-dev] [PATCH v8 11/19] net/ngbe: setup the check PHY link

2021-07-08 Thread Jiawen Wu
Setup PHY, determine link and speed status from PHY. Signed-off-by: Jiawen Wu --- drivers/net/ngbe/base/ngbe_dummy.h | 18 +++ drivers/net/ngbe/base/ngbe_hw.c | 53 + drivers/net/ngbe/base/ngbe_hw.h | 6 + drivers/net/ngbe/base/ngbe_phy.c | 22 drivers/net/ngbe/

[dpdk-dev] [PATCH v8 15/19] net/ngbe: add Tx queue start and stop

2021-07-08 Thread Jiawen Wu
Initializes transmit unit, support to start and stop transmit unit for specified queues. Signed-off-by: Jiawen Wu --- doc/guides/nics/features/ngbe.ini | 1 + drivers/net/ngbe/base/ngbe_type.h | 1 + drivers/net/ngbe/ngbe_ethdev.c| 3 + drivers/net/ngbe/ngbe_ethdev.h| 7 ++ drive

[dpdk-dev] [PATCH v8 17/19] net/ngbe: add simple Rx flow

2021-07-08 Thread Jiawen Wu
Initialize device with the simplest receive function. Signed-off-by: Jiawen Wu --- drivers/net/ngbe/ngbe_ethdev.c | 1 + drivers/net/ngbe/ngbe_ethdev.h | 3 + drivers/net/ngbe/ngbe_rxtx.c | 169 + drivers/net/ngbe/ngbe_rxtx.h | 73 ++ 4 files

[dpdk-dev] [PATCH v8 00/19] net: ngbe PMD

2021-07-08 Thread Jiawen Wu
This patch set provides a skeleton of ngbe PMD, which adapted to Wangxun WX1860 series NICs. v8: - Fix some check patch errors. - Remove __rte_cold. v7: - Fix minor issues and re-order patches. v6: - Correct style errors and re-split patches. v5: - Extend patches with device initialization and

[dpdk-dev] [PATCH v8 03/19] net/ngbe: add log type and error type

2021-07-08 Thread Jiawen Wu
Add log type and error type to trace functions. Signed-off-by: Jiawen Wu --- doc/guides/nics/ngbe.rst| 21 + drivers/net/ngbe/base/ngbe_status.h | 73 + drivers/net/ngbe/ngbe_ethdev.c | 15 ++ drivers/net/ngbe/ngbe_logs.h| 46 +

[dpdk-dev] [PATCH] eal: allow hugetlbfs sub-directories

2021-07-08 Thread John Levon
v2: fix to prefer closest match

[dpdk-dev] [PATCH] eal: allow hugetlbfs sub-directories

2021-07-08 Thread John Levon
get_hugepage_dir() was implemented in such a way that a --huge-dir option had to exactly match the mountpoint, but there's no reason for this restriction. Fix the implementation to allow a sub-directory within a suitable hugetlbfs mountpoint to be specified, preferring the closest match. Signed-of

Re: [dpdk-dev] [PATCH v6] ethdev: add new ext hdr for gtp psc

2021-07-08 Thread Andrew Rybchenko
On 7/8/21 12:27 PM, Raslan Darawsheh wrote: > Thank you for the review, > > Basically it's not used yet since it will break the abi > The main usage was in rte_flow item of gtp_psc > To replace the current structure with the header definition. And since > this will break the abi I'm adding the hea

Re: [dpdk-dev] Use WFE for spinlock and ring

2021-07-08 Thread Ruifeng Wang
> -Original Message- > From: Stephen Hemminger > Sent: Wednesday, July 7, 2021 10:48 PM > To: Ruifeng Wang > Cc: dev@dpdk.org; david.march...@redhat.com; tho...@monjalon.net; > jer...@marvell.com; nd ; Honnappa Nagarahalli > > Subject: Re: [dpdk-dev] Use WFE for spinlock and ring > > On

[dpdk-dev] [PATCH] crypto/cnxk: reset feature flags on reconfigure

2021-07-08 Thread Anoob Joseph
Feature flag in dev would be updated during config. On reconfigure, the field need to be set again to original value. Signed-off-by: Anoob Joseph --- drivers/crypto/cnxk/cn10k_cryptodev.c| 14 +- drivers/crypto/cnxk/cn9k_cryptodev.c | 13 + drivers/crypto/cnxk/cnx

Re: [dpdk-dev] [PATCH v6] ethdev: add new ext hdr for gtp psc

2021-07-08 Thread Singh, Aman Deep
Thanks Raslan for the rfc link.The structure order for RTE_BIG_ENDIAN seems ok. I doubt for RTE_LITTLE_ENDIAN case, if there is a need to reverse the order of fields, as we are using uint8_t only. If you have already tested on x86 then it should be fine ? Regards Aman On 7/6/2021 7:54 PM, Rasl

Re: [dpdk-dev] [PATCH v2] ipc: stop mp control thread on cleanup

2021-07-08 Thread David Marchand
On Thu, Jul 8, 2021 at 9:23 AM Maxime Coquelin wrote: > On 7/7/21 1:02 PM, David Marchand wrote: > > When calling rte_eal_cleanup, the mp channel cleanup routine only sets > > mp_fd to -1 leaving the rte_mp_handle control thread running. > > This control thread can spew warnings on reading on an i

Re: [dpdk-dev] [PATCH V3] ethdev: add dev configured flag

2021-07-08 Thread David Marchand
On Wed, Jul 7, 2021 at 11:54 AM Huisong Li wrote: > > Currently, if dev_configure is not called or fails to be called, users > can still call dev_start successfully. So it is necessary to have a flag > which indicates whether the device is configured, to control whether > dev_start can be called a

[dpdk-dev] [PATCH V2] pipeline: add support for LPM lookup

2021-07-08 Thread Cristian Dumitrescu
Add support for the Longest Prefix Match (LPM) lookup to the SWX pipeline. Signed-off-by: Cristian Dumitrescu Signed-off-by: Churchill Khangar --- Depends-on: series-17609 ("examples/pipeline: improve table update CLI commands") Depends-on: patch-17642 ("[V2] pipeline: fix table entry read")

Re: [dpdk-dev] [PATCH v8 00/19] net: ngbe PMD

2021-07-08 Thread Andrew Rybchenko
On 7/8/21 12:32 PM, Jiawen Wu wrote: > This patch set provides a skeleton of ngbe PMD, > which adapted to Wangxun WX1860 series NICs. Applied, thanks.

[dpdk-dev] [PATCH] net/virtio: fix refill order in packed ring datapath

2021-07-08 Thread Cheng Jiang
The front-end should refill the descriptor with the mbuf indicated by the buff_id rather then the index of used descriptor. Back-end may return buffers out of order if async copy mode is enabled. When initializing rxq, refill the descriptors in order as buff_id is not available at that time. Fixe

Re: [dpdk-dev] [PATCH v4 3/3] build: add option to enable wait until equal

2021-07-08 Thread Thomas Monjalon
08/07/2021 11:21, Ruifeng Wang: > From: Thomas Monjalon > > 08/07/2021 08:32, Jerin Jacob: > > > On Thu, Jul 8, 2021 at 11:55 AM Ruifeng Wang > > wrote: > > > > From: Jerin Jacob > > > > > On Wed, Jul 7, 2021 at 5:57 PM Bruce Richardson > > > > > wrote: > > > > > > On Wed, Jul 07, 2021 at 06:46

Re: [dpdk-dev] [PATCH v6] ethdev: add new ext hdr for gtp psc

2021-07-08 Thread Thomas Monjalon
08/07/2021 11:39, Andrew Rybchenko: > On 7/8/21 12:27 PM, Raslan Darawsheh wrote: > > Thank you for the review, > > > > Basically it's not used yet since it will break the abi > > The main usage was in rte_flow item of gtp_psc > > To replace the current structure with the header definition. And si

[dpdk-dev] [PATCH] vhost: fix async packed ring batch datapath

2021-07-08 Thread Cheng Jiang
We assume that in the sync path, if there is no buffer wrap in the avail descriptors fetched in a batch, there is no buffer wrap in the used descriptors which need to be written back in this batch, but this assumption is wrong in the async path since there are inflight descriptors which are process

[dpdk-dev] [PATCH] vhost: fix index overflow issue in async vhost

2021-07-08 Thread Cheng Jiang
We introduced some new indexes in async vhost. If we don't pay attention to the management of these indexes, they will eventually overflow and lead to errors. This patch is to check and keep these indexes within a reasonable range. Fixes: 873e8dad6f49 ("vhost: support packed ring in async datapath

[dpdk-dev] [PATCH v3] eal: allow hugetlbfs sub-directories

2021-07-08 Thread John Levon
get_hugepage_dir() was implemented in such a way that a --huge-dir option had to exactly match the mountpoint, but there's no reason for this restriction. Fix the implementation to allow a sub-directory within a suitable hugetlbfs mountpoint to be specified, preferring the closest match. Signed-of

[dpdk-dev] [PATCH 0/2] add dev start and dev stop ops in cnxk crypto PMD

2021-07-08 Thread Ankur Dwivedi
The dev start and dev stop ops are added in cnxk crypto PMD. The instruction queues are enabled in dev start and disabled in dev stop. Ankur Dwivedi (2): common/cnxk: move instruction queue enable to roc API crypto/cnxk: add dev start and dev stop drivers/common/cnxk/roc_cpt.c| 4

[dpdk-dev] [PATCH 1/2] common/cnxk: move instruction queue enable to roc API

2021-07-08 Thread Ankur Dwivedi
The code for enabling instruction queue is moved to roc API. Signed-off-by: Ankur Dwivedi --- drivers/common/cnxk/roc_cpt.c | 41 - drivers/common/cnxk/roc_cpt.h | 1 + drivers/common/cnxk/version.map | 1 + 3 files changed, 27 insertions(+), 16 deletions(-)

[dpdk-dev] [PATCH 2/2] crypto/cnxk: add dev start and dev stop

2021-07-08 Thread Ankur Dwivedi
The instruction queue is enabled in dev start and is disabled in dev stop. Signed-off-by: Ankur Dwivedi --- drivers/crypto/cnxk/cnxk_cryptodev_ops.c | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/cnxk/cnxk_cryptodev_ops.c b/drivers/crypto/cn

Re: [dpdk-dev] [PATCH v3 2/2] net/i40e: replace SMP barrier with thread fence

2021-07-08 Thread Zhang, Qi Z
> -Original Message- > From: Joyce Kong > Sent: Tuesday, July 6, 2021 2:54 PM > To: Xing, Beilei ; Zhang, Qi Z ; > ruifeng.w...@arm.com; honnappa.nagaraha...@arm.com; Richardson, Bruce > ; Zhang, Helin > Cc: dev@dpdk.org; sta...@dpdk.org; n...@arm.com > Subject: [PATCH v3 2/2] net/i40e

Re: [dpdk-dev] [PATCH v15] app/testpmd: support multi-process

2021-07-08 Thread Min Hu (Connor)
Hi, Andrew , 在 2021/7/2 20:47, Andrew Rybchenko 写道: On 7/2/21 3:09 PM, Andrew Rybchenko wrote: From: "Min Hu (Connor)" For example the following commands run two testpmd processes: * the primary process: ./dpdk-testpmd --proc-type=auto -l 0-1 -- -i \ --rxq=4 --txq=4 --num-procs=2 --pr

Re: [dpdk-dev] [PATCH v15] app/testpmd: support multi-process

2021-07-08 Thread Andrew Rybchenko
On 7/8/21 3:20 PM, Min Hu (Connor) wrote: > Hi, Andrew , > > 在 2021/7/2 20:47, Andrew Rybchenko 写道: >> On 7/2/21 3:09 PM, Andrew Rybchenko wrote: >>> From: "Min Hu (Connor)" >>> >>> For example the following commands run two testpmd processes: >>> >>>   * the primary process: >>> >>> ./dpdk-testp

Re: [dpdk-dev] [PATCH 1/3] net/bonding: fix proper return value check and correct log message

2021-07-08 Thread Min Hu (Connor)
The old code has just low-level error, which just copied the "printf" above. Thanks for your patch. Acked-by: Min Hu (Connor) 在 2021/6/22 17:25, Martin Havlik 写道: Return value is now saved to errval and log message on error reports correct function name, doesn't use q_id which was out of conte

Re: [dpdk-dev] [PATCH 2/3] net/bonding: fix not checked return value

2021-07-08 Thread Min Hu (Connor)
在 2021/6/22 17:25, Martin Havlik 写道: Return value from bond_ethdev_8023ad_flow_set() is now checked and appropriate message is logged on error. Fixes: 112891cd27e5 ("net/bonding: add dedicated HW queues for LACP control") Cc: tomaszx.kula...@intel.com Signed-off-by: Martin Havlik Cc: Jan Vi

Re: [dpdk-dev] [PATCH v6 2/2] power: refactor pstate and acpi code

2021-07-08 Thread David Marchand
On Wed, Jun 23, 2021 at 2:04 PM David Hunt wrote: > > From: Anatoly Burakov > > Currently, ACPI and PSTATE modes have lots of code duplication, > confusing logic, and a bunch of other issues that can, and have, led to > various bugs and resource leaks. > > This commit factors out the common parts

Re: [dpdk-dev] [PATCH v2 00/58] enhancements to host based flow table management

2021-07-08 Thread Thomas Monjalon
08/07/2021 05:57, Ajit Khaparde: > On Wed, Jul 7, 2021 at 1:43 AM Thomas Monjalon wrote: > > 15/06/2021 21:33, Ajit Khaparde: > > > On Sat, Jun 12, 2021 at 5:06 PM Ajit Khaparde > > > wrote: > > > > > > > > This patchset adds flow table management support for > > > > Thor network adapter and intr

Re: [dpdk-dev] [PATCH v15] app/testpmd: support multi-process

2021-07-08 Thread Min Hu (Connor)
Hi,Andrew , 在 2021/7/8 20:30, Andrew Rybchenko 写道: On 7/8/21 3:20 PM, Min Hu (Connor) wrote: Hi, Andrew , 在 2021/7/2 20:47, Andrew Rybchenko 写道: On 7/2/21 3:09 PM, Andrew Rybchenko wrote: From: "Min Hu (Connor)" For example the following commands run two testpmd processes:   * the primar

Re: [dpdk-dev] [PATCH 2/3] net/bonding: fix not checked return value

2021-07-08 Thread Havlík Martin
Dne 2021-07-08 14:43, Min Hu (Connor) napsal: 在 2021/6/22 17:25, Martin Havlik 写道: Return value from bond_ethdev_8023ad_flow_set() is now checked and appropriate message is logged on error. Fixes: 112891cd27e5 ("net/bonding: add dedicated HW queues for LACP control") Cc: tomaszx.kula...@intel

Re: [dpdk-dev] [PATCH v6 2/2] power: refactor pstate and acpi code

2021-07-08 Thread David Hunt
On 8/7/2021 1:49 PM, David Marchand wrote: On Wed, Jun 23, 2021 at 2:04 PM David Hunt wrote: From: Anatoly Burakov Currently, ACPI and PSTATE modes have lots of code duplication, confusing logic, and a bunch of other issues that can, and have, led to various bugs and resource leaks. This c

Re: [dpdk-dev] [PATCH v6 1/2] power: add support for cppc cpufreq

2021-07-08 Thread David Marchand
On Thu, Jul 8, 2021 at 4:35 AM Richael Zhuang wrote: > > Currently in DPDK only acpi_cpufreq and pstate_cpufreq drivers are > supported, which are both not available on arm64 platforms. Add > support for cppc_cpufreq driver which works on most arm64 platforms. Worth a release note update. WDYT of

Re: [dpdk-dev] [PATCH v2 1/3] vhost: add unsafe API to drain pkts in async vhost

2021-07-08 Thread Hu, Jiayu
Hi Maxime, > -Original Message- > From: Maxime Coquelin > Sent: Tuesday, July 6, 2021 10:09 PM > To: Jiang, Cheng1 ; Xia, Chenbo > > Cc: dev@dpdk.org; Hu, Jiayu ; Yang, YvonneX > > Subject: Re: [PATCH v2 1/3] vhost: add unsafe API to drain pkts in async vhost > > > > On 6/15/21 4:15

[dpdk-dev] [PATCH v2] net/vmxnet3: add interrupt support in MSI-X

2021-07-08 Thread Jochen Behrens
Add support for MSI-X interrupt vectors to the vmxnet3 driver. This will allow more efficient deployments in cloud environments. By default it will try to allocate 1 vector (0) for link event and one MSI-X vector for each Rx queue. To simplify things, it will only be enabled if the number of Tx a

Re: [dpdk-dev] [EXT] [PATCH] test: fix crypto_op length for sessionless case

2021-07-08 Thread Gujjar, Abhinandan S
Hi Akhil, > -Original Message- > From: Akhil Goyal > Sent: Wednesday, July 7, 2021 7:38 PM > To: Gujjar, Abhinandan S ; dev@dpdk.org; > Jerin Jacob Kollanukkaran > Cc: Power, Ciara > Subject: RE: [EXT] [PATCH] test: fix crypto_op length for sessionless case > > Hi Abhinandan, > > > Cu

[dpdk-dev] [PATCH v8 0/7] Enhancements for PMD power management

2021-07-08 Thread Anatoly Burakov
This patchset introduces several changes related to PMD power management: - Changed monitoring intrinsics to use callbacks as a comparison function, based on previous patchset [1] but incorporating feedback [2] - this hopefully will make it possible to add support for .get_monitor_addr in virt

[dpdk-dev] [PATCH v8 1/7] power_intrinsics: use callbacks for comparison

2021-07-08 Thread Anatoly Burakov
Previously, the semantics of power monitor were such that we were checking current value against the expected value, and if they matched, then the sleep was aborted. This is somewhat inflexible, because it only allowed us to check for a specific value in a specific way. This commit replaces the co

[dpdk-dev] [PATCH v8 2/7] net/af_xdp: add power monitor support

2021-07-08 Thread Anatoly Burakov
Implement support for .get_monitor_addr in AF_XDP driver. Signed-off-by: Anatoly Burakov --- Notes: v8: - Fix checkpatch issue v2: - Rewrite using the callback mechanism drivers/net/af_xdp/rte_eth_af_xdp.c | 34 + 1 file changed, 34 insertions(+

[dpdk-dev] [PATCH v8 3/7] eal: add power monitor for multiple events

2021-07-08 Thread Anatoly Burakov
Use RTM and WAITPKG instructions to perform a wait-for-writes similar to what UMWAIT does, but without the limitation of having to listen for just one event. This works because the optimized power state used by the TPAUSE instruction will cause a wake up on RTM transaction abort, so if we add the a

[dpdk-dev] [PATCH v8 4/7] power: remove thread safety from PMD power API's

2021-07-08 Thread Anatoly Burakov
Currently, we expect that only one callback can be active at any given moment, for a particular queue configuration, which is relatively easy to implement in a thread-safe way. However, we're about to add support for multiple queues per lcore, which will greatly increase the possibility of various

[dpdk-dev] [PATCH v8 5/7] power: support callbacks for multiple Rx queues

2021-07-08 Thread Anatoly Burakov
Currently, there is a hard limitation on the PMD power management support that only allows it to support a single queue per lcore. This is not ideal as most DPDK use cases will poll multiple queues per core. The PMD power management mechanism relies on ethdev Rx callbacks, so it is very difficult

[dpdk-dev] [PATCH v8 6/7] power: support monitoring multiple Rx queues

2021-07-08 Thread Anatoly Burakov
Use the new multi-monitor intrinsic to allow monitoring multiple ethdev Rx queues while entering the energy efficient power state. The multi version will be used unconditionally if supported, and the UMWAIT one will only be used when multi-monitor is not supported by the hardware. Signed-off-by: A

[dpdk-dev] [PATCH v8 7/7] l3fwd-power: support multiqueue in PMD pmgmt modes

2021-07-08 Thread Anatoly Burakov
Currently, l3fwd-power enforces the limitation of having one queue per lcore. This is no longer necessary, so remove the limitation. Signed-off-by: Anatoly Burakov --- examples/l3fwd-power/main.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/examples/l3fwd-power/main.c b/examples/l3fw

Re: [dpdk-dev] [PATCH v3 2/2] net/i40e: replace SMP barrier with thread fence

2021-07-08 Thread Zhang, Qi Z
> -Original Message- > From: Lance Richardson > Sent: Thursday, July 8, 2021 9:51 PM > To: Zhang, Qi Z > Cc: Joyce Kong ; Xing, Beilei ; > ruifeng.w...@arm.com; honnappa.nagaraha...@arm.com; Richardson, Bruce > ; Zhang, Helin ; > dev@dpdk.org; sta...@dpdk.org; n...@arm.com > Subject: Re

Re: [dpdk-dev] [PATCH v3 2/2] net/i40e: replace SMP barrier with thread fence

2021-07-08 Thread Honnappa Nagarahalli
> > > > > > > > Simply replace the SMP barrier with atomic thread fence for i40e > > > > hw ring > > sacn, > > > > if there is no synchronization point. > > > > > > > > Signed-off-by: Joyce Kong > > > > Reviewed-by: Ruifeng Wang > > > > --- > > > > drivers/net/i40e/i40e_rxtx.c | 3 ++- > > > >

[dpdk-dev] [PATCH v6 00/15] drivers: introduce mlx5 crypto PMD

2021-07-08 Thread Shiri Kuzin
Add a new PMD for Nvidia devices- crypto PMD. The crypto PMD will be supported on Nvidia ConnectX6. The crypto PMD will add the support of encryption and decryption using the AES-XTS symmetric algorithm. The crypto PMD requires rdma-core and uses mlx5 DevX. v2: Add data-path part. v3: Rebase. v4

[dpdk-dev] [PATCH v6 01/15] drivers: introduce mlx5 crypto PMD

2021-07-08 Thread Shiri Kuzin
Add a new PMD for Mellanox devices- crypto PMD. The crypto PMD will be supported starting Nvidia ConnectX6 and BlueField2. The crypto PMD will add the support of encryption and decryption using the AES-XTS symmetric algorithm. The crypto PMD requires rdma-core and uses mlx5 DevX. This patch add

[dpdk-dev] [PATCH v6 02/15] crypto/mlx5: add DEK object management

2021-07-08 Thread Shiri Kuzin
A DEK(Data encryption Key) is an mlx5 HW object which represents the cipher algorithm key. The DEKs are used during data encryption/decryption operations. In symmetric algorithms like AES-STS, we use the same DEK for both encryption and decryption. Use the mlx5 hash-list tool to manage the DEK ob

[dpdk-dev] [PATCH v6 03/15] crypto/mlx5: add session operations

2021-07-08 Thread Shiri Kuzin
Sessions are used in symmetric transformations in order to prepare objects and data for packet processing stage. A mlx5 session includes iv_offset, pointer to mlx5_crypto_dek struct, bsf_size, bsf_p_type, block size index, encryption_order and encryption standard. Implement the next session opera

[dpdk-dev] [PATCH v6 04/15] crypto/mlx5: add basic operations

2021-07-08 Thread Shiri Kuzin
The basic dev control operations are configure, close and get info. Extended the existing support of configure and close: -mlx5_crypto_dev_configure- function used to configure device. -mlx5_crypto_dev_close- function used to close a configured device. Added config struc

[dpdk-dev] [PATCH v6 05/15] crypto/mlx5: add queue pairs operations

2021-07-08 Thread Shiri Kuzin
The HW queue pairs are a pair of send queue and receive queue of independent work queues packed together in one object for the purpose of transferring data between nodes of a network. Completion Queue is a FIFO queue of completed work requests. In crypto driver we use one QP in loopback in order

[dpdk-dev] [PATCH v6 06/15] crypto/mlx5: add dev stop and start operations

2021-07-08 Thread Shiri Kuzin
Add the dev_start function that is used to start a configured device. Add the dev_stop function that is used to stop a configured device. Both functions set the dev parameter as used and return 0. Signed-off-by: Shiri Kuzin Acked-by: Matan Azrad --- drivers/crypto/mlx5/mlx5_crypto.c | 17 +

[dpdk-dev] [PATCH v6 07/15] crypto/mlx5: add memory region management

2021-07-08 Thread Shiri Kuzin
Mellanox user space drivers don't deal with physical addresses as part of a memory protection mechanism. The device translates the given virtual address to a physical address using the given memory key as an address space identifier. That's why any mbuf virtual address is moved directly to the HW d

[dpdk-dev] [PATCH v6 08/15] crypto/mlx5: create login object using DevX

2021-07-08 Thread Shiri Kuzin
To work with crypto engines that are marked with wrapped_import_method, a login session is required. A crypto login object needs to be created using DevX. The crypto login object contains: - The credential pointer. - The import_KEK pointer to be used for all secured information

[dpdk-dev] [PATCH v6 09/15] crypto/mlx5: add keytag devarg

2021-07-08 Thread Shiri Kuzin
From: Suanming Mou A keytag is a piece of data encrypted together with a DEK. When a DEK is referenced by an MKEY.bsf through its index, the keytag is also supplied in the BSF as plaintext. The HW will decrypt the DEK (and the attached keytag) and will fail the operation if the keytags don't mat

[dpdk-dev] [PATCH v6 10/15] crypto/mlx5: add maximum segments devarg

2021-07-08 Thread Shiri Kuzin
From: Suanming Mou The mlx5 HW crypto operations are done by attaching crypto property to a memory region. Once done, every access to the memory via the crypto-enabled memory region will result with in-line encryption or decryption of the data. As a result, the design choice is to provide two ty

[dpdk-dev] [PATCH v6 11/15] crypto/mlx5: add WQE set initialization

2021-07-08 Thread Shiri Kuzin
From: Suanming Mou Currently, HW handles the WQEs much faster than the software, Using the constant WQE set layout can initialize most of the WQE segments in advanced, and software only needs to configure very limited segments in datapath. This accelerates the software WQE organize in datapath.

[dpdk-dev] [PATCH v6 12/15] crypto/mlx5: add enqueue and dequeue operations

2021-07-08 Thread Shiri Kuzin
From: Suanming Mou The crypto operations are done with the WQE set which contains one UMR WQE and one rdma write WQE. Most segments of the WQE set are initialized properly during queue setup, only limited segments are initialized according to the crypto detail in the datapath process. This commi

[dpdk-dev] [PATCH v6 13/15] crypto/mlx5: add statistic get and reset operations

2021-07-08 Thread Shiri Kuzin
From: Suanming Mou This commit adds mlx5 crypto statistic get and reset operations. Signed-off-by: Suanming Mou Signed-off-by: Matan Azrad --- drivers/crypto/mlx5/mlx5_crypto.c | 40 --- 1 file changed, 37 insertions(+), 3 deletions(-) diff --git a/drivers/crypto/

[dpdk-dev] [PATCH v6 14/15] test/crypto: add mlx5 crypto driver

2021-07-08 Thread Shiri Kuzin
In order to test the new mlx5 crypto PMD, the driver is added to the crypto test application. Signed-off-by: Shiri Kuzin --- app/test/test_cryptodev.c | 7 +++ app/test/test_cryptodev.h | 1 + doc/guides/cryptodevs/mlx5.rst | 3 +++ 3 files changed, 11 insertions(+) diff --git a/a

[dpdk-dev] [PATCH v6 15/15] test/crypto: add data-unit and wrapped vectors

2021-07-08 Thread Shiri Kuzin
The AES-XTS algorithm supports using a wrapped key. In AES-XTS the data-unit defines the data block size to be encrypted\decrypted. Add AES-XTS vectors with a wrapped key. Add a variable stating whether the key is wrapped or not. Add the AES-XTS data-unit. Signed-off-by: Shiri Kuzin --- app/tes

[dpdk-dev] [PATCH v7 2/2] power: refactor pstate and acpi code

2021-07-08 Thread David Hunt
From: Anatoly Burakov Currently, ACPI and PSTATE modes have lots of code duplication, confusing logic, and a bunch of other issues that can, and have, led to various bugs and resource leaks. This commit factors out the common parts of sysfs reading/writing for ACPI and PSTATE drivers. Signed-of

  1   2   >