[dpdk-dev] [PATCH] vhost-blk: delete the unused return value

2019-11-25 Thread Jin Yu
Coverity issue: 350592 Fixes: c19beb3f38cd ("examples/vhost_blk: introduce vhost storage sample") Cc: sta...@dpdk.org Signed-off-by: Jin Yu --- examples/vhost_blk/vhost_blk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/vhost_blk/vhost_blk.c b/examples/vhost_blk/v

[dpdk-dev] [PATCH] examples/vhost_blk: fix the TOCTOU

2019-11-25 Thread Jin Yu
Fix the time of check time of use warning in example code Coverity issue: 350589 158663 Fixes: c19beb3f38cd ("examples/vhost_blk: introduce vhost storage sample") Cc: sta...@dpdk.org Signed-off-by: Jin Yu --- examples/vhost_blk/vhost_blk.c | 9 ++--- 1 file changed, 2 insertions(+), 7 delet

[dpdk-dev] [PATCH] vhost: fix insecure temporary file

2019-11-25 Thread Jin Yu
When using mkstemp(), remember to safely set the umask before to restrict the resulting temporary file permissions to only the owner. Coverity issue: 350367 Fixes: d87f1a1cb7b6 ("vhost: support inflight info sharing") Cc: sta...@dpdk.org Signed-off-by: Jin Yu --- lib/librte_vhost/vhost_user.c |

Re: [dpdk-dev] [PATCH] net/octeontx2: error on loopback mode for VFs

2019-11-25 Thread Jerin Jacob
On Tue, Nov 26, 2019 at 4:04 PM Sunil Kumar Kori wrote: > > loopback mode is not supported for VFs so returning error if > VF is being configured with loopback mode. > > Fixes: 920717e4d8ba ("net/octeontx2: add device start operation") Cc: sta...@dpdk.org > > Signed-off-by: Sunil Kumar Kori > -

[dpdk-dev] [PATCH v4] doc: clarify virtio PMD path selection

2019-11-25 Thread Yinan
From: Wang Yinan add virtio paths selection and usage introduction for better virtio usability. Signed-off-by: Wang Yinan --- doc/guides/howto/index.rst| 1 + .../virtio_paths_selection_and_usage.rst | 142 ++ 2 files changed, 143 insertions(+) creat

Re: [dpdk-dev] [PATCH 0/7] net/mlx5: support for flow action on VLAN header

2019-11-25 Thread Hideyuki Yamashita
Hello Matan and Slava, Thanks for your quick response. How about the following? BR, Hideyuki Yamashita NTT TechnoCross > Hello Matan and Slava, > > Thanks for your quick response. > > 1. What you were saying is correct. > When I create flow with dst mac 10:22:33:44:55:66 instead of > 11:22:3

[dpdk-dev] [PATCH] net/octeontx2: error on loopback mode for VFs

2019-11-25 Thread Sunil Kumar Kori
loopback mode is not supported for VFs so returning error if VF is being configured with loopback mode. Fixes: 920717e4d8ba ("net/octeontx2: add device start operation") Signed-off-by: Sunil Kumar Kori --- drivers/net/octeontx2/otx2_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[dpdk-dev] [pull-request] next-eventdev 19.11 RC4

2019-11-25 Thread Jerin Jacob Kollanukkaran
The following changes since commit bdc993fa3dc38d6ae2d4d1480604556bc20a5522: mem: clarify documentation of virt2iova behaviour (2019-11-26 00:30:51 +0100) are available in the Git repository at: http://dpdk.org/git/next/dpdk-next-eventdev for you to fetch changes up to 292af427c47293a923679

[dpdk-dev] [PATCH] usertools: fix bind failed can not regression

2019-11-25 Thread Hui Wei
nic bind to mlx5_core, enable sriov, nic has one pf and 8 vfs, bind pf to vfio-pci failed, can not regress to mlx5_core Signed-off-by: Wei Hui --- usertools/dpdk-devbind.py | 165 ++ 1 file changed, 94 insertions(+), 71 deletions(-) diff --git a/usertools/dpd

[dpdk-dev] [PATCH v2 1/5] drivers/octeontx2: allow experimental symbols

2019-11-25 Thread Sunil Kumar Kori
Multiple experimental symbols are used. They must be allowed to avoid compilation error. Signed-off-by: Sunil Kumar Kori --- drivers/common/octeontx2/Makefile | 2 ++ drivers/common/octeontx2/meson.build | 2 ++ drivers/net/octeontx2/Makefile| 2 ++ drivers/net/octeontx2/meson.build

Re: [dpdk-dev] [PATCH] net/ifc: fix unchecked return value

2019-11-25 Thread Ye Xiaolong
On 11/26, Xiao Wang wrote: >It's possible that we fail to get the IOMMU group of ifcvf device, this >patch adds a check on the return value. > >Coverity issue: 349894 >Fixes: a3f8150eac6d ("net/ifcvf: add ifcvf vDPA driver") >Cc: sta...@dpdk.org > >Signed-off-by: Xiao Wang >--- > drivers/net/ifc/i

Re: [dpdk-dev] [PATCH v2 1/3] test/event_crypto: fix missing IV value for AES algo

2019-11-25 Thread Jerin Jacob
On Wed, Nov 20, 2019 at 10:39 PM Jerin Jacob wrote: > > On Thu, Nov 7, 2019 at 2:34 PM Hemant Agrawal wrote: > > > > The IV was not set, which was causing HW based SEC on DPAA1 > > to fail. > > > > Fixes: ce02103ad072 ("test/event_crypto: change the SEC cipher algo") > > > > Signed-off-by: Hemant

Re: [dpdk-dev] [PATCH 2/2] app/test-evnetdev: fix unchecked return value

