[dpdk-dev] [PATCH v8 1/3] eal/arm64: add 128-bit atomic compare exchange

2019-07-23 Thread jerinj
From: Phil Yang Add 128-bit atomic compare exchange on aarch64. Suggested-by: Jerin Jacob Signed-off-by: Phil Yang Reviewed-by: Honnappa Nagarahalli Tested-by: Honnappa Nagarahalli Acked-by: Jerin Jacob --- v8: Fixed "WARNING:LONG_LINE: line over 80 characters" warnings with latest kernel

[dpdk-dev] [PATCH v8 2/3] test/atomic: add 128b compare and swap test

2019-07-23 Thread jerinj
From: Phil Yang Add 128b atomic compare and swap test for aarch64 and x86_64. Signed-off-by: Phil Yang Reviewed-by: Honnappa Nagarahalli Acked-by: Gage Eads Acked-by: Jerin Jacob Tested-by: Jerin Jacob --- app/test/test_atomic.c | 125 - 1 file chang

[dpdk-dev] [PATCH v8 3/3] eal/stack: enable lock-free stack for aarch64

2019-07-23 Thread jerinj
From: Phil Yang Enable both c11 atomic and non c11 atomic lock-free stack for aarch64. Introduced a new header to reduce the ifdef clutter across generic and c11 files. The rte_stack_lf_stubs.h contains stub implementations of __rte_stack_lf_count, __rte_stack_lf_push_elems and __rte_stack_lf_po

Re: [dpdk-dev] [PATCH 1/2] net/i40e: fix ether pattern rule for fdir

2019-07-23 Thread Zhang, Qi Z
> -Original Message- > From: Xing, Beilei > Sent: Tuesday, July 23, 2019 1:28 PM > To: Ye, Xiaolong ; Yigit, Ferruh > ; Zhang, Qi Z > Cc: dev@dpdk.org; sta...@dpdk.org > Subject: RE: [PATCH 1/2] net/i40e: fix ether pattern rule for fdir > > > > > -Original Message- > > From:

Re: [dpdk-dev] [EXT] [PATCH v6 1/3] eal/arm64: add 128-bit atomic compare exchange

2019-07-23 Thread Jerin Jacob Kollanukkaran
> > > > [master]dell[dpdk.org] $ ./devtools/checkpatches.sh > > Yes. I did this check before upstream this patch. > I ignored ' WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow > control statements should be avoided ' warnings. > However, I didn't see any LONG_LINE warnings in the CI report here.

Re: [dpdk-dev] [PATCH 2/2] net/i40e: fix fdir rule destroy failure

2019-07-23 Thread Xing, Beilei
> -Original Message- > From: Ye, Xiaolong > Sent: Monday, July 22, 2019 8:07 PM > To: Yigit, Ferruh ; Xing, Beilei > ; Zhang, Qi Z > Cc: dev@dpdk.org; Ye, Xiaolong ; sta...@dpdk.org; > Li, Xiaoyun > Subject: [PATCH 2/2] net/i40e: fix fdir rule destroy failure > > We should tear down t

Re: [dpdk-dev] [PATCH v4 0/4] Fixes on IOVA mode selection

2019-07-23 Thread Thomas Monjalon
23/07/2019 07:27, Jerin Jacob Kollanukkaran: > From: Stojaczyk, Dariusz > > From: Jerin Jacob Kollanukkaran [mailto:jer...@marvell.com] > > > From: Stojaczyk, Dariusz > > > > > > > > This introduces a regression where uio-bound devies are attached to > > > > a DPDK app at runtime. Yes it is a re

Re: [dpdk-dev] [PATCH 2/2] net/i40e: fix fdir rule destroy failure

2019-07-23 Thread Zhang, Qi Z
> -Original Message- > From: Xing, Beilei > Sent: Tuesday, July 23, 2019 3:12 PM > To: Ye, Xiaolong ; Yigit, Ferruh > ; Zhang, Qi Z > Cc: dev@dpdk.org; sta...@dpdk.org; Li, Xiaoyun > Subject: RE: [PATCH 2/2] net/i40e: fix fdir rule destroy failure > > > > > -Original Message

Re: [dpdk-dev] [PATCH v2] net/ixgbe: fix x550 Reta set fail error

2019-07-23 Thread Zhang, Qi Z
> -Original Message- > From: Zhao1, Wei > Sent: Tuesday, July 23, 2019 12:13 PM > To: dev@dpdk.org > Cc: sta...@dpdk.org; Zhang, Qi Z ; Zhao1, Wei > > Subject: [PATCH v2] net/ixgbe: fix x550 Reta set fail error > > There is a bug in function ixgbevf_dev_info_get(), it do not contain th

Re: [dpdk-dev] [PATCH v2] net/mlx5: fix NVGRE matching

2019-07-23 Thread Raslan Darawsheh
Hi, > -Original Message- > From: dev On Behalf Of Dekel Peled > Sent: Monday, July 22, 2019 6:37 PM > To: Yongseok Koh ; Slava Ovsiienko > ; Shahaf Shuler > Cc: Jack Min ; Ori Kam ; > dev@dpdk.org; sta...@dpdk.org > Subject: [dpdk-dev] [PATCH v2] net/mlx5: fix NVGRE matching > > NVGRE h

Re: [dpdk-dev] [EXT] [PATCH v6 1/3] eal/arm64: add 128-bit atomic compare exchange

2019-07-23 Thread Phil Yang (Arm Technology China)
> -Original Message- > From: Jerin Jacob Kollanukkaran > Sent: Tuesday, July 23, 2019 3:10 PM > To: Phil Yang (Arm Technology China) ; dev@dpdk.org > Cc: tho...@monjalon.net; gage.e...@intel.com; > hemant.agra...@nxp.com; Honnappa Nagarahalli > ; Gavin Hu (Arm Technology China) > ; nd ; nd

Re: [dpdk-dev] [PATCH] pci: fix missing pci bus with shared library build

