Re: [dpdk-dev] [PATCH v2 2/2] net/mlx5: fix mem leak when a device configured repeatedly

2021-05-12 Thread Slava Ovsiienko
> -Original Message- > From: wangyunjian > Sent: Thursday, May 13, 2021 6:40 > To: dev@dpdk.org > Cc: Matan Azrad ; Shahaf Shuler > ; Slava Ovsiienko ; > dingxiaoxi...@huawei.com; Yunjian Wang ; > sta...@dpdk.org > Subject: [dpdk-dev] [PATCH v2 2/2] net/mlx5: fix mem leak when a device > c

Re: [dpdk-dev] [PATCH v2 1/2] net/mlx4: fix mem leak when a device configured repeatedly

2021-05-12 Thread Slava Ovsiienko
> -Original Message- > From: wangyunjian > Sent: Thursday, May 13, 2021 6:39 > To: dev@dpdk.org > Cc: Matan Azrad ; Shahaf Shuler > ; Slava Ovsiienko ; > dingxiaoxi...@huawei.com; Yunjian Wang ; > sta...@dpdk.org > Subject: [dpdk-dev] [PATCH v2 1/2] net/mlx4: fix mem leak when a device > c

Re: [dpdk-dev] [PATCH v4 3/3] vhost: fix offload flags in Rx path

2021-05-12 Thread Wang, Yinan
> -Original Message- > From: David Marchand > Sent: 2021年5月12日 23:20 > To: Wang, Yinan > Cc: dev@dpdk.org; maxime.coque...@redhat.com; > olivier.m...@6wind.com; f...@sysclose.org; i.maxim...@ovn.org; Xia, > Chenbo ; Stokes, Ian ; > sta...@dpdk.org; Jijiang Liu ; Yuanhan Liu > > Subject

[dpdk-dev] [PATCH v3 2/2] net/hns3: refactor SVE code compile method

2021-05-12 Thread Chengwen Feng
Currently, the SVE code is compiled only when -march supports SVE (e.g. '-march=armv8.2a+sve'), there maybe some problem[1] with this approach. The solution: a. If the minimum instruction set support SVE then compiles it. b. Else if the compiler support SVE then compiles it. c. Otherwise don't com

[dpdk-dev] [PATCH v3 1/2] config/arm: select most suitable -march for kunpeng soc

2021-05-12 Thread Chengwen Feng
Currently, the soc_kunpeng930 declares '-march=armv8.2-a+crypto+sve', but some compiler doesn't recognize the march because it doesn't support sve. To solve this bug we use the following scheme: 1. Define 'march_base' tuple which defines support march, it should arrange from lower to higher. e.g.

[dpdk-dev] [PATCH v3 0/2] bugfix for Kunpeng SVE compile

2021-05-12 Thread Chengwen Feng
This patch set contains two bugfixes for Kunpeng SVE compile. --- v3: * fix checkpatch error of 1/2 patch * modify comments of 1/2 patch v2: * support select best -march parameter for kunpeng soc Chengwen Feng (2): config/arm: select most suitable -march for kunpeng soc net/hns3: refactor SVE

[dpdk-dev] 回复: [PATCH v1 3/4] net/mlx5: fix rebuild bug for Memory Region cache

2021-05-12 Thread Feifei Wang
Hi, Slava Please see below. > -邮件原件- > 发件人: Slava Ovsiienko > 发送时间: 2021年5月12日 19:08 > 收件人: Feifei Wang ; Matan Azrad > ; Shahaf Shuler > 抄送: dev@dpdk.org; nd ; sta...@dpdk.org; Ruifeng Wang > ; nd > 主题: RE: [PATCH v1 3/4] net/mlx5: fix rebuild bug for Memory Region cache > > Hi, Feif

Re: [dpdk-dev] [PATCH 1/2] config/arm: add non-SVE march for soc kunpeng930

2021-05-12 Thread fengchengwen
On 2021/5/13 7:00, Honnappa Nagarahalli wrote: > > >> >> On Wed, May 12, 2021 at 2:01 PM Chengwen Feng >> wrote: >>> >>> Currently, the soc_kunpeng930 declares '-march=armv8.2-a+crypto+sve', >>> but some compiler doesn't recognize the march because it doesn't >>> support sve. >> >> Agree with

[dpdk-dev] [PATCH v2 0/2] bugfix for Kunpeng SVE compile

2021-05-12 Thread Chengwen Feng
This patch set contains two bugfixes for Kunpeng SVE compile. --- v2: * support select best -march parameter for kunpeng soc Chengwen Feng (2): config/arm: select best -march parameter for kunpeng soc net/hns3: refactor SVE code compile method config/arm/meson.build | 28

[dpdk-dev] [PATCH v2 2/2] net/hns3: refactor SVE code compile method

2021-05-12 Thread Chengwen Feng
Currently, the SVE code is compiled only when -march supports SVE (e.g. '-march=armv8.2a+sve'), there maybe some problem[1] with this approach. The solution: a. If the minimum instruction set support SVE then compiles it. b. Else if the compiler support SVE then compiles it. c. Otherwise don't com

[dpdk-dev] [PATCH v2 1/2] config/arm: select best -march parameter for kunpeng soc

2021-05-12 Thread Chengwen Feng
Currently, the soc_kunpeng930 declares '-march=armv8.2-a+crypto+sve', but some compiler doesn't recognize the march because it doesn't support sve. To solve this bug we use the following scheme: 1. Define 'march_base' tuple which defines support march, it should arrange from lower to higher. e.g.

[dpdk-dev] [Bug 703] [21.05]Host testpmd crash when booting VM with vhost-user 2 queues + viommu

