Re: [dpdk-dev] [PATCH 2/3] app/testpmd: support creation of no IOVA contig mempools

2019-04-02 Thread Shahaf Shuler
Tuesday, April 2, 2019 6:16 PM, Burakov, Anatoly: > Subject: Re: [dpdk-dev] [PATCH 2/3] app/testpmd: support creation of no > IOVA contig mempools > > On 02-Apr-19 8:02 AM, Shahaf Shuler wrote: > > Monday, April 1, 2019 4:50 PM, Burakov, Anatoly: > >> Subject: Re: [dpdk-dev] [PATCH 2/3] app/testpm

Re: [dpdk-dev] [PATCH v4 4/5] app/testpmd: add VXLAN-GPE to tunnel type

2019-04-02 Thread Yang, Qiming
Thanks for your reminder, I'll add doc update later. Qiming > -Original Message- > From: Iremonger, Bernard > Sent: Wednesday, March 27, 2019 7:04 PM > To: Yang, Qiming ; dev@dpdk.org > Cc: Zhang, Qi Z ; Yang, Qiming > > Subject: RE: [dpdk-dev] [PATCH v4 4/5] app/testpmd: add VXLAN-GPE t

Re: [dpdk-dev] [PATCH v2 2/3] mlx5: Implement support for read_clock

2019-04-02 Thread Shahaf Shuler
Wednesday, March 27, 2019 8:20 AM, Tom Barbette: > Subject: [PATCH v2 2/3] mlx5: Implement support for read_clock > > Signed-off-by: Tom Barbette Apart from the compilation issue I am OK w/ this patch. You can add my acked-by on v3. > --- > drivers/net/mlx5/mlx5.c| 1 + > drivers/net

Re: [dpdk-dev] [PATCH v5 2/2] app/pdump: enhance to support multi-core capture

2019-04-02 Thread Varghese, Vipin
Hi Reshma, snipped > > + > > + printf(" core (%u); port %u device (%s) queue %u\n", > > + rte_lcore_id(), pt->port, pt->device_id, pt->queue); > > Log message can be improved to be " packet_dump for port running on > core " Thanks for the suggestion, but I am comfortable wit

[dpdk-dev] EAL lcore config

2019-04-02 Thread Stephen Hemminger
Currently the DPDK Environment Abstraction Layer has its guts on the floor ;-) The data structure for lcore config is a holey mess and changing it would break the ABI. I propose that for 19.05 we introduce accessor functions and change all internal (out side of eal directory) to use those. And add

Re: [dpdk-dev] [PATCH] net/ixgbevf: remove MTU setting limitation