2019-07-23 Thread Thomas Monjalon
22/07/2019 20:34, Stephen Hemminger: > On Mon, 22 Jul 2019 19:31:08 +0200 > Thomas Monjalon wrote: > > > 22/07/2019 19:13, Stephen Hemminger: > > > Thomas Monjalon wrote: > > > > Are the constructors run on dlopen of the bus driver? > > > > > > Yes, constructors are run on dlopen. > > > But

[dpdk-dev] [PATCH v5 1/3] vfio: revert change that does intr eventfd setup at probe

2019-07-23 Thread David Marchand
From: Nithin Dabilpuram This reverts commit 89aac60e0be9ed95a87b16e3595f102f9faaffb4. "vfio: fix interrupts race condition" The above mentioned commit moves the interrupt's eventfd setup to probe time but only enables one interrupt for all types of interrupt handles i.e VFIO_MSI, VFIO_LEGACY, VF

Re: [dpdk-dev] [PATCH 09/22] net/bnxt: use dedicated cpr for async events

2019-07-23 Thread Thomas Monjalon
22/07/2019 20:34, Ferruh Yigit: > On 7/22/2019 6:57 PM, Lance Richardson wrote: > > On Mon, Jul 22, 2019 at 11:06 AM Thomas Monjalon > > wrote: > >> 22/07/2019 16:57, Ferruh Yigit: > >>> On 7/18/2019 4:36 AM, Ajit Khaparde wrote: > From: Lance Richardson > --- a/config/common_base > >>

[dpdk-dev] [PATCH v5 2/3] eal: add ack interrupt API

2019-07-23 Thread David Marchand
From: Nithin Dabilpuram Add new ack interrupt API to avoid using VFIO_IRQ_SET_ACTION_TRIGGER(rte_intr_enable()) for acking interrupt purpose for VFIO based interrupt handlers. This implementation is specific to Linux. Using rte_intr_enable() for acking interrupt has below issues * Time consumi

[dpdk-dev] [PATCH v5 3/3] drivers/net: use ack API in interrupt handlers

2019-07-23 Thread David Marchand
From: Nithin Dabilpuram Replace rte_intr_enable() with rte_intr_ack() API for acking an interrupt in interrupt handlers and rx_queue_intr_enable() callbacks of PMD's. This is inline with original intent of this change in PMDs to ack interrupts after handling is completed if device is backed by U

[dpdk-dev] [PATCH v5 0/3] vfio: fix broken msix interrupt initialization

2019-07-23 Thread David Marchand
>From Nithin original cover letter: A final patch for below mentioned RFC patch discussions. [RFC PATCH v3 1/3] vfio: revert change that does intr eventfd setup at probe http://mails.dpdk.org/archives/dev/2019-July/138358.html [RFC PATCH v3 2/3] eal: add mask and unmask interrupt APIs http://m

[dpdk-dev] [PATCH 1/3] ethdev: add NSH key field to flow API

2019-07-23 Thread kirankumark
From: Kiran Kumar K Add new rte_flow_item_nsh in order to match the network service header based on RFC 8300. Signed-off-by: Kiran Kumar K --- lib/librte_ethdev/rte_flow.c | 1 + lib/librte_ethdev/rte_flow.h | 39 2 files changed, 40 insertions(+) diff --

[dpdk-dev] [PATCH 3/3] ethdev: add AH key field to flow API

2019-07-23 Thread kirankumark
From: Kiran Kumar K Add new rte_flow_item_ah in order to match the Authentication Header based on RFC 2402. Signed-off-by: Kiran Kumar K --- lib/librte_ethdev/rte_flow.c | 1 + lib/librte_ethdev/rte_flow.h | 31 +++ 2 files changed, 32 insertions(+) diff --git a/l

[dpdk-dev] [PATCH 2/3] ethdev: add IGMP key field to flow API

2019-07-23 Thread kirankumark
From: Kiran Kumar K Add new rte_flow_item_igmp in order to match the Internet Group Management Protocol based on RFC 2236. Signed-off-by: Kiran Kumar K --- lib/librte_ethdev/rte_flow.c | 1 + lib/librte_ethdev/rte_flow.h | 31 +++ 2 files changed, 32 insertions(+)

Re: [dpdk-dev] [EXT] Re: [PATCH] mk: disable flag for no packet member warning

2019-07-23 Thread Krzysztof Kanas
On 19-07-22 14:44, Bruce Richardson wrote: > External Email > > -- > On Mon, Jul 22, 2019 at 02:39:59PM +0200, kka...@marvell.com wrote: > > From: Krzysztof Kanas > > > > gcc prior 9 don't will add additional warning for unrecog

Re: [dpdk-dev] [PATCH] app/testpmd: support QinQ strip offload

2019-07-23 Thread Iremonger, Bernard
Hi Ferruh, > >> Duplication is bad, it is bad to have two different ways to do same thing. > >> I am not sure if Vivek is aware of duplicated functions but > >> explicitly prefers to update old versions. > >> I suggest lets stop improving these ones and get rid of them asap. > > > > Testpmd is w

Re: [dpdk-dev] [PATCH v2] eal: warn on legacy memory allocation requirement

2019-07-23 Thread Burakov, Anatoly
On 22-Jul-19 6:03 PM, Thomas Monjalon wrote: 22/07/2019 18:55, Thomas Monjalon: When using --no-huge mode, dynamic allocation is not supported. Because of this limitation, the option --legacy-mem is implied and -m may be needed to specify the amount of memory to allocate. Otherwise the default a

[dpdk-dev] [PATCH] ethdev: avoid usage of uninit device info in bad port case

2019-07-23 Thread Andrew Rybchenko
rte_eth_dev_info_get() returns void and caller does know if the function does its job or not. Changing of the return value to int would be API/ABI breakage which requires deprecation process and cannot be backported to stable branches. For now, make sure that device info is initialized even in the

Re: [dpdk-dev] [PATCH v4 0/4] Fixes on IOVA mode selection