2021-05-12 Thread bugzilla
https://bugs.dpdk.org/show_bug.cgi?id=703 Bug ID: 703 Summary: [21.05]Host testpmd crash when booting VM with vhost-user 2 queues + viommu Product: DPDK Version: unspecified Hardware: x86 OS: Linux

[dpdk-dev] [PATCH v2 2/2] net/mlx5: fix mem leak when a device configured repeatedly

2021-05-12 Thread wangyunjian
From: Yunjian Wang Currently, configuring a mlx device, it will allocate its own process private in mlx5_proc_priv_init() and only frees it when closing the device. This will lead to a memory leak, when a device is configured repeatedly. For example: for(...) do rte_eth_dev_configure rte

[dpdk-dev] [PATCH v2 1/2] net/mlx4: fix mem leak when a device configured repeatedly

2021-05-12 Thread wangyunjian
From: Yunjian Wang Currently, configuring a mlx device, it will allocate its own process private in mlx5_proc_priv_init() and only frees it when closing the device. This will lead to a memory leak, when a device is configured repeatedly. For example: for(...) do rte_eth_dev_configure rte

[dpdk-dev] [PATCH v2 0/2] fixes for mlx4/mlx5

2021-05-12 Thread wangyunjian
From: Yunjian Wang This series include two fixes patches for mlx4/mlx5. --- v2: * remove redundant empty line Yunjian Wang (2): net/mlx4: fix mem leak when a device configured repeatedly net/mlx5: fix mem leak when a device configured repeatedly drivers/net/mlx4/mlx4.c | 1 + drivers/n

Re: [dpdk-dev] [PATCH 1/2] net/mlx4: fix mem leak when a device configured repeatedly

2021-05-12 Thread wangyunjian
> -Original Message- > From: Slava Ovsiienko [mailto:viachesl...@nvidia.com] > Sent: Wednesday, May 12, 2021 10:05 PM > To: wangyunjian ; dev@dpdk.org > Cc: Matan Azrad ; Shahaf Shuler ; > dingxiaoxiong ; sta...@dpdk.org > Subject: RE: [dpdk-dev] [PATCH 1/2] net/mlx4: fix mem leak when a

Re: [dpdk-dev] [PATCH 2/3] eal/windows: fix interrupt thread handle leakage

2021-05-12 Thread Kadam, Pallavi
On 5/1/2021 7:33 PM, Dmitry Kozlyuk wrote: Each time a work was scheduled in the interrupt thread, usually an alarm, a handle was opened but not closed. Opening a handle is a system call, which harms alarm precision. Instead of opening and closing a handle each time, open it when interrupt thr

Re: [dpdk-dev] [PATCH] test: fix division by zero

2021-05-12 Thread Min Hu (Connor)
在 2021/5/13 0:53, Bruce Richardson 写道: On Fri, Apr 23, 2021 at 03:35:30PM +0800, Min Hu (Connor) wrote: Variable i is used as a denominator which may be zero, and this may result in segmentation fault. This patch fixed it. Fixes: 948bc3d6d095 ("test: add reciprocal based division") Cc: sta.

[dpdk-dev] [PATCH v2] test: fix division by zero

2021-05-12 Thread Min Hu (Connor)
Variable i is used as a denominator which may be zero, and this may result in segmentation fault. This patch fixed it. Fixes: 948bc3d6d095 ("test: add reciprocal based division") Cc: sta...@dpdk.org Signed-off-by: Min Hu (Connor) --- v2: * to skip the printouts if i == 0. --- app/test/test_rec

Re: [dpdk-dev] [PATCH 2/2] net/hns3: refactor SVE code compile method

2021-05-12 Thread fengchengwen
On 2021/5/13 7:21, Honnappa Nagarahalli wrote: > > >> >>> >>> Currently, the SVE code is compiled only when -march supports SVE >>> (e.g. '- march=armv8.2a+sve'), there maybe some problem[1] with this >> approach. >>> >>> The solution: >>> a. If the minimum instruction set support SVE then com

Re: [dpdk-dev] [PATCH v3] test/timer: fix memzone reserve failure check

2021-05-12 Thread Min Hu (Connor)
在 2021/5/12 22:36, Thomas Monjalon 写道: 11/05/2021 02:53, Min Hu (Connor): Segmentation fault may occur without checking if memzone reserves succeed or not. This patch fixed it. Fixes: 50247fe03fe0 ("test/timer: exercise new APIs in secondary process") Cc: sta...@dpdk.org Signed-off-by: Min

Re: [dpdk-dev] [PATCH 2/2] net/hns3: refactor SVE code compile method

2021-05-12 Thread Honnappa Nagarahalli
> > > > > Currently, the SVE code is compiled only when -march supports SVE > > (e.g. '- march=armv8.2a+sve'), there maybe some problem[1] with this > approach. > > > > The solution: > > a. If the minimum instruction set support SVE then compiles it. > > b. Else if the compiler support SVE then

Re: [dpdk-dev] [PATCH 2/2] net/hns3: refactor SVE code compile method

2021-05-12 Thread Honnappa Nagarahalli
> > Currently, the SVE code is compiled only when -march supports SVE (e.g. '- > march=armv8.2a+sve'), there maybe some problem[1] with this approach. > > The solution: > a. If the minimum instruction set support SVE then compiles it. > b. Else if the compiler support SVE then compiles it. > c.

Re: [dpdk-dev] [PATCH 1/2] config/arm: add non-SVE march for soc kunpeng930

2021-05-12 Thread Honnappa Nagarahalli
> > On Wed, May 12, 2021 at 2:01 PM Chengwen Feng > wrote: > > > > Currently, the soc_kunpeng930 declares '-march=armv8.2-a+crypto+sve', > > but some compiler doesn't recognize the march because it doesn't > > support sve. > > Agree with the problem statement. > > + @Juraj Linkeš > > > > > T