2019-04-02 Thread Zhao1, Wei
HI, Why not add some more code " if (rx_conf->offloads & DEV_RX_OFFLOAD_SCATTER) dev->data->scattered_rx = 1; " Into ixgbevf_dev_rx_init() to enable scatter mode when start device? Reviewed-by: Wei Zhao > -Original Message- > From: dev [mailto:dev-boun...@d

[dpdk-dev] [PATCH] net/ixgbevf: remove MTU setting limitation

2019-04-02 Thread David Harton
Currently, if requested MTU is bigger than mbuf size and scattered receive is not enabled, setting MTU to that value fails. This patch allows setting this special MTU when device is stopped, because scattered_rx will be re-configured during next port start and driver may enable scattered receive a

Re: [dpdk-dev] [PATCH v8 00/10] HelloWorld example for Windows

2019-04-02 Thread Anand Rawat
On 4/2/2019 4:25 PM, Thomas Monjalon wrote: 02/04/2019 05:54, Anand Rawat: Includes Windows-specific EAL changes and meson changes to build the code on Windows. [...] Anand Rawat (10): eal: eal stub to add windows support meson: required changes for windows eal: add new rte_os.h heade

Re: [dpdk-dev] [PATCH v3 2/4] ethdev: add siblings iterators

2019-04-02 Thread Thomas Monjalon
03/04/2019 01:42, Ferruh Yigit: > On 4/1/2019 3:26 AM, Thomas Monjalon wrote: > > +__rte_experimental > > +uint16_t rte_eth_find_next_of(uint16_t port_id_start, > > + const struct rte_device *parent); > > Minor nit, but other instances using the tag as: > > uint16_t __rte_experimental >

Re: [dpdk-dev] [PATCH v3 4/4] app/testpmd: use port sibling iterator in device cleanup

2019-04-02 Thread Ferruh Yigit
On 4/1/2019 3:27 AM, Thomas Monjalon wrote: > When removing a rte_device on a port-based request, > all the sibling ports must be marked as closed. > The iterator loop can be simplified by using the dedicated macro. > > Signed-off-by: Thomas Monjalon Reviewed-by: Ferruh Yigit

Re: [dpdk-dev] [PATCH v3 2/4] ethdev: add siblings iterators

2019-04-02 Thread Ferruh Yigit
On 4/1/2019 3:26 AM, Thomas Monjalon wrote: > If multiple ports share the same hardware device (rte_device), > they are siblings and can be found thanks to the new functions > and loop macros. > One iterator takes a port id as reference, > while the other one directly refers to the parent device. >

Re: [dpdk-dev] [PATCH v2 2/4] ethdev: add siblings iterators

2019-04-02 Thread Thomas Monjalon
03/04/2019 01:35, Ferruh Yigit: > On 4/1/2019 9:09 AM, Thomas Monjalon wrote: > > 01/04/2019 08:46, David Marchand: > >> On Mon, Apr 1, 2019 at 4:16 AM Thomas Monjalon wrote: > >> > >>> 19/03/2019 19:04, Ferruh Yigit: > On 3/19/2019 5:34 PM, Thomas Monjalon wrote: > >>> +uint16_t __rte_ex

Re: [dpdk-dev] [PATCH v2 2/4] ethdev: add siblings iterators

2019-04-02 Thread Ferruh Yigit
On 4/1/2019 9:09 AM, Thomas Monjalon wrote: > 01/04/2019 08:46, David Marchand: >> On Mon, Apr 1, 2019 at 4:16 AM Thomas Monjalon wrote: >> >>> 19/03/2019 19:04, Ferruh Yigit: On 3/19/2019 5:34 PM, Thomas Monjalon wrote: >>> +uint16_t __rte_experimental >> >> Do we need _rte_exper

Re: [dpdk-dev] [PATCH v8 00/10] HelloWorld example for Windows

2019-04-02 Thread Thomas Monjalon
02/04/2019 05:54, Anand Rawat: > Includes Windows-specific EAL changes and meson changes > to build the code on Windows. [...] > Anand Rawat (10): > eal: eal stub to add windows support > meson: required changes for windows > eal: add new rte_os.h header to build system > eal: update commo

Re: [dpdk-dev] [PATCH v8 02/10] meson: required changes for windows

2019-04-02 Thread Pallavi Kadam
On 4/2/2019 4:04 PM, Thomas Monjalon wrote: 02/04/2019 05:54, Anand Rawat: These are the required meson changes for Windows. kernel/windows/meson is a stub file added to support Windows specific source in future releases. Signed-off-by: Anand Rawat Signed-off-by: Pallavi Kadam Reviewed-by:

Re: [dpdk-dev] [PATCH v9 1/1] net/af_xdp: introduce AF XDP PMD driver

2019-04-02 Thread Ye Xiaolong
On 04/02, Stephen Hemminger wrote: >On Tue, 2 Apr 2019 23:46:53 +0800 >Xiaolong Ye wrote: > >> +/* pull from complete qeueu to leave more space */ > >Overall looks good, one last spelling error Sorry for the typo, will fix in in next version. Thanks, Xiaolong

Re: [dpdk-dev] [PATCH v8 02/10] meson: required changes for windows

2019-04-02 Thread Thomas Monjalon
02/04/2019 05:54, Anand Rawat: > These are the required meson changes for Windows. > kernel/windows/meson is a stub file added to support > Windows specific source in future releases. > > Signed-off-by: Anand Rawat > Signed-off-by: Pallavi Kadam > Reviewed-by: Jeff Shaw > Reviewed-by: Ranjit Me

Re: [dpdk-dev] [PATCH v8 05/10] build: add module definition file for windows

2019-04-02 Thread Thomas Monjalon
02/04/2019 05:54, Anand Rawat: > Updated lib/meson.build to create shared libraries on Windows. > Added DEF files to list the exports for the eal and kvargs libraries. > > Signed-off-by: Bruce Richardson > Signed-off-by: Anand Rawat > Reviewed-by: Pallavi Kadam > Reviewed-by: Ranjit Menon > --

Re: [dpdk-dev] [PATCH v8 10/10] build: meson changes to build on windows

2019-04-02 Thread Anand Rawat
On 4/2/2019 3:51 PM, Thomas Monjalon wrote: 02/04/2019 05:54, Anand Rawat: Added meson workarounds to build helloworld on Windows. Windows currently only supports kvargs and eal libraries. This change restricts the build flow to supported libraries only. Signed-off-by: Anand Rawat Signed-off-b

Re: [dpdk-dev] [PATCH v8 08/10] eal: add minimum viable code for eal on windows

2019-04-02 Thread Anand Rawat
On 4/2/2019 3:39 PM, Thomas Monjalon wrote: I think the change below is bad because it is exposing an internal function in a header file which may be included by apps. I know you are still looking for pthread integration solutions, so we can discuss how to fix it later. Note that there is alread

Re: [dpdk-dev] [PATCH v8 10/10] build: meson changes to build on windows

2019-04-02 Thread Thomas Monjalon
02/04/2019 05:54, Anand Rawat: > Added meson workarounds to build helloworld on Windows. > Windows currently only supports kvargs and eal libraries. > This change restricts the build flow to supported libraries > only. > > Signed-off-by: Anand Rawat > Signed-off-by: Pallavi Kadam > Reviewed-by:

Re: [dpdk-dev] [PATCH v8 08/10] eal: add minimum viable code for eal on windows

2019-04-02 Thread Thomas Monjalon
I think the change below is bad because it is exposing an internal function in a header file which may be included by apps. I know you are still looking for pthread integration solutions, so we can discuss how to fix it later. Note that there is already an EAL function to create normal threads:

Re: [dpdk-dev] [PATCH v8 03/10] eal: add new rte_os.h header to build system

2019-04-02 Thread Anand Rawat
On 4/2/2019 3:32 PM, Thomas Monjalon wrote: 03/04/2019 00:11, Anand Rawat: > On 4/2/2019 1:47 PM, Thomas Monjalon wrote: >> 02/04/2019 21:56, Thomas Monjalon: >>> 02/04/2019 05:54, Anand Rawat: Added rte_os.h files to support OS specific functionality. Updated build system to contain OS

Re: [dpdk-dev] [PATCH v8 03/10] eal: add new rte_os.h header to build system

2019-04-02 Thread Thomas Monjalon
03/04/2019 00:11, Anand Rawat: > On 4/2/2019 1:47 PM, Thomas Monjalon wrote: > > 02/04/2019 21:56, Thomas Monjalon: > >> 02/04/2019 05:54, Anand Rawat: > >>> Added rte_os.h files to support OS specific functionality. > >>> Updated build system to contain OS headers in the include > >>> path. > >>>

Re: [dpdk-dev] [PATCH v8 03/10] eal: add new rte_os.h header to build system

2019-04-02 Thread Anand Rawat
On 4/2/2019 1:47 PM, Thomas Monjalon wrote: 02/04/2019 21:56, Thomas Monjalon: 02/04/2019 05:54, Anand Rawat: Added rte_os.h files to support OS specific functionality. Updated build system to contain OS headers in the include path. Signed-off-by: Anand Rawat Reviewed-by: Pallavi Kadam --- -

Re: [dpdk-dev] [PATCH v8 08/10] eal: add minimum viable code for eal on windows

2019-04-02 Thread Pallavi Kadam
On 4/2/2019 2:38 PM, Thomas Monjalon wrote: 02/04/2019 23:21, Pallavi Kadam: On 4/2/2019 1:06 PM, Thomas Monjalon wrote: 02/04/2019 05:54, Anand Rawat: Add windows specific logic for eal.c, eal_lcore.c, eal_debug.c and eal_thread.c. Updated header files to contain suitable function declaract

Re: [dpdk-dev] [PATCH v8 08/10] eal: add minimum viable code for eal on windows

2019-04-02 Thread Thomas Monjalon
02/04/2019 23:21, Pallavi Kadam: > > On 4/2/2019 1:06 PM, Thomas Monjalon wrote: > > 02/04/2019 05:54, Anand Rawat: > >> Add windows specific logic for eal.c, eal_lcore.c, > >> eal_debug.c and eal_thread.c. Updated header files to > >> contain suitable function declaractions. > >> > >> Signed-off-

Re: [dpdk-dev] [PATCH v8 08/10] eal: add minimum viable code for eal on windows

2019-04-02 Thread Pallavi Kadam
On 4/2/2019 1:06 PM, Thomas Monjalon wrote: 02/04/2019 05:54, Anand Rawat: Add windows specific logic for eal.c, eal_lcore.c, eal_debug.c and eal_thread.c. Updated header files to contain suitable function declaractions. Signed-off-by: Anand Rawat Signed-off-by: Pallavi Kadam Reviewed-by: J

Re: [dpdk-dev] [PATCH v2] eal: rename state values in rte_lcore_state

2019-04-02 Thread David Marchand
On Tue, Apr 2, 2019 at 11:07 PM Stephen Hemminger < step...@networkplumber.org> wrote: > On Tue, 2 Apr 2019 23:03:06 +0200 > David Marchand wrote: > > > On Tue, Apr 2, 2019 at 10:48 PM Stephen Hemminger < > > step...@networkplumber.org> wrote: > > > > > On Tue, 2 Apr 2019 22:15:40 +0200 > > > Dav

Re: [dpdk-dev] [PATCH v2] eal: rename state values in rte_lcore_state

2019-04-02 Thread Stephen Hemminger
On Tue, 2 Apr 2019 23:03:06 +0200 David Marchand wrote: > On Tue, Apr 2, 2019 at 10:48 PM Stephen Hemminger < > step...@networkplumber.org> wrote: > > > On Tue, 2 Apr 2019 22:15:40 +0200 > > David Marchand wrote: > > > > > On Tue, Apr 2, 2019 at 5:57 PM Stephen Hemminger < > > step...@netwo

Re: [dpdk-dev] [PATCH v2] eal: rename state values in rte_lcore_state

2019-04-02 Thread David Marchand
On Tue, Apr 2, 2019 at 10:48 PM Stephen Hemminger < step...@networkplumber.org> wrote: > On Tue, 2 Apr 2019 22:15:40 +0200 > David Marchand wrote: > > > On Tue, Apr 2, 2019 at 5:57 PM Stephen Hemminger < > step...@networkplumber.org> > > wrote: > > > > > C language does not really treat enum's as

Re: [dpdk-dev] 18.11.1 patches review and test

2019-04-02 Thread Luca Boccassi
Thank you, Ju! Some additional information: this test was run via the LISAv2 framework that Microsoft uses to validate Linux and other applications on Azure. It can be found on Github: https://github.com/LIS/LISAv2 For 18.11.1 it was just ran on Ubuntu 18.04, but for the next validations RHEL an

[dpdk-dev] [PATCH v3] eal: rename state values in rte_lcore_state

2019-04-02 Thread Stephen Hemminger
C language does not really treat enum's as first class symbols. The values in an enum live in a global namespace. That means if DPDK defines "RUNNING" it can't be used by another enum in an application using DPDK. To solve this add a prefix "RTE_LCORE_" to the enum values, and make them grammatic

Re: [dpdk-dev] [PATCH v2] eal: rename state values in rte_lcore_state

2019-04-02 Thread Stephen Hemminger
On Tue, 2 Apr 2019 22:15:40 +0200 David Marchand wrote: > On Tue, Apr 2, 2019 at 5:57 PM Stephen Hemminger > wrote: > > > C language does not really treat enum's as first class symbols. > > The values in an enum live in a global namespace. That means if > > DPDK defines "RUNNING" it can't be u

Re: [dpdk-dev] [PATCH v8 03/10] eal: add new rte_os.h header to build system

2019-04-02 Thread Thomas Monjalon
02/04/2019 21:56, Thomas Monjalon: > 02/04/2019 05:54, Anand Rawat: > > Added rte_os.h files to support OS specific functionality. > > Updated build system to contain OS headers in the include > > path. > > > > Signed-off-by: Anand Rawat > > Reviewed-by: Pallavi Kadam > > --- > > --- a/meson.bui

[dpdk-dev] [PATCH v4 3/3] examples/l3fwd: format the IP addresses for printing

2019-04-02 Thread Stephen Hemminger
The IP addresses should be formatted using standard routines rather than dumpin in raw hex. Signed-off-by: Stephen Hemminger --- v4 - remove fixes, the original output was raw but not a bug examples/l3fwd/l3fwd_lpm.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff -

[dpdk-dev] [PATCH v4 0/3] use RFC addresses in test applications

2019-04-02 Thread Stephen Hemminger
These patches get rid of the custom addresses used in testpmd and l3fwd, and instead uses values that are in the existing RFC's. Stephen Hemminger (3): app/testpmd: add ability to set Tx IP and UDP parameters examples/l3fwd: use reserved IPv4/IPv6 addresses examples/l3fwd: format the IP addr

[dpdk-dev] [PATCH v4 2/3] examples/l3fwd: use reserved IPv4/IPv6 addresses

2019-04-02 Thread Stephen Hemminger
The l3fwd example should use the IPv4 addresses defined in RFC5735 and the IPv6 addresses defined in RFC5180 for the L3 forwarding example Longest Prefix Match table. Signed-off-by: Stephen Hemminger --- v4 - fix IPv6 /48 entries examples/l3fwd/l3fwd_lpm.c | 34 ++---

[dpdk-dev] [PATCH v4 1/3] app/testpmd: add ability to set Tx IP and UDP parameters

2019-04-02 Thread Stephen Hemminger
Use RFC 2544 standard values for Tx only test as default IP address and port. But let the user override those values on command line. Signed-off-by: Stephen Hemminger --- v4 - update documentation to be more precise support new tx-multi-flow addresses app/test-pmd/parameters.c

Re: [dpdk-dev] [PATCH v2] eal: rename state values in rte_lcore_state

2019-04-02 Thread David Marchand
On Tue, Apr 2, 2019 at 5:57 PM Stephen Hemminger wrote: > C language does not really treat enum's as first class symbols. > The values in an enum live in a global namespace. That means if > DPDK defines "RUNNING" it can't be used by another enum in an > application using DPDK. > > To solve this

Re: [dpdk-dev] [PATCH v3] eal: remove exec-env directory

2019-04-02 Thread Thomas Monjalon
02/04/2019 22:04, David Marchand: > On Tue, Apr 2, 2019 at 9:58 PM Ferruh Yigit wrote: > > On 4/2/2019 8:55 PM, David Marchand wrote: > > > On Tue, Apr 2, 2019 at 9:52 PM Ferruh Yigit > > wrote: > > >> On 4/2/2019 8:46 PM, David Marchand wrote: > > >>> Bruce, while testing with meson, I noticed t

Re: [dpdk-dev] [PATCH v8 08/10] eal: add minimum viable code for eal on windows

2019-04-02 Thread Thomas Monjalon
02/04/2019 05:54, Anand Rawat: > Add windows specific logic for eal.c, eal_lcore.c, > eal_debug.c and eal_thread.c. Updated header files to > contain suitable function declaractions. > > Signed-off-by: Anand Rawat > Signed-off-by: Pallavi Kadam > Reviewed-by: Jeff Shaw > Reviewed-by: Ranjit Men

Re: [dpdk-dev] [PATCH v3] eal: remove exec-env directory

2019-04-02 Thread David Marchand
On Tue, Apr 2, 2019 at 9:58 PM Ferruh Yigit wrote: > On 4/2/2019 8:55 PM, David Marchand wrote: > > On Tue, Apr 2, 2019 at 9:52 PM Ferruh Yigit > wrote: > >> On 4/2/2019 8:46 PM, David Marchand wrote: > >>> Bruce, while testing with meson, I noticed this: > >>> kernel/linux/kni/meson.build:16: W

Re: [dpdk-dev] [PATCH v3] eal: remove exec-env directory

2019-04-02 Thread Ferruh Yigit
On 4/2/2019 8:55 PM, David Marchand wrote: > On Tue, Apr 2, 2019 at 9:52 PM Ferruh Yigit wrote: > >> On 4/2/2019 8:46 PM, David Marchand wrote: >>> On Tue, Apr 2, 2019 at 9:30 PM Thomas Monjalon >> wrote: >>> Only one header file (rte_kni_common.h) was in the sub-directory incl

Re: [dpdk-dev] [PATCH v8 03/10] eal: add new rte_os.h header to build system

2019-04-02 Thread Thomas Monjalon
02/04/2019 05:54, Anand Rawat: > Added rte_os.h files to support OS specific functionality. > Updated build system to contain OS headers in the include > path. > > Signed-off-by: Anand Rawat > Reviewed-by: Pallavi Kadam > --- > --- a/meson.build > +++ b/meson.build > -global_inc = include_direct

Re: [dpdk-dev] [PATCH v3] eal: remove exec-env directory

2019-04-02 Thread David Marchand
On Tue, Apr 2, 2019 at 9:52 PM Ferruh Yigit wrote: > On 4/2/2019 8:46 PM, David Marchand wrote: > > On Tue, Apr 2, 2019 at 9:30 PM Thomas Monjalon > wrote: > > > >> Only one header file (rte_kni_common.h) was in the sub-directory > >> include/exec-env/ > >> This file was installed in a s

Re: [dpdk-dev] [PATCH v7 1/5] net/af_xdp: introduce AF XDP PMD driver

2019-04-02 Thread Ferruh Yigit
On 3/28/2019 6:52 PM, Luca Boccassi wrote: > On Thu, 2019-03-28 at 17:51 +, Ferruh Yigit wrote: >>> @@ -143,6 +143,7 @@ _LDLIBS-$(CONFIG_RTE_LIBRTE_DPAA2_MEMPOOL) += >>> -lrte_mempool_dpaa2 >>> endif >>> >>> _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_AF_PACKET) += >>> -lrte_pmd_af_packet >>> +_LD