2019-07-23 Thread Burakov, Anatoly
On 23-Jul-19 6:27 AM, Jerin Jacob Kollanukkaran wrote: -Original Message- From: Stojaczyk, Dariusz Sent: Tuesday, July 23, 2019 10:24 AM To: Jerin Jacob Kollanukkaran ; Thomas Monjalon ; David Marchand ; Burakov, Anatoly Cc: dev@dpdk.org Subject: [EXT] RE: [dpdk-dev] [PATCH v4 0/4] Fixe

[dpdk-dev] [PATCH] vfio: use contiguous mapping for IOVA as VA mode

2019-07-23 Thread Anatoly Burakov
When using IOVA as VA mode, there is no need to map segments page by page. This normally isn't a problem, but it becomes one when attempting to use DPDK in no-huge mode, where VFIO subsystem simply runs out of space to store mappings. Fix this for x86 by triggering different callbacks based on whe

Re: [dpdk-dev] [PATCH v5 0/3] vfio: fix broken msix interrupt initialization

2019-07-23 Thread Thomas Monjalon
23/07/2019 10:04, David Marchand: > From Nithin original cover letter: > This patch set basically reverts vfio patch that moves eventfd setup > to probe time (1/3) because msix initialization is broken. > It adds new ack interrupt api for purposes of simple and light > weight ack method and also t

[dpdk-dev] [PATCH] app/compress-perf: prevent output buffer overflow

2019-07-23 Thread Adam Dybkowski
This patch fixes the issue of memory overwrite after the end of the output buffer by calculating its size as the number of all segments multipled by the output segment size. Additionally buffer overflow errors returned by PMD driver are detected and shown, ending the test. Also the output buffer s

Re: [dpdk-dev] [PATCH v4 0/4] Fixes on IOVA mode selection

2019-07-23 Thread Thomas Monjalon
23/07/2019 11:57, Burakov, Anatoly: > A machine without an IOMMU shouldn't have picked IOVA as VA in the first > place. Perhaps this is something we could fix? I'm not sure how to > detected that condition though, i don't think there's a mechanism to > know that for sure. Some kernels create a "

Re: [dpdk-dev] [PATCH] vfio: use contiguous mapping for IOVA as VA mode

2019-07-23 Thread Sirvys, Andrius
Subject: [PATCH] vfio: use contiguous mapping for IOVA as VA mode When using IOVA as VA mode, there is no need to map segments page by page. This normally isn't a problem, but it becomes one when attempting to use DPDK in no-huge mode, where VFIO subsystem simply runs out of space to store ma

Re: [dpdk-dev] [PATCH] ethdev: avoid usage of uninit device info in bad port case

2019-07-23 Thread Ferruh Yigit
On 7/23/2019 10:13 AM, Andrew Rybchenko wrote: > rte_eth_dev_info_get() returns void and caller does know if the function > does its job or not. Changing of the return value to int would be > API/ABI breakage which requires deprecation process and cannot be > backported to stable branches. For now,

Re: [dpdk-dev] [PATCH] app/testpmd: fix MAC addr parser for flow

2019-07-23 Thread Ferruh Yigit
On 7/23/2019 7:39 AM, Raslan Darawsheh wrote: > Tested-by: Raslan Darawsheh > Seems OK for me, > > Kindest regards, > Raslan Darawsheh > >> -Original Message- >> From: Stephen Hemminger >> Sent: Monday, July 22, 2019 8:20 PM >> To: Ferruh Yigit >> Cc: Adrien Mazarguil ; Wenzhuo Lu >>

Re: [dpdk-dev] [PATCH v8 3/5] kni: add app specific mempool create & free routine

2019-07-23 Thread Andrew Rybchenko
On 7/23/19 8:38 AM, vattun...@marvell.com wrote: From: Vamsi Attunuru When KNI operates in IOVA = VA mode, it requires mbuf memory to be physically contiguous to ensure KNI kernel module could translate IOVA addresses properly. Patch adds a KNI specific mempool create routine to populate the KN

Re: [dpdk-dev] [PATCH v2 01/28] net/mlx5: remove redundant item from union

2019-07-23 Thread Ferruh Yigit
On 7/22/2019 3:51 PM, Matan Azrad wrote: > From: Dekel Peled > > A variable of type struct ibv_cq_ex is declared in 2 unions, but > isn't used. > This patch removes the 2 redundant declarations. This is not a fix, but I think it still make sense to request backporting these kind of refactoring to

Re: [dpdk-dev] [PATCH 09/22] net/bnxt: use dedicated cpr for async events

2019-07-23 Thread Lance Richardson
Yes, the platform can be detected at runtime from the PCI device ID. This would be a better approach than adding a configuration parameter, I think. I'll take a look. Thanks, Lance On Tue, Jul 23, 2019 at 4:04 AM Thomas Monjalon wrote: > > 22/07/2019 20:34, Ferruh Yigit: > > On 7/22/2019 6:5

Re: [dpdk-dev] [PATCH v8 2/5] add IOVA -VA support in KNI lib

2019-07-23 Thread Andrew Rybchenko
On 7/23/19 8:38 AM, vattun...@marvell.com wrote: From: Vamsi Attunuru Current KNI implementation only operates in IOVA=PA mode, patch adds required functionality in KNI lib to support IOVA=VA mode. KNI kernel module requires device info to get iommu domain related information for IOVA addr rel

[dpdk-dev] [PATCH] service: remove experimental banner in API description

2019-07-23 Thread David Marchand
This was missed when promoting this API to stable. Fixes: 7a0ac7cdb454 ("service: promote experimental functions to stable") Signed-off-by: David Marchand --- lib/librte_eal/common/include/rte_service.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/librte_eal/common/include/rte_serv

Re: [dpdk-dev] [PATCH v8 3/5] kni: add app specific mempool create & free routine

2019-07-23 Thread Vamsi Krishna Attunuru
> -Original Message- > From: Andrew Rybchenko > Sent: Tuesday, July 23, 2019 4:20 PM > To: Vamsi Krishna Attunuru ; dev@dpdk.org > Cc: tho...@monjalon.net; Jerin Jacob Kollanukkaran ; > olivier.m...@6wind.com; ferruh.yi...@intel.com; anatoly.bura...@intel.com; > Kiran Kumar Kokkilagadda