[dpdk-dev] [dpdk-announce] release candidate 21.05-rc3

2021-05-12 Thread Thomas Monjalon
A new DPDK release candidate is ready for testing: https://git.dpdk.org/dpdk/tag/?id=v21.05-rc3 There are 114 new patches in this snapshot. Release notes: https://doc.dpdk.org/guides/rel_notes/release_21_05.html Please test and report issues on bugs.dpdk.org. You may share some r

Re: [dpdk-dev] [PATCH v2 2/2] buildtools: check symbol maps in developer mode

2021-05-12 Thread Thomas Monjalon
12/05/2021 22:24, Thomas Monjalon: > > > Hook check-symbol-maps.sh in the symbol check when in developer mode to > > > help developers catch issues before submitting their changes. > > > > > > Signed-off-by: David Marchand > > +1 > > > > Reviewed-by: Ray Kinsella > > Series applied, thanks Oo

Re: [dpdk-dev] [PATCH v2 2/2] buildtools: check symbol maps in developer mode

2021-05-12 Thread Thomas Monjalon
> > Hook check-symbol-maps.sh in the symbol check when in developer mode to > > help developers catch issues before submitting their changes. > > > > Signed-off-by: David Marchand > +1 > > Reviewed-by: Ray Kinsella Series applied, thanks

Re: [dpdk-dev] [dpdk-stable] [PATCH v2 4/4] test/power: fix turbo test

2021-05-12 Thread Thomas Monjalon
12/05/2021 18:32, David Hunt: > when turbo is enabled or disabled, the frequency is set to a low non-turbo > frequency, so we need to set to the frequency expected by the test before > checking. > > Fixes: aeaeaf5f2d62 ("test/power: add cases for turbo feature") > Cc: sta...@dpdk.org > > Signed-o

Re: [dpdk-dev] [PATCH v2] app/testpmd: add CLI for action meter color

2021-05-12 Thread Dumitrescu, Cristian
> -Original Message- > From: Yigit, Ferruh > Sent: Tuesday, May 11, 2021 2:21 PM > To: Dumitrescu, Cristian ; Haifei Luo > ; ma...@nvidia.com; or...@nvidia.com; > viachesl...@nvidia.com; Li, Xiaoyun > Cc: dev@dpdk.org; tho...@monjalon.net; rasl...@nvidia.com; Singh, > Jasvinder > Subje

Re: [dpdk-dev] [dpdk-stable] [PATCH v3] examples/rxtx_callbacks: fix port ID format specifier

2021-05-12 Thread Thomas Monjalon
06/05/2021 04:56, Stephen Hemminger: > On Thu, 6 May 2021 00:54:35 +0300 > Dmitry Kozlyuk wrote: > > > This fixes -Wformat warning with clang 10.0.0 on Windows. > > > > Fixes: f8244c6399d9 ("ethdev: increase port id range") > > Cc: sta...@dpdk.org > > > > Signed-off-by: Dmitry Kozlyuk > > Ack

Re: [dpdk-dev] [PATCH] examples/l3fwd-power: fix assignment errors

2021-05-12 Thread Thomas Monjalon
Ping for review please. 21/04/2021 05:53, Min Hu (Connor): > From: HongBo Zheng > > Fix assignment errors of ep_hgh_edpi in function parse_ep_config. > > Fixes: a137d012a0dd ("examples/l3fwd-power: support traffic pattern aware > control") > Cc: sta...@dpdk.org > > Signed-off-by: HongBo Zheng

Re: [dpdk-dev] [PATCH v3 0/3] fix check of port and core

2021-05-12 Thread Thomas Monjalon
12/05/2021 18:52, Ferruh Yigit: > On 4/29/2021 1:50 AM, Min Hu (Connor) wrote: > > Currently, some examples check that the port is on the same NUMA > > node as the polling thread for best performance. The method is > > to compare the socket id of port and that of current core. If the > > result is

Re: [dpdk-dev] [PATCH v2] eal/rwlock: add note about writer starvation

2021-05-12 Thread Thomas Monjalon
Ping for v3 12/02/2021 01:21, Honnappa Nagarahalli: > > > > > > 14/01/2021 17:55, Stephen Hemminger: > > > The implementation of reader/writer locks in DPDK (from first release) > > > is simple and fast. But it can lead to writer starvation issues. > > > > > > It is not easy to fix this without

Re: [dpdk-dev] [PATCH 2/2] raw/ioat: remove special case for no status reporting

2021-05-12 Thread Thomas Monjalon
> > The special fast-path for returning completed descriptors without > > reporting status or user-handles returns the number of completed ring > > slots used, rather than the number of actual user-submitted jobs. This > > means that the counts returned are too high, as the batch descriptor > > slo

Re: [dpdk-dev] : nvgre inner rss problem in mlx5

2021-05-12 Thread Asaf Penso
Hello Wenxu, We've integrated this fix - https://patchwork.dpdk.org/project/dpdk/patch/20210512102408.7501-1-jiaw...@nvidia.com/ Could you please confirm it resolves your issue? BTW, have you opened a BZ ticket? If so, could you please send me the link? Regards, Asaf Penso _

Re: [dpdk-dev] [PATCH] examples/l3fwd: change mq-mode on single queue devices

2021-05-12 Thread Medvedkin, Vladimir
Hi Bruce, On 12/05/2021 19:32, Bruce Richardson wrote: On Mon, May 10, 2021 at 06:53:19PM +0200, Heinrich Kuhn wrote: From: "Chaoyong.He" Set the Rx multi-queue mode to NONE when configuring a port that is associated with hardware that only supports a single Rx queue. Signed-off-by: Chaoyong

