Re: [dpdk-dev] [PATCH] net/bnxt: fix double free in port start failure

2021-04-07 Thread Ajit Khaparde
On Wed, Mar 31, 2021 at 7:31 PM Kalesh A P < kalesh-anakkur.pura...@broadcom.com> wrote: > From: Kalesh AP > > During port start when bnxt_start_nic() fails, it tries to free > "intr_handle->intr_vec" but the variable is not set to NULL after that. > If port start fails, driver invokes bnxt_dev_s

Re: [dpdk-dev] [PATCH] net/bnxt: fix configuring LRO

2021-04-07 Thread Ajit Khaparde
On Thu, Apr 1, 2021 at 8:03 PM Kalesh A P wrote: > > From: Kalesh AP > > While configuring LRO, driver should check the return value > of bnxt_hwrm_vnic_tpa_cfg() HWRM command and return error > when the FW command fails. > > Fixes: 0958d8b6435d ("net/bnxt: support LRO") > Cc: sta...@dpdk.org > >

Re: [dpdk-dev] [PATCH] net/bnxt: fix FW unregister log

2021-04-07 Thread Ajit Khaparde
On Mon, Apr 5, 2021 at 10:42 PM Kalesh A P wrote: > > From: Kalesh AP > > The "Unregistered with fw" message was being logged in a wrong function. > Moved it to the right place. > > Fixes: a7dda7e0a00b ("net/bnxt: log port id in async events") > > Signed-off-by: Kalesh AP > Reviewed-by: Somnath

Re: [dpdk-dev] [PATCH v2] vhost: avoid iotlb mempool allocation while IOMMU disabled

2021-04-07 Thread Xia, Chenbo
> -Original Message- > From: Wan Junjie > Sent: Tuesday, February 2, 2021 4:15 PM > To: Xia, Chenbo ; Maxime Coquelin > > Cc: dev@dpdk.org; Wan Junjie ; Peng He > ; Zhihong Wang > Subject: [PATCH v2] vhost: avoid iotlb mempool allocation while IOMMU disabled > > If vhost device's IOMMU

Re: [dpdk-dev] Minutes of Technical Board Meeting, 2021-03-10

2021-04-07 Thread Morten Brørup
> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Honnappa > Nagarahalli > Sent: Wednesday, April 7, 2021 2:48 AM > > > > > > > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Tom Barbette > > > Sent: Wednesday, March 31, 2021 10:53 AM > > > > > > Le 31-03-21 à 02:44, Honnappa Nagarahal

Re: [dpdk-dev] [PATCH v3 4/4] regex/mlx5: prevent wrong calculation of free sqs in umr mode

2021-04-07 Thread Thomas Monjalon
07/04/2021 03:00, Suanming Mou: > From: Thomas Monjalon > > 30/03/2021 03:39, Suanming Mou: > > > From: John Hurley > > > > > > A recent change adds support for scattered mbuf and UMR support for regex. > > > Part of this commit makes the pi and ci counters of the regex_sq a > > > quarter of the

Re: [dpdk-dev] [PATCH v3 4/4] regex/mlx5: prevent wrong calculation of free sqs in umr mode

2021-04-07 Thread Suanming Mou
> -Original Message- > From: Thomas Monjalon > Sent: Wednesday, April 7, 2021 3:12 PM > To: John Hurley ; Suanming Mou > > Cc: dev@dpdk.org; Ori Kam ; dev@dpdk.org; Slava > Ovsiienko ; Matan Azrad ; > Raslan Darawsheh > Subject: Re: [dpdk-dev] [PATCH v3 4/4] regex/mlx5: prevent wrong

Re: [dpdk-dev] [RFC] ethdev: introduce action context APIs

2021-04-07 Thread Ajit Khaparde
On Tue, Apr 6, 2021 at 2:48 AM Thomas Monjalon wrote: > > 06/04/2021 11:07, Bing Zhao: > > Hi Thomas and Andrew, > > > > From: Andrew Rybchenko > > > On 3/17/21 11:28 AM, Thomas Monjalon wrote: > > > > 17/03/2021 08:59, Bing Zhao: > > > >> The new functions rte_flow_action_ctx* that were added wi

[dpdk-dev] [PATCH v5 0/3] regex/mlx5: support scattered mbuf

2021-04-07 Thread Suanming Mou
The scattered mbuf was not supported in mlx5 RegEx driver. This patch set adds the support of scattered mbuf by UMR WQE. UMR(User-Mode Memory Registration) WQE can present data buffers scattered within multiple mbufs with single indirect mkey. Take advantage of the UMR WQE, scattered mbuf in one o

[dpdk-dev] [PATCH v5 1/3] common/mlx5: add user memory registration bits

2021-04-07 Thread Suanming Mou
This commit adds the UMR capability bits. Signed-off-by: Suanming Mou Acked-by: Ori Kam --- drivers/common/mlx5/linux/meson.build | 2 ++ drivers/common/mlx5/mlx5_devx_cmds.c | 5 + drivers/common/mlx5/mlx5_devx_cmds.h | 3 +++ 3 files changed, 10 insertions(+) diff --git a/drivers/commo

[dpdk-dev] [PATCH v5 3/3] app/test-regex: support scattered mbuf input

2021-04-07 Thread Suanming Mou
This commits adds the scattered mbuf input support. Signed-off-by: Suanming Mou Acked-by: Ori Kam --- app/test-regex/main.c | 134 +++-- doc/guides/tools/testregex.rst | 3 + 2 files changed, 112 insertions(+), 25 deletions(-) diff --git a/app/test-regex/

[dpdk-dev] [PATCH v5 2/3] regex/mlx5: add data path scattered mbuf process

2021-04-07 Thread Suanming Mou
UMR(User-Mode Memory Registration) WQE can present data buffers scattered within multiple mbufs with single indirect mkey. Take advantage of the UMR WQE, scattered mbuf in one operation can be presented to an indirect mkey. The RegEx which only accepts one mkey can now process the whole scattered m

