Re: [dpdk-dev] [PATCH v8 1/2] app/testpmd: fix max rx packet length for VLAN packets

2020-11-05 Thread Ferruh Yigit
On 11/5/2020 3:11 PM, Lance Richardson wrote: With this change, the bnxt driver fails to initialize under testpmd: Configuring Port 0 (socket 0) Port 0 failed to enable Rx offload JUMBO_FRAME Fail to configure port 0 EAL: Error - exiting with code: 1 It appears that the cause is this bit of cod

Re: [dpdk-dev] [PATCH 2/2] eal: fix missing installation of ticketlock headers

2020-11-05 Thread David Marchand
On Wed, Nov 4, 2020 at 6:28 PM David Marchand wrote: > On Wed, Nov 4, 2020 at 6:04 PM Olivier Matz wrote: > > > > Add missing arch-specific headers in meson.build. > > > > Fixes: ca49b92079df ("ticketlock: enable generic ticketlock on all arch") > > Cc: sta...@dpdk.org > > > > Signed-off-by: Oliv

Re: [dpdk-dev] [PATCH v5 0/4] test/lpm: fix rcu qsbr perf test

2020-11-05 Thread David Marchand
On Wed, Nov 4, 2020 at 7:59 PM Dharmik Thakkar wrote: > > Fix LPM adds, LPM deletes, and cycle calculation. > Return error if LPM add/delete fails in multi-writer test. > Return error if single or multi writer test fails > Remove redundant error checking for readers. > Combine single and multi thr

Re: [dpdk-dev] [PATCH 1/2] crypto/armv8: update meson build

2020-11-05 Thread Bruce Richardson
On Thu, Nov 05, 2020 at 09:33:15AM -0600, Dharmik Thakkar wrote: > With pkg-config support available within AArch64crypto library, > meson option 'armv8_crypto_dir' can be removed. > PKG_CONFIG_PATH environment variable should be set appropriately > to use the crypto library. > > Refer [1] for bui

Re: [dpdk-dev] [PATCH] mbuf: fix reset on mbuf free

2020-11-05 Thread Morten Brørup
> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Ananyev, > Konstantin > Sent: Thursday, November 5, 2020 2:56 PM > > > > > > > > > > > > On Thu, Nov 05, 2020 at 11:34:18AM +, Ananyev, Konstantin > wrote: > > > > > > > > > > > > > > > > On Thu, Nov 05, 2020 at 11:26:51AM +0300, Andrew Ry

Re: [dpdk-dev] [PATCH v3] cmdline: avoid name clash with Windows system types

2020-11-05 Thread Thomas Monjalon
05/11/2020 14:31, Olivier Matz: > On Fri, Oct 30, 2020 at 04:01:26AM +0300, Dmitry Kozlyuk wrote: > > cmdline_numtype member names clash with Windows system identifiers. > > Add RTE_ prefix to cmdline constants to avoid this and possible > > future conflicts. > > > > Suggested-by: Ranjit Menon >

Re: [dpdk-dev] [PATCH v4] mbuf: minor cleanup

2020-11-05 Thread Thomas Monjalon
05/11/2020 14:36, Olivier Matz: > On Mon, Oct 26, 2020 at 03:42:01PM +0100, Morten Brørup wrote: > > The mbuf header files had some commenting style errors that affected the > > API documentation. > > Also, the RTE_ prefix was missing on a macro and a definition. > > > > Note: This patch does not

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

2020-11-05 Thread Stephen Hemminger
On Thu, 5 Nov 2020 09:27:59 +0100 David Marchand wrote: > On Sat, Oct 24, 2020 at 3:02 AM Stephen Hemminger > wrote: > > > > This is a revised version of the earlier RFC patch set for changing > > the blacklist/whitelist terms in DPDK. > > > > The first patch is a duplicate from the other patch

Re: [dpdk-dev] [PATCH] test-meson-builds: add a 32-bit build

