Re: [dpdk-dev] [PATCH v2 2/2] raw/ifpga: use trusted buffer to free

2020-10-29 Thread Zhang, Tianfei
> -Original Message- > From: dev On Behalf Of Wei Huang > Sent: 2020年10月30日 8:22 > To: dev@dpdk.org; Xu, Rosen ; Zhang, Qi Z > > Cc: Huang, Wei > Subject: [dpdk-dev] [PATCH v2 2/2] raw/ifpga: use trusted buffer to free > > In rte_fpga_do_pr, calling function read() may taints argumen

Re: [dpdk-dev] [PATCH v2 1/2] raw/ifpga: terminate string filled by readlink with null

2020-10-29 Thread Zhang, Tianfei
> -Original Message- > From: dev On Behalf Of Wei Huang > Sent: 2020年10月30日 8:22 > To: dev@dpdk.org; Xu, Rosen ; Zhang, Qi Z > > Cc: Huang, Wei > Subject: [dpdk-dev] [PATCH v2 1/2] raw/ifpga: terminate string filled by > readlink with null > > readlink() does not terminate string, ad

Re: [dpdk-dev] [PATCH] doc: add the doc for mlx5 specific header

2020-10-29 Thread Bing Zhao
Thanks a lot, I will send v2. > -Original Message- > From: Thomas Monjalon > Sent: Friday, October 30, 2020 12:06 AM > To: ferruh.yi...@intel.com; Bing Zhao > Cc: Ori Kam ; dev@dpdk.org > Subject: Re: [PATCH] doc: add the doc for mlx5 specific header > > External email: Use caution open

Re: [dpdk-dev] [PATCH v2 2/2] net/mlx5: add flow sync API

2020-10-29 Thread Bing Zhao
Hi Ferruh, Thanks for your comments. PSB > -Original Message- > From: Ferruh Yigit > Sent: Friday, October 30, 2020 6:43 AM > To: Slava Ovsiienko ; Bing Zhao > ; Matan Azrad ; Ori Kam > > Cc: dev@dpdk.org; Raslan Darawsheh > Subject: Re: [dpdk-dev] [PATCH v2 2/2] net/mlx5: add flow sync

Re: [dpdk-dev] [PATCH v2] net/i40e: fix virtual channel confiliction issue

2020-10-29 Thread Zhang, Yuying
> -Original Message- > From: Ferruh Yigit > Sent: Friday, October 23, 2020 6:42 PM > To: Zhang, Yuying ; dev@dpdk.org; Zhang, Qi Z > ; Xing, Beilei > Cc: sta...@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2] net/i40e: fix virtual channel confiliction > issue > > On 10/19/2020 3:20 AM,

[dpdk-dev] [PATCH v1] net/iavf: fix PROT filed for rss hash

2020-10-29 Thread Jeff Guo
Add PROT field into IPv4 and IPv6 protocol headers for rss hash. Fixes: 91f27b2e39ab ("net/iavf: refactor RSS") Signed-off-by: Jeff Guo --- drivers/net/iavf/iavf_hash.c | 32 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/drivers/net/iavf/iavf_h

Re: [dpdk-dev] [dpdk-techboard] [v4 1/3] cryptodev: support enqueue callback functions

2020-10-29 Thread Gujjar, Abhinandan S
Thanks Tech board & Akhil for clarifying the concern. Sure. I will send the new version of the patch. Regards Abhinandan > -Original Message- > From: Akhil Goyal > Sent: Thursday, October 29, 2020 7:31 PM > To: Gujjar, Abhinandan S ; Honnappa > Nagarahalli ; Richardson, Bruce > ; Ray K

Re: [dpdk-dev] Adding to mailing list

2020-10-29 Thread Venumadhav Josyula
Hi Nandini, You can click on the following link ( this has / had worked for me ), i am subscribed to couple of mailing list. https://www.dpdk.org/contribute/#mailing-lists There different mailing lists are there, you can click register against whichever you want. The process is you might need to r

[dpdk-dev] [PATCH] net/iavf: fix invalid RSS type

2020-10-29 Thread Simei Su
When a RSS rule with symmetric hash function, the RSS type shouldn't carry with SRC/DST_ONLY. This patch adds invalid RSS type check for the case. Fixes: 91f27b2e39ab ("net/iavf: refactor RSS") Signed-off-by: Simei Su --- drivers/net/iavf/iavf_hash.c | 16 1 file changed, 16 in

[dpdk-dev] [PATCH v11] net/iavf: support flex desc metadata extraction

2020-10-29 Thread Jeff Guo
Enable metadata extraction for flexible descriptors in AVF, that would allow network function directly get metadata without additional parsing which would reduce the CPU cost for VFs. The enabling metadata extractions involve the metadata of VLAN/IPv4/IPv6/IPv6-FLOW/TCP/MPLS flexible descriptors, a

Re: [dpdk-dev] [dpdk-dev v2] test: fix GMAC SGL test