Re: [dpdk-dev] [PATCH 1/4] net/virtio: fix interrupt unregistering for listening socket

2021-04-07 Thread Xia, Chenbo
> -Original Message- > From: Maxime Coquelin > Sent: Thursday, March 25, 2021 4:32 PM > To: Ilya Maximets > Cc: Xia, Chenbo ; dev@dpdk.org; Adrian Moreno > ; Stefan Hajnoczi ; Julia Suvorova > ; sta...@dpdk.org; Yang, Zhiyong > Subject: Re: [PATCH 1/4] net/virtio: fix interrupt unregiste

Re: [dpdk-dev] [PATCH] net/mlx5: check extended metadata for meta modification

2021-04-07 Thread Slava Ovsiienko
> -Original Message- > From: Alexander Kozyrev > Sent: Wednesday, April 7, 2021 4:14 > To: dev@dpdk.org > Cc: sta...@dpdk.org; Raslan Darawsheh ; Slava > Ovsiienko > Subject: [PATCH] net/mlx5: check extended metadata for meta modification > > The MODIFY_FIELD RTE action requires the exte

Re: [dpdk-dev] [PATCH v7 1/5] eal: add sleep API

2021-04-07 Thread Morten Brørup
> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Dmitry Kozlyuk > Sent: Wednesday, April 7, 2021 1:30 AM > > 2021-04-06 16:34 (UTC+0200), Morten Brørup: > > > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Dmitry Kozlyuk > > > Sent: Sunday, April 4, 2021 1:41 AM > > > > > > POSIX sleep

Re: [dpdk-dev] [PATCH] net/mlx5: support 64-bit value for modify field action

2021-04-07 Thread Slava Ovsiienko
> -Original Message- > From: Alexander Kozyrev > Sent: Wednesday, April 7, 2021 4:14 > To: dev@dpdk.org > Cc: sta...@dpdk.org; Raslan Darawsheh ; Slava > Ovsiienko > Subject: [PATCH] net/mlx5: support 64-bit value for modify field action > > Extend the range of immediate value used in th

Re: [dpdk-dev] [PATCH] net/mlx5: fix modify field action order for IPv6

2021-04-07 Thread Slava Ovsiienko
> -Original Message- > From: Alexander Kozyrev > Sent: Wednesday, April 7, 2021 4:15 > To: dev@dpdk.org > Cc: sta...@dpdk.org; Raslan Darawsheh ; Slava > Ovsiienko > Subject: [PATCH] net/mlx5: fix modify field action order for IPv6 > > Mellanox hardware can only modify any packet field i

Re: [dpdk-dev] [RFC] ethdev: introduce conntrack flow action and item

2021-04-07 Thread Bing Zhao
Hi Andrew, Sorry for the late reply. > -Original Message- > From: Andrew Rybchenko > Sent: Monday, March 22, 2021 11:17 PM > To: Bing Zhao ; Ori Kam ; NBU- > Contact-Thomas Monjalon ; > ferruh.yi...@intel.com > Cc: dev@dpdk.org > Subject: Re: [RFC] ethdev: introduce conntrack flow action

[dpdk-dev] [RFC v1] mbuf: support eCPRI hardware packet type

2021-04-07 Thread Liulingyu
Add L2_ETHER_ECPRI and L4_UDP_TUNNEL_ECPRI in RTE_PTYPE. Signed-off-by: Liulingyu --- app/test-pmd/util.c | 25 - lib/librte_mbuf/rte_mbuf_ptype.c | 2 ++ lib/librte_mbuf/rte_mbuf_ptype.h | 22 ++ 3 files changed, 40 insertions(+), 9 dele

[dpdk-dev] [PATCH v3 0/3] test/power: fix bugs in cpufreq test

2021-04-07 Thread Richael Zhuang
This series fixed some bugs in unit tests for power library. v3: Break patch into series for individual bug fixes. Richael Zhuang (3): test/power: round cpuinfo cur freq value in cpufreq autotest test/power: fix a bug in cpufreq autotest test/power: add delay before checking cpuinfo cur fre

[dpdk-dev] [PATCH v3 1/3] test/power: round cpuinfo cur freq value in cpufreq autotest