2019-11-25 Thread Jerin Jacob
On Fri, Nov 22, 2019 at 4:23 AM wrote: > > From: Pavan Nikhilesh > > Fix unchecked return values reported by coverity. > > Coverity Issue: 336861 > Coverity Issue: 349906 > Fixes: 032a965a8f1d ("app/eventdev: support Tx adapter") > Cc: sta...@dpdk.org > > Signed-off-by: Pavan Nikhilesh Changed

Re: [dpdk-dev] [PATCH 1/2] app/test-eventdev: fix possible divide by zero

2019-11-25 Thread Jerin Jacob
On Fri, Nov 22, 2019 at 4:22 AM wrote: > > From: Pavan Nikhilesh > > Fix possible divide by zero condition when calculating percentages. > > Coverity Issue: 277205 > Coverity Issue: 277234 > Fixes: d008f20bce23 ("app/eventdev: add event timer adapter as a producer") > Cc: sta...@dpdk.org > > Sign

Re: [dpdk-dev] [PATCH 2/2] doc: fix incorrect command line arguments in l2fwd-event

2019-11-25 Thread Jerin Jacob
On Fri, Nov 22, 2019 at 3:27 AM wrote: > > From: Pavan Nikhilesh > > Fix incorrect command line argument documented for l2fwd-event. > > Bugzilla ID: 367 > Bugzilla ID: 368 > Fixes: 14d7ea259aeb ("doc: add application usage guide for l2fwd-event") > > Reported-by: Vipin Varghese > Signed-off-by:

Re: [dpdk-dev] [PATCH 1/2] examples/l2fwd-event: validate function return values

2019-11-25 Thread Jerin Jacob
On Fri, Nov 22, 2019 at 3:27 AM wrote: > > From: Pavan Nikhilesh > > Validate `rte_eth_link_get_nowait`, `rte_service_map_lcore_set` and > `rte_eth_dev_info_get` return values. > > Coverity issue: 350600 > Coverity issue: 350601 > Coverity issue: 350602 > > Signed-off-by: Pavan Nikhilesh Applie

Re: [dpdk-dev] [PATCH v3] doc: clarify virtio PMD path selection

2019-11-25 Thread Tiwei Bie
Hi Yinan, Thanks for the work! Will take a closer look ASAP. Please see some quick comments inline. On Tue, Nov 26, 2019 at 05:42:38AM -0500, Yinan wrote: > From: Wang Yinan > > add virtio paths selection and usage introduction for better > virtio usability. > > Signed-off-by: Wang Yinan >

[dpdk-dev] [PATCH] net/ifc: fix unchecked return value

2019-11-25 Thread Xiao Wang
It's possible that we fail to get the IOMMU group of ifcvf device, this patch adds a check on the return value. Coverity issue: 349894 Fixes: a3f8150eac6d ("net/ifcvf: add ifcvf vDPA driver") Cc: sta...@dpdk.org Signed-off-by: Xiao Wang --- drivers/net/ifc/ifcvf_vdpa.c | 8 ++-- 1 file chan

Re: [dpdk-dev] [PATCH] net/e1000: fix link status

2019-11-25 Thread Ye Xiaolong
On 11/26, Lu, Wenzhuo wrote: >Hi, > >> -Original Message- >> From: Cui, LunyuanX >> Sent: Wednesday, November 13, 2019 8:47 PM >> To: dev@dpdk.org >> Cc: Lu, Wenzhuo ; Yang, Qiming >> ; Cui, LunyuanX ; >> sta...@dpdk.org >> Subject: [PATCH] net/e1000: fix link status >> >> The link status

[dpdk-dev] [PATCH v4] hash: added a new API to hash to query key id

2019-11-25 Thread Kumar Amber
Adding new API function to query the maximum key ID that could possibly be returned by rte_hash_add_key and rte_hash_add_key_with_hash. When RTE_HASH_EXTRA_FLAGS_MULTI_WRITER_ADD is set, the maximum key id is larger than the entry count specified by the user. Signed-off-by: Kumar Amber --- lib/l

Re: [dpdk-dev] [PATCH] net/e1000: fix link status

2019-11-25 Thread Lu, Wenzhuo
Hi, > -Original Message- > From: Cui, LunyuanX > Sent: Wednesday, November 13, 2019 8:47 PM > To: dev@dpdk.org > Cc: Lu, Wenzhuo ; Yang, Qiming > ; Cui, LunyuanX ; > sta...@dpdk.org > Subject: [PATCH] net/e1000: fix link status > > The link status got from link status register was not cor

Re: [dpdk-dev] [PATCH v3] doc: clarify virtio PMD path selection

2019-11-25 Thread Ye Xiaolong
Hi, yinan Minor nit, please use '--in-reply-to' when using git-send-email, it helps tracking all history about this patch together. Thanks, Xiaolong On 11/26, Yinan wrote: >From: Wang Yinan > >add virtio paths selection and usage introduction for better >virtio usability. > >Signed-off-by: Wan

Re: [dpdk-dev] [PATCH v4] net/ixgbe: fix link status

2019-11-25 Thread Ye Xiaolong
On 11/26, Lu, Wenzhuo wrote: >Hi, > > >> -Original Message- >> From: Cui, LunyuanX >> Sent: Monday, November 18, 2019 11:38 PM >> To: dev@dpdk.org >> Cc: Lu, Wenzhuo ; Cui, LunyuanX >> ; sta...@dpdk.org >> Subject: [PATCH v4] net/ixgbe: fix link status >> >> The link status for 82599eb got

Re: [dpdk-dev] [PATCH v4] net/e1000: fix link status update