[dpdk-dev] [PATCH] test/compress: fix coverity warnings

2019-07-23 Thread Adam Dybkowski
CID 340857: Null pointer dereferences (NULL_RETURNS) CID 340856: (CONSTANT_EXPRESSION_RESULT) Fixes: 3be12ea52ad8 ("test/compress: improve debug trace setup") Signed-off-by: Adam Dybkowski --- app/test/test_compressdev.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --

Re: [dpdk-dev] [PATCH v8 1/5] mempool: populate mempool with page sized chunks of memory

2019-07-23 Thread Andrew Rybchenko
On 7/23/19 8:38 AM, vattun...@marvell.com wrote: From: Vamsi Attunuru Patch adds a routine to populate mempool from page aligned and page sized chunks of memory to ensures memory objs do not fall across the page boundaries. It's useful for applications that require physically contiguous mbuf me

Re: [dpdk-dev] [PATCH] app/testpmd: fix doubling of 'total TX dropped'

2019-07-23 Thread David Marchand
On Tue, Jul 16, 2019 at 5:29 PM Ferruh Yigit wrote: > > On 7/16/2019 4:00 PM, Andrew Rybchenko wrote: > > On 7/16/19 5:28 PM, Bruce Richardson wrote: > >> On Tue, Jul 16, 2019 at 03:23:03PM +0100, Ferruh Yigit wrote: > >>> On 7/16/2019 1:23 PM, Andrew Rybchenko wrote: > On 7/15/19 5:53 PM, Fe

Re: [dpdk-dev] [PATCH v2] doc: add deprecation notice about changes to ethernet structures

2019-07-23 Thread Andrew Rybchenko
On 7/19/19 7:56 PM, Stephen Hemminger wrote: Tell users about upcoming changes to rte_ether_addr and rte_ether_header. Signed-off-by: Stephen Hemminger Acked-by: Bruce Richardson Acked-by: Andrew Rybchenko

Re: [dpdk-dev] [PATCH v6] doc: add meson ut info in prog guide

2019-07-23 Thread Parthasarathy, JananeeX M
Hi, >-Original Message- >From: Bruce Richardson [mailto:bruce.richard...@intel.com] >Sent: Monday, July 22, 2019 7:23 PM >To: Thomas Monjalon >Cc: Parthasarathy, JananeeX M ; >dev@dpdk.org; Michael Santana Francisco ; Aaron >Conole ; Hari Kumar Vemula >; Pattan, Reshma >; Mcnamara, John ;

Re: [dpdk-dev] [PATCH v2 01/28] net/mlx5: remove redundant item from union

2019-07-23 Thread Matan Azrad
Hi Ferruh From: Ferruh Yigit > On 7/22/2019 3:51 PM, Matan Azrad wrote: > > From: Dekel Peled > > > > A variable of type struct ibv_cq_ex is declared in 2 unions, but isn't > > used. > > This patch removes the 2 redundant declarations. > This is not a fix, but I think it still make sense to req

[dpdk-dev] [PATCH v2] ethdev: avoid usage of uninit device info in bad port case

2019-07-23 Thread Andrew Rybchenko
rte_eth_dev_info_get() returns void and caller does know if the function does its job or not. Changing of the return value to int would be API/ABI breakage which requires deprecation process and cannot be backported to stable branches. For now, make sure that device info is initialized even in the

[dpdk-dev] [PATCH v3 1/2] app/test: add unit test cases for mbuf library APIs

2019-07-23 Thread Lavanya Govindarajan
Added new unit test cases to cover the below functions defined in rte_mbuf.h rte_validate_tx_offload, rte_pktmbuf_alloc_bulk, rte_pktmbuf_read, rte_pktmbuf_ext_shinfo_init_helper, rte_pktmbuf_attach_extbuf, rte_mbuf_ext_refcnt_read, rte_mbuf_ext_refcnt_update, rte_mbuf_ext_refcnt_set, rte_pktmbuf_d

[dpdk-dev] [PATCH v3 0/2] add unit test cases for mbuf library

2019-07-23 Thread Lavanya Govindarajan
This patchset contains unit testcases added to increase the functional and decision coverage for the library functions defined in rte_mbuf.h and rte_mbuf.c 1/2: unit test cases added for rte_mbuf.h 2/2: unit test cases added for rte_mbuf.c Patch 2/2 depends on 1/2 Signed-off-by: Lavanya Govinda

Re: [dpdk-dev] [PATCH] ethdev: avoid usage of uninit device info in bad port case

2019-07-23 Thread Andrew Rybchenko
On 7/23/19 1:40 PM, Ferruh Yigit wrote: On 7/23/2019 10:13 AM, Andrew Rybchenko wrote: rte_eth_dev_info_get() returns void and caller does know if the function does its job or not. Changing of the return value to int would be API/ABI breakage which requires deprecation process and cannot be back

[dpdk-dev] [PATCH v3 2/2] app/test: add unit test cases to mbuf

2019-07-23 Thread Lavanya Govindarajan
From: Pallantla Poornima Added UT for the below four functions in test_mbuf.c rte_get_rx_ol_flag_list rte_get_tx_ol_flag_list rte_get_rx_ol_flag_name rte_get_tx_ol_flag_name Signed-off-by: Pallantla Poornima --- app/test/test_mbuf.c | 260 +++ 1 file cha

Re: [dpdk-dev] [PATCH v8 1/5] mempool: populate mempool with page sized chunks of memory

2019-07-23 Thread Vamsi Krishna Attunuru
> -Original Message- > From: Andrew Rybchenko > Sent: Tuesday, July 23, 2019 4:38 PM > To: Vamsi Krishna Attunuru ; dev@dpdk.org > Cc: tho...@monjalon.net; Jerin Jacob Kollanukkaran ; > olivier.m...@6wind.com; ferruh.yi...@intel.com; > anatoly.bura...@intel.com; Kiran Kumar Kokkilagadda