2020-10-29 Thread Jiang, YuX
Tested-by: JiangYuX Best Regards Jiang yu > -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Fan Zhang > Sent: Thursday, October 29, 2020 10:47 PM > To: dev@dpdk.org > Cc: akhil.go...@nxp.com; Zhang, Roy Fan ; De > Lara Guarch, Pablo > Subject: [dpdk-de

[dpdk-dev] [PATCH v2 0/2] raw/ifpga: fix coverity defects

2020-10-29 Thread Wei Huang
These two patches fix defects found by coverity scan. Main changes from v2: - Fix coding style issue Wei Huang (2): raw/ifpga: terminate string filled by readlink with null raw/ifpga: use trusted buffer to free drivers/raw/ifpga/ifpga_rawdev.c | 10 ++ 1 file changed, 6 insertions(+

[dpdk-dev] [PATCH v2 2/2] raw/ifpga: use trusted buffer to free

2020-10-29 Thread Wei Huang
In rte_fpga_do_pr, calling function read() may taints argument buffer which turn to an untrusted value as argumen of rte_free(). Fixes: ef1e8ede3da5 ("raw/ifpga: add Intel FPGA bus rawdev driver") Signed-off-by: Wei Huang --- v2: add fixes information to log --- drivers/raw/ifpga/ifpga_rawdev.c

[dpdk-dev] [PATCH v2 1/2] raw/ifpga: terminate string filled by readlink with null

2020-10-29 Thread Wei Huang
readlink() does not terminate string, add a null character at the end of the string if readlink() succeeds. Fixes: 9c006c45d0c5 ("raw/ifpga: scan PCIe BDF device tree") Signed-off-by: Wei Huang --- v2: fix coding style issue --- drivers/raw/ifpga/ifpga_rawdev.c | 3 ++- 1 file changed, 2 insert

Re: [dpdk-dev] [EXTERNAL] [RFC] pthread on Windows

2020-10-29 Thread Khoa To
Hi Nick, > -Original Message- > From: dev On Behalf Of Nick Connolly > Sent: Monday, October 19, 2020 2:59 AM > To: dev@dpdk.org > Subject: [EXTERNAL] [dpdk-dev] [RFC] pthread on Windows > > > The proposed changes are: > > 1. An EAL implementation of pthread with a new rte_pthread API

[dpdk-dev] [PATCH DPDK_KMODS v7 2/2] linux/igb_uio: add Makefile to build the igb_uio module

2020-10-29 Thread Hariprasad Govindharajan
With DPDK 20.11 release, the igb_uio module is no more part of DPDK. This patch provides a Makefile to the user, who can build this module when required by running make inside the source dir. Signed-off-by: Hariprasad Govindharajan --- This patch will be part of dpdk-kmods repo https://git.dpdk.o

[dpdk-dev] [PATCH DPDK_KMODS v7 1/2] linux/igb_uio: remove DPDK dependency for building igb_uio

2020-10-29 Thread Hariprasad Govindharajan
The igb_uio source code requires interrupt modes defined as MACROS and enums in the header file rte_pci_dev_features.h. Now, the definitions are moved to the igb_uio.c file so that this module can be built without building DPDK Signed-off-by: Hariprasad Govindharajan --- linux/igb_uio/igb_uio.c

[dpdk-dev] [kmods PATCH] windows: normalize line-endings

2020-10-29 Thread Dmitry Kozlyuk
MSBuild XML files have to use CRLF line-endings, otherwise any change results in the whole file being rewritten with CRLF line-endings by Visual Studio. However, it's inconvenient to have such files checked-out with CLRF in Unix environments. Add suggested git configuration to top-level README, so

Re: [dpdk-dev] [PATCH 0/3] ethdev: remove L2 tunnel config API

2020-10-29 Thread Ferruh Yigit
On 10/22/2020 11:06 AM, Andrew Rybchenko wrote: Dispite of the deprecation notice I'm not 100% sure that corresponding functionality is supported via flow API. Since the functionality is supported by the net/ixgbe driver only, it is a question to maintainers. The patch series should be applied o

Re: [dpdk-dev] [PATCH 15/15] mbuf: move pool pointer in hotter first half

2020-10-29 Thread Ajit Khaparde
On Thu, Oct 29, 2020 at 7:15 AM Ananyev, Konstantin wrote: > > > > > > > 29/10/2020 11:50, Andrew Rybchenko: > > > On 10/29/20 12:27 PM, Thomas Monjalon wrote: > > > > The mempool pointer in the mbuf struct is moved > > > > from the second to the first half. > > > > It should increase performance

Re: [dpdk-dev] [PATCH v2 2/2] net/mlx5: add flow sync API

2020-10-29 Thread Ferruh Yigit
On 10/27/2020 3:42 PM, Slava Ovsiienko wrote: Hi, Bing Release notes / mlx5 features documentation update? Beside this: Acked-by: Viacheslav Ovsiienko -Original Message- From: Bing Zhao Sent: Tuesday, October 27, 2020 16:47 To: Slava Ovsiienko ; Matan Azrad ; Ori Kam Cc: dev@dpdk.or

Re: [dpdk-dev] [PATCH 02/15] mbuf: add Rx timestamp dynamic flag

2020-10-29 Thread Ajit Khaparde
On Thu, Oct 29, 2020 at 2:58 AM Andrew Rybchenko wrote: > > On 10/29/20 12:27 PM, Thomas Monjalon wrote: > > There is already a dynamic field for timestamp, > > used only for Tx scheduling, thanks to the dedicated flag. > > The same field can be used for Rx timestamp filled by drivers. > > The onl

Re: [dpdk-dev] [PATCH 14/15] mbuf: remove deprecated timestamp field

2020-10-29 Thread Ajit Khaparde
On Thu, Oct 29, 2020 at 3:23 AM Andrew Rybchenko wrote: > > On 10/29/20 12:27 PM, Thomas Monjalon wrote: > > As announced in the deprecation note, the field timestamp > > is removed to allow giving more space to the dynamic fields. > > The related offload flag PKT_RX_TIMESTAMP is also removed. > >

Re: [dpdk-dev] [PATCH v5 0/8] lib/ring: add zero copy APIs

2020-10-29 Thread Honnappa Nagarahalli
> On Sun, Oct 25, 2020 at 6:46 AM Honnappa Nagarahalli > wrote: > > > > It is pretty common for the DPDK applications to be deployed in > > semi-pipeline model. In these models, a small number of cores > > (typically 1) are designated as I/O cores. The I/O cores work on > > receiving and transmi

Re: [dpdk-dev] [PATCH 1/8] examples/fips_validation: enhance getopt_long usage

2020-10-29 Thread David Marchand
Hello Ibtisam, On Thu, Oct 29, 2020 at 1:55 PM Ibtisam Tariq wrote: > > Instead of using getopt_long return value, strcmp was used to > compare the input parameters with the struct option array. This > patch get rid of all those strcmp by directly binding each longopt > with an int enum. > > Bugz

[dpdk-dev] [PATCH 7/8] net/mlx5: optimize shared RSS action memory

2020-10-29 Thread Matan Azrad
The RSS shared action was saved in flow memory by a pointer. It means that every flow memory includes 8B only for optional shared RSS case. Move the RSS objects to be used by indexed pool which reduces the flow handle memory to 4B. So, now, the shared action handler is also just a 4B index. Sign

[dpdk-dev] [PATCH 8/8] net/mlx5: support shared age action

2020-10-29 Thread Matan Azrad
Add support for rte_flow shared action API for age action. First step here to support validate, create, query and destroy. The support is only for age ASO mode. Signed-off-by: Matan Azrad --- drivers/net/mlx5/mlx5.h | 1 + drivers/net/mlx5/mlx5_flow.c| 61 +++-- driv

[dpdk-dev] [PATCH 6/8] net/mlx5: support flow hit action for aging

2020-10-29 Thread Matan Azrad
From: Dekel Peled A new ASO (Advanced Steering Operation) feature was added in the last mlx5 adapters to support flow hit detection. Using this new steering action, the driver can detect flow traffic hit and to reset this indication any time. Add support for flow aging action in rte_flow using

[dpdk-dev] [PATCH 5/8] common/mlx5: add definitions for ASO flow hit

2020-10-29 Thread Matan Azrad
From: Dekel Peled This patch adds different PRM definitions, related to ASO flow hit feature, in MLX5 PMD code. Signed-off-by: Dekel Peled --- drivers/common/mlx5/linux/meson.build | 2 ++ drivers/common/mlx5/mlx5_prm.h| 66 ++- 2 files changed, 67 inse

[dpdk-dev] [PATCH 3/8] common/mlx5: add read ASO flow hit HCA capability

2020-10-29 Thread Matan Azrad
From: Dekel Peled Read and store the device capability of FLOW_HIT_ASO general object, using the DevX API. Signed-off-by: Dekel Peled --- drivers/common/mlx5/mlx5_devx_cmds.c | 3 +++ drivers/common/mlx5/mlx5_devx_cmds.h | 1 + drivers/common/mlx5/mlx5_prm.h | 2 ++ 3 files changed, 6 in

[dpdk-dev] [PATCH 2/8] common/mlx5: use general object type for cap index

2020-10-29 Thread Matan Azrad
From: Dekel Peled PRM defines the general object types using positive numbers. The same values are used as index for the relevant bit in HCA capabilities general_obj_types bit mask. Signed-off-by: Dekel Peled --- drivers/common/mlx5/mlx5_prm.h | 9 ++--- 1 file changed, 6 insertions(+), 3

[dpdk-dev] [PATCH 1/8] common/mlx5: add DevX API to create ASO flow hit object

2020-10-29 Thread Matan Azrad
From: Dekel Peled Add DevX API to create ASO flow hit object. Signed-off-by: Dekel Peled --- drivers/common/mlx5/mlx5_devx_cmds.c | 45 drivers/common/mlx5/mlx5_devx_cmds.h | 4 drivers/common/mlx5/mlx5_prm.h | 14 +++ drivers/common/mlx

[dpdk-dev] [PATCH 4/8] common/mlx5: add glue func create flow hit action

2020-10-29 Thread Matan Azrad
From: Dekel Peled Add glue function to create the flow hit action using DV API, if rdma-core support exists. Signed-off-by: Dekel Peled --- drivers/common/mlx5/linux/meson.build | 2 ++ drivers/common/mlx5/linux/mlx5_glue.c | 16 drivers/common/mlx5/linux/mlx5_glue.h | 3 +++

[dpdk-dev] [PATCH 0/8] net/mlx5: support flow hit steering action

2020-10-29 Thread Matan Azrad
A new ASO (Advanced Steering Operation) feature was added in the last mlx5 adapters to support flow hit detection. Using this new steering action, the driver can detect flow traffic hit and to reset this indication any time. Add support for flow aging action in rte_flow using this new feature. T

Re: [dpdk-dev] [PATCH v2 0/4] Rework CTF event description storage

2020-10-29 Thread David Marchand
On Wed, Oct 28, 2020 at 10:03 PM David Marchand wrote: > > Following recent increase of an internal array that was limiting CTF event > descriptions, I had a second look at the code. > All of this is slow path, so I see no reason in keeping this limitation > and we can go with dynamic allocations.

Re: [dpdk-dev] [prefix=DPDK_KMODS v6 1/2] linux/igb_uio: remove DPDK dependency for building igb_uio

2020-10-29 Thread Thomas Monjalon
29/10/2020 22:28, David Marchand: > On Thu, Oct 29, 2020 at 9:11 PM Hariprasad Govindharajan > wrote: > > > > The igb_uio source code requires interrupt modes defined as > > MACROS and enums in the header file rte_pci_dev_features.h. > > Now, the definitions are moved to the igb_uio.c file so that

Re: [dpdk-dev] [PATCH v3] gso: fix free issue of mbuf gso segments attach to

2020-10-29 Thread Thomas Monjalon
I don't have a clear opinion on this patch. Techboard members, ping for feedbacks. If no objection, I will merge it soon, but I would prefer having more acks. 27/10/2020 20:55, Ananyev, Konstantin: > From: yang_y...@163.com > > From: Yi Yang > > > > rte_gso_segment decreased refcnt of pkt by o

Re: [dpdk-dev] [PATCH v2 00/14] ethdev: remove legacy filter API

2020-10-29 Thread Ferruh Yigit
On 10/23/2020 5:03 PM, Ferruh Yigit wrote: On 10/22/2020 10:42 AM, Andrew Rybchenko wrote: Removal is aggressive and tries to cleanup all dead code from drivers. tep_termination example still uses TUNNEL filters. Functionality is broken when TUNNEL filter is removed and finally even build of th

Re: [dpdk-dev] [PATCH v4 1/1] vfio: modify spapr iommu support to use static window sizing

2020-10-29 Thread Thomas Monjalon
Ping for review please 20/10/2020 14:05, Thomas Monjalon: > Anatoly, please could you review this patch? > > 15/10/2020 19:23, David Christensen: > > The SPAPR IOMMU requires that a DMA window size be defined before memory > > can be mapped for DMA. Current code dynamically modifies the DMA windo

Re: [dpdk-dev] [prefix=DPDK_KMODS v6 1/2] linux/igb_uio: remove DPDK dependency for building igb_uio

2020-10-29 Thread David Marchand
On Thu, Oct 29, 2020 at 9:11 PM Hariprasad Govindharajan wrote: > > The igb_uio source code requires interrupt modes defined as > MACROS and enums in the header file rte_pci_dev_features.h. > Now, the definitions are moved to the igb_uio.c file so that > this module can be built without building D

Re: [dpdk-dev] [PATCH v10 3/9] eal: add intrinsics support check infrastructure

2020-10-29 Thread David Marchand
On Tue, Oct 27, 2020 at 4:00 PM Liang Ma wrote: > > Currently, it is not possible to check support for intrinsics that > are platform-specific, cannot be abstracted in a generic way, or do not > have support on all architectures. The CPUID flags can be used to some > extent, but they are only defi

Re: [dpdk-dev] [prefix=DPDK_KMODS v6 2/2] linux/igb_uio: add Makefile to build the igb_uio module

2020-10-29 Thread Thomas Monjalon
29/10/2020 21:10, Hariprasad Govindharajan: > With DPDK 20.11 release, the igb_uio module is no more part of DPDK. > There are use cases where this module is required, for example while > testing the virtual ports in OvS, the virtual ports are bound to > igb_uio module inside a VM. So, this patch p

Re: [dpdk-dev] [prefix=DPDK_KMODS v6 1/2] linux/igb_uio: remove DPDK dependency for building igb_uio

2020-10-29 Thread Thomas Monjalon
29/10/2020 21:10, Hariprasad Govindharajan: > The igb_uio source code requires interrupt modes defined as > MACROS and enums in the header file rte_pci_dev_features.h. > Now, the definitions are moved to the igb_uio.c file so that > this module can be built without building DPDK > > Signed-off-by:

Re: [dpdk-dev] [DPDK_KMODS v5] linux/igb_uio: add Makefile to build the kernel module

2020-10-29 Thread Thomas Monjalon
29/10/2020 20:16, Hariprasad Govindharajan: > With DPDK 20.11 release, the igb_uio module is no more part of DPDK. > There are use cases where this module is required, for example while > testing the virtual ports in OvS, the virtual ports are bound to > igb_uio module inside a VM. So, this patch p

Re: [dpdk-dev] [PATCH dpdk-kmods] igb_uio: include MODULE_CFLAGS in Kbuild

2020-10-29 Thread Thomas Monjalon
28/10/2020 19:15, luca.bocca...@gmail.com: > From: Luca Boccassi > > Necessary to get build flags from DKMS. > > See: > > https://git.dpdk.org/dpdk/commit/?id=816d967717 [...] > --- a/linux/igb_uio/Kbuild > +++ b/linux/igb_uio/Kbuild > @@ -1 +1,2 @@ > +ccflags-y := $(MODULE_CFLAGS) > obj-m :=

Re: [dpdk-dev] [PATCH v4 2/6] build: refactor Arm build

2020-10-29 Thread Honnappa Nagarahalli
> > > > > > > diff --git a/config/arm/meson.build b/config/arm/meson.build index > > > 491842cad..6c31ab167 100644 > > > --- a/config/arm/meson.build > > > +++ b/config/arm/meson.build > > > @@ -3,12 +3,12 @@ > > > # Copyright(c) 2017 Cavium, Inc > > > # Copyright(c) 2020 PANTHEON.tech s.r.o. >

Re: [dpdk-dev] [prefix=DPDK_KMODS v6 2/2] linux/igb_uio: add Makefile to build the igb_uio module

2020-10-29 Thread Ferruh Yigit
On 10/29/2020 8:10 PM, Hariprasad Govindharajan wrote: With DPDK 20.11 release, the igb_uio module is no more part of DPDK. There are use cases where this module is required, for example while testing the virtual ports in OvS, the virtual ports are bound to igb_uio module inside a VM. So, this pa

Re: [dpdk-dev] [prefix=DPDK_KMODS v6 1/2] linux/igb_uio: remove DPDK dependency for building igb_uio

2020-10-29 Thread Ferruh Yigit
On 10/29/2020 8:10 PM, Hariprasad Govindharajan wrote: The igb_uio source code requires interrupt modes defined as MACROS and enums in the header file rte_pci_dev_features.h. Now, the definitions are moved to the igb_uio.c file so that this module can be built without building DPDK Signed-off-by

[dpdk-dev] [prefix=DPDK_KMODS v6 2/2] linux/igb_uio: add Makefile to build the igb_uio module

2020-10-29 Thread Hariprasad Govindharajan
With DPDK 20.11 release, the igb_uio module is no more part of DPDK. There are use cases where this module is required, for example while testing the virtual ports in OvS, the virtual ports are bound to igb_uio module inside a VM. So, this patch provides a Makefile which can be used to build this m

[dpdk-dev] [prefix=DPDK_KMODS v6 1/2] linux/igb_uio: remove DPDK dependency for building igb_uio

2020-10-29 Thread Hariprasad Govindharajan
The igb_uio source code requires interrupt modes defined as MACROS and enums in the header file rte_pci_dev_features.h. Now, the definitions are moved to the igb_uio.c file so that this module can be built without building DPDK Signed-off-by: Hariprasad Govindharajan --- linux/igb_uio/igb_uio.c

Re: [dpdk-dev] [dpdk-stable] [Patch v2] net/vdev_netvsc: prevent alarm loss on failed device probe

2020-10-29 Thread Ferruh Yigit
On 10/26/2020 7:14 AM, Matan Azrad wrote: Hi Long From: Long Li If a device probe fails, the alarm is canceled and will no longer work for previously probed devices. Fix this by checking if alarm is necessary at the end of each device probe. Reset the alarm if there are vdev_netvsc_ctx create

Re: [dpdk-dev] [PATCH V2 1/2] net/netvsc: allow setting rx and tx copy break

2020-10-29 Thread Ferruh Yigit
On 10/23/2020 10:54 PM, Long Li wrote: From: Stephen Hemminger The values for Rx and Tx copy break should be tunable rather than hard coded constants. The rx_copybreak sets the threshold where the driver uses an external mbuf to avoid having to copy data. Setting 0 for copybreak will cause dri

Re: [dpdk-dev] [PATCH v2] net/txgbe: fix driver exit

2020-10-29 Thread Ferruh Yigit
On 10/28/2020 2:29 AM, Jiawen Wu wrote: Replace the 'rte_panic()' with an error return. Also change the type of the calling function. Signed-off-by: Jiawen Wu Applied to dpdk-next-net/main, thanks.

Re: [dpdk-dev] [DPDK_KMODS v5] linux/igb_uio: add Makefile to build the kernel module

2020-10-29 Thread Ferruh Yigit
On 10/29/2020 7:16 PM, Hariprasad Govindharajan wrote: With DPDK 20.11 release, the igb_uio module is no more part of DPDK. There are use cases where this module is required, for example while testing the virtual ports in OvS, the virtual ports are bound to igb_uio module inside a VM. So, this pa

[dpdk-dev] [DPDK_KMODS v5] linux/igb_uio: add Makefile to build the kernel module

2020-10-29 Thread Hariprasad Govindharajan
With DPDK 20.11 release, the igb_uio module is no more part of DPDK. There are use cases where this module is required, for example while testing the virtual ports in OvS, the virtual ports are bound to igb_uio module inside a VM. So, this patch provides a Makefile which can be used to build this m

Re: [dpdk-dev] [PATCH 1/2] crypto/aesni_mb: support Chacha-Poly in symmetric API

2020-10-29 Thread Akhil Goyal
> Subject: [dpdk-dev] [PATCH 1/2] crypto/aesni_mb: support Chacha-Poly in > symmetric API > > Add support for Chacha20-Poly1305 in the crypto symmetric API. > > Signed-off-by: Pablo de Lara > --- Subject and description updated for symmetric->synchronous Series applied to dpdk-next-crypto Tha

Re: [dpdk-dev] [DPDK_KMODS v4] linux/igb_uio: add Makefile to build the kernel module

2020-10-29 Thread Govindharajan, Hariprasad
> -Original Message- > From: Luca Boccassi > Sent: Thursday, October 29, 2020 10:16 AM > To: Govindharajan, Hariprasad ; > dev@dpdk.org > Cc: Yigit, Ferruh ; Burakov, Anatoly > > Subject: Re: [dpdk-dev] [DPDK_KMODS v4] linux/igb_uio: add Makefile to > build the kernel module > > On Thu,

Re: [dpdk-dev] [PATCH v2] eal: enable windows apps to run on non-admin users

2020-10-29 Thread Narcisa Ana Maria Vasile
On Mon, Oct 26, 2020 at 11:44:58AM -0700, Pallavi Kadam wrote: > Currently, since there is no runtime directory set, the code tries to > create a file in C:\ which is only writable with administrator > privileges. As a result, if the user is not admin, the application will > fail. > So, forcing no_

[dpdk-dev] [PATCH] pipeline: increase immediate operand size

2020-10-29 Thread Cristian Dumitrescu
From: Venkata Suresh Kumar P This patch increases the immediate operand size from 32 to 64 bits. Signed-off-by: Venkata Suresh Kumar P Acked-by: Cristian Dumitrescu --- lib/librte_pipeline/rte_swx_pipeline.c | 103 +++-- lib/librte_pipeline/rte_swx_pipeline.h | 2

[dpdk-dev] [PATCH] net/mlx5: fix CQE decompression for ARM and PowerPC

2020-10-29 Thread Alexander Kozyrev
The recent Rx code refactoring moved the incrementing of the CQ completion index out of the rxq_cq_decompress_v() function to the rxq_burst_v() function. The advancing of CQ completion index was removed in SSE version only causing Neon and Altivec Rx bursts to stall. Remove the incrementation of

Re: [dpdk-dev] [PATCH v10 0/9] Add PMD power mgmt

2020-10-29 Thread Thomas Monjalon
27/10/2020 15:59, Liang Ma: > Liang Ma (9): > eal: add new x86 cpuid support for WAITPKG > eal: add power management intrinsics > eal: add intrinsics support check infrastructure EAL patches applied, thanks. > ethdev: add simple power management API Waiting for doxygen reword which may h

Re: [dpdk-dev] eal: DPDK: 18.11.6 version rte_eal_init() function cleans the runtime directory in 5.4.35 kernel

2020-10-29 Thread Mohakud, Amiya Ranjan
Hi Anatoly Thanks for the reply. Do you have a sample code for primary and secondary processes which I can try in my setup? And once reproduced, can let you know. We have DPDK applications in our product with which I always see this issue. Regards Amiya From: Burakov, Anatoly Sent: 29 October

Re: [dpdk-dev] [PATCH v10 2/9] eal: add power management intrinsics

2020-10-29 Thread Thomas Monjalon
27/10/2020 15:59, Liang Ma: > +static inline uint64_t > +__get_umwait_val(const volatile void *p, const uint8_t sz) > +{ > + switch (sz) { > + case sizeof(uint8_t): > + return *(const volatile uint8_t *)p; > + case sizeof(uint16_t): > + return *(const v

Re: [dpdk-dev] [PATCH v5 5/8] doc/ring: add zero copy peek APIs

2020-10-29 Thread Honnappa Nagarahalli
> > On Thu, Oct 29, 2020 at 12:29 PM Ananyev, Konstantin > wrote: > > > On Sun, Oct 25, 2020 at 6:46 AM Honnappa Nagarahalli > > > wrote: > > > > +.. code-block:: c > > > > + > > > > +/* Reserve space on the ring */ > > > > +n = rte_ring_enqueue_zc_burst_start(r, 32, &zcd, NULL); > > >

Re: [dpdk-dev] [PATCH 3/3 v4] app/testpmd: support hardware offload to drop error packets

2020-10-29 Thread Dharmik Thakkar
Hi Nipun, Some nits. Looks good otherwise. > On Oct 15, 2020, at 8:23 AM, nipun.gu...@nxp.com wrote: > > From: Nipun Gupta > > With DEV_RX_OFFLOAD_ERR_PKT_DROP now defined as an offload > capability, and separate RTE_DEV_RX_ERR_PKT_DROP_OFFLOAD_ALL > capability to drop all error packets in ha

Re: [dpdk-dev] eal: DPDK: 18.11.6 version rte_eal_init() function cleans the runtime directory in 5.4.35 kernel

2020-10-29 Thread Burakov, Anatoly
On 29-Oct-20 3:51 PM, Burakov, Anatoly wrote: On 28-Oct-20 7:00 AM, Mohakud, Amiya Ranjan wrote: Hi Anatoly, Are you back from vacation? Can you please let me know if there is any proceedings on this or if there is anything pending from my side ? https://bugs.dpdk.org/show_bug.cgi?id=561 Re

Re: [dpdk-dev] [PATCH] examples/ip_pipeline: fix build with external makefile

2020-10-29 Thread David Marchand
On Mon, Oct 26, 2020 at 10:58 PM Cristian Dumitrescu wrote: > > Fix build with external makefile. > > Fixes: fbc74e66334f ("examples/ip_pipeline: remove infra code") > Signed-off-by: Cristian Dumitrescu Applied, thanks. -- David Marchand

Re: [dpdk-dev] [PATCH] pipeline: fix string copy into fixed size buffer

2020-10-29 Thread David Marchand
On Mon, Oct 26, 2020 at 8:59 PM Cristian Dumitrescu wrote: > > Fix potential buffer overflows by string copy into fixed size buffer. > > Coverity issue: 362732, 362736, 362760, 362772, 362775, 362784, > 362800, 362803, 362806, 362811, 362814, 362816, > 362834, 36283

Re: [dpdk-dev] [PATCH] examples/pipeline: fix resource leak

2020-10-29 Thread David Marchand
On Mon, Oct 26, 2020 at 10:24 PM Cristian Dumitrescu wrote: > > Coverity issue: 363041 > Fixes: 5074e1d551 ("examples/pipeline: add configuration commands") > > Signed-off-by: Cristian Dumitrescu Applied, thanks. -- David Marchand

[dpdk-dev] [dpdk-dev v2] crypto/aesni_mb: fix cpu crypto cipher auth

2020-10-29 Thread Fan Zhang
This patch fixes the AESNI-MB PMD CPU crypto process function. Originally the function tried to access crypto vector's aad buffer even it is not needed. Fixes: 8d928d47a29a ("cryptodev: change crypto symmetric vector structure") Cc: roy.fan.zh...@intel.com Signed-off-by: Fan Zhang --- V2: - fix

[dpdk-dev] [Bug 567] l2fwd-static built with Makefile fails to run

2020-10-29 Thread bugzilla
https://bugs.dpdk.org/show_bug.cgi?id=567 Gregory Etelson (getel...@nvidia.com) changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolutio

[dpdk-dev] [PATCH] crypto/aesni_mb: fix cpu crypto cipher auth

2020-10-29 Thread Fan Zhang
This patch fixes the AESNI-MB PMD CPU crypto process function. Orignally the function tried to access crypto vector's aad buffer even it is not needed. Fixes: 8d928d47a29a ("cryptodev: change crypto symmetric vector structure") Cc: roy.fan.zh...@intel.com Signed-off-by: Fan Zhang --- drivers/cr

Re: [dpdk-dev] [PATCH v7 23/23] event/dlb: add timeout ticks entry point

2020-10-29 Thread Thomas Monjalon
29/10/2020 15:57, Timothy McDaniel: > Adds the timeout ticks conversion function. > > Adds announcement of availabililty of the new driver > for Intel Dynamic Load Balancer 1.0 hardware. I don't see how these 2 changes are related? Shouldn't you update the release notes in the first patch?

Re: [dpdk-dev] [PATCH 04/15] latency: switch timestamp to dynamic mbuf field

2020-10-29 Thread Thomas Monjalon
29/10/2020 15:20, Pattan, Reshma: > > > -Original Message- > > From: Thomas Monjalon > > > > > > rte_mbuf_dynflag_register(×tamp_dynflag_desc); > > + if (timestamp_dynflag_offset < 0) { > > + RTE_LOG(ERR, LATENCY_STATS, > > + "Cannot register

Re: [dpdk-dev] [PATCH] ethdev: deprecate shared counters using action attribute

2020-10-29 Thread Thomas Monjalon
29/10/2020 15:39, Ori Kam: > Hi Andrew, > [...] > > A new generic shared actions API may be used to create shared > > counter. There is no point to keep duplicate COUNT action specific > > capability to create shared counters. > > > > Signed-off-by: Andrew Rybchenko > > --- > > In fact, it looks

Re: [dpdk-dev] [dpdk-stable] [PATCH] hash: fix dereference before null check

2020-10-29 Thread David Marchand
On Tue, Oct 27, 2020 at 1:52 PM wangyunjian wrote: > > From: Yunjian Wang > > Coverity flags that 'h' variable is used before > it's checked for NULL. This patch fixes this issue. > > Coverity issue: 363625 > Fixes: 769b2de7fb52 ("hash: implement RCU resources reclamation") No need to copy stabl

Re: [dpdk-dev] [PATCH v4 03/23] event/dlb2: add private data structures and constants

2020-10-29 Thread McDaniel, Timothy
> -Original Message- > From: Stephen Hemminger > Sent: Thursday, October 29, 2020 10:31 AM > To: McDaniel, Timothy > Cc: dev@dpdk.org; Carrillo, Erik G ; Eads, Gage > ; Van Haaren, Harry ; > jer...@marvell.com; tho...@monjalon.net > Subject: Re: [dpdk-dev] [PATCH v4 03/23] event/dlb2:

Re: [dpdk-dev] [EXT] [PATCH v2] eal: fix dereference after null check

2020-10-29 Thread David Marchand
On Wed, Oct 28, 2020 at 10:19 PM Harman Kalra wrote: > On Thu, Oct 15, 2020 at 04:42:30PM +0800, wangyunjian wrote: > > This patch fixes (dereference after null check) coverity issue. > > For this reason, we should add null check at the beginning of the > > function and return error directly if th

Re: [dpdk-dev] [PATCH v4 03/23] event/dlb2: add private data structures and constants

2020-10-29 Thread McDaniel, Timothy
> -Original Message- > From: Stephen Hemminger > Sent: Thursday, October 29, 2020 10:29 AM > To: McDaniel, Timothy > Cc: dev@dpdk.org; Carrillo, Erik G ; Eads, Gage > ; Van Haaren, Harry ; > jer...@marvell.com; tho...@monjalon.net > Subject: Re: [dpdk-dev] [PATCH v4 03/23] event/dlb2:

Re: [dpdk-dev] [PATCH] doc: add the doc for mlx5 specific header

2020-10-29 Thread Thomas Monjalon
29/10/2020 10:41, Bing Zhao: > The file "rte_pmd_mlx5.h" is used to provide mlx5 PMD specific APIs > and it needs to be included in the document generation. > > Signed-off-by: Bing Zhao > --- a/doc/api/doxy-api.conf.in > +++ b/doc/api/doxy-api.conf.in > @@ -16,6 +16,7 @@ INPUT =

Re: [dpdk-dev] eal: DPDK: 18.11.6 version rte_eal_init() function cleans the runtime directory in 5.4.35 kernel

2020-10-29 Thread Burakov, Anatoly
On 28-Oct-20 7:00 AM, Mohakud, Amiya Ranjan wrote: Hi Anatoly, Are you back from vacation? Can you please let me know if there is any proceedings on this or if there is anything pending from my side ? https://bugs.dpdk.org/show_bug.cgi?id=561 Regards Amiya Hi, I've just checked with ker

[dpdk-dev] [PATCH 4/4] test/lpm: avoid code duplication in rcu qsbr perf

2020-10-29 Thread Dharmik Thakkar
Avoid code duplication by combining single and multi threaded tests Signed-off-by: Dharmik Thakkar Reviewed-by: Ruifeng Wang --- app/test/test_lpm_perf.c | 338 +-- 1 file changed, 73 insertions(+), 265 deletions(-) diff --git a/app/test/test_lpm_perf.c b/app

[dpdk-dev] [PATCH 2/4] test/lpm: return error on failure in rcu qsbr perf

2020-10-29 Thread Dharmik Thakkar
Return error if Add/Delete fail in multiwriter perf test Fixes: eff30b59cc2e ("test/lpm: add RCU performance tests") Cc: honnappa.nagaraha...@arm.com Cc: sta...@dpdk.org Signed-off-by: Dharmik Thakkar Reviewed-by: Ruifeng Wang --- app/test/test_lpm_perf.c | 4 1 file changed, 4 insertions

[dpdk-dev] [PATCH 3/4] test/lpm: remove error checking in rcu qsbr perf

2020-10-29 Thread Dharmik Thakkar
Remove redundant error checking for reader threads since they never return error. Fixes: eff30b59cc2e ("test/lpm: add RCU performance tests") Cc: honnappa.nagaraha...@arm.com Cc: sta...@dpdk.org Signed-off-by: Dharmik Thakkar Reviewed-by: Ruifeng Wang --- app/test/test_lpm_perf.c | 21

[dpdk-dev] [PATCH 1/4] test/lpm: fix cycle calculation in rcu qsbr perf

2020-10-29 Thread Dharmik Thakkar
Fix incorrect calculations for LPM adds, LPM deletes, and average cycles in RCU QSBR perf tests Fixes: eff30b59cc2e ("test/lpm: add RCU performance tests") Cc: honnappa.nagaraha...@arm.com Cc: sta...@dpdk.org Signed-off-by: Dharmik Thakkar Reviewed-by: Ruifeng Wang --- app/test/test_lpm_perf.c

Re: [dpdk-dev] [PATCH v4 03/23] event/dlb2: add private data structures and constants

2020-10-29 Thread Stephen Hemminger
On Thu, 29 Oct 2020 10:24:57 -0500 Timothy McDaniel wrote: > +struct dlb2_port { > + uint32_t id; > + bool is_directed; > + bool gen_bit; > + uint16_t dir_credits; > + uint32_t dequeue_depth; > + union dlb2_port_config cfg; > + uint32_t *credit_pool[DLB2_NUM_QUEUE_TYPE

Re: [dpdk-dev] [PATCH v8 0/5] replace blacklist/whitelist with allow/block

2020-10-29 Thread Stephen Hemminger
On Sun, 25 Oct 2020 14:15:13 -0700 Stephen Hemminger wrote: > This patch series changes the use of the terms blacklist and whitelist > and instead uses block and allow. The change is most visible > in the options passed to DPDK programs for marking which devices > to use. > > The options are al

Re: [dpdk-dev] [PATCH v4 03/23] event/dlb2: add private data structures and constants

2020-10-29 Thread Stephen Hemminger
On Thu, 29 Oct 2020 10:24:57 -0500 Timothy McDaniel wrote: > + > + /* marker for array sizing etc. */ > + _DLB2_NB_ENQ_TYPES Be careful with this type of array sizing value. It becomes a breaking point for any API/ABI changes.

Re: [dpdk-dev] [PATCH] mlx5: add ConnectX-7 and Bluefield-3 device IDs

2020-10-29 Thread Ferruh Yigit
On 10/26/2020 11:41 AM, Raslan Darawsheh wrote: This adds the ConnectX-7 and Bluefield-3 device ids to the list of supported Mellanox devices that run the MLX5 PMDs. The devices is still in development stage. I assume you don't want to add these new device support to the documentation or to t

[dpdk-dev] [PATCH v4 21/23] event/dlb2: add PMD self-tests

2020-10-29 Thread Timothy McDaniel
Add a variety of self-tests for both ldb and directed ports/queues, as well as configure, start, stop, link, etc... Signed-off-by: Timothy McDaniel Reviewed-by: Gage Eads --- app/test/test_eventdev.c |7 + drivers/event/dlb2/dlb2.c |1 + drivers/event/dlb2/dlb2_selfte

[dpdk-dev] [PATCH v4 22/23] event/dlb2: add queue and port release

2020-10-29 Thread Timothy McDaniel
DLB does not support reconfiguring individual queues or ports on the fly. The entire device must be reconfigured. Previously allocated port QE and memzone memory is freed in this patch. Signed-off-by: Timothy McDaniel Reviewed-by: Gage Eads --- drivers/event/dlb2/dlb2.c | 24 +++

[dpdk-dev] [PATCH v4 20/23] event/dlb2: add PMD's token pop public interface

2020-10-29 Thread Timothy McDaniel
The PMD uses a public interface to allow applications to control the token pop mode. Supported token pop modes are as follows, and they impact core scheduling affinity for ldb ports. AUTO_POP: Pop the CQ tokens immediately after dequeueing. DELAYED_POP: Pop CQ tokens after (dequeue_depth - 1) even

[dpdk-dev] [PATCH v4 23/23] event/dlb2: add timeout ticks entry point

2020-10-29 Thread Timothy McDaniel
Adds the timeout ticks conversion function. Adds announcement of availabililty for the new driver for Intel Dynamic Load Balancer 2.0 hardware. Signed-off-by: Timothy McDaniel Reviewed-by: Gage Eads --- doc/guides/rel_notes/release_20_11.rst | 5 + drivers/event/dlb2/dlb2.c |

[dpdk-dev] [PATCH v4 18/23] event/dlb2: add dequeue and its burst variants

2020-10-29 Thread Timothy McDaniel
Add support for dequeue, dequeue_burst, ... DLB2 does not currently support interrupts, but instead use umonitor/umwait if supported by the processor. This allows the software to monitor and wait on writes to a cache-line. DLB2 supports normal and sparse cq mode. In normal mode the hardware will

[dpdk-dev] [PATCH v4 19/23] event/dlb2: add eventdev stop and close

2020-10-29 Thread Timothy McDaniel
Add support for eventdev stop and close entry points. Signed-off-by: Timothy McDaniel Reviewed-by: Gage Eads --- drivers/event/dlb2/dlb2.c | 257 +++-- drivers/event/dlb2/dlb2_iface.c| 6 + drivers/event/dlb2/dlb2_iface.h| 6 +

[dpdk-dev] [PATCH v4 17/23] event/dlb2: add enqueue and its burst variants

2020-10-29 Thread Timothy McDaniel
Add support for enqueue and its variants. Signed-off-by: Timothy McDaniel Reviewed-by: Gage Eads --- doc/guides/eventdevs/dlb2.rst | 118 + drivers/event/dlb2/dlb2.c | 578 ++ 2 files changed, 696 insertions(+) diff --git a/doc/guides/eventde

[dpdk-dev] [PATCH v4 15/23] event/dlb2: add port unlink and port unlinks in progress

2020-10-29 Thread Timothy McDaniel
Add supports for the port unlink(s) eventdev entry points. The unlink operation is an asynchronous operation executed by a control thread, and the unlinks-in-progress function reads a counter shared with the control thread. Signed-off-by: Timothy McDaniel Reviewed-by: Gage Eads --- drivers/even

[dpdk-dev] [PATCH v4 16/23] event/dlb2: add eventdev start

2020-10-29 Thread Timothy McDaniel
Add support for the eventdev start entry point. We delay initializing some resources until eventdev start, since the number of linked queues can be used to determine if we are dealing with a ldb or dir resource. If this is a device restart, then the previous configuration will be reapplied. Signed

[dpdk-dev] [PATCH v4 13/23] event/dlb2: add port setup

2020-10-29 Thread Timothy McDaniel
Configure the load balanded (ldb) or directed (dir) port. The consumer queue (CQ) and producer port (PP) are also set up here. Signed-off-by: Timothy McDaniel --- doc/guides/eventdevs/dlb2.rst | 75 +++ drivers/event/dlb2/dlb2.c | 498 drivers/even

[dpdk-dev] [PATCH v4 10/23] event/dlb2: add infos get and configure

2020-10-29 Thread Timothy McDaniel
Add support for configuring the DLB2 hardware. In particular, this patch configures the DLB2 hardware's scheduling domain, such that it is provisioned with the requested number of ports and queues, provided sufficient resources are available. Individual queues and ports are configured later in port

  1   2   3   >