2019-11-25 Thread Ye Xiaolong
On 11/20, Lunyuan Cui wrote: >There is no need to judge the original link state, >only update the data according to the current link state. >It can maintain better robustness. > >In addition, this patch change the variable >from link_check to link_up. > >Fixes: 80ba61115e77 ("net/e1000: use link st

Re: [dpdk-dev] [PATCH v4] net/ixgbe: fix link status

2019-11-25 Thread Lu, Wenzhuo
Hi, > -Original Message- > From: Cui, LunyuanX > Sent: Monday, November 18, 2019 11:38 PM > To: dev@dpdk.org > Cc: Lu, Wenzhuo ; Cui, LunyuanX > ; sta...@dpdk.org > Subject: [PATCH v4] net/ixgbe: fix link status > > The link status for 82599eb got from link status register was not correc

Re: [dpdk-dev] [PATCH] net/e1000: fix link status update

2019-11-25 Thread Lu, Wenzhuo
Hi, > -Original Message- > From: Cui, LunyuanX > Sent: Thursday, November 14, 2019 1:33 AM > To: dev@dpdk.org > Cc: Lu, Wenzhuo ; Yang, Qiming > ; Cui, LunyuanX ; > sta...@dpdk.org > Subject: [PATCH] net/e1000: fix link status update > > Unassigned variable should not be used as judgment,

[dpdk-dev] [PATCH v3] doc: clarify virtio PMD path selection

2019-11-25 Thread Yinan
From: Wang Yinan add virtio paths selection and usage introduction for better virtio usability. Signed-off-by: Wang Yinan --- doc/guides/howto/index.rst| 1 + .../virtio_paths_selection_and_usage.rst | 142 ++ 2 files changed, 143 insertions(+) creat

Re: [dpdk-dev] [PATCH] mk: add EXTRA_CFLAGS to link step for shared library

2019-11-25 Thread Stephen Hemminger
On Mon, 25 Nov 2019 23:56:00 +0100 Thomas Monjalon wrote: > 05/11/2019 02:56, Stephen Hemminger: > > When doing a cross compiling it is common to use EXTRA_CFLAGS with > > --sysroot option to point to alternate root filesystem. This already > > works as expected for objects and executables, it ju

Re: [dpdk-dev] [PATCH] mem: clarify documentation for rte_mem_virt2iova

2019-11-25 Thread Thomas Monjalon
18/11/2019 14:14, Olivier Matz: > On Thu, Nov 14, 2019 at 02:13:06PM +, Anatoly Burakov wrote: > > It may not be immediately clear that rte_mem_virt2iova does not actually > > check the internal memseg table, and will instead either return VA (in > > IOVA as VA mode), or will fall back to kerne

Re: [dpdk-dev] [PATCH v1] lib/power: fix incorrect parameter to strerror

2019-11-25 Thread Thomas Monjalon
25/11/2019 16:00, David Hunt: > Should be passing errno rather than ret, which could be negative. > > Coverity issue: 350362 > Fixes: 9dc843eb273b ("power: extend guest channel API for reading") > Cc: sta...@dpdk.org > > Signed-off-by: David Hunt Applied, thanks

Re: [dpdk-dev] [PATCH] malloc: fix memory element size in case of padding

2019-11-25 Thread Thomas Monjalon
21/11/2019 16:14, Burakov, Anatoly: > On 21-Nov-19 2:25 PM, Xueming Li wrote: > > This patch fixes wrong inner memory element size when joining two > > elements. > > > > Fixes: af75078fece3 ("first public release") > > Cc: sta...@dpdk.org > > > > Signed-off-by: Xueming Li > > --- > > --- a/lib/l

Re: [dpdk-dev] [PATCH] lib/hash: remove unnecessary locks in lock-free

2019-11-25 Thread Thomas Monjalon
25/11/2019 23:55, Dharmik Thakkar: > > > On Nov 25, 2019, at 4:44 PM, Thomas Monjalon wrote: > > > > 25/11/2019 23:02, Wang, Yipeng1: > >> From: Thomas Monjalon [mailto:tho...@monjalon.net] > >>> 25/11/2019 19:49, Wang, Yipeng1: > From: Dharmik Thakkar [mailto:dharmik.thak...@arm.com] >

Re: [dpdk-dev] [PATCH] remove blank lines at end of file

2019-11-25 Thread Thomas Monjalon
11/11/2019 20:50, Stephen Hemminger: > Remove trailing blank lines. They serve no purpose and are just > editor leftovers. > These can cause git to complain about whitespace errors during merges. > > Signed-off-by: Stephen Hemminger I rebased and added few new occurences, plus some doc ones. Ap

Re: [dpdk-dev] [PATCH] mk: add EXTRA_CFLAGS to link step for shared library

2019-11-25 Thread Thomas Monjalon
05/11/2019 02:56, Stephen Hemminger: > When doing a cross compiling it is common to use EXTRA_CFLAGS with > --sysroot option to point to alternate root filesystem. This already > works as expected for objects and executables, it just doesn't work > correctly for shared libraries. > > When a shared

Re: [dpdk-dev] [PATCH] lib/hash: remove unnecessary locks in lock-free

2019-11-25 Thread Dharmik Thakkar
> On Nov 25, 2019, at 4:44 PM, Thomas Monjalon wrote: > > 25/11/2019 23:02, Wang, Yipeng1: >> From: Thomas Monjalon [mailto:tho...@monjalon.net] >>> 25/11/2019 19:49, Wang, Yipeng1: From: Dharmik Thakkar [mailto:dharmik.thak...@arm.com] > > Remove __hash_rw_reader_unlock() calls fro

Re: [dpdk-dev] [PATCH v3] hash: added a new API to hash to query key id

2019-11-25 Thread Aaron Conole
Aaron Conole writes: > Thomas Monjalon writes: > >>> From: Aaron Conole >>> > - if (!service_valid(id)) >>> > + if (id >= RTE_SERVICE_NUM_MAX || !service_valid(id)) >> >> Why not adding this check in service_valid()? > > I think the best fix is to use SERVICE_VALID_GET_OR_ERR_RET() in these > p

Re: [dpdk-dev] [PATCH v7 0/2] examples/client_server_mp: port id (fixes only)

2019-11-25 Thread Thomas Monjalon
07/08/2019 07:40, Matan Azrad: > > Acked-by: Matan Azrad > > From: Stephen Hemminger > > Sent: Monday, August 5, 2019 7:38 PM > > > > v7 - widen port mask to allow 64 ports > > > > v6 - just include fixes; cleanups can wait until 19.11 > > > > v5 - change logic in server_mp for evaluating po

Re: [dpdk-dev] [PATCH] lib/hash: remove unnecessary locks in lock-free

2019-11-25 Thread Thomas Monjalon
25/11/2019 23:02, Wang, Yipeng1: > From: Thomas Monjalon [mailto:tho...@monjalon.net] > >25/11/2019 19:49, Wang, Yipeng1: > >> From: Dharmik Thakkar [mailto:dharmik.thak...@arm.com] > >> > > >> >Remove __hash_rw_reader_unlock() calls from lock free hash lookup > >> > > >> >Signed-off-by: Dharmik Th

Re: [dpdk-dev] [dpdk-stable] [PATCH v4] test/rcu: fix build for small number of cores

2019-11-25 Thread Thomas Monjalon
25/11/2019 04:36, Gavin Hu: > If the RTE_MAX_LCORE is less than 10, a compilation error is generated: > app/test/test_rcu_qsbr.c:234:10: error: comparison of integer > expressions of different signedness: ‘unsigned int’ and ‘int’ > [-Werror=sign-compare] > > The cause is (RTE_MAX_LCORE - 10) resul

Re: [dpdk-dev] [PATCH] fix lacp check system address

2019-11-25 Thread Stephen Hemminger
On Mon, 25 Nov 2019 16:13:26 +0300 Vadim wrote: > + MODE4_DEBUG("prefered partner system > %02x:%02x:%02x:%02x:%02x:%02x " > + "not equal self system: > %02x:%02x:%02x:%02x:%02x:%02x\n", > + partner->port_params.system.addr_byt

Re: [dpdk-dev] [PATCH v2] mk: remove library search path from binary

2019-11-25 Thread Thomas Monjalon
22/11/2019 12:30, Ferruh Yigit: > This patch functionally reverts the patch in fixes line to not have any > hardcoded library path in the final binary for the security reasons, in > case this binary distributed to production environment. > > RPATH only added in RTE_DEVEL_BUILD case and this binary

Re: [dpdk-dev] [PATCH] lib/hash: remove unnecessary locks in lock-free

2019-11-25 Thread Wang, Yipeng1
>-Original Message- >From: Thomas Monjalon [mailto:tho...@monjalon.net] >Sent: Monday, November 25, 2019 1:55 PM >To: Wang, Yipeng1 ; Dharmik Thakkar > >Cc: dev@dpdk.org; Gobriel, Sameh ; Richardson, Bruce >; >honnappa.nagaraha...@arm.com >Subject: Re: [dpdk-dev] [PATCH] lib/hash: remove

Re: [dpdk-dev] [PATCH] pktgen: Fix IPv6 addressing for set/sequence/save commands, packet headers, UI printing

2019-11-25 Thread Wiles, Keith
> On Nov 25, 2019, at 3:46 PM, Frank Li wrote: > > Current IPv6 functionality in pktgen is broken. This fix makes it so that > IPv6 addresses are properly set when using the set, sequence, and save > commands and that the IP header and UDP/TCP psuedo-header IPV6 addresses > are properly set. >

Re: [dpdk-dev] [PATCH] lib/hash: remove unnecessary locks in lock-free

2019-11-25 Thread Thomas Monjalon
25/11/2019 19:49, Wang, Yipeng1: > >-Original Message- > >From: Dharmik Thakkar [mailto:dharmik.thak...@arm.com] > >Sent: Thursday, November 21, 2019 10:18 AM > >To: Wang, Yipeng1 ; Gobriel, Sameh > >; Richardson, Bruce > > > >Cc: dev@dpdk.org; honnappa.nagaraha...@arm.com; Dharmik Thakkar

[dpdk-dev] [PATCH] pktgen: Fix IPv6 addressing for set/sequence/save commands, packet headers, UI printing

2019-11-25 Thread Frank Li
Current IPv6 functionality in pktgen is broken. This fix makes it so that IPv6 addresses are properly set when using the set, sequence, and save commands and that the IP header and UDP/TCP psuedo-header IPV6 addresses are properly set. To preserve the runtime commands, the `_atoip` function no lon

Re: [dpdk-dev] [PATCH v4] mbuf: extend pktmbuf pool private structure

2019-11-25 Thread Thomas Monjalon
25/11/2019 11:27, Olivier Matz: > On Mon, Nov 25, 2019 at 10:21:32AM +, Shahaf Shuler wrote: > > With the API and ABI freeze ahead, it will be good to reserve > > some bits on the private structure for future use. > > > > Otherwise we will potentially need to maintain two different > > private

Re: [dpdk-dev] [PATCH V1] doc: add tested Intel platforms with Intel NICs

2019-11-25 Thread Mcnamara, John
> -Original Message- > From: dev On Behalf Of Chen, Zhaoyan > Sent: Friday, November 22, 2019 2:13 AM > To: dev@dpdk.org > Cc: Li, WenjieX A > Subject: [dpdk-dev] [PATCH V1] doc: add tested Intel platforms with Intel > NICs > > From: Wenjie Li > > Add tested Intel platforms with Int

Re: [dpdk-dev] [PATCH v3] hash: added a new API to hash to query key id

2019-11-25 Thread Wang, Yipeng1
Hi, Amber, Thanks for the patch! A bit comment inlined: >-Original Message- >From: Amber, Kumar >Sent: Monday, November 25, 2019 3:08 AM >To: dev@dpdk.org >Cc: Wang, Yipeng1 >Subject: [PATCH v3] hash: added a new API to hash to query key id > >Adding new API function to query the maximum

Re: [dpdk-dev] [PATCH] MAINTAINERS: resign from NFP PMD maintainer

2019-11-25 Thread Thomas Monjalon
13/11/2019 14:05, Alejandro Lucero: > On Wed, Nov 13, 2019 at 12:55 PM Ferruh Yigit > wrote: > > On 11/13/2019 12:47 PM, Alejandro Lucero wrote: > > > I'm leaving Netronome and will not work with the NFP anymore. [...] > > > --- a/MAINTAINERS > > > +++ b/MAINTAINERS > > > Netronome nfp > > > -M:

Re: [dpdk-dev] [PATCH] lib/hash: remove unnecessary locks in lock-free

2019-11-25 Thread Wang, Yipeng1
>-Original Message- >From: Dharmik Thakkar [mailto:dharmik.thak...@arm.com] >Sent: Thursday, November 21, 2019 10:18 AM >To: Wang, Yipeng1 ; Gobriel, Sameh >; Richardson, Bruce > >Cc: dev@dpdk.org; honnappa.nagaraha...@arm.com; Dharmik Thakkar > >Subject: [PATCH] lib/hash: remove unnecess

Re: [dpdk-dev] [PATCH v3] hash: added a new API to hash to query key id

2019-11-25 Thread Aaron Conole
Thomas Monjalon writes: >> From: Aaron Conole >> > - if (!service_valid(id)) >> > + if (id >= RTE_SERVICE_NUM_MAX || !service_valid(id)) > > Why not adding this check in service_valid()? I think the best fix is to use SERVICE_VALID_GET_OR_ERR_RET() in these places. For this, I at least want

[dpdk-dev] [PATCH] add drop statistic for af_packet

2019-11-25 Thread Vadim
--- drivers/net/af_packet/rte_eth_af_packet.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/net/af_packet/rte_eth_af_packet.c b/drivers/net/af_packet/rte_eth_af_packet.c index f5806bf42..eb1902170 100644 --- a/drivers/net/af_packet/rte_eth_af_packet.c +++

[dpdk-dev] [PATCH] fix lacp check system address

2019-11-25 Thread Vadim
From: podovinnikov --- drivers/net/bonding/rte_eth_bond_8023ad.c | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/drivers/net/bonding/rte_eth_bond_8023ad.c b/drivers/net/bonding/rte_eth_bond_8023ad.c index b77a37ddb..132ff74a1 100644 --- a/drivers/net/b

Re: [dpdk-dev] [PATCH v3] hash: added a new API to hash to query key id

2019-11-25 Thread Thomas Monjalon
> From: Aaron Conole > > - if (!service_valid(id)) > > + if (id >= RTE_SERVICE_NUM_MAX || !service_valid(id)) Why not adding this check in service_valid()?

Re: [dpdk-dev] [PATCH v3] hash: added a new API to hash to query key id

2019-11-25 Thread Van Haaren, Harry
Hey Folks, > -Original Message- > From: Aaron Conole > Sent: Monday, November 25, 2019 4:59 PM > To: Amber, Kumar > Cc: dev@dpdk.org; Wang, Yipeng1 ; Yigit, Ferruh > ; tho...@monjalon.net; Van Haaren, Harry > ; Thakur, Sham Singh > ; David Marchand > Subject: Re: [dpdk-dev] [PATCH v3] h

[dpdk-dev] [PATCH] net/netvsc: disable before changing RSS parameters

2019-11-25 Thread Stephen Hemminger
In order to change RSS parameters, the host requires that RSS is disable first. Fixes: 92d23a57cafe ("net/netvsc: support configuring RSS parameters") Cc: sta...@dpdk.org Signed-off-by: Dexuan Cui Signed-off-by: Stephen Hemminger --- drivers/net/netvsc/hn_ethdev.c | 14 ++ 1 file ch

Re: [dpdk-dev] FW: [PATCH] net/nfp: replace license text with SPDX tag

2019-11-25 Thread Ferruh Yigit
On 11/7/2019 9:13 AM, Hemant Agrawal wrote: > Alejandro, > Please ack this patch also. Unfortunately we don't have a nfp PMD maintainer as of now. If this PMD keeps holding the updates, unfortunately we need to consider removing the PMD from DPDK. > > Regards, > Hemant > >> -Original

Re: [dpdk-dev] [PATCH v3] hash: added a new API to hash to query key id

2019-11-25 Thread Aaron Conole
"Amber, Kumar" writes: > Hi all , > > I want to report random untouched unit test cases failed by Jenkins > . pls can you guys check why it is unstable ? > Every upload shows random test failed . > > http://mails.dpdk.org/archives/test-report/2019-November/109120.html I think the service core c

[dpdk-dev] [PATCH] examples/ioat: fix possible null dereference

2019-11-25 Thread Bruce Richardson
When searching for raw devices with the correct type, we check the driver name using strcmp, without first checking that the call to info get succeeded and assigned a value to that pointer. If the call to get the device info fails, we can treat it as if the device didn't match, and continue the lo

Re: [dpdk-dev] [PATCH v2 1/3] ethdev: remove deprecation notice for packet type set

2019-11-25 Thread Ferruh Yigit
On 11/19/2019 3:04 PM, Ferruh Yigit wrote: > On 11/19/2019 12:12 PM, Andrew Rybchenko wrote: >> The functionality is added, but the deprecation notice is not >> removed. >> >> Fixes: 5d4813acda2c ("ethdev: add packet type range function") >> >> Signed-off-by: Andrew Rybchenko > > Acked-by: Ferruh

Re: [dpdk-dev] [PATCH v2 2/3] ethdev: remove deprecation notice about RSS hash offload

2019-11-25 Thread Ferruh Yigit
On 11/19/2019 3:04 PM, Ferruh Yigit wrote: > On 11/19/2019 12:12 PM, Andrew Rybchenko wrote: >> The offload was added, but the deprecation notice was not removed. >> >> Fixes: 5d308972954c ("ethdev: add mbuf RSS update as an offload") >> >> Signed-off-by: Andrew Rybchenko > > Acked-by: Ferruh Yig

Re: [dpdk-dev] [PATCH] examples/ioat: handle failure case for ioat dequeue

2019-11-25 Thread Bruce Richardson
On Mon, Nov 25, 2019 at 03:23:03PM +, Bruce Richardson wrote: > On a failure with the ioat dequeue, -1 is returned, which was not properly > handled. This could lead to out-of-bounds reads on a later loop which > assumed a positive return value. Fix this by treating an error as though a > deque

Re: [dpdk-dev] Build with coverage fail on rte_flow_dynf_metadata_offs is not flagged as experimental

2019-11-25 Thread David Marchand
On Sun, Nov 24, 2019 at 9:18 PM David Marchand wrote: > - I don't think variables were considered in the rte_experimental > framework: seeing the __rte_experimental macro, I doubt it would work > for variables to be put in .text. > Do we need a different marker for those? or did I miss something e

[dpdk-dev] [RFC PATCH] mark experimental variables

2019-11-25 Thread David Marchand
So far, we did not pay attention to direct access to variables but they are part of the API/ABI too and should be clearly identified. Introduce a __rte_experimental_var tag and mark existing variables. Fixes: a4bcd61de82d ("buildtools: add script to check experimental API exports") Cc: sta...@dpd

Re: [dpdk-dev] [PATCH] net/hns3: fix checking enough Tx BDs

2019-11-25 Thread Ferruh Yigit
On 11/25/2019 9:00 AM, Wei Hu (Xavier) wrote: > From: "Wei Hu (Xavier)" > > In .tx_pkt_burst ops implementation function of hns3 PMD driver, > there is one check whether there are enough BDs in the TX queue. > If not, driver will stop sending the packets. > > Currently in the 'for' process loop,

Re: [dpdk-dev] [PATCH] net/octeontx2: fix ptype parsing disabled by default

2019-11-25 Thread Ferruh Yigit
On 11/25/2019 3:55 PM, Pavan Nikhilesh Bhagavatula wrote: > Hi Ferruh, > >> -Original Message- >> From: dev On Behalf Of Ferruh Yigit >> Sent: Monday, November 25, 2019 7:32 PM >> To: Jerin Jacob ; Pavan Nikhilesh Bhagavatula >> >> Cc: Jerin Jacob Kollanukkaran ; Nithin Kumar >> Dabilpur

Re: [dpdk-dev] [PATCH v3] hash: added a new API to hash to query key id

2019-11-25 Thread Aaron Conole
"Amber, Kumar" writes: > Hi all , > > I want to report random untouched unit test cases failed by Jenkins > . pls can you guys check why it is unstable ? > Every upload shows random test failed . I'll work on the service_autotest patch. > http://mails.dpdk.org/archives/test-report/2019-November

Re: [dpdk-dev] [PATCH] net/hns3: fix checking enough Tx BDs

2019-11-25 Thread Ferruh Yigit
On 11/25/2019 9:00 AM, Wei Hu (Xavier) wrote: > From: "Wei Hu (Xavier)" > > In .tx_pkt_burst ops implementation function of hns3 PMD driver, > there is one check whether there are enough BDs in the TX queue. Out of curiosity, is BD refers to "buffer descriptor"? What is the difference between Tx

Re: [dpdk-dev] [PATCH] net/octeontx2: fix ptype parsing disabled by default

2019-11-25 Thread Pavan Nikhilesh Bhagavatula
Hi Ferruh, >-Original Message- >From: dev On Behalf Of Ferruh Yigit >Sent: Monday, November 25, 2019 7:32 PM >To: Jerin Jacob ; Pavan Nikhilesh Bhagavatula > >Cc: Jerin Jacob Kollanukkaran ; Nithin Kumar >Dabilpuram ; Kiran Kumar Kokkilagadda >; dpdk-dev >Subject: Re: [dpdk-dev] [PATCH]

[dpdk-dev] [PATCH v2] doc: clarify virtio PMD path selection

2019-11-25 Thread Yinan
From: Wang Yinan add virtio paths selection and usage introduction for better virtio usability. Signed-off-by: Wang Yinan --- .../virtio_paths_selection_and_usage.rst | 142 ++ 1 file changed, 142 insertions(+) create mode 100644 doc/guides/howto/virtio_paths_selection_an

Re: [dpdk-dev] [PATCH v3] hash: added a new API to hash to query key id

2019-11-25 Thread Amber, Kumar
Hi all , I want to report random untouched unit test cases failed by Jenkins . pls can you guys check why it is unstable ? Every upload shows random test failed . http://mails.dpdk.org/archives/test-report/2019-November/109120.html Regards Amber -Original Message- From: dev On Beha

Re: [dpdk-dev] [PATCH] doc: clarify virtio PMD path selection

2019-11-25 Thread Wang, Yinan
Thanks your suggestion, I will add the link in v2 version. > -Original Message- > From: Stephen Hemminger > Sent: 2019年11月18日 10:24 > To: Wang, Yinan > Cc: dev@dpdk.org; maxime.coque...@redhat.com; Bie, Tiwei > ; Wang, Zhihong ; > Mcnamara, John ; Kovacevic, Marko > > Subject: Re: [dpdk

[dpdk-dev] [PATCH] examples/ioat: handle error when querying number of stats

2019-11-25 Thread Bruce Richardson
To get the amount of memory needed for stats, we call the xstats_get_names function with a NULL parameter, which can return -1 on error. This negative value was not previously handled correctly, so we adjust things to quit the stats printing routine if this basic call fails. Coverity issue: 350346

Re: [dpdk-dev] [PATCH v2] doc: update qede PMD guide

2019-11-25 Thread Ferruh Yigit
On 11/22/2019 11:31 PM, Rasesh Mody wrote: > - Add note for sharing an adapter between DPDK and Linux drivers. > - Update the firmware version in example. > - Add Config note for potential error due to lack of memzone desciptor >count. > > Signed-off-by: Rasesh Mody Applied to dpdk-next-n

[dpdk-dev] [PATCH] examples/ioat: handle failure case for ioat dequeue

2019-11-25 Thread Bruce Richardson
On a failure with the ioat dequeue, -1 is returned, which was not properly handled. This could lead to out-of-bounds reads on a later loop which assumed a positive return value. Fix this by treating an error as though a dequeue of 0 had been encountered. Coverity issue: 350342 Fixes: 2328542ed84e

Re: [dpdk-dev] [PATCH v2 2/8] doc: add building with meson to linux GSG

2019-11-25 Thread Burakov, Anatoly
On 25-Nov-19 2:55 PM, Bruce Richardson wrote: Add instructions on building DPDK and using the pkg-config file to the linux GSG. Signed-off-by: Bruce Richardson --- Acked-by: Anatoly Burakov -- Thanks, Anatoly

[dpdk-dev] [PATCH v1] lib/power: fix incorrect parameter to strerror

2019-11-25 Thread David Hunt
Should be passing errno rather than ret, which could be negative. Coverity issue: 350362 Fixes: 9dc843eb273b ("power: extend guest channel API for reading") Cc: sta...@dpdk.org Signed-off-by: David Hunt --- lib/librte_power/guest_channel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[dpdk-dev] [PATCH v2 5/8] doc: update examples output in FreeBSD GSG

2019-11-25 Thread Bruce Richardson
The output of running the helloworld example on FreeBSD was a little out-of-date and can be shortened by using the latest version of DPDK. Update appropriately. Signed-off-by: Bruce Richardson --- doc/guides/freebsd_gsg/install_from_ports.rst | 56 --- 1 file changed, 22 insertio

[dpdk-dev] [PATCH v2 8/8] doc: drop EAL command-line reference from FreeBSD GSG

2019-11-25 Thread Bruce Richardson
The EAL command-line reference section duplicated material covered in a previous chapter, was out of date, and generally is unnecessary as options are best queried directly by passing "--help" to a DPDK binary. Therefore we can drop this section to avoid having to try and keep it up-to-date in the

[dpdk-dev] [PATCH v2 3/8] doc: reorder meson and make build instructions for arm

2019-11-25 Thread Bruce Richardson
Since the meson instructions are the simpler of the two sets, and also the ones most future-proof, put those first in the user documentation with make instructions following them. Signed-off-by: Bruce Richardson Acked-by: Gavin Hu --- .../linux_gsg/cross_build_dpdk_for_arm64.rst | 32 +

[dpdk-dev] [PATCH v2 6/8] doc: add meson install instructions for FreeBSD

2019-11-25 Thread Bruce Richardson
Update the FreeBSD GSG doc with instructions for installing using meson and ninja rather than make. Signed-off-by: Bruce Richardson --- doc/guides/freebsd_gsg/build_dpdk.rst | 164 +++--- 1 file changed, 40 insertions(+), 124 deletions(-) diff --git a/doc/guides/freebsd_gsg/

[dpdk-dev] [PATCH v2 7/8] doc: update documentation on build and running FreeBSD apps

2019-11-25 Thread Bruce Richardson
Update the documentation on building and running apps on FreeBSD, taking account of having used meson for building. We can also update the section on the command-line parameters, rather than claiming to be a complete list of parameters, it should describe how to get the complete list and only cover

[dpdk-dev] [PATCH v2 4/8] doc: remove reference to old versions of FreeBSD

2019-11-25 Thread Bruce Richardson
FreeBSD 10 is now EOL and all testing with DPDK takes place on BSD versions 11 and 12, so we can just remove the note. The BSD ports are supported on all non-EOL versions of BSD. Signed-off-by: Bruce Richardson --- doc/guides/freebsd_gsg/install_from_ports.rst | 6 -- 1 file changed, 6 delet

[dpdk-dev] [PATCH v2 1/8] doc: update Linux GSG system requirements section

2019-11-25 Thread Bruce Richardson
Update the system requirements section of the doc to cover builds with meson and ninja. This involves updating the package dependencies to include meson, ninja and python 3.5, and also updating the optional dependencies section to explain that the components are enabled/disabled automatically by me

[dpdk-dev] [PATCH v2 0/8] GSG Documentation updates

2019-11-25 Thread Bruce Richardson
This patchset includes documentation updates for both the Linux and FreeBSD Getting Started Guide Docs. The majority of changes are to add information on building using meson and ninja, with some additional cleanups being performed at the same time. V2: Updated patch 2 following feedback from Anat

[dpdk-dev] [PATCH v2 2/8] doc: add building with meson to linux GSG

2019-11-25 Thread Bruce Richardson
Add instructions on building DPDK and using the pkg-config file to the linux GSG. Signed-off-by: Bruce Richardson --- V2: Changes following Anatoly's review: * minor grammar fix * added ldconfig call to instructions and note about needing to add /usr/local/lib* to loader paths on RHEL/Fedora *

Re: [dpdk-dev] [PATCH 2/8] doc: add building with meson to linux GSG

2019-11-25 Thread Richardson, Bruce
> >>> +.. code-block:: makefile > >>> + > >>> +PKGCONF = pkg-config > >>> + > >>> +CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) > >>> +LDFLAGS += $(shell $(PKGCONF) --libs libdpdk) > >>> + > >>> +$(APP): $(SRCS-y) Makefile > >>> +$(CC) $(CFLAGS)

Re: [dpdk-dev] [PATCH 2/8] doc: add building with meson to linux GSG

2019-11-25 Thread Richardson, Bruce
> -Original Message- > From: Burakov, Anatoly > Sent: Monday, November 25, 2019 1:23 PM > To: Richardson, Bruce ; Mcnamara, John > > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH 2/8] doc: add building with meson to linux > GSG > > On 22-Nov-19 4:03 PM, Bruce Richardson wrote: > >

Re: [dpdk-dev] [PATCH v4 2/4] eal: fix IOVA mode selection as VA for PCI drivers

2019-11-25 Thread Thomas Monjalon
25/11/2019 13:58, Burakov, Anatoly: > On 25-Nov-19 12:36 PM, David Marchand wrote: > > On Mon, Nov 25, 2019 at 1:03 PM Ferruh Yigit wrote: > I would like to get your comment on the issue. > > For the OvS mode, hopefully binding the device to 'vfio-pci' > can be a solution, but

Re: [dpdk-dev] [PATCH v3 16/19] net/mlx5: add meta data support to Rx datapath

2019-11-25 Thread David Marchand
On Thu, Nov 7, 2019 at 6:13 PM Viacheslav Ovsiienko wrote: > @@ -1011,7 +1010,29 @@ > pkts[pos + 3]->timestamp = > rte_be_to_cpu_64(cq[pos + p3].timestamp); > } > - > + if (rte_flow_dynf_metadata_avail()) { > +

Re: [dpdk-dev] [PATCH] build: fix windows build failure for 19.11

2019-11-25 Thread David Marchand
Confirmed author with Bruce offlist. Applied with commitlog proposed by Bruce: While most windows apps can handle both "\" and "/" as path separators, "more" is treating the "/" as the start of a command-line flag in this case, causing errors. Fixes: cba806e07d6f ("build: change ABI versioning t

Re: [dpdk-dev] [PATCH] net/octeontx2: fix ptype parsing disabled by default

2019-11-25 Thread Ferruh Yigit
On 11/25/2019 1:00 PM, Jerin Jacob wrote: On Sat, Nov 23, 2019 at 5:58 PM wrote: From: Pavan Nikhilesh Enable Ptype parsing by default, only disable when `rte_eth_dev_set_ptypes` is called with ptype_mask as 0. This would enable applications that are dependent on packet type parsing like l3f

Re: [dpdk-dev] [PATCH] build: fix windows build failure for 19.11

2019-11-25 Thread David Marchand
On Mon, Nov 25, 2019 at 2:06 PM Burakov, Anatoly wrote: > > On 23-Nov-19 2:59 AM, Pallavi Kadam wrote: > > This patch fixes Windows build failure caused due to > > 'config: change ABI versioning to global' patch. > > This patch can be merged in 19.11 release. > > > > Signed-off-by: Bruce Richardso

Re: [dpdk-dev] [PATCH 2/8] doc: add building with meson to linux GSG

2019-11-25 Thread Burakov, Anatoly
On 25-Nov-19 1:27 PM, Bruce Richardson wrote: On Mon, Nov 25, 2019 at 01:19:13PM +, Burakov, Anatoly wrote: On 22-Nov-19 4:03 PM, Bruce Richardson wrote: Add instructions on building DPDK and using the pkg-config file to the linux GSG. Signed-off-by: Bruce Richardson --- doc/guides/lin

Re: [dpdk-dev] [PATCH 2/8] doc: add building with meson to linux GSG

2019-11-25 Thread Bruce Richardson
On Mon, Nov 25, 2019 at 01:19:13PM +, Burakov, Anatoly wrote: > On 22-Nov-19 4:03 PM, Bruce Richardson wrote: > > Add instructions on building DPDK and using the pkg-config file to the > > linux GSG. > > > > Signed-off-by: Bruce Richardson > > --- > > doc/guides/linux_gsg/build_dpdk.rst | 9

Re: [dpdk-dev] [PATCH 1/2] buildtools: fix experimental symbols listing

2019-11-25 Thread Neil Horman
On Mon, Nov 25, 2019 at 09:10:06AM +0100, David Marchand wrote: > The map-list-symbol.sh script displays the filename, section and symbol > names of map files. > > Example: > $ buildtools/map-list-symbol.sh -S EXPERIMENTAL \ > lib/librte_ethdev/rte_ethdev_version.map |grep rte_mtr_create > lib

Re: [dpdk-dev] [PATCH 2/8] doc: add building with meson to linux GSG

2019-11-25 Thread Burakov, Anatoly
On 22-Nov-19 4:03 PM, Bruce Richardson wrote: Add instructions on building DPDK and using the pkg-config file to the linux GSG. Signed-off-by: Bruce Richardson --- + +Building Applications Using Installed DPDK +~~ + +When installed system-wide, DPDK

Re: [dpdk-dev] [PATCH 2/8] doc: add building with meson to linux GSG

2019-11-25 Thread Burakov, Anatoly
On 22-Nov-19 4:03 PM, Bruce Richardson wrote: Add instructions on building DPDK and using the pkg-config file to the linux GSG. Signed-off-by: Bruce Richardson --- doc/guides/linux_gsg/build_dpdk.rst | 94 +++-- 1 file changed, 90 insertions(+), 4 deletions(-) diff -

Re: [dpdk-dev] [PATCH] build: fix windows build failure for 19.11

2019-11-25 Thread Burakov, Anatoly
On 23-Nov-19 2:59 AM, Pallavi Kadam wrote: This patch fixes Windows build failure caused due to 'config: change ABI versioning to global' patch. This patch can be merged in 19.11 release. Signed-off-by: Bruce Richardson Reviewed-by: Ranjit Menon Tested-by: Pallavi Kadam --- Missing Fixes: t

Re: [dpdk-dev] [PATCH] net/octeontx2: fix ptype parsing disabled by default

2019-11-25 Thread Jerin Jacob
On Sat, Nov 23, 2019 at 5:58 PM wrote: > > From: Pavan Nikhilesh > > Enable Ptype parsing by default, only disable when `rte_eth_dev_set_ptypes` > is called with ptype_mask as 0. > This would enable applications that are dependent on packet type parsing > like l3fwd. > > Fixes: d2706e15e6fb ("net

  1   2   >