Re: [dpdk-dev] [PATCH v3] eal: remove exec-env directory

2019-04-02 Thread Ferruh Yigit
On 4/2/2019 8:46 PM, David Marchand wrote: > On Tue, Apr 2, 2019 at 9:30 PM Thomas Monjalon wrote: > >> Only one header file (rte_kni_common.h) was in the sub-directory >> include/exec-env/ >> This file was installed in a sub-directory of the same name >> in the makefile-based build. >> S

Re: [dpdk-dev] [PATCH v3] eal: remove exec-env directory

2019-04-02 Thread Thomas Monjalon
02/04/2019 21:46, David Marchand: > On Tue, Apr 2, 2019 at 9:30 PM Thomas Monjalon wrote: > > > Only one header file (rte_kni_common.h) was in the sub-directory > > include/exec-env/ > > This file was installed in a sub-directory of the same name > > in the makefile-based build. > > Sourc

Re: [dpdk-dev] [PATCH v3] eal: remove exec-env directory

2019-04-02 Thread Ferruh Yigit
On 4/2/2019 8:30 PM, Thomas Monjalon wrote: > Only one header file (rte_kni_common.h) was in the sub-directory > include/exec-env/ > This file was installed in a sub-directory of the same name > in the makefile-based build. > Source and install directories are moved as below: > >lib/libr