[dpdk-dev] [PATCH 1/1] event/dlb2: fix vector based dequeue

2021-05-12 Thread McDaniel, Timothy
From: Timothy McDaniel This commit fixes the following bugs in the vector based dequeue path: - extract hw sched type - update xstats The default mode of operation was also changed from vector optimized mode to scalar mode. Fixes: 000a7b8e7582 ("event/dlb2: optimize dequeue operation") Cc: timo

Re: [dpdk-dev] [21.08 PATCH v1 1/2] power: invert the monitor check

2021-05-12 Thread Alexander Kozyrev
On 11-May-2021 11:39 AM, Anatoly Burakov wrote: > On 11-May-21 4:31 PM, Anatoly Burakov wrote: > > 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 inflexibl

Re: [dpdk-dev] [dpdk-stable] [PATCH v4 11/19] net/ena: fix parsing of large LLQ header devarg

2021-05-12 Thread Thomas Monjalon
11/05/2021 08:45, Michal Krawczyk: > From: Igor Chauskin > --- a/doc/guides/rel_notes/release_21_05.rst > +++ b/doc/guides/rel_notes/release_21_05.rst > @@ -209,6 +209,7 @@ New Features > >* Changed memcpy mapping to the dpdk-optimized version. >* Updated ena_com (HAL) to the latest vers

Re: [dpdk-dev] [PATCH] test: fix division by zero

2021-05-12 Thread Bruce Richardson
On Fri, Apr 23, 2021 at 03:35:30PM +0800, Min Hu (Connor) wrote: > Variable i is used as a denominator which may be zero, and > this may result in segmentation fault. > > This patch fixed it. > > Fixes: 948bc3d6d095 ("test: add reciprocal based division") > Cc: sta...@dpdk.org > > Signed-off-by:

Re: [dpdk-dev] [PATCH v3 0/3] fix check of port and core

2021-05-12 Thread Ferruh Yigit
On 4/29/2021 1:50 AM, Min Hu (Connor) wrote: > Currently, some examples check that the port is on the same NUMA > node as the polling thread for best performance. The method is > to compare the socket id of port and that of current core. If the > result is different, warning info will be given. >

Re: [dpdk-dev] [dpdk-stable] [PATCH v1 2/4] test/power: add turbo mode to freq check function

2021-05-12 Thread David Hunt
On 12/5/2021 4:34 PM, Thomas Monjalon wrote: 22/04/2021 18:13, Burakov, Anatoly: On 22-Apr-21 3:40 PM, David Hunt wrote: --- a/app/test/test_power_cpufreq.c +++ b/app/test/test_power_cpufreq.c @@ -48,7 +48,7 @@ static uint32_t total_freq_num; static uint32_t freqs[TEST_POWER_FREQS_NUM_MAX]

[dpdk-dev] [PATCH v2 4/4] test/power: fix turbo test

2021-05-12 Thread David Hunt
when turbo is enabled or disabled, the frequency is set to a low non-turbo frequency, so we need to set to the frequency expected by the test before checking. Fixes: aeaeaf5f2d62 ("test/power: add cases for turbo feature") Cc: sta...@dpdk.org Signed-off-by: David Hunt --- changes in v2 none

[dpdk-dev] [PATCH v2 3/4] test/power: fix low freq test when turbo enabled

2021-05-12 Thread David Hunt
With the intel_pstate driver and turbo enabled, indexing is slightly different to normal, so to get the test to work properly, enable turbo at the start. Fixes: ed7c51a6a680 ("app/test: vm power management") Cc: sta...@dpdk.org Signed-off-by: David Hunt --- changes in v2 none --- app/test/t

[dpdk-dev] [PATCH v2 2/4] test/power: add turbo mode to freq check function

2021-05-12 Thread David Hunt
With the intel_pstate driver and turbo enabled, the top frequency in the frequency array is the P1+1, i.e. 231, whereas the frequency shown in scaling_cur_freq could be a lot higher. This patch adds a flag to the check_cur_freq function so that we can specify if a frequency is greater than exp

[dpdk-dev] [PATCH v2 1/4] test/power: fix check for cpu frequency