2020-11-05 Thread Bruce Richardson
On Thu, Nov 05, 2020 at 12:13:37PM +0100, Thomas Monjalon wrote: > 05/11/2020 12:07, Bruce Richardson: > > It's reasonably common for patches to have issues when built on 32-bits, so > > to prevent this, we can add a 32-bit build (if supported) to the > > "test-meson-builds.sh" script. The tricky b

[dpdk-dev] [PATCH v2] test-meson-builds: add a 32-bit build

2020-11-05 Thread Bruce Richardson
It's reasonably common for patches to have issues when built on 32-bits, so to prevent this, we can add a 32-bit build (if supported) to the "test-meson-builds.sh" script. The tricky bit is using a valid PKG_CONFIG_LIBDIR, so for now we use two common possibilities for where that should point to in

Re: [dpdk-dev] [PATCH] net/mlx5: fix atomic API update

2020-11-05 Thread Raslan Darawsheh
Hi, > -Original Message- > From: dev On Behalf Of Matan Azrad > Sent: Tuesday, November 3, 2020 8:48 AM > To: Slava Ovsiienko > Cc: dev@dpdk.org > Subject: [dpdk-dev] [PATCH] net/mlx5: fix atomic API update > > The Txq refcnt 1 value means that there is not real reference to the > queue

Re: [dpdk-dev] [PATCH] net/mlx5: fix Tx queue stop state

2020-11-05 Thread Raslan Darawsheh
Hi, > -Original Message- > From: dev On Behalf Of Matan Azrad > Sent: Tuesday, November 3, 2020 8:49 AM > To: Slava Ovsiienko > Cc: dev@dpdk.org; sta...@dpdk.org > Subject: [dpdk-dev] [PATCH] net/mlx5: fix Tx queue stop state > > The Tx queue stop API doesn't call the PMD callback when t

Re: [dpdk-dev] [PATCH v10 1/5] net/bnxt: add support for aarch32

2020-11-05 Thread Lance Richardson
> > Hi Juraj, > > > > I might be missing something, but I don't > > believe these changes are sufficient to > > enable vector mode for ARM32. For one > > thing, bnxt_receive_function() in bnxt_ethdev.c > > would need to be changed to enable the > > selection of the vector receive function. > > Hi L

[dpdk-dev] [PATCH 1/1] app/testpmd: revert max Rx packet length adjustment

2020-11-05 Thread Thomas Monjalon
The fix of max_rx_pkt_len for allowing VLAN packets in all cases was breaking configuration of some drivers. Example with virtio: Ethdev port_id=0 max_rx_pkt_len 11229 > max valid value 9728 Fail to configure port 0 Trying to fix the logic was revealing other issues in some driver

[dpdk-dev] [RFC] app/testpmd: fix MTU after device configure

2020-11-05 Thread Ferruh Yigit
In 'rte_eth_dev_configure()', if 'DEV_RX_OFFLOAD_JUMBO_FRAME' is not set the max frame size is limited to 'RTE_ETHER_MAX_LEN' (1518). This is mistake because for the PMDs that has frame size bigger than "RTE_ETHER_HDR_LEN + RTE_ETHER_CRC_LEN" (18 bytes), the MTU becomes less than 1500, causing a va

Re: [dpdk-dev] [PATCH 1/1] app/testpmd: revert max Rx packet length adjustment

2020-11-05 Thread Ferruh Yigit
On 11/5/2020 5:44 PM, Thomas Monjalon wrote: The fix of max_rx_pkt_len for allowing VLAN packets in all cases was breaking configuration of some drivers. Example with virtio: Ethdev port_id=0 max_rx_pkt_len 11229 > max valid value 9728 Fail to configure port 0 Trying to fix the

Re: [dpdk-dev] [PATCH 1/1] app/testpmd: revert max Rx packet length adjustment

2020-11-05 Thread Thomas Monjalon
05/11/2020 19:11, Ferruh Yigit: > On 11/5/2020 5:44 PM, Thomas Monjalon wrote: > > The fix of max_rx_pkt_len for allowing VLAN packets in all cases > > was breaking configuration of some drivers. Example with virtio: > > > > Ethdev port_id=0 max_rx_pkt_len 11229 > max valid value 9728 > >