Re: [dpdk-dev] [PATCH v3] eal: remove exec-env directory

2019-04-02 Thread David Marchand
On Tue, Apr 2, 2019 at 9:30 PM Thomas Monjalon wrote: > Only one header file (rte_kni_common.h) was in the sub-directory > include/exec-env/ > This file was installed in a sub-directory of the same name > in the makefile-based build. > Source and install directories are moved as below: >

[dpdk-dev] [PATCH v5 2/2] test/hash: lock-free rw concurrency test ext bkt

2019-04-02 Thread Dharmik Thakkar
Add unit test to check for hash lookup and bulk-lookup perf for extendable bucket feature. It is tested with both lock-free enabled and lock-free disabled case. Test includes: - hash lookup on keys in ext bkt - hash delete causing key-shifts of keys from ext bkt to secondary bkt Suggested-by: Ho

[dpdk-dev] [PATCH v5 0/2] hash: add lock free support for ext bkt

2019-04-02 Thread Dharmik Thakkar
This patch series: - Enables lock-free read-write concurrency support for extendable bucket feature. - Adds lock-free read-write concurrency tests for ext bkt --- v5: * Resolve devtools/test-meson-builds.sh error (Thomas). v4: * Add Acked-by tag. v3: * Update lib/librte_hash/rte_cuckoo_hash.c