Re: [dpdk-dev] [PATCH] pci: fix missing pci bus with shared library build

2019-07-23 Thread Bruce Richardson
On Mon, Jul 22, 2019 at 11:53:26AM -0700, Stephen Hemminger wrote: > On Mon, 22 Jul 2019 19:31:08 +0200 > Thomas Monjalon wrote: > > > 22/07/2019 19:13, Stephen Hemminger: > > > Thomas Monjalon wrote: > > > > Are the constructors run on dlopen of the bus driver? > > > > > > Yes, constructor

Re: [dpdk-dev] [PATCH v4] net/memif: zero-copy slave

2019-07-23 Thread Jakub Grajciar -X (jgrajcia - PANTHEON TECHNOLOGIES at Cisco)
> -Original Message- > From: Ferruh Yigit > Sent: Wednesday, July 10, 2019 5:07 PM > To: Jakub Grajciar -X (jgrajcia - PANTHEON TECHNOLOGIES at Cisco) > ; dev@dpdk.org > Cc: anatoly.bura...@intel.com > Subject: Re: [dpdk-dev] [PATCH v4] net/memif: zero-copy slave > > On 7/9/2019 9:22 AM

Re: [dpdk-dev] [PATCH] ethdev: avoid usage of uninit device info in bad port case

2019-07-23 Thread Thomas Monjalon
23/07/2019 14:16, Andrew Rybchenko: > On 7/23/19 1:40 PM, Ferruh Yigit wrote: > > On 7/23/2019 10:13 AM, Andrew Rybchenko wrote: > >> rte_eth_dev_info_get() returns void and caller does know if the function > >> does its job or not. Changing of the return value to int would be > >> API/ABI breakage

Re: [dpdk-dev] [PATCH v2] ethdev: avoid usage of uninit device info in bad port case

2019-07-23 Thread Thomas Monjalon
23/07/2019 14:11, Andrew Rybchenko: > rte_eth_dev_info_get() returns void and caller does know if the function > does its job or not. Changing of the return value to int would be > API/ABI breakage which requires deprecation process and cannot be > backported to stable branches. For now, make sure

Re: [dpdk-dev] [EXT] Re: [PATCH] mk: disable flag for no packet member warning

2019-07-23 Thread Bruce Richardson
On Tue, Jul 23, 2019 at 09:05:50AM +, Krzysztof Kanas wrote: > On 19-07-22 14:44, Bruce Richardson wrote: > > External Email > > > > -- > > On Mon, Jul 22, 2019 at 02:39:59PM +0200, kka...@marvell.com wrote: > > > From: Krzysz

[dpdk-dev] [PATCH] eal: fix proc type auto detection

2019-07-23 Thread Anatoly Burakov
Currently, primary process holds an exclusive lock on the config file, thereby preventing other primaries from spinning up. However, when the primary dies, the lock is no longer being held, even though there might be other secondary processes still running. The fix is two-fold. First of all, downg

Re: [dpdk-dev] [PATCH] service: remove experimental banner in API description

2019-07-23 Thread Eads, Gage
Thanks David. > -Original Message- > From: David Marchand [mailto:david.march...@redhat.com] > Sent: Tuesday, July 23, 2019 6:00 AM > To: dev@dpdk.org > Cc: Eads, Gage ; Van Haaren, Harry > > Subject: [PATCH] service: remove experimental banner in API description > > This was missed when

Re: [dpdk-dev] [PATCH v2] ethdev: avoid usage of uninit device info in bad port case

2019-07-23 Thread Andrew Rybchenko
On 7/23/19 4:14 PM, Thomas Monjalon wrote: 23/07/2019 14:11, Andrew Rybchenko: rte_eth_dev_info_get() returns void and caller does know if the function does its job or not. Changing of the return value to int would be API/ABI breakage which requires deprecation process and cannot be backported t

Re: [dpdk-dev] [PATCH v2] ethdev: avoid usage of uninit device info in bad port case

2019-07-23 Thread Thomas Monjalon
23/07/2019 15:34, Andrew Rybchenko: > On 7/23/19 4:14 PM, Thomas Monjalon wrote: > > 23/07/2019 14:11, Andrew Rybchenko: > >> rte_eth_dev_info_get() returns void and caller does know if the function > >> does its job or not. Changing of the return value to int would be > >> API/ABI breakage which r

Re: [dpdk-dev] [PATCH v4 0/4] Fixes on IOVA mode selection

2019-07-23 Thread Burakov, Anatoly
On 23-Jul-19 11:25 AM, Thomas Monjalon wrote: 23/07/2019 11:57, Burakov, Anatoly: A machine without an IOMMU shouldn't have picked IOVA as VA in the first place. Perhaps this is something we could fix? I'm not sure how to detected that condition though, i don't think there's a mechanism to know

[dpdk-dev] [PATCH] doc: add deprecation notice to fix ethdev API returning void

2019-07-23 Thread Andrew Rybchenko
void return value is bad for get API (like rte_eth_dev_info-get()) since caller does not know if the function does its job or not and output value is filled in. void return value is bad for state changing API (like rte_eth_promiscuous_enable()) since caller should use get API to understand if stat

Re: [dpdk-dev] [PATCH] doc: add deprecation notice to fix ethdev API returning void