Re: [dpdk-dev] [PATCH v1] app/testpmd: fix the overhead overflow issue

2020-11-05 Thread Thomas Monjalon
05/11/2020 15:31, Ferruh Yigit: > On 11/5/2020 9:51 AM, Steve Yang wrote: > > If "dev_info.max_mtu" isn't set by driver, the rte_ethdev will set > > default value "UINT16_MAX", that will cause the overhead value overflow. > > > > Add more strict condition to ensure the overhead valid. > > > > Fix

Re: [dpdk-dev] [PATCH v8 1/2] app/testpmd: fix max rx packet length for VLAN packets

2020-11-05 Thread Lance Richardson
With this change, the bnxt driver fails to initialize under testpmd: Configuring Port 0 (socket 0) Port 0 failed to enable Rx offload JUMBO_FRAME Fail to configure port 0 EAL: Error - exiting with code: 1 It appears that the cause is this bit of code in bnxt_ethdev.c: if (bp->eth_dev->da

Re: [dpdk-dev] [PATCH] net/bnxt: remove useless prefetches

2020-11-05 Thread Lance Richardson
On Wed, Nov 4, 2020 at 12:03 PM Stephen Hemminger wrote: > > Prefetching only helps performance if it is done several 100 > instructions before the actual use. The purpose of the prefetch > is to read ahead, it doesn't help if the next instruction > will block. > > The code in the bnxt driver was

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

2020-11-05 Thread Thomas Monjalon
A new DPDK release candidate is ready for testing: https://git.dpdk.org/dpdk/tag/?id=v20.11-rc3 There are only 9 new patches since yesterday -rc2, including a revert which should unblock a lot of testing cases with testpmd. Release notes: http://doc.dpdk.org/guides/rel_notes/relea

Re: [dpdk-dev] [PATCH v8 1/2] app/testpmd: fix max rx packet length for VLAN packets

2020-11-05 Thread Lance Richardson
> First the code cause problem in the driver looks in another place, following > in > 'bnxt_mtu_set_op()': > >if (new_mtu > RTE_ETHER_MTU) { >bp->flags |= BNXT_FLAG_JUMBO; >bp->eth_dev->data->dev_conf.rxmode.offloads |= >

[dpdk-dev] [PATCH] common/sfc_efx/base: avoid reading past the buffer

2020-11-05 Thread Ivan Malov
Existing field ID validity check does not validate the field descriptor availability. Make it more rigorous to avoid reading past the buffer containing field descriptors. Coverity issue: 363742 Fixes: 370ed675a952 ("common/sfc_efx/base: support setting PPORT in match spec") Signed-off-by: Ivan Ma

[dpdk-dev] Build fixes for musl libc

2020-11-05 Thread Natanael Copa
A set of patches to fix build with musl libc. I also did a few cleanups wrt macros and fixed a few scary compiler warnings while at it. Please note that those are only compile tested on x86_64 with musl libc. v2 has some code style fixes reported by checkpatch v3 is a full reroll of the entire p

[dpdk-dev] [PATCH v4 1/8] app/testpmd: fix uint build error with musl libc

2020-11-05 Thread Natanael Copa
Improve portability by avoid use non-standard 'uint'. Use uint8_t for hash_key_len as rss_key_len is a uint8_t type. This solves following build error when building with musl libc: In file included from ../app/test-pmd/cmdline.c:74: ../app/test-pmd/testpmd.h:813:29: error: unknown type name 'uin

[dpdk-dev] [PATCH v4 2/8] net/cxgbe: fix uint build error with musl libc

2020-11-05 Thread Natanael Copa
Improve portability by replacing non-standard 'uint' with 'unsigned int' This solves the build error with musl libc: In file included from ../drivers/net/cxgbe/cxgbe.h:9, from ../drivers/net/cxgbe/cxgbe_ethdev.c:37: ../drivers/net/cxgbe/base/common.h:201:4: error: unknown type na

[dpdk-dev] [PATCH v4 3/8] bus/pci: add fallback for out* for non GNU libc

2020-11-05 Thread Natanael Copa
Add a fallback for non-GNU libc systems like musl libc for the non-standard functions outl_p, outw_p and outb_p. This solves the following buildtime errors when building with musl libc: pci_uio.c:(.text+0xaa1): undefined reference to `outw_p' pci_uio.c:(.text+0xac5): undefined reference to `outl_

[dpdk-dev] [PATCH v4 4/8] bus/dpaa: use warn instead of error to improve portability

2020-11-05 Thread Natanael Copa
Fix build with musl libc by using warn(3) instead of using the GNU specific error(3). `error(0, errno, ...)` is identical to `warn(...)` so replace: error(0, ret, ...); with the identical: errno = ret; warn(...); We could have used the identical `warnx("...: %s", strerror(ret))` but stre

[dpdk-dev] [PATCH v4 5/8] bus/dpaa: fix detection of 64 bit arch

2020-11-05 Thread Natanael Copa
There is no standard saying that __WORDSIZE should be be defined or in what include it should be defined. Use RTE_ARCH_64 instead. This solves a warning when building with musl libc: warning: "__WORDSIZE" is not defined, evaluates to 0 [-Wundef] Fixes: 847ee3bd0d1f ("bus/dpaa: support FMAN fram

[dpdk-dev] [PATCH v4 6/8] common/dpaax: build fix for musl libc

2020-11-05 Thread Natanael Copa
The swab16/swab32/swab64 are Linux specific and not GNU libc specific. Keep the check for __GLIBC__ just in case other GNU systems depends on this (Hurd or GNU/kFreeBSD). This fixes a build error with musl libc. Fixes: 04711d41a872 ("crypto/dpaa2_sec: add run-time assembler for descriptor") Cc: s

[dpdk-dev] [PATCH v4 8/8] eal: add missing include to fix build with musl libc

2020-11-05 Thread Natanael Copa
Solve the build error with musl libc: ../lib/librte_eal/unix/eal_file.c: In function 'eal_file_open': ../lib/librte_eal/unix/eal_file.c:22:15: error: 'O_RDONLY' undeclared (first use in this function) 22 | sys_flags = O_RDONLY; | ^~~~ Fixes: 176bb37ca6f3 ("eal: introd

[dpdk-dev] [PATCH v4 7/8] common/dpaax: simplify pr debug/err/warn macros

2020-11-05 Thread Natanael Copa
Simplify pr_debug, pr_err and pr_warn macros by add an intermediate pr_msg macro. This way we only need test for SUPPRESS_PRINTS once. Signed-off-by: Natanael Copa Acked-by: Hemant Agrawal --- drivers/common/dpaax/caamflib/compat.h | 28 +++--- 1 file changed, 12 insertions(

[dpdk-dev] [PATCH 1/4] event/dlb: fix memory overrun Coverity warning

2020-11-05 Thread Timothy McDaniel
Fix memory corruption bug caused by passing address of a 16b value, instead of address of a 32b value. Fixes: 1998008 ("event/dlb: add eventdev probe") Coverity issue: 363715 Cc: sta...@dpdk.org Signed-off-by: Timothy McDaniel --- drivers/event/dlb/pf/dlb_main.c | 4 ++-- 1 file changed, 2 inse

[dpdk-dev] [PATCH 2/4] event/dlb: fix no-effect Coverity warning

2020-11-05 Thread Timothy McDaniel
Remove nonproductive assignment of qmport->cq_depth. Fixes: ee57517 ("event/dlb: add port setup") Coverity issue: 363717 Cc: sta...@dpdk.org Signed-off-by: Timothy McDaniel --- drivers/event/dlb/dlb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/event/dlb/dlb.c b/drivers/event/dlb

[dpdk-dev] [PATCH 4/4] event/dlb2: add missing sections to documentation

2020-11-05 Thread Timothy McDaniel
Add queue depth threshold and class of service sections to DLB2 rst file. Fixes:5433956 ("event/dlb2: add eventdev probe") Cc: sta...@dpdk.org Signed-off-by: Timothy McDaniel --- doc/guides/eventdevs/dlb2.rst | 47 +++ 1 file changed, 47 insertions(+) di

[dpdk-dev] [PATCH 3/4] event/dlb2: fix dereference NULL pointer Coverity warning

2020-11-05 Thread Timothy McDaniel
Add NULL check before using t->mbuf_pool. Fixes: 6f1b828 ("event/dlb2: add self-tests") Coverity issue: 363719 Cc: sta...@dpdk.org Signed-off-by: Timothy McDaniel --- drivers/event/dlb2/dlb2_selftest.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/event/dlb2/

[dpdk-dev] [PATCH v2] app/testpmd: support age shared action context

2020-11-05 Thread Matan Azrad
When an age action becomes aged-out the rte_flow_get_aged_flows should return the action context supplied by the configuration structure. In case the age action created by the shared action API, the shared action context of the Testpmd application was not set. In addition, the application handler

Re: [dpdk-dev] [PATCH 1/1] app/testpmd: revert max Rx packet length adjustment

2020-11-05 Thread Lance Richardson
On Thu, Nov 5, 2020 at 12:51 PM Thomas Monjalon wrote: > > The fix of max_rx_pkt_len for allowing VLAN packets in all cases > was breaking configuration of some drivers. Example with virtio: > > Ethdev port_id=0 max_rx_pkt_len 11229 > max valid value 9728 > Fail to configure port 0

[dpdk-dev] [PATCH v9 0/6] replace blacklist/whitelist with allow/block

2020-11-05 Thread Stephen Hemminger
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 also shortened because they can be used for not just PCI devices. When DPDK

[dpdk-dev] [PATCH v9 1/6] eal: replace usage of blacklist/whitelist in enum

2020-11-05 Thread Stephen Hemminger
This patch renames the enum values in the EAL include files. As a backward compatible temporary migration tool, define a replacement mapping for old values. The old names relating to blacklist and whitelist are replaced by block list and allow list, but applications may be using the older compatib

[dpdk-dev] [PATCH v9 2/6] drivers: replace references to blacklist

2020-11-05 Thread Stephen Hemminger
Use the new terminology blocked to describe when devices are excluded from being used. Signed-off-by: Stephen Hemminger Acked-by: Luca Boccassi Acked-by: Hemant Agrawal --- drivers/bus/dpaa/dpaa_bus.c| 7 +++ drivers/bus/fslmc/fslmc_bus.c | 9 - drivers/bus/fslmc/fsl

[dpdk-dev] [PATCH v9 3/6] eal: replace pci-whitelist/pci-blacklist options

2020-11-05 Thread Stephen Hemminger
Replace -w / --pci-whitelist with -a / --allow options and --pci-blacklist with --block. The -b short option remains unchanged. Allow the old options for now, but print a nag warning since old options are deprecated. Signed-off-by: Stephen Hemminger Acked-by: Luca Boccassi --- lib/librte_eal/c

[dpdk-dev] [PATCH v9 6/6] doc: update release notes now for block allow changes

2020-11-05 Thread Stephen Hemminger
Remove the deprecation notice and add description to the release notes. Signed-off-by: Stephen Hemminger --- doc/guides/rel_notes/deprecation.rst | 23 --- doc/guides/rel_notes/release_20_11.rst | 11 +++ 2 files changed, 11 insertions(+), 23 deletions(-) diff --gi

[dpdk-dev] [PATCH v9 4/6] app/test: use new allowlist and blocklist

2020-11-05 Thread Stephen Hemminger
Test the renamed blocklist and allowlist arguments. Use new terms in test variable names as well. Signed-off-by: Stephen Hemminger Acked-by: Luca Boccassi --- app/test/autotest.py| 16 +-- app/test/autotest_runner.py | 18 ++--- app/test/test.c | 2 +- app/t

[dpdk-dev] [PATCH v9 5/6] doc: change references to blacklist and whitelist

2020-11-05 Thread Stephen Hemminger
There are two areas where documentation needed update. The first was use of whitelist when describing address filtering. The other is the legacy -w whitelist option for PCI which is used in many examples Signed-off-by: Stephen Hemminger Acked-by: Luca Boccassi --- doc/guides/cryptodevs/dpaa2_s

Re: [dpdk-dev] [PATCH] mbuf: fix reset on mbuf free

2020-11-05 Thread Ananyev, Konstantin
> > > > > > > > >> Hi Olivier, > > > > > > > > >> > > > > > > > > >>> m->nb_seg must be reset on mbuf free whatever the value > > of m->next, > > > > > > > > >>> because it can happen that m->nb_seg is != 1. For > > instance in this > > > > > > > > >>> case: > > > > > > > > >>> > > > > > > > > >>

[dpdk-dev] [PATCH] net/mlx5: fix info about Rx descriptors for MPRQ

2020-11-05 Thread Alexander Kozyrev
Numbers of descriptors configured is returned to a user via rxq_info_get API. This number is incorrect for MPRQ. For SPRQ this number matches the number of mbufs allocated. For MPRQ we have fewer external MPRQ buffers that can hold multiple packets in strides os this big buffer. Take that into acco

[dpdk-dev] [PATCH] net/mlx5: improve vMPRQ descriptors allocation locality

2020-11-05 Thread Alexander Kozyrev
There is a performance penalty for the replenish scheme used in vectorized Rx burst for both MPRQ and SPRQ. Mbuf elements are being filled at the end of the mbufs array and being replenished at the beginning. That leads to an increase in cache misses and the performance drop. The more Rx descriptor

Re: [dpdk-dev] [PATCH 2/2] doc: update build guide for armv8 crypto PMD

2020-11-05 Thread Ruifeng Wang
> -Original Message- > From: Dharmik Thakkar > Sent: Thursday, November 5, 2020 11:33 PM > To: Ruifeng Wang > Cc: dev@dpdk.org; nd ; Dharmik Thakkar > > Subject: [PATCH 2/2] doc: update build guide for armv8 crypto PMD > > Remove build steps about using meson option armv8_crypto_dir.

Re: [dpdk-dev] [PATCH 1/2] crypto/armv8: update meson build

2020-11-05 Thread Ruifeng Wang
> -Original Message- > From: Dharmik Thakkar > Sent: Thursday, November 5, 2020 11:33 PM > To: Ruifeng Wang ; Bruce Richardson > > Cc: dev@dpdk.org; nd ; Dharmik Thakkar > > Subject: [PATCH 1/2] crypto/armv8: update meson build > > With pkg-config support available within AArch64crypt

[dpdk-dev] [PATCH] net/txgbe: remove warning functions

2020-11-05 Thread Jiawen Wu
Remove rte_panic(), and use rte_atomic_thread_fence() instead of rte_smp_[r/w]mb. Signed-off-by: Jiawen Wu --- drivers/net/txgbe/base/txgbe_osdep.h | 2 +- drivers/net/txgbe/txgbe_rxtx.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/txgbe/base/txgbe_osd

Re: [dpdk-dev] [PATCH] net/bnxt: remove useless prefetches

2020-11-05 Thread Ajit Khaparde
On Thu, Nov 5, 2020 at 7:18 AM Lance Richardson < lance.richard...@broadcom.com> wrote: > On Wed, Nov 4, 2020 at 12:03 PM Stephen Hemminger > wrote: > > > > Prefetching only helps performance if it is done several 100 > > instructions before the actual use. The purpose of the prefetch > > is to r

[dpdk-dev] [PATCH v1] doc: update release note for large VF

2020-11-05 Thread Ting Xu
Update release note for large VF, supporting up to 256 queue pairs per VF. Signed-off-by: Ting Xu --- doc/guides/rel_notes/release_20_11.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/guides/rel_notes/release_20_11.rst b/doc/guides/rel_notes/release_20_11.rst index 57e4b13ec0..e882

Re: [dpdk-dev] [PATCH 1/3] vhost: fix error path when setting memory tables

2020-11-05 Thread Xia, Chenbo
Hi Maxime, > -Original Message- > From: Maxime Coquelin > Sent: Thursday, November 5, 2020 7:46 PM > To: dev@dpdk.org; Ding, Xuan ; > step...@networkplumber.org; Yigit, Ferruh ; > tho...@monjalon.net; Xia, Chenbo > Cc: sta...@dpdk.org; Maxime Coquelin > Subject: [PATCH 1/3] vhost: fix e

Re: [dpdk-dev] [PATCH 2/3] vhost: fix fd leak in dirty logging setup

2020-11-05 Thread Xia, Chenbo
Hi Maxime, > -Original Message- > From: Maxime Coquelin > Sent: Thursday, November 5, 2020 7:46 PM > To: dev@dpdk.org; Ding, Xuan ; > step...@networkplumber.org; Yigit, Ferruh ; > tho...@monjalon.net; Xia, Chenbo > Cc: sta...@dpdk.org; Maxime Coquelin > Subject: [PATCH 2/3] vhost: fix f

Re: [dpdk-dev] [PATCH 3/3] vhost: fix fd leak in kick setup

2020-11-05 Thread Xia, Chenbo
> -Original Message- > From: Maxime Coquelin > Sent: Thursday, November 5, 2020 7:46 PM > To: dev@dpdk.org; Ding, Xuan ; > step...@networkplumber.org; Yigit, Ferruh ; > tho...@monjalon.net; Xia, Chenbo > Cc: sta...@dpdk.org; Maxime Coquelin > Subject: [PATCH 3/3] vhost: fix fd leak in ki

Re: [dpdk-dev] [PATCH v1] net/iavf: fix reset VF doesn't notify PF to reset

2020-11-05 Thread Xing, Beilei
> -Original Message- > From: Steve Yang > Sent: Thursday, November 5, 2020 4:32 PM > To: dev@dpdk.org > Cc: Yang, Qiming ; Xing, Beilei > ; Wu, Jingjing ; Yang, SteveX > > Subject: [PATCH v1] net/iavf: fix reset VF doesn't notify PF to reset > > When VF closed, the VF should notify PF

[dpdk-dev] [PATCH] net/mlx5: fix invalid entry assert

2020-11-05 Thread Suanming Mou
The entry variable assert in the mlx5_hlist_register() function is not correct. Remove the invalid entry variable. Fixes: e69a59227db0 ("net/mlx5: support concurrent access for hash list") Signed-off-by: Suanming Mou --- drivers/net/mlx5/mlx5_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 de

[dpdk-dev] [PATCH] net/mlx5: fix shared RSS action release

2020-11-05 Thread Suanming Mou
As shared RSS action is global standalone action, the shared action should be maintained only by the shared action management functions. Currently, the shared RSS action hrxq uses the same fate action type with existed general queues, and implicitly uses the deprecate refcnt increment to indicate

[dpdk-dev] [PATCH v1] examples/vhost: fix missing args length check

2020-11-05 Thread Cheng Jiang
Add args length check before copying to fix the coverity issue. Fixes: 3a04ecb21420 ("examples/vhost: add async vhost args parsing") Coverity issue: 363741 Signed-off-by: Cheng Jiang --- examples/vhost/main.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/examples/vhost/main.c b/exam

[dpdk-dev] [PATCH v1] examples/vhost: fix string split error handling issue

2020-11-05 Thread Cheng Jiang
Add checking return value of string split function to fix the coverity issue. Fixes: 3a04ecb21420 ("examples/vhost: add async vhost args parsing") Coverity issue: 363739 Signed-off-by: Cheng Jiang --- examples/vhost/ioat.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff

[dpdk-dev] [PATCH v2 0/5] bugfix and cleanups for hns3

2020-11-05 Thread Lijun Ou
Here series include four coverity tool warnings fixes and a bug fixes. V1->V2: 1. fix some warnings by checkpatch tool. Chengchang Tang (1): net/hns3: fix queue enabling status not store after FLR Hongbo Zheng (3): net/hns3: use correct logging format symbol net/hns3: use unsigned types fo

[dpdk-dev] [PATCH v2 2/5] net/hns3: use unsigned types for bit operator

2020-11-05 Thread Lijun Ou
From: Hongbo Zheng According to bit operator reliability style, variables in the right expression participating int bit operation cannot be of unsigned type. Signed-off-by: Hongbo Zheng Signed-off-by: Lijun Ou --- drivers/net/hns3/hns3_ethdev_vf.c | 2 +- drivers/net/hns3/hns3_rxtx_vec_n

[dpdk-dev] [PATCH v2 1/5] net/hns3: use correct logging format symbol

2020-11-05 Thread Lijun Ou
From: Hongbo Zheng In current driver print log function, some print format symbols does not match with the actual variable types. Signed-off-by: Hongbo Zheng Signed-off-by: Lijun Ou --- drivers/net/hns3/hns3_dcb.c | 10 +- drivers/net/hns3/hns3_ethdev.c| 32 -

[dpdk-dev] [PATCH v2 5/5] net/hns3: fix queue enabling status not store after FLR

2020-11-05 Thread Lijun Ou
From: Chengchang Tang The FLR will resets the queue enabling status. In the current code, the queue enabling status is not restored after the reset. Therefore, if upper layer users have called queue start/stop function before the reset, the behavior after the reset is not as expected. This patch

[dpdk-dev] [PATCH v2 3/5] net/hns3: adjust some code style

2020-11-05 Thread Lijun Ou
From: Hongbo Zheng Here adjusts some code style for making the lines more compact and removes some static check tool warnings. Signed-off-by: Hongbo Zheng Signed-off-by: Lijun Ou --- V1->V2: - fix checkpatch warning --- drivers/net/hns3/hns3_cmd.c| 1 - drivers/net/hns3/hns3_ethdev.c |

[dpdk-dev] [PATCH v2 4/5] net/hns3: check PCI config space writes

2020-11-05 Thread Lijun Ou
Here adds a check for the return value when calling rte_pci_write_config. Coverity issue: 363714 Fixes: cea37e513329 ("net/hns3: fix FLR reset") Cc: sta...@dpdk.org Signed-off-by: Lijun Ou --- V1->V2: - rte_pci_wirte_config -> rte_pci_write_config --- drivers/net/hns3/hns3_ethdev_vf.c | 10

Re: [dpdk-dev] [PATCH v1] gso: add VXLAN UDP GSO support

2020-11-05 Thread Jiayu Hu
On Thu, Oct 29, 2020 at 02:47:43PM +0800, yang_y...@163.com wrote: > From: Yi Yang > > Many NICs can't offload VXLAN UFO, so it is very important > to do VXLAN UDP GSO by software to improve VM-to-VM UDP > performance, especially for the case that VM MTU is just > 1500 but not 9000. > > With thi

Re: [dpdk-dev] [PATCH v4 00/58] net: txgbe PMD

2020-11-05 Thread Honnappa Nagarahalli
> > +Cc Konstantin and Honnappa for guidance > > 05/11/2020 09:55, Jiawen Wu: > > On Thursday, November 5, 2020 9:55 AM, Jiawen Wu wrote: > > > On Thursday, November 5, 2020 1:24 AM, Ferruh Yigit wrote: > > > > On 11/3/2020 11:08 PM, Thomas Monjalon wrote: > > > > > When pulling in the main bra

[dpdk-dev] [PATCH v2] net/i40e: fix incorrect FDIR flex configuration

2020-11-05 Thread Chenxu Di
The configuration of FDIR flex mask and flex pit should not be set during flow validate. It should be set when flow create. Fixes: 6ced3dd72f5f ("net/i40e: support flexible payload parsing for FDIR") Cc: sta...@dpdk.org Signed-off-by: Chenxu Di --- v2: -Merge two patches into one patch. --- dri

Re: [dpdk-dev] [PATCH] mbuf: fix reset on mbuf free

2020-11-05 Thread Morten Brørup
> From: Ananyev, Konstantin [mailto:konstantin.anan...@intel.com] > Sent: Friday, November 6, 2020 12:55 AM > > > > > > > > > > >> Hi Olivier, > > > > > > > > > >> > > > > > > > > > >>> m->nb_seg must be reset on mbuf free whatever the > value > > > of m->next, > > > > > > > > > >>> because it can

<    1   2