[dpdk-dev] [PATCH v5 1/2] hash: add lock free support for extendable bucket

2019-04-02 Thread Dharmik Thakkar
This patch enables lock-free read-write concurrency support for extendable bucket feature. Suggested-by: Honnappa Nagarahalli Signed-off-by: Dharmik Thakkar Reviewed-by: Ruifeng Wang Reviewed-by: Gavin Hu Reviewed-by: Honnappa Nagarahalli Acked-by: Yipeng Wang --- doc/guides/prog_guide/hash

Re: [dpdk-dev] [PATCH v4 2/2] test/hash: lock-free rw concurrency test ext bkt

2019-04-02 Thread Dharmik Thakkar
Hi Thomas, Thank you for the review! > On Apr 1, 2019, at 7:57 PM, Thomas Monjalon wrote: > > 02/04/2019 01:08, Dharmik Thakkar: >> Add unit test to check for hash lookup and bulk-lookup perf for >> extendable bucket feature. >> It is tested with both lock-free enabled and lock-free disabled ca

Re: [dpdk-dev] [PATCH v9 1/1] net/af_xdp: introduce AF XDP PMD driver

2019-04-02 Thread Ferruh Yigit
On 4/2/2019 4:46 PM, Xiaolong Ye wrote: > Add a new PMD driver for AF_XDP which is a proposed faster version of > AF_PACKET interface in Linux. More info about AF_XDP, please refer to [1] > [2]. > > This is the vanilla version PMD which just uses a raw buffer registered as > the umem. > > [1] htt

Re: [dpdk-dev] [PATCH v2 3/3] rxtx_callbacks: Add support for HW timestamp

2019-04-02 Thread Tom Barbette
Le 02/04/2019 à 20:22, Ferruh Yigit a écrit : Same comment as ethdev one, above code assume if driver announces 'DEV_RX_OFFLOAD_TIMESTAMP' capability, it have to implement 'read_clock' dev_ops, should it be the case? Write now only mlx implements it so this is not a problem at all, but I don't k

[dpdk-dev] [PATCH v3] eal: remove exec-env directory

2019-04-02 Thread Thomas Monjalon
Only one header file (rte_kni_common.h) was in the sub-directory include/exec-env/ This file was installed in a sub-directory of the same name in the makefile-based build. Source and install directories are moved as below: lib/librte_eal/linux/eal/include/exec-env/ -> lib/librte_eal/lin

Re: [dpdk-dev] [PATCH v2 1/3] rte_ethdev: Add API function to read dev clock

2019-04-02 Thread Tom Barbette
Le 02/04/2019 à 19:46, Ferruh Yigit a écrit : +* **[implements] eth_dev_ops**: ``read_clock``. This means for a PMD to claim 'timestamp' support, it should implement the 'read_clock' dev_ops, is it really the case? Should we say 'related' instead of 'implements' ? Ok for me. I guess this wil

Re: [dpdk-dev] [PATCH v9 1/1] net/af_xdp: introduce AF XDP PMD driver

2019-04-02 Thread Luca Boccassi
On Tue, 2019-04-02 at 23:46 +0800, Xiaolong Ye wrote: > diff --git a/drivers/net/af_xdp/Makefile > b/drivers/net/af_xdp/Makefile > new file mode 100644 > index 0..8343e3016 > --- /dev/null > +++ b/drivers/net/af_xdp/Makefile > @@ -0,0 +1,32 @@ > +# SPDX-License-Identifier: BSD-3-Clause > +#

Re: [dpdk-dev] [PATCH 3/4] net/mlx5: share DV/DR flow related structures

2019-04-02 Thread Shahaf Shuler
Tuesday, April 2, 2019 9:23 AM, Viacheslav Ovsiienko: > Subject: [PATCH 3/4] net/mlx5: share DV/DR flow related structures Same comment about the title. > > DV/DR related structures are moved to the shared context: > - rx/tx namespaces, shared by master and representors > - rx/tx flow table

Re: [dpdk-dev] [PATCH 4/4] net/mlx5: add mutex for shared DV/DR structures