2021-04-07 Thread Richael Zhuang
The value in "/sys/.../cpuinfo_cur_freq" may not be exactly the same as what was set. For example, if "240" is written to "/sys/.../cpufreq/scaling_setspeed" to set the frequency, then the value in "/sys/.../cpuinfo_cur_freq" may be "2401222". So need to round the value. Fixes: ed7c51a6a680 ("

[dpdk-dev] [PATCH v3 2/3] test/power: fix a bug in cpufreq autotest

2021-04-07 Thread Richael Zhuang
For platforms that don't support turbo boost,rte_power_turbo_status() returns "-ENOTSUP" (like power_kvm_vm_turbo_status()). So don't allow check_power_turbo() to continue if rte_power_turbo_status(TEST_POWER_LCORE_ID)!=1 Fixes: aeaeaf5f2d62 ("test/power: add cases for turbo feature") Cc: lukaszx

[dpdk-dev] [PATCH v3 3/3] test/power: add delay before checking cpuinfo cur freq

2021-04-07 Thread Richael Zhuang
Sleep for 1s before checking the newly updated value from "/sys/devices/system/cpu/cpu%u/cpufreq/cpuinfo_cur_freq", because for some systems it may not be effective immediately. Fixes: ed7c51a6a680 ("app/test: vm power management") Cc: alan.ca...@intel.com Cc: sta...@dpdk.org Signed-off-by: Richa

Re: [dpdk-dev] [PATCH] examples/vhost: fix ioat ring space in callbacks

2021-04-07 Thread Maxime Coquelin
On 3/17/21 6:40 AM, Cheng Jiang wrote: > We use ioat ring space for determining if ioat callbacks can enqueue a > packet to ioat device. But there is one slot can't be used in ioat > ring due to the ioat driver design, so we need to reduce one slot in > ioat ring to prevent ring size mismatch in

Re: [dpdk-dev] [PATCH] examples/vhost: fix ioat ring space in callbacks

2021-04-07 Thread Hu, Jiayu
Hi Maxime, > -Original Message- > From: Maxime Coquelin > Sent: Wednesday, April 7, 2021 3:48 PM > To: Jiang, Cheng1 ; Xia, Chenbo > ; Thomas Monjalon > Cc: dev@dpdk.org; Hu, Jiayu ; Yang, YvonneX > ; Wang, Yinan ; > sta...@dpdk.org > Subject: Re: [PATCH] examples/vhost: fix ioat ring sp

Re: [dpdk-dev] [PATCH] net/ena: fix releasing Tx ring mbufs

2021-04-07 Thread Ferruh Yigit
On 4/6/2021 6:25 AM, Michał Krawczyk wrote: wt., 6 kwi 2021 o 02:27 David Harton napisał(a): When ena_tx_queue_release_bufs() frees the mbufs it does not clear the mbuf pointers. So, when the device starts and stops multiple times it can cause the application to receive duplicate mbufs for tw

Re: [dpdk-dev] [PATCH v3 1/3] log: choose EAL log type on registration failure

2021-04-07 Thread Andrew Rybchenko
On 4/6/21 4:22 PM, Thomas Monjalon wrote: > In the unlikely case where something goes wrong > while registering a log type, > the fallback is to use the EAL log type. > > Signed-off-by: Thomas Monjalon > Reviewed-by: David Marchand Reviewed-by: Andrew Rybchenko

Re: [dpdk-dev] [PATCH v2] build: list symbols exports in a single file

2021-04-07 Thread David Marchand
On Tue, Apr 6, 2021 at 10:09 PM David Marchand wrote: > We have exports missing in EAL for some series posted on the ml > waiting for merges. > I suspect some recent merged changes have issues too (but did not check yet). > This current patch does not address such issues and we need fixes > afterw

Re: [dpdk-dev] [PATCH v3 1/8] app/testpmd: store VXLAN/NVGRE encap data globally

2021-04-07 Thread Salem Sol
Hi Ferruh, -Original Message- From: Ferruh Yigit Sent: Tuesday, April 6, 2021 5:44 PM To: Jiawei(Jonny) Wang ; Salem Sol ; dev@dpdk.org Cc: Ori Kam ; Xiaoyun Li Subject: Re: [dpdk-dev] [PATCH v3 1/8] app/testpmd: store VXLAN/NVGRE encap data globally External email: Use caution openi

Re: [dpdk-dev] [PATCH v3 1/8] app/testpmd: store VXLAN/NVGRE encap data globally

2021-04-07 Thread Ferruh Yigit
On 4/7/2021 9:19 AM, Salem Sol wrote: Hi Ferruh, -Original Message- From: Ferruh Yigit Sent: Tuesday, April 6, 2021 5:44 PM To: Jiawei(Jonny) Wang ; Salem Sol ; dev@dpdk.org Cc: Ori Kam ; Xiaoyun Li Subject: Re: [dpdk-dev] [PATCH v3 1/8] app/testpmd: store VXLAN/NVGRE encap data glob

Re: [dpdk-dev] [PATCH] examples/vhost: fix ioat ring space in callbacks

2021-04-07 Thread Thomas Monjalon
07/04/2021 09:47, Maxime Coquelin: > > On 3/17/21 6:40 AM, Cheng Jiang wrote: > > We use ioat ring space for determining if ioat callbacks can enqueue a > > packet to ioat device. But there is one slot can't be used in ioat > > ring due to the ioat driver design, so we need to reduce one slot in >

[dpdk-dev] [RFC v2] mbuf: support eCPRI hardware packet type

2021-04-07 Thread Liulingyu
Add L2_ETHER_ECPRI and L4_UDP_TUNNEL_ECPRI in RTE_PTYPE. Signed-off-by: Liulingyu --- app/test-pmd/util.c | 25 - lib/librte_mbuf/rte_mbuf_ptype.c | 2 ++ lib/librte_mbuf/rte_mbuf_ptype.h | 22 ++ 3 files changed, 40 insertions(+), 9 dele

Re: [dpdk-dev] [PATCH v3 1/8] app/testpmd: store VXLAN/NVGRE encap data globally

2021-04-07 Thread Salem Sol
-Original Message- From: Ferruh Yigit Sent: Wednesday, April 7, 2021 11:24 AM To: Salem Sol ; Jiawei(Jonny) Wang ; dev@dpdk.org Cc: Ori Kam ; Xiaoyun Li Subject: Re: [dpdk-dev] [PATCH v3 1/8] app/testpmd: store VXLAN/NVGRE encap data globally External email: Use caution opening link

Re: [dpdk-dev] [PATCH] examples/vhost: fix ioat ring space in callbacks

2021-04-07 Thread Thomas Monjalon
+Cc more people to start a discussion about a potential DMA API. If you think it is interesting, we can start a fresh discussion thread. 07/04/2021 10:26, Thomas Monjalon: > 07/04/2021 09:47, Maxime Coquelin: > > > > On 3/17/21 6:40 AM, Cheng Jiang wrote: > > > We use ioat ring space for determin

Re: [dpdk-dev] [PATCH] examples/vhost: fix ioat ring space in callbacks

2021-04-07 Thread Maxime Coquelin
On 4/7/21 10:26 AM, Thomas Monjalon wrote: > 07/04/2021 09:47, Maxime Coquelin: >> >> On 3/17/21 6:40 AM, Cheng Jiang wrote: >>> We use ioat ring space for determining if ioat callbacks can enqueue a >>> packet to ioat device. But there is one slot can't be used in ioat >>> ring due to the ioat

Re: [dpdk-dev] [PATCH v2] build: list symbols exports in a single file

2021-04-07 Thread Dmitry Kozlyuk
2021-04-07 10:16 (UTC+0200), David Marchand: > On Tue, Apr 6, 2021 at 10:09 PM David Marchand > wrote: > > We have exports missing in EAL for some series posted on the ml > > waiting for merges. > > I suspect some recent merged changes have issues too (but did not check > > yet). > > This current

Re: [dpdk-dev] [PATCH v2] build: list symbols exports in a single file

2021-04-07 Thread Thomas Monjalon
07/04/2021 10:53, Dmitry Kozlyuk: > 2021-04-07 10:16 (UTC+0200), David Marchand: > > On Tue, Apr 6, 2021 at 10:09 PM David Marchand > > wrote: > > > We have exports missing in EAL for some series posted on the ml > > > waiting for merges. > > > I suspect some recent merged changes have issues too

Re: [dpdk-dev] [PATCH] maintainer: email update maintainer

2021-04-07 Thread Liang Ma
On Tue, Apr 06, 2021 at 03:56:16PM +0200, Thomas Monjalon wrote: > 03/04/2021 12:35, Liang Ma: > > I would like to change my email to personal email address. > > > > Signed-off-by: Liang Ma > > Applied Hi Thomas, Many thanks. Regards Liang

[dpdk-dev] [PATCH] service: clean references to removed symbol

2021-04-07 Thread David Marchand
rte_service_get_id() was removed in v17.11 but the API description still referenced it and a version node was still present in EAL map. Fixes: 8edc9aaaf217 ("service: use id in get by name function") Cc: sta...@dpdk.org Signed-off-by: David Marchand --- lib/librte_eal/include/rte_service.h | 5

Re: [dpdk-dev] [PATCH] mem: fix free segment when using huge-unlink option

2021-04-07 Thread David Marchand
On Thu, Apr 1, 2021 at 1:07 PM Burakov, Anatoly wrote: > > On 22-Feb-21 10:41 AM, Roy Shterman wrote: > > When using huge_unlink we unlink the segment right > > after allocation. Although we unlink the file we keep > > the fd in fd_list so file still exist just the path deleted. > > When freeing t

Re: [dpdk-dev] [PATCH v5 1/1] eal/interrupts: add synchronous wrapper around unregister

2021-04-07 Thread David Marchand
On Tue, Apr 6, 2021 at 4:50 PM Renata Saiakhova wrote: > > Avoid race with unregister interrupt handler if interrupt > source has some active callbacks at the moment, use wrapper > around rte_intr_callback_unregister() to check for -EAGAIN > return value and to loop until rte_intr_callback_unregis

[dpdk-dev] [PATCH] net/hns3: fix copyright date

2021-04-07 Thread Min Hu (Connor)
This patch updates copyright date for hns3 PMD files. Fixes: 565829db8b8f ("net/hns3: add build and doc infrastructure") Fixes: 952ebacce4f2 ("net/hns3: support SVE Rx") Fixes: e31f123db06b ("net/hns3: support NEON Tx") Fixes: c09c7847d892 ("net/hns3: support traffic management") Signed-off-by: M

Re: [dpdk-dev] [PATCH] net/mlx5: fix the drop action for the DR/DV

2021-04-07 Thread Raslan Darawsheh
Hi, > -Original Message- > From: Viacheslav Ovsiienko > Sent: Monday, April 5, 2021 12:59 PM > To: dev@dpdk.org > Cc: Raslan Darawsheh ; Matan Azrad > ; Ori Kam ; sta...@dpdk.org > Subject: [PATCH] net/mlx5: fix the drop action for the DR/DV > > There are multiple branches in rdma-core l

[dpdk-dev] [PATCH v2] vhost: read last used index once

2021-04-07 Thread Balazs Nemeth
Instead of calculating the address of a packed descriptor based on the vq->desc_packed and vq->last_used_idx every time, store that base address in desc_base. On arm, this saves 176 bytes in code size of function in which vhost_flush_enqueue_batch_packed gets inlined. Signed-off-by: Balazs Nemeth

[dpdk-dev] [PATCH v3] vhost: read last used index once

2021-04-07 Thread Balazs Nemeth
Instead of calculating the address of a packed descriptor based on the vq->desc_packed and vq->last_used_idx every time, store that base address in desc_base. On arm, this saves 176 bytes in code size of function in which vhost_flush_enqueue_batch_packed gets inlined. Signed-off-by: Balazs Nemeth

Re: [dpdk-dev] [PATCH v3 2/3] test/power: fix a bug in cpufreq autotest

2021-04-07 Thread Burakov, Anatoly
On 07-Apr-21 8:46 AM, Richael Zhuang wrote: For platforms that don't support turbo boost,rte_power_turbo_status() returns "-ENOTSUP" (like power_kvm_vm_turbo_status()). So don't allow check_power_turbo() to continue if rte_power_turbo_status(TEST_POWER_LCORE_ID)!=1 Fixes: aeaeaf5f2d62 ("test/po

Re: [dpdk-dev] Minutes of Technical Board Meeting, 2021-03-10

2021-04-07 Thread Bruce Richardson
On Wed, Apr 07, 2021 at 09:11:23AM +0200, Morten Brørup wrote: > > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Honnappa > > Nagarahalli > > Sent: Wednesday, April 7, 2021 2:48 AM > > > > > > > > > > > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Tom Barbette > > > > Sent: Wednesd

Re: [dpdk-dev] [PATCH v3 3/3] test/power: add delay before checking cpuinfo cur freq

2021-04-07 Thread Liang Ma
On Wed, Apr 07, 2021 at 03:46:36PM +0800, Richael Zhuang wrote: > Sleep for 1s before checking the newly updated value from > "/sys/devices/system/cpu/cpu%u/cpufreq/cpuinfo_cur_freq", because > for some systems it may not be effective immediately. > > Fixes: ed7c51a6a680 ("app/test: vm power manag

[dpdk-dev] [PATCH v2 1/4] vhost: move allocation of mbuf outside of packet enqueue

2021-04-07 Thread Balazs Nemeth
In preparation for subsequent patches, move mbuf allocation out and rename virtio_dev_pktmbuf_alloc to virtio_dev_pktmbuf_prep. This function now receives an already allocated mbuf pointer. Signed-off-by: Balazs Nemeth --- lib/librte_vhost/virtio_net.c | 54 ++- 1

[dpdk-dev] [PATCH v2 2/4] vhost: perform all mbuf allocations in one loop

2021-04-07 Thread Balazs Nemeth
Move allocation out further and perform all allocation in one loop. The same goes for freeing packets. This is to prepare for use of bulk versions of these functions. Signed-off-by: Balazs Nemeth --- lib/librte_vhost/virtio_net.c | 18 ++ 1 file changed, 6 insertions(+), 12 delet

[dpdk-dev] [PATCH v2 3/4] vhost: allocate and free packets in bulk

2021-04-07 Thread Balazs Nemeth
Now that all allocation and freeing has been moved together, use the faster bulk versions instead of handling packets one by one. Signed-off-by: Balazs Nemeth --- lib/librte_vhost/virtio_net.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/librte_vhost/virtio

[dpdk-dev] [PATCH v2 4/4] vhost: remove unnecessary level of indirection

2021-04-07 Thread Balazs Nemeth
There is no need to pass a pointer to an mbuf pointer. Signed-off-by: Balazs Nemeth --- lib/librte_vhost/virtio_net.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/librte_vhost/virtio_net.c b/lib/librte_vhost/virtio_net.c index 2f0c97b91..1d3ad18fe 100644 ---

Re: [dpdk-dev] Minutes of Technical Board Meeting, 2021-03-10

2021-04-07 Thread Morten Brørup
> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Bruce Richardson > Sent: Wednesday, April 7, 2021 11:59 AM > > On Wed, Apr 07, 2021 at 09:11:23AM +0200, Morten Brørup wrote: > > > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Honnappa > > > Nagarahalli > > > Sent: Wednesday, April 7,

Re: [dpdk-dev] [PATCH] ethdev: add packet integrity checks

2021-04-07 Thread Ori Kam
Hi Jerin, > -Original Message- > From: Jerin Jacob > Sent: Tuesday, April 6, 2021 10:40 AM > To: Ori Kam > Subject: Re: [dpdk-dev] [PATCH] ethdev: add packet integrity checks > > On Mon, Apr 5, 2021 at 11:35 PM Ori Kam wrote: > > > > Currently, DPDK application can offload the checksum

[dpdk-dev] [PATCH] port: fix dead code in ring

2021-04-07 Thread Cristian Dumitrescu
Fix logically dead code in ring port. Coverity issue: 369664 Fixes: 77a413017c2d ("port: add ring SWX port") Signed-off-by: Cristian Dumitrescu --- lib/librte_port/rte_swx_port_ring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_port/rte_swx_port_ring.c b/lib/

[dpdk-dev] [PATCH] table: fix out of bounds write

2021-04-07 Thread Cristian Dumitrescu
Fix out of bounds write. The allocated string size was incorrect. Coverity issue: 369670 Fixes: 66440b7b22f2 ("table: add wildcard match table type") Signed-off-by: Cristian Dumitrescu --- lib/librte_table/rte_swx_table_wm.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff -

Re: [dpdk-dev] [PATCH] ethdev: add packet integrity checks

2021-04-07 Thread Jerin Jacob
On Wed, Apr 7, 2021 at 4:02 PM Ori Kam wrote: > > Hi Jerin, Hi Ori, > > > -Original Message- > > From: Jerin Jacob > > Sent: Tuesday, April 6, 2021 10:40 AM > > To: Ori Kam > > Subject: Re: [dpdk-dev] [PATCH] ethdev: add packet integrity checks > > > > On Mon, Apr 5, 2021 at 11:35 PM

[dpdk-dev] Questions about API with no parameter check

2021-04-07 Thread Min Hu (Connor)
Hi, all, Many APIs in DPDK does not check if the pointer parameter is NULL or not. For example, in 'rte_ethdev.c': int rte_eth_rx_queue_setup(uint16_t port_id, uint16_t rx_queue_id, uint16_t nb_rx_desc, unsigned int socket_id, const struct rte_

Re: [dpdk-dev] [PATCH v3 1/8] app/testpmd: store VXLAN/NVGRE encap data globally

2021-04-07 Thread Ferruh Yigit
On 4/7/2021 9:35 AM, Salem Sol wrote: -Original Message- From: Ferruh Yigit Sent: Wednesday, April 7, 2021 11:24 AM To: Salem Sol ; Jiawei(Jonny) Wang ; dev@dpdk.org Cc: Ori Kam ; Xiaoyun Li Subject: Re: [dpdk-dev] [PATCH v3 1/8] app/testpmd: store VXLAN/NVGRE encap data globally Ex

Re: [dpdk-dev] [PATCH 3/6] net/mlx5: separate Tx function declarations to another file

2021-04-07 Thread Raslan Darawsheh
Hi Michael, This patch would cause this compilation failure on aarch64 compilation with gcc : aarch64-linux-gnu-gcc (Linaro GCC 7.1-2017.08) 7.1.1 20170707 [615/2518] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_txq.c.o FAILED: drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_t

Re: [dpdk-dev] [PATCH v2] build: list symbols exports in a single file

2021-04-07 Thread Tal Shnaiderman
> Subject: Re: [PATCH v2] build: list symbols exports in a single file > > External email: Use caution opening links or attachments > > > 07/04/2021 10:53, Dmitry Kozlyuk: > > 2021-04-07 10:16 (UTC+0200), David Marchand: > > > On Tue, Apr 6, 2021 at 10:09 PM David Marchand > > > wrote: > > > >

Re: [dpdk-dev] Questions about API with no parameter check

2021-04-07 Thread Thomas Monjalon
07/04/2021 13:28, Min Hu (Connor): > Hi, all, > Many APIs in DPDK does not check if the pointer parameter is > NULL or not. For example, in 'rte_ethdev.c': > int > rte_eth_rx_queue_setup(uint16_t port_id, uint16_t rx_queue_id, > uint16_t nb_rx_desc, unsigned int socket_id

[dpdk-dev] [v5 1/6] app/testpmd: prepare storing VXLAN/NVGRE encap data globally

2021-04-07 Thread Salem Sol
From: Jiawei Wang With the current code the VXLAN/NVGRE parsing routine stored the configuration of the header on stack, this might lead to overwriting the data on the stack. Currently having VXLAN/NVGRE encap as sample actions is done using RAW_ENCAP, for example: 1. set raw_encap 1 eth src.../

Re: [dpdk-dev] Questions about API with no parameter check

2021-04-07 Thread Liang Ma
On Wed, Apr 07, 2021 at 01:40:32PM +0200, Thomas Monjalon wrote: > 07/04/2021 13:28, Min Hu (Connor): > > Hi, all, > > Many APIs in DPDK does not check if the pointer parameter is > > NULL or not. For example, in 'rte_ethdev.c': > > int > > rte_eth_rx_queue_setup(uint16_t port_id, uint16_t rx_q

[dpdk-dev] [v5 2/6] net/mlx5: support VXLAN encap action in sample

2021-04-07 Thread Salem Sol
Add support for VXLAN encap as a sample action and validate it. Signed-off-by: Salem Sol --- doc/guides/nics/mlx5.rst | 4 ++-- doc/guides/rel_notes/release_21_05.rst | 6 ++ drivers/net/mlx5/mlx5_flow_dv.c| 11 +++ 3 files changed, 19 insertions(+), 2 deletio

[dpdk-dev] [v5 3/6] net/mlx5: support NVGRE encap action in sample

2021-04-07 Thread Salem Sol
Add support for NVGRE encap as a sample action and validate it. Signed-off-by: Salem Sol --- doc/guides/nics/mlx5.rst | 2 +- doc/guides/rel_notes/release_21_05.rst | 2 +- drivers/net/mlx5/mlx5_flow_dv.c| 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a

[dpdk-dev] [v5 4/6] app/testpmd: support VXLAN encap for sample action

2021-04-07 Thread Salem Sol
Add support for rte_flow_action_vxlan_encap as a sample action. The example of test-pmd command: 1. set vxlan ip-version ... vni ... udp-src ... set raw_encap 1 eth src.../ ipv4.../... set sample_actions 2 vxlan_encap / port_id id 0 / end flow create 0 ... pattern eth / end actions

[dpdk-dev] [v5 5/6] app/testpmd: support NVGRE encap for sample action

2021-04-07 Thread Salem Sol
Add support for rte_flow_action_nvge_encap as a sample action. The example of test-pmd command: 1. set nvgre ip-version ... tni ... ip-src ... ip-dst ... set raw_encap 1 eth src... / ipv4... /... set sample_actions 2 nvgre / port_id id 0 / end flow create 0 ... pattern eth / end acti

[dpdk-dev] [v5 6/6] doc: update sample actions support in testpmd guide

2021-04-07 Thread Salem Sol
Update documentation for sample action usage in testpmd utilizing rte_flow_action_vxlan_encap and rte_flow_action_nvgre_encap and show the command line example. Signed-off-by: Salem Sol --- doc/guides/testpmd_app_ug/testpmd_funcs.rst | 24 + 1 file changed, 24 insertions(+)

Re: [dpdk-dev] Questions about API with no parameter check

2021-04-07 Thread Ananyev, Konstantin
> 07/04/2021 13:28, Min Hu (Connor): > > Hi, all, > > Many APIs in DPDK does not check if the pointer parameter is > > NULL or not. For example, in 'rte_ethdev.c': > > int > > rte_eth_rx_queue_setup(uint16_t port_id, uint16_t rx_queue_id, > >uint16_t nb_rx_desc, unsigned

Re: [dpdk-dev] [dpdk-stable] [PATCH v3] net/ixgbe: fix UDP zero checksum error

2021-04-07 Thread David Marchand
On Thu, Feb 25, 2021 at 11:54 AM David Marchand wrote: > > Hello Haiyue, > > On Thu, Feb 4, 2021 at 3:56 PM Haiyue Wang wrote: > > > > There is an 82599 errata that UDP frames with a zero checksum are > > incorrectly marked as checksum invalid by the hardware. This was > > leading to misleading

[dpdk-dev] [PATCH v4] eal: fix race in ctrl thread creation

2021-04-07 Thread Luc Pelletier
The creation of control threads uses a pthread barrier for synchronization. This patch fixes a race condition where the pthread barrier could get destroyed while one of the threads has not yet returned from the pthread_barrier_wait function, which could result in undefined behaviour. Fixes: 3a0d46

Re: [dpdk-dev] [PATCH v2 2/3] hash: add predictable RSS implementation

2021-04-07 Thread Ananyev, Konstantin
Hi Vladimir, Few comments below, mostly minor. One generic one - doc seems missing. With that in place: Acked-by: Konstantin Ananyev > > This patch implements predictable RSS functionality. > > Signed-off-by: Vladimir Medvedkin > --- > lib/librte_hash/rte_thash.c | 577 > +++

[dpdk-dev] [PATCH v5] eal: fix race in ctrl thread creation

2021-04-07 Thread Luc Pelletier
The creation of control threads uses a pthread barrier for synchronization. This patch fixes a race condition where the pthread barrier could get destroyed while one of the threads has not yet returned from the pthread_barrier_wait function, which could result in undefined behaviour. Fixes: 3a0d46

Re: [dpdk-dev] Questions about API with no parameter check

2021-04-07 Thread Jerin Jacob
On Wed, Apr 7, 2021 at 5:23 PM Ananyev, Konstantin wrote: > > > > > 07/04/2021 13:28, Min Hu (Connor): > > > Hi, all, > > > Many APIs in DPDK does not check if the pointer parameter is > > > NULL or not. For example, in 'rte_ethdev.c': > > > int > > > rte_eth_rx_queue_setup(uint16_t port_id, u

Re: [dpdk-dev] [PATCH v5] eal: fix race in ctrl thread creation

2021-04-07 Thread Luc Pelletier
Not directly related to this patch, but can someone please explain why Patchwork is creating a new series everytime I post a new version of the patch to this thread? I must be doing something wrong but I don't know what it is. I have been using --in-reply-to with git send-email but that's apparentl

Re: [dpdk-dev] [PATCH v5] eal: fix race in ctrl thread creation

2021-04-07 Thread Olivier Matz
Hi Luc, On Wed, Apr 07, 2021 at 08:53:23AM -0400, Luc Pelletier wrote: > The creation of control threads uses a pthread barrier for > synchronization. This patch fixes a race condition where the pthread > barrier could get destroyed while one of the threads has not yet > returned from the pthread_

Re: [dpdk-dev] [dpdk-stable] [PATCH v1 1/4] raw/ifpga/base: use trusted buffer to free

2021-04-07 Thread Ferruh Yigit
On 3/17/2021 8:21 AM, Wei Huang wrote: In write_flash_image(), calling function "read" may taints variable "buf" which turn to an untrusted value as argument of "rte_free". Coverity issue: 367477 Fixes: 7a4f3993f269 ("raw/ifpga: add FPGA RSU APIs") Hi Huang, Rosen, I checked the coverity iss

Re: [dpdk-dev] [PATCH v2] lib/mempool: distinguish debug counters from cache and pool

2021-04-07 Thread Olivier Matz
Hi Joyce, On Thu, Mar 18, 2021 at 07:20:22PM +0800, Joyce Kong wrote: > If cache is enabled, objects will be retrieved/put from/to cache, > subsequently from/to the common pool. Now the debug stats calculate > the objects retrieved/put from/to cache and pool together, it is > better to distinguish

[dpdk-dev] [PATCH v6] eal: fix race in ctrl thread creation

2021-04-07 Thread Luc Pelletier
The creation of control threads uses a pthread barrier for synchronization. This patch fixes a race condition where the pthread barrier could get destroyed while one of the threads has not yet returned from the pthread_barrier_wait function, which could result in undefined behaviour. Fixes: 3a0d46

Re: [dpdk-dev] [PATCH v6] eal: fix race in ctrl thread creation

2021-04-07 Thread Olivier Matz
Hi Luc, On Wed, Apr 07, 2021 at 10:42:37AM -0400, Luc Pelletier wrote: > The creation of control threads uses a pthread barrier for > synchronization. This patch fixes a race condition where the pthread > barrier could get destroyed while one of the threads has not yet > returned from the pthread_

Re: [dpdk-dev] [PATCH v1 1/2] raw/ifpga/base: use untained variable as argument

2021-04-07 Thread Ferruh Yigit
On 3/17/2021 8:23 AM, Wei Huang wrote: In fme_spi_init(), passing tainted expression "fme->max10_dev" to function "intel_max10_device_remove" has risk. Untainted variable "max10" should be used. Coverity issue: 367480 Fixes: 96ebfcf8125c ("raw/ifpga/base: add SPI and MAX10 device driver") Fol

Re: [dpdk-dev] [PATCH] net/mlx5: fix modify field action endianness

2021-04-07 Thread Slava Ovsiienko
> -Original Message- > From: Alexander Kozyrev > Sent: Friday, April 2, 2021 5:08 > To: dev@dpdk.org > Cc: sta...@dpdk.org; Raslan Darawsheh ; Slava > Ovsiienko > Subject: [PATCH] net/mlx5: fix modify field action endianness > > Converting modify_field action masks to the big endian form

Re: [dpdk-dev] [PATCH v4 2/3] event/octeontx2: support crypto adapter forward mode

2021-04-07 Thread Gujjar, Abhinandan S
> -Original Message- > From: Anoob Joseph > Sent: Tuesday, April 6, 2021 8:31 PM > To: Gujjar, Abhinandan S > Cc: tho...@monjalon.net; Jerin Jacob Kollanukkaran ; > hemant.agra...@nxp.com; nipun.gu...@nxp.com; > sachin.sax...@oss.nxp.com; ma...@nvidia.com; Zhang, Roy Fan > ; g.si...@nx

Re: [dpdk-dev] [PATCH v5] pflock: implementation of phase-fair reader writer locks

2021-04-07 Thread Ananyev, Konstantin
> -Original Message- > From: dev On Behalf Of Stephen Hemminger > Sent: Friday, April 2, 2021 2:43 AM > To: dev@dpdk.org; Honnappa Nagarahalli > Cc: Stephen Hemminger > Subject: [dpdk-dev] [PATCH v5] pflock: implementation of phase-fair reader > writer locks > > This is a new type o

Re: [dpdk-dev] [PATCH] net/mlx5: support 64-bit value for modify field action

2021-04-07 Thread Raslan Darawsheh
Hi Alex, This patch is causing a compilation failure as following: [1857/3005] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_flow_dv.c.o FAILED: drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_flow_dv.c.o gcc -Idrivers/libtmp_rte_net_mlx5.a.p -Idrivers -I../../root/dpdk/drivers

Re: [dpdk-dev] [PATCH v5] eal: fix race in ctrl thread creation

2021-04-07 Thread Honnappa Nagarahalli
> > Hi Luc, > > On Wed, Apr 07, 2021 at 08:53:23AM -0400, Luc Pelletier wrote: > > The creation of control threads uses a pthread barrier for > > synchronization. This patch fixes a race condition where the pthread > > barrier could get destroyed while one of the threads has not yet > > returne

[dpdk-dev] [PATCH v2] net/mlx5: support 64-bit value for modify field action

2021-04-07 Thread Alexander Kozyrev
Extend the range of immediate value used in the MODIFY_FIELD action from 32 to 64 bits to conform to the rte_flow_action_modify_data spec. Apply appropriate big endian conversion to the immediate value according to a destination field bit width. Fixes: 641dbe4fb053 ("net/mlx5: support modify field

[dpdk-dev] [PATCH v2] net/mlx5: support 64-bit value for modify field action

2021-04-07 Thread Alexander Kozyrev
Extend the range of immediate value used in the MODIFY_FIELD action from 32 to 64 bits to conform to the rte_flow_action_modify_data spec. Apply appropriate big endian conversion to the immediate value according to a destination field bit width. Fixes: 641dbe4fb053 ("net/mlx5: support modify field

Re: [dpdk-dev] [RFC v2] mbuf: support eCPRI hardware packet type

2021-04-07 Thread Hemant Agrawal
looks ok to me. Acked-by: Hemant Agrawal On 4/7/2021 8:39 PM, Liulingyu wrote: Add L2_ETHER_ECPRI and L4_UDP_TUNNEL_ECPRI in RTE_PTYPE. Signed-off-by: Liulingyu --- app/test-pmd/util.c | 25 - lib/librte_mbuf/rte_mbuf_ptype.c | 2 ++ lib/librte_mbu

Re: [dpdk-dev] Questions about API with no parameter check

2021-04-07 Thread Hemant Agrawal
On 4/7/2021 8:10 PM, Ajit Khaparde wrote: On Wed, Apr 7, 2021 at 6:20 AM Jerin Jacob wrote: On Wed, Apr 7, 2021 at 5:23 PM Ananyev, Konstantin wrote: 07/04/2021 13:28, Min Hu (Connor): Hi, all, Many APIs in DPDK does not check if the pointer parameter is NULL or not. For example, i

Re: [dpdk-dev] [PATCH v4 1/3] eventdev: introduce crypto adapter enqueue API

2021-04-07 Thread Gujjar, Abhinandan S
> -Original Message- > From: Akhil Goyal > Sent: Monday, April 5, 2021 11:11 PM > To: Gujjar, Abhinandan S ; Shijith Thotton > ; dev@dpdk.org > Cc: tho...@monjalon.net; Jerin Jacob Kollanukkaran ; > hemant.agra...@nxp.com; nipun.gu...@nxp.com; > sachin.sax...@oss.nxp.com; Anoob Joseph ;

[dpdk-dev] [PATCH] net/mlx4: fix RSS action hash key null pointer

2021-04-07 Thread Viacheslav Ovsiienko
If RSS action contains non zero hash key length and NULL key buffer pointer the default hash key should be used. The check for the NULL pointer this was missing in the mlx4 PMD causing crash, for example, in testpmd with command: flow validate 0 ingress group 0 pattern eth / ipv4 / end actions

[dpdk-dev] [PATCH v7] eal: fix race in ctrl thread creation

2021-04-07 Thread Luc Pelletier
The creation of control threads uses a pthread barrier for synchronization. This patch fixes a race condition where the pthread barrier could get destroyed while one of the threads has not yet returned from the pthread_barrier_wait function, which could result in undefined behaviour. Fixes: 3a0d46

[dpdk-dev] [PATCH] power: fix use-after-free in pstate code

2021-04-07 Thread Anatoly Burakov
Previous fix has addressed the incorrect handling of `base_frequency` file, but has added a use-after-free error due to the fact that all further code paths will lead to an `fclose()` call at the end, so the additional `fclose()` call right after processing the file was unnecessary. Coverity issue

Re: [dpdk-dev] Questions about API with no parameter check

2021-04-07 Thread Ferruh Yigit
On 4/7/2021 4:25 PM, Hemant Agrawal wrote: On 4/7/2021 8:10 PM, Ajit Khaparde wrote: On Wed, Apr 7, 2021 at 6:20 AM Jerin Jacob wrote: On Wed, Apr 7, 2021 at 5:23 PM Ananyev, Konstantin wrote: 07/04/2021 13:28, Min Hu (Connor): Hi, all, Many APIs in DPDK does not check if the point

Re: [dpdk-dev] [PATCH] power: fix use-after-free in pstate code

2021-04-07 Thread David Hunt
Hi Anatoly, On 7/4/2021 4:56 PM, Anatoly Burakov wrote: Previous fix has addressed the incorrect handling of `base_frequency` file, but has added a use-after-free error due to the fact that all further code paths will lead to an `fclose()` call at the end, so the additional `fclose()` call right

Re: [dpdk-dev] [PATCH] power: fix use-after-free in pstate code

2021-04-07 Thread Liang Ma
Reviewed-by: Liang Ma On Wed, Apr 07, 2021 at 03:56:42PM +, Anatoly Burakov wrote: > Previous fix has addressed the incorrect handling of `base_frequency` > file, but has added a use-after-free error due to the fact that all > further code paths will lead to an `fclose()` call at the end, so

Re: [dpdk-dev] Questions about API with no parameter check

2021-04-07 Thread Burakov, Anatoly
On 07-Apr-21 5:10 PM, Ferruh Yigit wrote: On 4/7/2021 4:25 PM, Hemant Agrawal wrote: On 4/7/2021 8:10 PM, Ajit Khaparde wrote: On Wed, Apr 7, 2021 at 6:20 AM Jerin Jacob wrote: On Wed, Apr 7, 2021 at 5:23 PM Ananyev, Konstantin wrote: 07/04/2021 13:28, Min Hu (Connor): Hi, all, Ma

Re: [dpdk-dev] [PATCH] power: fix use-after-free in pstate code

2021-04-07 Thread Burakov, Anatoly
On 07-Apr-21 4:56 PM, Anatoly Burakov wrote: Previous fix has addressed the incorrect handling of `base_frequency` file, but has added a use-after-free error due to the fact that all further code paths will lead to an `fclose()` call at the end, so the additional `fclose()` call right after proce

  1   2   >