2019-07-23 Thread Ferruh Yigit
On 7/23/2019 3:07 PM, Andrew Rybchenko wrote: > void return value is bad for get API (like rte_eth_dev_info-get()) > since caller does not know if the function does its job or not and > output value is filled in. > > void return value is bad for state changing API (like > rte_eth_promiscuous_enabl

Re: [dpdk-dev] [EXT] Re: [PATCH v4 0/4] Fixes on IOVA mode selection

2019-07-23 Thread Jerin Jacob Kollanukkaran
> -Original Message- > From: Burakov, Anatoly > Sent: Tuesday, July 23, 2019 7:27 PM > To: Thomas Monjalon > Cc: Jerin Jacob Kollanukkaran ; Stojaczyk, Dariusz > ; David Marchand > ; dev@dpdk.org > Subject: [EXT] Re: [dpdk-dev] [PATCH v4 0/4] Fixes on IOVA mode selection > >

Re: [dpdk-dev] [PATCH v4 0/4] Fixes on IOVA mode selection

2019-07-23 Thread Burakov, Anatoly
On 23-Jul-19 2:56 PM, Burakov, Anatoly wrote: On 23-Jul-19 11:25 AM, Thomas Monjalon wrote: 23/07/2019 11:57, Burakov, Anatoly: A machine without an IOMMU shouldn't have picked IOVA as VA in the first place. Perhaps this is something we could fix? I'm not sure how to detected that condition tho

Re: [dpdk-dev] [EXT] Re: [PATCH v4 0/4] Fixes on IOVA mode selection

2019-07-23 Thread Jerin Jacob Kollanukkaran
> -Original Message- > From: Burakov, Anatoly > Sent: Tuesday, July 23, 2019 8:00 PM > To: Thomas Monjalon > Cc: Jerin Jacob Kollanukkaran ; Stojaczyk, Dariusz > ; David Marchand > ; dev@dpdk.org > Subject: [EXT] Re: [dpdk-dev] [PATCH v4 0/4] Fixes on IOVA mode selection > On 23-Jul-19 2:

Re: [dpdk-dev] [PATCH] doc: add deprecation notice to fix ethdev API returning void

2019-07-23 Thread Stephen Hemminger
On Tue, 23 Jul 2019 15:07:51 +0100 Andrew Rybchenko wrote: > void return value is bad for get API (like rte_eth_dev_info-get()) > since caller does not know if the function does its job or not and > output value is filled in. > > void return value is bad for state changing API (like > rte_eth_pr

Re: [dpdk-dev] [PATCH] doc: add deprecation notice to fix ethdev API returning void

2019-07-23 Thread Andrew Rybchenko
On 7/23/19 5:38 PM, Stephen Hemminger wrote: On Tue, 23 Jul 2019 15:07:51 +0100 Andrew Rybchenko wrote: void return value is bad for get API (like rte_eth_dev_info-get()) since caller does not know if the function does its job or not and output value is filled in. void return value is bad for

[dpdk-dev] [PATCH] net/mlx5: fix doorbell release on Rx queue release

2019-07-23 Thread Dekel Peled
Function mlx5_rxq_release() calls mlx5_release_dbr() to release the doorbell allocated for this Rx queue. This call is relevant only for Rx queue objects created using DevX API. This patch adds the required check, to call mlx5_release_dbr() only when relevant. It also updates mlx5_release_dbr() to

[dpdk-dev] x552 transmit issue and rte_ethtool - rte_ethtool_get_regs()

2019-07-23 Thread Bly, Mike
Hello, We are chasing an interesting NIC transmit issue where after some period of time with normal operation the NIC enters a state where it refuses to transmit frames from our DPDK application via rte_eth_tx_burst(). All indications are the port is up and otherwise operational and is still re

Re: [dpdk-dev] [PATCH v2] net/ixgbe: fix x550 Reta set fail error

2019-07-23 Thread Ye Xiaolong
On 07/23, Wei Zhao wrote: >There is a bug in function ixgbevf_dev_info_get(), it do not >contain the reta table size get function for vf port, and this >will cause error when update reta for x550 vf port. And also >when function ixgbe_reta_size_get() is called, it should return >other ixgbe NIC vf

[dpdk-dev] [PATCH] net/mlx5: fix Rx queue release of resources

2019-07-23 Thread Dekel Peled
Function rxq_release_rq_resources() releases resources of RQ object created by DevX API. This patch updates this function to properly clear the released resources, to avoid repeated release of the same resource. Fixes: 69abf7b1db4a ("net/mlx5: create advanced RxQ using new API") Signed-off-by: D

[dpdk-dev] [PATCH v3 1/5] eal: add the APIs to wait until equal

2019-07-23 Thread Gavin Hu
The rte_wait_until_equalxx APIs abstract the functionality of 'polling for a memory location to become equal to a given value'. Signed-off-by: Gavin Hu Reviewed-by: Ruifeng Wang Reviewed-by: Steve Capper Reviewed-by: Ola Liljedahl Reviewed-by: Honnappa Nagarahalli Acked-by: Pavan Nikhilesh -

[dpdk-dev] [PATCH v3 4/5] spinlock: use wfe to reduce contention on aarch64

2019-07-23 Thread Gavin Hu
In acquiring a spinlock, cores repeatedly poll the lock variable. This is replaced by rte_wait_until_equal API. 5~10% performance gain was measured by running spinlock_autotest on 14 isolated cores of ThunderX2. Signed-off-by: Gavin Hu Reviewed-by: Ruifeng Wang Reviewed-by: Phil Yang Reviewed-

[dpdk-dev] [PATCH v3 3/5] ring: use wfe to wait for ring tail update on aarch64

2019-07-23 Thread Gavin Hu
Instead of polling for tail to be updated, use wfe instruction. Signed-off-by: Gavin Hu Reviewed-by: Ruifeng Wang Reviewed-by: Steve Capper Reviewed-by: Ola Liljedahl Reviewed-by: Honnappa Nagarahalli --- lib/librte_ring/rte_ring_c11_mem.h | 4 ++-- lib/librte_ring/rte_ring_generic.h | 3 +--

[dpdk-dev] [PATCH v3 2/5] ticketlock: use new API to reduce contention on aarch64

2019-07-23 Thread Gavin Hu
While using ticket lock, cores repeatedly poll the lock variable. This is replaced by rte_wait_until_equal API. Running ticketlock_autotest on ThunderX2, with different numbers of cores and depths of rings, 3%~8% performance gains were measured. Signed-off-by: Gavin Hu Reviewed-by: Honnappa Naga

[dpdk-dev] [PATCH v3 5/5] config: add WFE config entry for aarch64

2019-07-23 Thread Gavin Hu
Add the RTE_USE_WFE configuration entry for aarch64, disabled by default. It can be enabled selectively based on the performance benchmarking. Signed-off-by: Gavin Hu Reviewed-by: Ruifeng Wang Reviewed-by: Steve Capper Reviewed-by: Honnappa Nagarahalli Acked-by: Pavan Nikhilesh --- config/ar

[dpdk-dev] [PATCH v3 0/5] use WFE for locks and ring on aarch64

2019-07-23 Thread Gavin Hu
DPDK has multiple use cases where the core repeatedly polls a location in memory. This polling results in many cache and memory transactions. Arm architecture provides WFE (Wait For Event) instruction, which allows the cpu core to enter a low power state until woken up by the update to the memory

Re: [dpdk-dev] [EXT] Re: [PATCH v4 0/4] Fixes on IOVA mode selection

2019-07-23 Thread Burakov, Anatoly
On 23-Jul-19 3:36 PM, Jerin Jacob Kollanukkaran wrote: -Original Message- From: Burakov, Anatoly Sent: Tuesday, July 23, 2019 8:00 PM To: Thomas Monjalon Cc: Jerin Jacob Kollanukkaran ; Stojaczyk, Dariusz ; David Marchand ; dev@dpdk.org Subject: [EXT] Re: [dpdk-dev] [PATCH v4 0/4] Fixes

Re: [dpdk-dev] [RFC v2 5/5] config: add WFE config entry for aarch64

2019-07-23 Thread Gavin Hu (Arm Technology China)
Hi Stephen, > -Original Message- > From: Pavan Nikhilesh Bhagavatula > Sent: Saturday, July 20, 2019 3:03 PM > To: Gavin Hu (Arm Technology China) ; dev@dpdk.org > Cc: nd > Subject: RE: [dpdk-dev] [RFC v2 5/5] config: add WFE config entry for > aarch64 > > > > >-Original Message---

Re: [dpdk-dev] x552 transmit issue and rte_ethtool - rte_ethtool_get_regs()

2019-07-23 Thread Ananyev, Konstantin
> > Hello, > > We are chasing an interesting NIC transmit issue where after some period of > time with normal operation the NIC enters a state where it > refuses to transmit frames from our DPDK application via rte_eth_tx_burst(). > All indications are the port is up and otherwise operation

[dpdk-dev] [PATCH] raw/ioat: fix compiler warning for incorrect include

2019-07-23 Thread Bruce Richardson
Some builds with clang report an error because '<>' rather than '""' were used for including the ioat spec header file. Target: x86_64-native-bsdapp-clang 22:10: error: 'rte_ioat_spec.h' file not found with include; use "quotes" instead #include ^ "rt

Re: [dpdk-dev] x552 transmit issue and rte_ethtool - rte_ethtool_get_regs()

2019-07-23 Thread Bly, Mike
Konstantin, Thank you for the prompt reply on this posting. In looking at the single use-case in test-pmd's csumonly.c, it would seem prepare + retry_enabled may have some shortcomings as currently coded when nb_prep < nb_rx. Has anyone looked at this? I happened to notice this when looking for

Re: [dpdk-dev] [PATCH v3 5/5] config: add WFE config entry for aarch64

2019-07-23 Thread Stephen Hemminger
On Tue, 23 Jul 2019 23:43:46 +0800 Gavin Hu wrote: > Add the RTE_USE_WFE configuration entry for aarch64, disabled by default. > It can be enabled selectively based on the performance benchmarking. > > Signed-off-by: Gavin Hu > Reviewed-by: Ruifeng Wang > Reviewed-by: Steve Capper > Reviewed-

Re: [dpdk-dev] [PATCH] pci: fix missing pci bus with shared library build

2019-07-23 Thread Stephen Hemminger
On Tue, 23 Jul 2019 13:30:33 +0100 Bruce Richardson wrote: > On Mon, Jul 22, 2019 at 11:53:26AM -0700, Stephen Hemminger wrote: > > On Mon, 22 Jul 2019 19:31:08 +0200 > > Thomas Monjalon wrote: > > > > > 22/07/2019 19:13, Stephen Hemminger: > > > > Thomas Monjalon wrote: > > > > > Are

Re: [dpdk-dev] [PATCH] pci: fix missing pci bus with shared library build

2019-07-23 Thread Stephen Hemminger
On Tue, 23 Jul 2019 09:59:04 +0200 Thomas Monjalon wrote: > 22/07/2019 20:34, Stephen Hemminger: > > On Mon, 22 Jul 2019 19:31:08 +0200 > > Thomas Monjalon wrote: > > > > > 22/07/2019 19:13, Stephen Hemminger: > > > > Thomas Monjalon wrote: > > > > > Are the constructors run on dlopen

Re: [dpdk-dev] [PATCH] pci: fix missing pci bus with shared library build

2019-07-23 Thread Thomas Monjalon
23/07/2019 20:29, Stephen Hemminger: > On Tue, 23 Jul 2019 09:59:04 +0200 > Thomas Monjalon wrote: > > > 22/07/2019 20:34, Stephen Hemminger: > > > On Mon, 22 Jul 2019 19:31:08 +0200 > > > Thomas Monjalon wrote: > > > > > > > 22/07/2019 19:13, Stephen Hemminger: > > > > > Thomas Monjalon w

Re: [dpdk-dev] [PATCH] eal: fix proc type auto detection

2019-07-23 Thread Stephen Hemminger
On Tue, 23 Jul 2019 14:19:53 +0100 Anatoly Burakov wrote: > diff --git a/lib/librte_eal/linux/eal/eal.c b/lib/librte_eal/linux/eal/eal.c > index 34db78753..54feb24a3 100644 > --- a/lib/librte_eal/linux/eal/eal.c > +++ b/lib/librte_eal/linux/eal/eal.c > @@ -83,6 +83,13 @@ static struct flock wr_lo

Re: [dpdk-dev] [PATCH v2] ethdev: avoid usage of uninit device info in bad port case

2019-07-23 Thread Thomas Monjalon
23/07/2019 15:39, Thomas Monjalon: > 23/07/2019 15:34, Andrew Rybchenko: > > On 7/23/19 4:14 PM, Thomas Monjalon wrote: > > > 23/07/2019 14:11, Andrew Rybchenko: > > >> rte_eth_dev_info_get() returns void and caller does know if the function > > >> does its job or not. Changing of the return value

Re: [dpdk-dev] [PATCH] pci: fix missing pci bus with shared library build

2019-07-23 Thread Stephen Hemminger
On Tue, 23 Jul 2019 13:30:33 +0100 Bruce Richardson wrote: > On Mon, Jul 22, 2019 at 11:53:26AM -0700, Stephen Hemminger wrote: > > On Mon, 22 Jul 2019 19:31:08 +0200 > > Thomas Monjalon wrote: > > > > > 22/07/2019 19:13, Stephen Hemminger: > > > > Thomas Monjalon wrote: > > > > > Are

Re: [dpdk-dev] [PATCH] vfio: use contiguous mapping for IOVA as VA mode

2019-07-23 Thread Thomas Monjalon
23/07/2019 12:30, Sirvys, Andrius: > When using IOVA as VA mode, there is no need to map segments page by page. > This normally isn't a problem, but it becomes one when attempting to use DPDK > in no-huge mode, where VFIO subsystem simply runs out of space to store > mappings. > > Fix this for

Re: [dpdk-dev] [PATCH] raw/ioat: fix compiler warning for incorrect include

2019-07-23 Thread Thomas Monjalon
23/07/2019 18:26, Bruce Richardson: > Some builds with clang report an error because '<>' rather than '""' were > used for including the ioat spec header file. > > Target: x86_64-native-bsdapp-clang > 22:10: error: 'rte_ioat_spec.h' file not found with include; use > "quotes" instead > #in

Re: [dpdk-dev] [PATCH] raw/ioat: fix compiler warning for incorrect include

2019-07-23 Thread David Marchand
On Tue, Jul 23, 2019 at 6:27 PM Bruce Richardson wrote: > > Some builds with clang report an error because '<>' rather than '""' were > used for including the ioat spec header file. > > Target: x86_64-native-bsdapp-clang > 22:10: error: 'rte_ioat_spec.h' file not found with include; use > "q

Re: [dpdk-dev] [PATCH v3 5/5] config: add WFE config entry for aarch64

2019-07-23 Thread Honnappa Nagarahalli
> > On Tue, 23 Jul 2019 23:43:46 +0800 > Gavin Hu wrote: > > > Add the RTE_USE_WFE configuration entry for aarch64, disabled by default. > > It can be enabled selectively based on the performance benchmarking. > > > > Signed-off-by: Gavin Hu > > Reviewed-by: Ruifeng Wang > > Reviewed-by: Steve

Re: [dpdk-dev] [PATCH v3 0/5] use WFE for locks and ring on aarch64

2019-07-23 Thread Honnappa Nagarahalli
Hi Gavin, I think this should have been V1 (I mean, no versioning, just 'PATCH'), since it is converted to patch. I think we should be able to resend it as V1 and mark this V3 as 'superseded'. Hi Thomas, Please let us know if it is worth/helps fixing the version. Thanks, Honnapp

Re: [dpdk-dev] [PATCH v8 1/5] mempool: populate mempool with page sized chunks of memory

2019-07-23 Thread Andrew Rybchenko
On 7/23/19 3:28 PM, Vamsi Krishna Attunuru wrote: -Original Message- From: Andrew Rybchenko Sent: Tuesday, July 23, 2019 4:38 PM To: Vamsi Krishna Attunuru ; dev@dpdk.org Cc: tho...@monjalon.net; Jerin Jacob Kollanukkaran ; olivier.m...@6wind.com; ferruh.yi...@intel.com; anatoly.bura...@

Re: [dpdk-dev] [PATCH 0/6] net/ice/base: couple share code fix

2019-07-23 Thread Yang, Qiming
> -Original Message- > From: Zhang, Qi Z > Sent: Monday, July 22, 2019 8:51 PM > To: Yang, Qiming ; Lu, Wenzhuo > > Cc: Stillwell Jr, Paul M ; dev@dpdk.org; Zhang, > Qi Z > Subject: [PATCH 0/6] net/ice/base: couple share code fix > > Qi Zhang (6): > net/ice/base: fix inner TCP and UD

Re: [dpdk-dev] [PATCH v3 0/5] use WFE for locks and ring on aarch64

2019-07-23 Thread Thomas Monjalon
23/07/2019 21:15, Honnappa Nagarahalli: > Hi Gavin, > I think this should have been V1 (I mean, no versioning, just 'PATCH'), > since it is converted to patch. I think we should be able to resend it as V1 > and mark this V3 as 'superseded'. > > Hi Thomas, > Please let us know if it i

Re: [dpdk-dev] [PATCH 09/22] net/bnxt: use dedicated cpr for async events

2019-07-23 Thread Lance Richardson
On Mon, Jul 22, 2019 at 2:34 PM Ferruh Yigit wrote: > I dropped this patch from next-net since discussion is going on, I did my best > to resolve the conflicts but please confirm the final result in next-net. > I did some basic testing of the current head of dpdk-next-net and diffed against the

[dpdk-dev] [dpdk-announce] release candidate 19.08-rc2

2019-07-23 Thread Thomas Monjalon
A new DPDK release candidate is ready for testing: https://git.dpdk.org/dpdk/tag/?id=v19.08-rc2 277 patches were integrated. The release notes so far: http://doc.dpdk.org/guides/rel_notes/release_19_08.html It should be completed with a list of tested hardware. Highlights of 19.08

Re: [dpdk-dev] x552 transmit issue and rte_ethtool - rte_ethtool_get_regs()

2019-07-23 Thread Bly, Mike
Konstantin, The recommended use of rte_eth_tx_prepare() had no effect, which after looking at it, makes sense. We are using "large" mbufs to support Jumbo frames, so nb-seg will always == 1. Additionally, we are not currently leveraging any HW offload capabilities. As such, rte_eth_tx_prepare()

  1   2   >