2019-04-02 Thread Shahaf Shuler
Tuesday, April 2, 2019 9:23 AM, Viacheslav Ovsiienko: > Subject: [PATCH 4/4] net/mlx5: add mutex for shared DV/DR structures Same comment about title. > > This patch introduces the mutex for shared DV/DR structures. > Application may have multiple threads (but single dedicated thread per port).

Re: [dpdk-dev] [PATCH 1/4] net/mlx5: add DV/DR flow data alloc/free routines

2019-04-02 Thread Shahaf Shuler
Tuesday, April 2, 2019 9:23 AM, Viacheslav Ovsiienko: > Subject: [PATCH 1/4] net/mlx5: add DV/DR flow data alloc/free routines DV and DR are acronyms which are Mellanox specific. The title should be written in a way that even non-Mellanox developer will easily understand it. > > We are going t

Re: [dpdk-dev] [PATCH 2/4] net/mlx5: add reference counter for DV/DR structures

2019-04-02 Thread Shahaf Shuler
Tuesday, April 2, 2019 9:23 AM, Viacheslav Ovsiienko: > Subject: [PATCH 2/4] net/mlx5: add reference counter for DV/DR structures Same comment about the title. > > This patch introduces the reference counter for DV/DR flow engine > structure, which we are going to share between master and repre

Re: [dpdk-dev] [PATCH v2 2/3] mlx5: Implement support for read_clock