2021-05-12 Thread David Hunt
Different drivers present the current cpu core frequency in different sysfs iles. Some present it in cpuinfo_cur_freq, some in scaling_cur_freq, and some actually present it in both. This patch attempts to open one, if that fails, tries the other. Fixes: d550a8cc31f3 ("app/test: enhance power man

Re: [dpdk-dev] [PATCH] examples/l3fwd: change mq-mode on single queue devices

2021-05-12 Thread Bruce Richardson
On Mon, May 10, 2021 at 06:53:19PM +0200, Heinrich Kuhn wrote: > From: "Chaoyong.He" > > Set the Rx multi-queue mode to NONE when configuring a port that is > associated with hardware that only supports a single Rx queue. > > Signed-off-by: Chaoyong He > Signed-off-by: Heinrich Kuhn > Signed-o

Re: [dpdk-dev] [pull-request] dpdk-next-eventdev for-main - 21.05 - RC3

2021-05-12 Thread Thomas Monjalon
09/05/2021 18:09, Jerin Jacob Kollanukkaran: > http://dpdk.org/git/next/dpdk-next-eventdev Pulled, thanks

Re: [dpdk-dev] [EXT] [PATCH v3] app/crypto-perf: fix dereference of null return

2021-05-12 Thread Akhil Goyal
> Return value of a function 'rte_zmalloc' is dereferenced without > checking, and it may call segmentation fault. > > This patch fixed it. > > Fixes: f8be1786b1b8 ("app/crypto-perf: introduce performance test > application") > Cc: sta...@dpdk.org > > Signed-off-by: Min Hu (Connor) > --- > v3:

Re: [dpdk-dev] [PATCH 2/2] raw/ioat: remove special case for no status reporting

2021-05-12 Thread Laatz, Kevin
> The special fast-path for returning completed descriptors without > reporting status or user-handles returns the number of completed ring > slots used, rather than the number of actual user-submitted jobs. This > means that the counts returned are too high, as the batch descriptor > slots would b

Re: [dpdk-dev] [PATCH 1/2] raw/ioat: fix ring space checks

2021-05-12 Thread Laatz, Kevin
> When enqueuing a descriptor, when checking that there is at least one > slot free for the current descriptor and a later batch descriptor, we > need to test for both two free and one free, in case the last write > was a batch descriptor which is allowed to use the "spare" slot. > > Similarly, wh

Re: [dpdk-dev] [PATCH] crypto/qat: fix NULL authentication request

2021-05-12 Thread Akhil Goyal
> > > This patch fixes the NULL auth generation case where the request > > > shouldn't contain the authentication result address. Allows to run > > > ipsec_autotest with a QAT device. > > > > > > Fixes: 65beb9abca6d ("crypto/qat: fix null auth when using VFIO") > > > > > > Signed-off-by: Adam Dybko

Re: [dpdk-dev] [EXT] [PATCH v4 0/7] test: refactor crypto unit test framework

2021-05-12 Thread Akhil Goyal
> -Original Message- > From: Thomas Monjalon > Sent: Wednesday, May 12, 2021 9:35 PM > To: Ciara Power ; Akhil Goyal > > Cc: dev@dpdk.org; declan.dohe...@intel.com; acon...@redhat.com; > hemant.agra...@nxp.com; Anoob Joseph ; > ruifeng.w...@arm.com; asoma...@amd.com; > ajit.khapa...@bro

[dpdk-dev] [PATCH v2] doc: clarify PMD order in release notes

2021-05-12 Thread Ferruh Yigit
PMD updates are expected in alphabetical order based on their vendor name. Clarify this expectation in the section comment. Signed-off-by: Ferruh Yigit --- v2: * Do not restrict clarification for ethdev --- doc/guides/rel_notes/release_21_05.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion

Re: [dpdk-dev] [EXT] [PATCH v4 0/7] test: refactor crypto unit test framework

2021-05-12 Thread Thomas Monjalon
12/05/2021 18:00, Akhil Goyal: > > I see this patchset is merged in the crypto tree but I guess it is not > > definitive. > > Am I right it is too late to do such refactoring after -rc2? > > What is the intent? > > > The case is not failing in my testing. Neither it is reproducible at Ciara's >

Re: [dpdk-dev] [PATCH] net/mlx5: fix loopback for DV queue

2021-05-12 Thread Thomas Monjalon
12/05/2021 17:48, Slava Ovsiienko: > Hi, Thomas > > > How do we switch? > > Historically mlx5 created Queues and other HW objects with Verbs. > Now we are migrating ("switched") to DevX - queues are being created with > DevX calls. > If there is no E-Switch - the new DevX approach is engaged, >

Re: [dpdk-dev] [EXT] [PATCH v4 0/7] test: refactor crypto unit test framework

2021-05-12 Thread Akhil Goyal
> I see this patchset is merged in the crypto tree but I guess it is not > definitive. > Am I right it is too late to do such refactoring after -rc2? > What is the intent? > The case is not failing in my testing. Neither it is reproducible at Ciara's end. Ciara has asked to rerun the CI to ch

Re: [dpdk-dev] [PATCH] net/mlx5: fix loopback for DV queue

2021-05-12 Thread Slava Ovsiienko
Hi, Thomas > How do we switch? Historically mlx5 created Queues and other HW objects with Verbs. Now we are migrating ("switched") to DevX - queues are being created with DevX calls. If there is no E-Switch - the new DevX approach is engaged, for E-Switch configurations we still use Verbs. With

Re: [dpdk-dev] [EXT] [PATCH v4 0/7] test: refactor crypto unit test framework

2021-05-12 Thread Thomas Monjalon
I see this patchset is merged in the crypto tree but I guess it is not definitive. Am I right it is too late to do such refactoring after -rc2? What is the intent? 12/05/2021 15:15, Akhil Goyal: > Hi Ciara, > > I see that CI is reporting one error in autotest. Can you please check if it > is b

Re: [dpdk-dev] [dpdk-stable] [PATCH v1 2/4] test/power: add turbo mode to freq check function

2021-05-12 Thread Thomas Monjalon
22/04/2021 18:13, Burakov, Anatoly: > On 22-Apr-21 3:40 PM, David Hunt wrote: > > --- a/app/test/test_power_cpufreq.c > > +++ b/app/test/test_power_cpufreq.c > > @@ -48,7 +48,7 @@ static uint32_t total_freq_num; > > static uint32_t freqs[TEST_POWER_FREQS_NUM_MAX]; > > > > static int > > -che

Re: [dpdk-dev] dev Digest, Vol 348, Issue 163

2021-05-12 Thread Dharmappa, Savinay
-Original Message- From: dev On Behalf Of dev-requ...@dpdk.org Sent: Friday, April 23, 2021 4:31 PM To: dev@dpdk.org Subject: dev Digest, Vol 348, Issue 163 Send dev mailing list submissions to dev@dpdk.org To subscribe or unsubscribe via the World Wide Web, visit http

Re: [dpdk-dev] [PATCH] net/mlx5: fix loopback for DV queue

2021-05-12 Thread Thomas Monjalon
12/05/2021 16:51, Bing Zhao: > From: Thomas Monjalon > > 12/05/2021 16:36, Bing Zhao: > > > When switching to the Devx interface, the kernel driver behavior > > may > > > > What do you mean by "switching"? > > I mean when changing the Rxq from Verbs API to Devx API. How do we switch? > > > be

Re: [dpdk-dev] [PATCH v4 3/3] vhost: fix offload flags in Rx path

2021-05-12 Thread David Marchand
On Wed, May 12, 2021 at 5:30 AM Wang, Yinan wrote: > > Hi David, > > Since vhost tx offload can’t work now, we report a Bugzilla as below, could > you help to take a look? > https://bugs.dpdk.org/show_bug.cgi?id=702 (I discovered your mail from 05/08 only today, now that I got a new mail, might

Re: [dpdk-dev] [PATCH v2] lib/librte_power: fix using variables before validity check

2021-05-12 Thread Thomas Monjalon
> > In function power_guest_channel_read_msg, 'lcore_id' is used before > > validity check, which may cause buffer 'global_fds' accessed by index > > 'lcore_id' overflow. > > > > This patch moves the validity check of 'lcore_id' before the 'lcore_id' > > being used for the first time. > > > > Fixes

Re: [dpdk-dev] [dpdk-stable] [PATCH 3/3] eal/windows: cleanup interrupt resources

2021-05-12 Thread Thomas Monjalon
11/05/2021 19:21, Ranjit Menon: > On 5/11/2021 12:59 AM, Dmitry Kozlyuk wrote: > > 2021-05-11 09:41 (UTC+0200), Thomas Monjalon: > >> 02/05/2021 04:33, Dmitry Kozlyuk: > >>> Interrupt manager in Windows EAL allocates on IOCP and starts > >>> a control thread that runs indefinitely. At DPDK cleanup

Re: [dpdk-dev] [PATCH v4] eal: fix use wrong time API

2021-05-12 Thread Thomas Monjalon
11/05/2021 12:41, Chengwen Feng: > Currently, the mp uses gettimeofday() API to get the time, and used as > timeout parameter. > > But the time which gets from gettimeofday() API isn't monotonically > increasing. The process may fail if the system time is changed. > > This fixes it by using clock

Re: [dpdk-dev] [PATCH] net/mlx5: fix loopback for DV queue

2021-05-12 Thread Bing Zhao
Hi Thomas, > -Original Message- > From: Thomas Monjalon > Sent: Wednesday, May 12, 2021 10:49 PM > To: Bing Zhao > Cc: Slava Ovsiienko ; Matan Azrad > ; dev@dpdk.org; Ori Kam ; Raslan > Darawsheh ; sta...@dpdk.org > Subject: Re: [PATCH] net/mlx5: fix loopback for DV queue > > External e

[dpdk-dev] [PATCH 2/2] raw/ioat: remove special case for no status reporting

2021-05-12 Thread Bruce Richardson
The special fast-path for returning completed descriptors without reporting status or user-handles returns the number of completed ring slots used, rather than the number of actual user-submitted jobs. This means that the counts returned are too high, as the batch descriptor slots would be included

[dpdk-dev] [PATCH 1/2] raw/ioat: fix ring space checks

2021-05-12 Thread Bruce Richardson
When enqueuing a descriptor, when checking that there is at least one slot free for the current descriptor and a later batch descriptor, we need to test for both two free and one free, in case the last write was a batch descriptor which is allowed to use the "spare" slot. Similarly, when computing

Re: [dpdk-dev] [PATCH] net/mlx5: fix loopback for DV queue

2021-05-12 Thread Thomas Monjalon
12/05/2021 16:36, Bing Zhao: > When switching to the Devx interface, the kernel driver behavior may What do you mean by "switching"? > be different from using Verbs. The Tx loopback cannot work properly > even if the Tx and Rx queues are configured with loopback attribute. > To support self loopb

Re: [dpdk-dev] [PATCH] doc: remove PDF requirements

2021-05-12 Thread Thomas Monjalon
> > The documentation is generated in HTML only. > > The PDF format is abandoned since DPDK 20.11 while dropping support of > > the make-based build. > > > > This decision has been mentioned by the Technical Board: > > https://mails.dpdk.org/archives/dev/2021-January/195549.html > > > > Fixes: 3c

Re: [dpdk-dev] [PATCH v2] examples/timer: fix incorrect time interval

2021-05-12 Thread Thomas Monjalon
06/05/2021 11:29, Min Hu (Connor): > From: Chengchang Tang > > Timer sample example assumes that the frequency of the timer is about > 2Ghz to control the period of calling rte_timer_manage(). But this > assumption is easy to fail. For example. the frequency of tsc on ARM64 > is much less than 2G

Re: [dpdk-dev] [PATCH v3] test/timer: fix memzone reserve failure check

2021-05-12 Thread Thomas Monjalon
11/05/2021 02:53, Min Hu (Connor): > Segmentation fault may occur without checking if memzone > reserves succeed or not. > > This patch fixed it. > > Fixes: 50247fe03fe0 ("test/timer: exercise new APIs in secondary process") > Cc: sta...@dpdk.org > > Signed-off-by: Min Hu (Connor) You missed r

[dpdk-dev] [PATCH] net/mlx5: fix loopback for DV queue

2021-05-12 Thread Bing Zhao
When switching to the Devx interface, the kernel driver behavior may be different from using Verbs. The Tx loopback cannot work properly even if the Tx and Rx queues are configured with loopback attribute. To support self loopback for Tx, a Verbs dummy queue pair needs to be created to trigger the

Re: [dpdk-dev] [PATCH] raw/skeleton: fix return value check

2021-05-12 Thread Thomas Monjalon
22/04/2021 08:21, Min Hu (Connor): > This patch adds return value check for setting an attribute. > > Fixes: 88a81bcecb7b ("raw/skeleton: remove compile-time constant for device > id") > Cc: sta...@dpdk.org > > Signed-off-by: Min Hu (Connor) > --- > ret = rte_rawdev_set_attr(test_dev_id,

Re: [dpdk-dev] [PATCH] crypto/qat: fix NULL authentication request

2021-05-12 Thread Iremonger, Bernard
Hi Adam, > -Original Message- > From: dev On Behalf Of Zhang, Roy Fan > Sent: Monday, May 10, 2021 12:42 PM > To: Dybkowski, AdamX ; dev@dpdk.org; > Kusztal, ArkadiuszX ; gak...@marvell.com > Subject: Re: [dpdk-dev] [PATCH] crypto/qat: fix NULL authentication request > > > -Original

Re: [dpdk-dev] [PATCH 1/2] net/mlx4: fix mem leak when a device configured repeatedly

2021-05-12 Thread Slava Ovsiienko
Hi, Yunjian Nice and tiny fix, thank you! Could you, please, remove the empty line after mlx4/5_proc_priv_uninit(dev) to follow the mlx5 coding style? With best regards, Slava > -Original Message- > From: wangyunjian > Sent: Wednesday, May 12, 2021 16:18 > To: dev@dpdk.org > Cc: Matan

[dpdk-dev] [PATCH 1/2] net/mlx4: fix mem leak when a device configured repeatedly

2021-05-12 Thread wangyunjian
From: Yunjian Wang Currently, configuring a mlx device, it will allocate its own process private in mlx5_proc_priv_init() and only frees it when closing the device. This will lead to a memory leak, when a device is configured repeatedly. For example: for(...) do rte_eth_dev_configure

[dpdk-dev] [PATCH 2/2] net/mlx5: fix mem leak when a device configured repeatedly

2021-05-12 Thread wangyunjian
From: Yunjian Wang Currently, configuring a mlx device, it will allocate its own process private in mlx5_proc_priv_init() and only frees it when closing the device. This will lead to a memory leak, when a device is configured repeatedly. For example: for(...) do rte_eth_dev_configure

[dpdk-dev] [PATCH 0/2] fixes for mlx4/mlx5

2021-05-12 Thread wangyunjian
From: Yunjian Wang This series include two fixes patches for mlx4/mlx5. Yunjian Wang (2): net/mlx4: fix mem leak when a device configured repeatedly net/mlx5: fix mem leak when a device configured repeatedly drivers/net/mlx4/mlx4.c | 2 ++ drivers/net/mlx5/mlx5.c | 2 ++ 2 files changed, 4

Re: [dpdk-dev] [EXT] [PATCH v4 0/7] test: refactor crypto unit test framework

2021-05-12 Thread Akhil Goyal
Hi Ciara, I see that CI is reporting one error in autotest. Can you please check if it is because of your patchset? 9/96 DPDK:fast-tests / cycles_autotestFAIL1.42s (exit status 255 or signal 127 SIGinvalid) 12:33:15 DPDK_TEST=cycles_autotest MALLOC_PERTURB_=44 /ho

Re: [dpdk-dev] [PATCH v3 1/4] net/bnx2x: fix build with gcc11

2021-05-12 Thread Ferruh Yigit
On 5/11/2021 2:14 PM, Ferruh Yigit wrote: > Reproduced with '--buildtype=debugoptimized' config, > compiler version: gcc (GCC) 12.0.0 20210509 (experimental) > > Build error: > In file included from ../drivers/net/bnx2x/bnx2x_rxtx.c:8: > ../drivers/net/bnx2x/bnx2x_rxtx.c: In function ‘bnx2x_upd_rx

Re: [dpdk-dev] [PATCH v3] raw/ioat: fix parameter shadow warning

2021-05-12 Thread Thomas Monjalon
12/05/2021 12:47, Kevin Laatz: > In the function __idxd_completed_ops() we have a parameter shadow warning > due to a local variable having the same name as one of the function > parameters. This issue is fixed by simply renaming the local variable. > > This warning was caught when additions were

Re: [dpdk-dev] [PATCH v1] net/mlx5: fix meter flow id

2021-05-12 Thread Thomas Monjalon
> > When getting meter flow_id bits, there's an issue that not handling > > correctly > > if flow_id is 0. > > > > This fix this issue that when flow_id is 0, treat it as 1 bit. > > > > Fixes: 83306d6c46 ("net/mlx5: fix meter statistics") > > Cc: sta...@dpdk.org > > > > Signed-off-by: Shun Hao

Re: [dpdk-dev] [dpdk-stable] [PATCH v3 2/2] net/mlx5: fix default context in flow age action

2021-05-12 Thread Thomas Monjalon
12/05/2021 14:09, Jiawei Wang: > One of the user parameters for the flow AGE action is the > action context. This context should be provided back to the > user when the action is aged-out. > While this context is NULL, a default value should be provided > by the PMD: the rte_flow pointer in case of

Re: [dpdk-dev] [PATCH v5 0/3] net/ena: update ENA PMD to v2.3.0

2021-05-12 Thread Ferruh Yigit
On 5/12/2021 11:13 AM, Michal Krawczyk wrote: > Hi, > > this version updates the driver to version 2.3.0, which fixes multiple > bugs, contains part of the work on making the ENA PMD fully MP aware, and > also updates HAL to the latest version. > > More detailed list of changes: > * memcpy mapp

[dpdk-dev] [PATCH v5] app/testpmd: add CLI for action meter color

2021-05-12 Thread Haifei Luo
Currently action RTE_FLOW_ACTION_TYPE_METER_COLOR is defined. Add the CLI for this aciton: color type (types) There are three types: green, yellow and red. Example for the new policy meter CLIs: add port meter policy 0 1 g_actions color type green / end y_actions color type yellow / end r

[dpdk-dev] [PATCH v1] net/mlx5: fix meter flow id

2021-05-12 Thread Shun Hao
When getting meter flow_id bits, there's an issue that not handling correctly if flow_id is 0. This fix this issue that when flow_id is 0, treat it as 1 bit. Fixes: 83306d6c46 ("net/mlx5: fix meter statistics") Cc: sta...@dpdk.org Signed-off-by: Shun Hao --- drivers/net/mlx5/mlx5_flow.c | 4 ++

[dpdk-dev] [PATCH v3 1/2] net/mlx5: fix age action in transfer root group

2021-05-12 Thread Jiawei Wang
Current the ASO age action was supported in the non-root table, and the counter based age action was be used in the root table. The FDB table skips group 0 on MLX5 PMD by adding implicit rule that jump to non-root table, but PMD code use the original group value for checking. This patch adds the

[dpdk-dev] [PATCH v3 2/2] net/mlx5: fix default context in flow age action

2021-05-12 Thread Jiawei Wang
One of the user parameters for the flow AGE action is the action context. This context should be provided back to the user when the action is aged-out. While this context is NULL, a default value should be provided by the PMD: the rte_flow pointer in case of rte_flow_create API and the action point

Re: [dpdk-dev] [PATCH v4] app/testpmd: add CLI for action meter color

2021-05-12 Thread Ferruh Yigit
On 5/12/2021 11:49 AM, Haifei Luo wrote: > Currently action RTE_FLOW_ACTION_TYPE_METER_COLOR is defined. > Add the CLI for this aciton: color type (types) > There are three types: green, yellow and red. > > Example for the new policy meter CLIs: >add port meter policy 0 1 g_actions color type

Re: [dpdk-dev] [dpdk-stable] [PATCH v2] net/mlx5: fix RSS expansion for NVGRE

2021-05-12 Thread Thomas Monjalon
> > Currently RSS expansion only supports GRE and GRE KEY. > > This patch adds RSS expansion for NVGRE item so PMD can expand flow item > > correctly. > > > > Fixes: ea81c1b816f7 ("net/mlx5: fix NVGRE matching") > > Cc: sta...@dpdk.org > > > > Signed-off-by: Jiawei Wang > > Acked-by: Xiaoyu Min

[dpdk-dev] [PATCH v2 2/2] net/mlx5: fix default context in flow age action

2021-05-12 Thread Jiawei Wang
One of the user parameters for the flow AGE action is the action context. This context should be provided back to the user when the action is aged-out. While this context is NULL, a default value should be provided by the PMD: the rte_flow pointer in case of rte_flow_create API and the action point

[dpdk-dev] [PATCH 2/2] net/mlx5: fix ASO age null context issue

2021-05-12 Thread Jiawei Wang
The flow context in the rte_flow_action_age structure was set by user, and reported by the MLX5 PMD while calling rte_flow_get_aged_flow API. If the flow context was NULL while create ASO age action, while flow aged, the PMD report the NULL context to user. This patch adds the checking if context

[dpdk-dev] [PATCH 1/2] net/mlx5: fix the checking for age action

2021-05-12 Thread Jiawei Wang
Current the ASO age action was supported in the non-root table, and the counter based age action was be used in the root table. The FDB table skips group 0 on MLX5 PMD by adding implicit rule that jump to non-root table, but PMD code use the original group value for checking. This patch uses the

[dpdk-dev] [PATCH v2 1/2] net/mlx5: fix age action in transfer root group

2021-05-12 Thread Jiawei Wang
Current the ASO age action was supported in the non-root table, and the counter based age action was be used in the root table. The FDB table skips group 0 on MLX5 PMD by adding implicit rule that jump to non-root table, but PMD code use the original group value for checking. This patch adds the

Re: [dpdk-dev] [PATCH v1] net/mlx5: fix meter flow id

2021-05-12 Thread Matan Azrad
From: Shun Hao > When getting meter flow_id bits, there's an issue that not handling correctly > if flow_id is 0. > > This fix this issue that when flow_id is 0, treat it as 1 bit. > > Fixes: 83306d6c46 ("net/mlx5: fix meter statistics") > Cc: sta...@dpdk.org > > Signed-off-by: Shun Hao Acke

Re: [dpdk-dev] [PATCH v2] net/mlx5: fix RSS expansion for NVGRE

2021-05-12 Thread Matan Azrad
From: Jiawei(Jonny) Wang > Currently RSS expansion only supports GRE and GRE KEY. > This patch adds RSS expansion for NVGRE item so PMD can expand flow item > correctly. > > Fixes: ea81c1b816f7 ("net/mlx5: fix NVGRE matching") > Cc: sta...@dpdk.org > > Signed-off-by: Jiawei Wang > Acked-by: X

Re: [dpdk-dev] [dpdk-stable] [PATCH] net/mlx5: fix the mirror not work with meter action

2021-05-12 Thread Thomas Monjalon
12/05/2021 08:53, Jiawei Wang: > While there's mirror action prior to the meter action in the E-Switch > flow, means that the packets should be duplicated into port firstly, > and then do meter and send to the original destination. > MLX5 PMD will split the above E-Switch flow into two sub flows, >

Re: [dpdk-dev] [PATCH v4] app/testpmd: add CLI for action meter color

2021-05-12 Thread Ferruh Yigit
On 5/12/2021 11:49 AM, Haifei Luo wrote: > Currently action RTE_FLOW_ACTION_TYPE_METER_COLOR is defined. > Add the CLI for this aciton: color type (types) > There are three types: green, yellow and red. > > Example for the new policy meter CLIs: >add port meter policy 0 1 g_actions color type

  1   2   >