2019-04-02 Thread Tom Barbette
Le 02/04/2019 à 20:26, Ferruh Yigit a écrit : error: no member named 'ctx' in 'struct mlx5_priv' Yes indeed, master changed since my last rebase. This is fixed in v3 (I'll address other comments in related patches before sending v3). I already addressed Shahaf's comments for this patch in

Re: [dpdk-dev] [PATCH v9 1/1] net/af_xdp: introduce AF XDP PMD driver

2019-04-02 Thread Stephen Hemminger
On Tue, 2 Apr 2019 23:46:53 +0800 Xiaolong Ye wrote: > + /* pull from complete qeueu to leave more space */ Overall looks good, one last spelling error

[dpdk-dev] [PATCH v2] bus/pci: fix TOCTOU issue

2019-04-02 Thread Stephen Hemminger
Using access followed by open causes a static analysis warning about Time of check versus Time of use. Also, access() and open() have different UID permission checks. This is not a serious problem; but easy to fix by using errno instead. Coverity issue: 300870 Fixes: 4a928ef9f611 ("bus/pci: enabl

[dpdk-dev] [PATCH v2] examples/vm_power: add conditional compilation for PMD specific code

2019-04-02 Thread David Christensen
Running the devtools/test-build.sh script on IBM Power systems fails because the IXGBE_PMD is explicity disabled for Power as an untested driver, but the examples/vm_power_manager application has a hard dependency on a function call in the IXGBE_PMD. Modify the example application so that all depe

Re: [dpdk-dev] [PATCH v2 2/3] mlx5: Implement support for read_clock

2019-04-02 Thread Ferruh Yigit
On 3/27/2019 6:19 AM, Tom Barbette wrote: > +int > +mlx5_read_clock(struct rte_eth_dev *dev, uint64_t *clock) > +{ > + struct mlx5_priv *priv = dev->data->dev_private; > + struct ibv_values_ex values; > + int err = 0; > + > + values.comp_mask = IBV_VALUES_MASK_RAW_CLOCK; > + err = mlx5_glue->query_

Re: [dpdk-dev] [PATCH v2 3/3] rxtx_callbacks: Add support for HW timestamp

2019-04-02 Thread Ferruh Yigit
On 3/27/2019 6:19 AM, Tom Barbette wrote: > Use rxtx callback to demonstrate a way to use rte_eth_read_clock to > convert the hardware timestamps to an amount of cycles. > > This allows to get the amount of time the packet spent since its entry > in the device. While the regular latency only shows

[dpdk-dev] [PATCH] examples/vm_power: add conditional compilation for PMD specific code

2019-04-02 Thread David Christensen
Signed-off-by: David Christensen --- Running the devtools/test-build.sh script on IBM Power systems fails because the IXGBE_PMD is explicity disabled for Power as an untested driver, but the examples/vm_power_manager application has a hard dependency on a function call in the IXGBE_PMD. Modify th

Re: [dpdk-dev] [PATCH v2 2/3] mlx5: Implement support for read_clock

2019-04-02 Thread Ferruh Yigit
On 3/27/2019 6:19 AM, Tom Barbette wrote: > Signed-off-by: Tom Barbette Hi Shahaf, Reminder of this patch waiting for review.

Re: [dpdk-dev] [PATCH v2 1/3] rte_ethdev: Add API function to read dev clock

2019-04-02 Thread Ferruh Yigit
On 3/27/2019 6:19 AM, Tom Barbette wrote: > Add rte_eth_read_clock to read the raw clock of a devide. > > The main use is to get the device clock conversion co-efficients to be > able to translate the raw clock of the timestamp field of the pkt mbuf > to a local synced time value. > > This functi

Re: [dpdk-dev] [PATCH v2] mem: limit use of address hint

2019-04-02 Thread Alejandro Lucero
On Tue, Apr 2, 2019 at 5:13 PM Burakov, Anatoly wrote: > On 31-Mar-19 9:43 AM, Shahaf Shuler wrote: > > patch[1] added an address hint as starting address for 64 bit systems in > > case an explicit base virtual address was not set by the user. > > > > The justification for such hint was to help d

Re: [dpdk-dev] 18.11.1 patches review and test

2019-04-02 Thread Kevin Traynor
On 02/04/2019 14:21, Luca Boccassi wrote: > Thank you, Ju! > +1, thanks Ju for running these and sharing. I will add summary of them to the 18.11.1 release notes. > Some additional information: this test was run via the LISAv2 framework > that Microsoft uses to validate Linux and other applicati

[dpdk-dev] [PATCH] mbuf: update Tx VLAN and QinQ mbuf flags documentation

2019-04-02 Thread Ferruh Yigit
Currently PKT_TX_VLAN and PKT_TX_QINQ mbuf flags are documented as they are to say packet contains VLAN or QINQ information. Updating the definition as they are requests from application to driver to insert VLAN or double VLAN tags into packet. Fixes: dc6c911c9993 ("mbuf: use reserved space for d

Re: [dpdk-dev] [PATCH v2 3/3] net/mlx5: update modify header using Direct Verbs

2019-04-02 Thread Ori Kam
> -Original Message- > From: dev On Behalf Of Dekel Peled > Sent: Tuesday, April 2, 2019 6:13 PM > To: Adrien Mazarguil ; wenzhuo...@intel.com; > jingjing...@intel.com; bernard.iremon...@intel.com; Yongseok Koh > ; Shahaf Shuler > Cc: dev@dpdk.org; Ori Kam ; Dekel Peled > > Subject: [

Re: [dpdk-dev] [PATCH v2 2/3] app/testpmd: add actions to modify TCP header fields

2019-04-02 Thread Ori Kam
> -Original Message- > From: dev On Behalf Of Dekel Peled > Sent: Tuesday, April 2, 2019 6:13 PM > To: Adrien Mazarguil ; wenzhuo...@intel.com; > jingjing...@intel.com; bernard.iremon...@intel.com; Yongseok Koh > ; Shahaf Shuler > Cc: dev@dpdk.org; Ori Kam ; Dekel Peled > > Subject: [

Re: [dpdk-dev] [PATCH v2 1/3] ethdev: add actions to modify TCP header fields

2019-04-02 Thread Ori Kam
> -Original Message- > From: dev On Behalf Of Dekel Peled > Sent: Tuesday, April 2, 2019 6:13 PM > To: Adrien Mazarguil ; wenzhuo...@intel.com; > jingjing...@intel.com; bernard.iremon...@intel.com; Yongseok Koh > ; Shahaf Shuler > Cc: dev@dpdk.org; Ori Kam ; Dekel Peled > > Subject: [

Re: [dpdk-dev] [PATCH v5 2/2] app/pdump: enhance to support multi-core capture

2019-04-02 Thread Pattan, Reshma
> -Original Message- > From: Varghese, Vipin > > @@ -152,7 +157,7 @@ pdump_usage(const char *prgname) > "[ring-size=default:16384]," > "[mbuf-size=default:2176]," > "[total-num-mbufs= mbufs>default:65535]'\n", > -

Re: [dpdk-dev] [PATCH v2] mem: limit use of address hint

2019-04-02 Thread Burakov, Anatoly
On 31-Mar-19 9:43 AM, Shahaf Shuler wrote: patch[1] added an address hint as starting address for 64 bit systems in case an explicit base virtual address was not set by the user. The justification for such hint was to help devices that work in VA mode and has a address range limitation to work s

[dpdk-dev] [pull-request] next-crypto 19.05 rc1

2019-04-02 Thread Akhil Goyal
The following changes since commit dfc6b2fd8da344095567c53f3e087cae3b4690b9: mbuf: remove Intel offload checks from generic API (2019-04-02 16:42:52 +0200) are available in the Git repository at: http://dpdk.org/git/next/dpdk-next-crypto for you to fetch changes up to 56e837a425a41a1e095cc

Re: [dpdk-dev] [PATCH] rte_reciprocal: make arg to rte_reciprocal_divide_u64 const

2019-04-02 Thread Thomas Monjalon
02/04/2019 17:26, Stephen Hemminger: > On Wed, 27 Mar 2019 12:14:44 +0100 > Thomas Monjalon wrote: > > > 21/03/2019 20:59, Stephen Hemminger: > > > The divisor is not modified here. Doesn't really matter for optimizaton > > > since the function is inline already; but helps with expressing > > > i

[dpdk-dev] [PATCH v2] eal: rename state values in rte_lcore_state

2019-04-02 Thread Stephen Hemminger
C language does not really treat enum's as first class symbols. The values in an enum live in a global namespace. That means if DPDK defines "RUNNING" it can't be used by another enum in an application using DPDK. To solve this add a prefix "RTE_LCORE_" to the enum values, and make them grammatic

[dpdk-dev] [PATCH v9 1/1] net/af_xdp: introduce AF XDP PMD driver

2019-04-02 Thread Xiaolong Ye
Add a new PMD driver for AF_XDP which is a proposed faster version of AF_PACKET interface in Linux. More info about AF_XDP, please refer to [1] [2]. This is the vanilla version PMD which just uses a raw buffer registered as the umem. [1] https://fosdem.org/2018/schedule/event/af_xdp/ [2] https://

[dpdk-dev] [PATCH v9 0/1] Introduce AF_XDP PMD

2019-04-02 Thread Xiaolong Ye
Overview This patchset adds a new PMD driver for AF_XDP which is a proposed faster version of AF_PACKET interface in Linux, see below links [1] [2] for details of AF_XDP introduction: AF_XDP roadmap == - AF_XDP is included in upstream kernel since 4.18, and AF_XDP support i

Re: [dpdk-dev] [PATCH v6 0/9] Few small improvements for ipsec library

2019-04-02 Thread Akhil Goyal
On 4/2/2019 2:04 PM, Konstantin Ananyev wrote: > v6 -> v5 > Fix endianness issue spotted by Olivier > Added UT test-case for rte_mbuf_tx_offload() > > v5 -> v4 > Few cosmetic changes in mbuf tx_offload patch requested by Olivier > > v4 -> v3 > Address Akhil comments: >- function/param

Re: [dpdk-dev] [PATCH] rte_ethdev: fix typos in error log message

2019-04-02 Thread Ferruh Yigit
On 4/1/2019 9:52 AM, Andrew Rybchenko wrote: > On 3/31/19 1:46 PM, Dekel Peled wrote: >> Correct minor typing mistake: >> pre-queue ==> per-queue >> >> Fixes: bea1e0c70cfc ("ethdev: convert static log type usage to dynamic") >> Cc: sta...@dpdk.org >> >> Signed-off-by: Dekel Peled > > > Reviewed-

Re: [dpdk-dev] [dpdk-stable] [PATCH] app/testpmd: fix typo in comment

2019-04-02 Thread Ferruh Yigit
On 4/1/2019 5:05 PM, Iremonger, Bernard wrote: >> -Original Message- >> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Dekel Peled >> Sent: Sunday, March 31, 2019 11:36 AM >> To: Wu, Jingjing ; Lu, Wenzhuo >> >> Cc: dev@dpdk.org; or...@mellanox.com; sta...@dpdk.org >> Subject: [dpdk-

Re: [dpdk-dev] [dpdk-stable] [PATCH] doc: fix typos in testpmd user guide

2019-04-02 Thread Ferruh Yigit
On 4/1/2019 5:19 PM, Iremonger, Bernard wrote: >> -Original Message- >> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Dekel Peled >> Sent: Sunday, March 31, 2019 11:21 AM >> To: Wu, Jingjing ; Lu, Wenzhuo >> >> Cc: dev@dpdk.org; or...@mellanox.com; sta...@dpdk.org >> Subject: [dpdk-

[dpdk-dev] [PATCH v2] rte_ring: add newline to error message

2019-04-02 Thread Stephen Hemminger
Log message should end with newline. Fixes: 4e32101f9b01 ("ring: support freeing") Signed-off-by: Stephen Hemminger Reviewed-by: Rami Rosen --- v2 -- fix punctuation in message as well lib/librte_ring/rte_ring.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/librte_r

Re: [dpdk-dev] [PATCH v5 2/2] app/pdump: enhance to support multi-core capture

2019-04-02 Thread Varghese, Vipin
Hi David, snipped #define CMD_LINE_OPT_PDUMP "pdump" +#define CMD_LINE_OPT_PDUMP_NUM 1 +#define CMD_LINE_OPT_MULTI "multi" +#define CMD_LINE_OPT_MULTI_NUM 2 #define PDUMP_PORT_ARG "port" #define PDUMP_PCI_ARG "device_id" #define PDUMP_QUEUE_ARG "queue" You'd better map to integers that do not

Re: [dpdk-dev] [PATCH] rte_reciprocal: make arg to rte_reciprocal_divide_u64 const

2019-04-02 Thread Stephen Hemminger
On Wed, 27 Mar 2019 12:14:44 +0100 Thomas Monjalon wrote: > 21/03/2019 20:59, Stephen Hemminger: > > The divisor is not modified here. Doesn't really matter for optimizaton > > since the function is inline already; but helps with expressing > > intent. > > > > Signed-off-by: Stephen Hemminger >

[dpdk-dev] [PATCH v2 1/2] hexdump: whitespace cleanup

2019-04-02 Thread Stephen Hemminger
The hexdump code obviously came from somewhere else originally. It is not formatted according to DPDK coding style. Also, drop the comment which is not useful the docbock comment is already in the rte_hexdump.h Signed-off-by: Stephen Hemminger --- v2 - keep BSD style function definition lib/li

[dpdk-dev] [PATCH v2 2/2] hexdump: align output of string

2019-04-02 Thread Stephen Hemminger
This fixes the issue where if the length of the output is not a multiple of 16 the formatting was off. Before: : 45 00 00 1C 12 34 2C E0 40 06 B8 2E C0 A8 01 12 | E4,.@... 0010: C0 A8 01 37 | | | | | | | | | | | | | ...7 After: : 45 00 00 1C 12 34 2C E0 40

[dpdk-dev] [PATCH v2 0/2] eal: hexdump cleanups

2019-04-02 Thread Stephen Hemminger
Minor bugfix and source cleanup Stephen Hemminger (2): hexdump: whitespace cleanup hexdump: align output of string lib/librte_eal/common/eal_common_hexdump.c | 114 + 1 file changed, 50 insertions(+), 64 deletions(-) -- 2.17.1

Re: [dpdk-dev] [PATCH v6 1/4] app/testpmd: move eth header generation outside the loop

2019-04-02 Thread Raslan Darawsheh
Hi, The performance issue that we saw in Mellanox is now fixed with latest version: The issue was with the packet len calculation that was changed in the latest versions > 4: diff --git a/app/test-pmd/txonly.c b/app/test-pmd/txonly.c index af0be89..2f40949 100644 --- a/app/test-pmd/txonly.c +++

Re: [dpdk-dev] [PATCH 2/3] app/testpmd: support creation of no IOVA contig mempools

2019-04-02 Thread Burakov, Anatoly
On 02-Apr-19 8:02 AM, Shahaf Shuler wrote: Monday, April 1, 2019 4:50 PM, Burakov, Anatoly: Subject: Re: [dpdk-dev] [PATCH 2/3] app/testpmd: support creation of no IOVA contig mempools On 01-Apr-19 11:34 AM, Shahaf Shuler wrote: providing a command line parameter to set the mempool flags accor

Re: [dpdk-dev] [PATCH v8 1/1] net/af_xdp: introduce AF XDP PMD driver

2019-04-02 Thread Ye Xiaolong
On 04/02, Stephen Hemminger wrote: >On Tue, 2 Apr 2019 18:45:54 +0800 >Xiaolong Ye wrote: > >> + >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> + >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include

[dpdk-dev] [PATCH v2 3/3] net/mlx5: update modify header using Direct Verbs

2019-04-02 Thread Dekel Peled
This patch implements additional actions of packet header modifications. Add actions: - INC_TCP_SEQ - Increase sequence number in the outermost TCP header. - DEC_TCP_SEQ - Decrease sequence number in the outermost TCP header. - INC_TCP_ACK - Increase acknowledgment number in the outermost TCP

  1   2   3   >