Re: [dpdk-dev] [PATCH] security: remove experimental tag

2018-11-14 Thread Hemant Agrawal
On 11/13/2018 9:06 PM, Ananyev, Konstantin wrote: > > -Original Message- > From: Akhil Goyal [mailto:akhil.go...@nxp.com] > Sent: Tuesday, November 13, 2018 11:28 AM > To: dev@dpdk.org > Cc: tho...@monjalon.net; Ananyev, Konstantin > ; jerin.ja...@caviumnetworks.com;

Re: [dpdk-dev] [RFC] cryptodev: proposed changes in rte_cryptodev_sym_session

2018-11-14 Thread Ananyev, Konstantin
> > > > @@ -1301,8 +1346,7 @@ rte_cryptodev_sym_session_free(struct > > > > rte_cryptodev_sym_session *sess) > > > > > > > > /* Check that all device private data has been freed */ > > > > for (i = 0; i < nb_drivers; i++) { > > > [Fiona] Use the sess.nb_drivers rather than the gl

Re: [dpdk-dev] [PATCH] app/pdump: fix port id storage size

2018-11-14 Thread Kovacevic, Marko
> > port_id size should be uint16_t, > > fix where it is defined as uint8_t > > > > Fixes: f8244c6399d9 ("ethdev: increase port id range") > > Cc: zhiyong.y...@intel.com > > > > Signed-off-by: Marko Kovacevic > > --- > > app/pdump/main.c | 6 +++--- > > 1 file changed, 3 insertions(+), 3 deletion

Re: [dpdk-dev] [PATCH] examples/vhost_crypto: fix zero copy

2018-11-14 Thread Zhang, Roy Fan
Hi Mattias, Sorry for the late reply. Comments inline. > -Original Message- > From: Mattias Rönnblom [mailto:mattias.ronnb...@ericsson.com] > Sent: Tuesday, October 30, 2018 7:38 PM > To: Zhang, Roy Fan ; dev@dpdk.org > Cc: maxime.coque...@redhat.com > Subject: Re: [dpdk-dev] [PATCH] exam

Re: [dpdk-dev] [PATCH] security: remove experimental tag

2018-11-14 Thread Ananyev, Konstantin
> > On 11/13/2018 9:06 PM, Ananyev, Konstantin wrote: > > > > -Original Message- > > From: Akhil Goyal [mailto:akhil.go...@nxp.com] > > Sent: Tuesday, November 13, 2018 11:28 AM > > To: dev@dpdk.org > > Cc: tho...@monjalon.net; Ananyev, Konstantin > > ; jerin.ja...

[dpdk-dev] [PATCH v3] app/pdump: fix port id storage size

2018-11-14 Thread Marko Kovacevic
port_id size should be uint16_t, fix where it is defined as uint8_t Fixes: f8244c6399d9 ("ethdev: increase port id range") Cc: zhiyong.y...@intel.com Cc: sta...@dpdk.org Signed-off-by: Marko Kovacevic -- v2: Added cc to stable v3: Changed two more values to uint16_t (Reshma) --- app/pdump/

Re: [dpdk-dev] [PATCH v2] example/ipv4_multicast: fix app hanging when using clone

2018-11-14 Thread Ananyev, Konstantin
Hi Dong, > Hi Herakliusz, > > Since pkt->ol_flags might set some other bits except IND_ATTACHED_MBUF, how > about set its value to original pkt->ol_flag It could be done, but not sure what is the point? Which flags you think we need to copy from cloned mbuf (segment #2) to new header? Konstant

Re: [dpdk-dev] [PATCH v1] app/testpmd: set default RSS key as NULL

2018-11-14 Thread Ophir Munk
Hi Zhao, The patch which causes your crash is already reverted (see [1]). You can find it with head of next-net or in RC3 (once it is issued). Please re-test your case after applying the reverting patch. Regards, Ophir [1] Commit 8773db152033 ("app/testpmd: revert setting default RSS") > -O

[dpdk-dev] [PATCH] net/octeontx: fix failures when available ports > queues

2018-11-14 Thread Anoob Joseph
When eth_octeontx is initialized before event_octeontx, eth_octeontx would initiate setting up of the event device with the max ports and queues available. If number of ports is more than the number of queues, some ports would be left unused when the ports and queues are mapped 1:1. But even in tha

[dpdk-dev] [PATCH] test: fix to skip power kvm vm autotest

2018-11-14 Thread Pallantla Poornima
Power_kvm_vm_autotest should run on kvm vm and virtio-ports should exist,if not test should skip. Hence changed return as TEST_SKIPPED. Fixes: 0ea2dd4409 ("test: skip when required lib not available") Cc: sta...@dpdk.org Signed-off-by: Pallantla Poornima --- test/test/test_power_kvm_vm.c | 2 +-

Re: [dpdk-dev] [PATCH 3/3] app/testpmd: fix callback issue for hot-unplug

2018-11-14 Thread Jeff Guo
On 11/12/2018 9:35 AM, Thomas Monjalon wrote: 11/11/2018 08:31, Matan Azrad: From: Jeff Guo On 11/9/2018 1:24 PM, Matan Azrad wrote: From: Jeff Guo On 11/8/2018 5:35 PM, Matan Azrad wrote: From: Jeff Guo On 11/8/2018 3:28 PM, Matan Azrad wrote: From: Ananyev, Konstantin From: Guo, Ji

Re: [dpdk-dev] [PATCH v2] ethdev: document RSS default key and types

2018-11-14 Thread Adrien Mazarguil
Hi Shahaf, On Tue, Nov 13, 2018 at 06:39:04PM +, Shahaf Shuler wrote: > Hi Adrien, > > Tuesday, November 13, 2018 7:15 PM, Adrien Mazarguil: > > Subject: Re: [dpdk-dev] [PATCH v2] ethdev: document RSS default key and > > types > > > > Again a bit late to the party, please see below. > > >

[dpdk-dev] [PATCH] doc/guides: update build steps for OCTEON TX

2018-11-14 Thread Anoob Joseph
Updating platform doc with steps to build when using Cavium OCTEON TX SDK. SDK would be required for using crypto offload block. Signed-off-by: Anoob Joseph --- doc/guides/cryptodevs/octeontx.rst | 29 -- doc/guides/platform/octeontx.rst | 116 +++-- 2

Re: [dpdk-dev] [PATCH] security: remove experimental tag

2018-11-14 Thread Joseph, Anoob
Acked-by: Anoob Joseph > -Original Message- > From: Akhil Goyal > Sent: 13 November 2018 16:58 > To: dev@dpdk.org > Cc: tho...@monjalon.net; konstantin.anan...@intel.com; Jacob, Jerin > ; Joseph, Anoob > ; radu.nico...@intel.com; > declan.dohe...@intel.com; Hemant Agrawal ; > Akhil Goyal

Re: [dpdk-dev] [PATCH v1] app/testpmd: set default RSS key as NULL

2018-11-14 Thread Zhao1, Wei
> -Original Message- > From: Ophir Munk [mailto:ophi...@mellanox.com] > Sent: Wednesday, November 14, 2018 5:20 PM > To: Zhao1, Wei ; Lu, Wenzhuo > ; Wu, Jingjing ; Iremonger, > Bernard ; dev@dpdk.org; Peng, Yuan > > Cc: Asaf Penso ; Shahaf Shuler > ; Thomas Monjalon ; > Olga Shern ; Yo

[dpdk-dev] [PATCH] net/ena: cleaning HW IO rings configuration

2018-11-14 Thread Rafal Kozik
When queues are stoped release tx buffers. During start initialize array of empty tx/rx reqs with default values. Fixes: df238f84c0a2 ("net/ena: recreate HW IO rings on start and stop") Signed-off-by: Rafal Kozik Acked-by: Michal Krawczyk --- drivers/net/ena/ena_ethdev.c | 7 +++ 1 file ch

Re: [dpdk-dev] [PATCH] app/pdump: fix port id storage size

2018-11-14 Thread Pattan, Reshma
> -Original Message- > From: Kovacevic, Marko > Sent: Wednesday, November 14, 2018 8:39 AM > To: Pattan, Reshma ; dev@dpdk.org > Cc: Yigit, Ferruh ; Yang, Zhiyong > > Subject: RE: [PATCH] app/pdump: fix port id storage size > > > > port_id size should be uint16_t, > > > fix where it is

Re: [dpdk-dev] [PATCH] doc: cryptodev deprecation notice for sym session changes

2018-11-14 Thread Ananyev, Konstantin
Hi Anoob, > > Hi Akhil, Konstantin, > > Wouldn't the new element, userdata, conflict with the one referred by > > rte_cryptodev_sym_session_set_user_data() > rte_cryptodev_sym_session_get_user_data() > > Do you mind a name change for either? Or do you have a clear picture of when > one should

Re: [dpdk-dev] [PATCH v2] example/ipv4_multicast: fix app hanging when using clone

2018-11-14 Thread Wang, Dong1
Hi Konstantin, In this example, no flags be set by user, so no need to copy flags from original mbuf. I'm thinking about some DPDK developers may create their own application based on this example, they add some flags before packet be cloned. Regards, Dong -Original Message- From: An

Re: [dpdk-dev] [PATCH] doc: cryptodev deprecation notice for sym session changes

2018-11-14 Thread Joseph, Anoob
> -Original Message- > From: Ananyev, Konstantin > Sent: 14 November 2018 15:38 > To: Joseph, Anoob ; Akhil Goyal > ; dev@dpdk.org; Ravi Kumar ; > Jacob, Jerin ; Doherty, Declan > ; Trahe, Fiona ; Tomasz > Duszynski ; Dmitri Epshtein ; Natalie > Samsonov ; Jay Zhou > Cc: Athreya, Naraya

Re: [dpdk-dev] [PATCH] doc: update timestamp validity for latency measurement

2018-11-14 Thread Kovacevic, Marko
> Updated the doc on how packets are marked to identify their timestamp as > valid and considered for latency measurement. > > Suggested-by: Bao-Long Tran > Signed-off-by: Reshma Pattan > > +Timestamp and latency calculation > +~ > + > +The Latency stats library m

Re: [dpdk-dev] [RFC] cryptodev: proposed changes in rte_cryptodev_sym_session

2018-11-14 Thread Zhang, Roy Fan
Hi Fiona, > -Original Message- > From: Trahe, Fiona > Sent: Wednesday, November 14, 2018 12:46 AM > To: Ananyev, Konstantin ; dev@dpdk.org > Cc: De Lara Guarch, Pablo ; Akhil Goyal > ; Doherty, Declan ; Ravi > Kumar ; Jerin Jacob > ; Zhang, Roy Fan > ; Tomasz Duszynski ; > Hemant Agrawal ;

Re: [dpdk-dev] [PATCH v2] example/ipv4_multicast: fix app hanging when using clone

2018-11-14 Thread Ananyev, Konstantin
> > Hi Konstantin, > > In this example, no flags be set by user, so no need to copy flags from > original mbuf. Then why to bother? > I'm thinking about some DPDK developers may create their own application > based on this example, they add some flags before packet be > cloned. Hmm you r

Re: [dpdk-dev] Where is the padding code in DPDK?

2018-11-14 Thread Burakov, Anatoly
On 14-Nov-18 5:45 AM, Sam wrote: OK, then shortly speaking, DPDK will NOT care about padding. NIC will care about padding while send and recv with NIC. kernel will care about while send and recv with vhostuser port. Is that right? I cannot speak for virtio/vhost user since i am not terribly fa

Re: [dpdk-dev] [PATCH v2] eal: clean up unused files on initialization

2018-11-14 Thread Burakov, Anatoly
On 14-Nov-18 3:44 AM, Thomas Monjalon wrote: 14/11/2018 04:24, Varghese, Vipin: Tested-by: Vipin Varghese When creating process data structures, EAL will create many files in EAL runtime directory. Because we allow multiple secondary processes to run, each secondary process gets their own

Re: [dpdk-dev] [PATCH v2] example/ipv4_multicast: fix app hanging when using clone

2018-11-14 Thread Lipiec, Herakliusz
Hi Dong, I think that if a developer is to manipulate ol_flags, then its onto that developer to take care of copying ol_flags . Regards Herakliusz > -Original Message- > From: Wang, Dong1 > Sent: Wednesday, November 14, 2018 10:09 AM > To: Ananyev, Konstantin ; Lipiec, Herakliusz > ; dev@

Re: [dpdk-dev] [PATCH v3] app/pdump: fix port id storage size

2018-11-14 Thread Pattan, Reshma
> -Original Message- > From: Kovacevic, Marko > Sent: Wednesday, November 14, 2018 8:57 AM > To: dev@dpdk.org > Cc: Yigit, Ferruh ; Pattan, Reshma > ; Kovacevic, Marko ; > Yang, Zhiyong ; sta...@dpdk.org > Subject: [PATCH v3] app/pdump: fix port id storage size > > port_id size should b

Re: [dpdk-dev] [PATCH v3] app/proc-info: fix port mask parse issue

2018-11-14 Thread Burakov, Anatoly
On 14-Nov-18 3:10 AM, Thomas Monjalon wrote: Hi, 07/11/2018 07:10, Li Han: parse_portmask return type is int,but global variable "enabled_port_mask" type is uint32_t.so in proc_info_parse_args function,when parse_portmask return -1,"enabled_port_mask" will get a huge value and "if (enabled_port

Re: [dpdk-dev] [PATCH] net/octeontx: fix failures when available ports > queues

2018-11-14 Thread Jerin Jacob
-Original Message- > Date: Wed, 14 Nov 2018 14:52:03 +0530 > From: "Joseph, Anoob" > To: Ferruh Yigit , "Jacob, Jerin" > > CC: "Joseph, Anoob" , "Athreya, Narayana Prasad" > , "Bhagavatula, Pavan" > , "dev@dpdk.org" , > "sta...@dpdk.org" > Subject: [PATCH] net/octeontx: fix failures

Re: [dpdk-dev] Where is the padding code in DPDK?

2018-11-14 Thread Morten Brørup
Anatoly, This differs from the Linux kernel's behavior, where padding belongs in the NIC driver layer, not in the protocol layer. If you pass a runt frame (too short packet) to a Linux NIC driver's transmission function, the NIC driver (or NIC hardware) will pad the frame to make it valid. E.g.

Re: [dpdk-dev] [PATCH v2] example/ipv4_multicast: fix app hanging when using clone

2018-11-14 Thread Wang, Dong1
Hi Konstantin & Herakliusz, In mcast_out_pkt(), new header added and to be the first segment. Driver will check first segment's ol_flags when sending mbuf. So why new first segment didn't inherit old one's ol_flags? This function already copied other mbuf fields from old one. Since this is an

[dpdk-dev] [PATCH] eal: fix duplicate function declaration

2018-11-14 Thread Kevin Laatz
The rte_eal_get_runtime_dir() function is currently being declared in two header files. This API was made public in commit 6911c9fd8fbe, adding it to rte_eal.h. To make it public, the 'rte' prefix was added to the function so it needed to be modified in the original location of the declaration, ea

[dpdk-dev] [PATCH v2] examples/vhost_crypto: fix zero copy

2018-11-14 Thread Fan Zhang
This patch fixes the zero copy enable problem for vhost crypto sample application. For some Crypto PMDs such as AESNI-MB and AESNI-GCM the data to be processed will be made a copy in the same buffer but next to the data. For example, to encrypt 64 bytes data the PMD will copy this data from offset

Re: [dpdk-dev] [PATCH v2] example/ipv4_multicast: fix app hanging when using clone

2018-11-14 Thread Ananyev, Konstantin
> -Original Message- > From: Wang, Dong1 > Sent: Wednesday, November 14, 2018 11:06 AM > To: Ananyev, Konstantin ; Lipiec, Herakliusz > ; dev@dpdk.org > Cc: tho...@monjalon.net; Burakov, Anatoly ; > sta...@dpdk.org > Subject: RE: [PATCH v2] example/ipv4_multicast: fix app hanging when

[dpdk-dev] [PATCH v2] eal: fix duplicate function declaration

2018-11-14 Thread Kevin Laatz
The rte_eal_get_runtime_dir() function is currently being declared in two header files. This API was made public in commit 6911c9fd8fbe ("eal: export function to get runtime directory"), adding it to rte_eal.h. To make it public, the 'rte' prefix was added to the function so it needed to be modifi

Re: [dpdk-dev] [RFC] ethdev: introduce DMA memory mapping for external memory

2018-11-14 Thread Burakov, Anatoly
Hi Shahaf, Great to see such effort! Few comments below. Note: halfway through writing my comments i realized that i am starting with an assumption that this API is a replacement for current VFIO DMA mapping API's. So, if my comments seem out of left field, this is probably why :) On 04-Nov

[dpdk-dev] [PATCH v2] lib/efd: fix to free tail queue entry after use

2018-11-14 Thread Hari Kumar Vemula
In rte_efd_create() allocated memory for tail queue entry but not freed. Added freeing the tail queue entry. Fixes: 56b6ef874f80 ("efd: new Elastic Flow Distributor library") Cc: sta...@dpdk.org Signed-off-by: Hari Kumar Vemula Acked-by: Reshma Pattan --- v2: Updated commit message. --- lib/

Re: [dpdk-dev] [PATCH] eal: fix duplicate function declaration

2018-11-14 Thread Burakov, Anatoly
On 14-Nov-18 11:14 AM, Kevin Laatz wrote: The rte_eal_get_runtime_dir() function is currently being declared in two header files. This API was made public in commit 6911c9fd8fbe, adding it to rte_eal.h. To make it public, the 'rte' prefix was added to the function so it needed to be modified in

[dpdk-dev] [PATCH] doc: security deprecation notice for session changes

2018-11-14 Thread Konstantin Ananyev
Add 'uint64_t opaque_data' inside struct rte_security_session. That allows upper layer to easily associate some user defined data with the session. Proposed new layout for: struct rte_security_session { void *sess_private_data; /**< Private session material */ + uint64_t opaqu

Re: [dpdk-dev] [PATCH v2] eal: fix duplicate function declaration

2018-11-14 Thread Burakov, Anatoly
On 14-Nov-18 11:20 AM, Kevin Laatz wrote: The rte_eal_get_runtime_dir() function is currently being declared in two header files. This API was made public in commit 6911c9fd8fbe ("eal: export function to get runtime directory"), adding it to rte_eal.h. To make it public, the 'rte' prefix was add

[dpdk-dev] [PATCH v2] lib/efd: fix write unlock during ring creation

2018-11-14 Thread Chaitanya Babu Talluri
In rte_efd_create() write lock has already been unlocked before ring creation itself. So second unlock after the ring creation has been removed. Fixes: 56b6ef874f80 ("efd: new Elastic Flow Distributor library") Cc: sta...@dpdk.org Signed-off-by: Chaitanya Babu Talluri Acked-by: Reshma Pattan --

Re: [dpdk-dev] [PATCH] doc: security deprecation notice for session changes

2018-11-14 Thread Zhang, Roy Fan
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Konstantin > Ananyev > Sent: Wednesday, November 14, 2018 11:24 AM > To: dev@dpdk.org > Cc: akhil.go...@nxp.com; Doherty, Declan ; > Ananyev, Konstantin > Subject: [dpdk-dev] [PATCH] doc: security deprecation notic

Re: [dpdk-dev] [PATCH] doc: security deprecation notice for session changes

2018-11-14 Thread Mohammad Abdul Awal
On 14/11/2018 11:23, Konstantin Ananyev wrote: Add 'uint64_t opaque_data' inside struct rte_security_session. That allows upper layer to easily associate some user defined data with the session. Proposed new layout for: struct rte_security_session { void *sess_private_data; /**

Re: [dpdk-dev] [PATCH v2] example/ipv4_multicast: fix app hanging when using clone

2018-11-14 Thread Wang, Dong1
OK, understand now. Thanks, Dong -Original Message- From: Ananyev, Konstantin Sent: Wednesday, November 14, 2018 19:19 To: Wang, Dong1 ; Lipiec, Herakliusz ; dev@dpdk.org Cc: tho...@monjalon.net; Burakov, Anatoly ; sta...@dpdk.org Subject: RE: [PATCH v2] example/ipv4_multicast: fix app

Re: [dpdk-dev] [PATCH v2] example/ipv4_multicast: fix app hanging when using clone

2018-11-14 Thread Wang, Dong1
Acked-by: Wang Dong -Original Message- From: Ananyev, Konstantin Sent: Tuesday, November 13, 2018 19:52 To: Lipiec, Herakliusz ; dev@dpdk.org Cc: Wang, Dong1 ; tho...@monjalon.net; Burakov, Anatoly ; sta...@dpdk.org Subject: RE: [PATCH v2] example/ipv4_multicast: fix app hanging when us

[dpdk-dev] [PATCH 1/2] build: avoid non supported -march on ppc (meson)

2018-11-14 Thread Christian Ehrhardt
So far only if machine was "native" it did use the re-direction to not set -march on ppc64 (where -march is not supported). We have to use mcpu/mtune in any case on ppc for whatever someone using the build system defines as machine. Signed-off-by: Christian Ehrhardt --- config/meson.build | 5 ++

[dpdk-dev] [PATCH 2/2] build: establish an invariant machine type

2018-11-14 Thread Christian Ehrhardt
Add the machine definition 'baseline' which is special compared to 'native' (most optimized for current system) or any explicit type (external entity has to decide on the type). It defaults to the per arch agreed common minimal baseline needed for DPDK to reasonable work. That might not be the mo

Re: [dpdk-dev] [PATCH 1/2] build: avoid non supported -march on ppc (meson)

2018-11-14 Thread Luca Boccassi
On Wed, 2018-11-14 at 12:34 +0100, Christian Ehrhardt wrote: > So far only if machine was "native" it did use the re-direction to > not set -march on ppc64 (where -march is not supported). > We have to use mcpu/mtune in any case on ppc for whatever someone > using > the build system defines as mach

Re: [dpdk-dev] [PATCH 2/2] build: establish an invariant machine type

2018-11-14 Thread Luca Boccassi
On Wed, 2018-11-14 at 12:34 +0100, Christian Ehrhardt wrote: > Add the machine definition 'baseline' which is special compared > to 'native' (most optimized for current system) or any explicit > type (external entity has to decide on the type). > > It defaults to the per arch agreed common minimal

Re: [dpdk-dev] [PATCH 1/1] eal: Don't fail secondary if primary is missing tailqs

2018-11-14 Thread Bruce Richardson
On Tue, Nov 13, 2018 at 11:42:51PM +, Burdick, Cliff wrote: > > > From: Thomas Monjalon [tho...@monjalon.net] > Sent: Tuesday, November 13, 2018 2:18 PM > To: Burdick, Cliff > Cc: Burakov, Anatoly; dev@dpdk.org; bruce.richard...@intel.com > Subject: Re:

Re: [dpdk-dev] [PATCH 2/2] build: establish an invariant machine type

2018-11-14 Thread Bruce Richardson
On Wed, Nov 14, 2018 at 11:40:11AM +, Luca Boccassi wrote: > On Wed, 2018-11-14 at 12:34 +0100, Christian Ehrhardt wrote: > > Add the machine definition 'baseline' which is special compared > > to 'native' (most optimized for current system) or any explicit > > type (external entity has to deci

[dpdk-dev] [PATCH] testpmd: fix memory leak for dscp table

2018-11-14 Thread Jasvinder Singh
Fix memory leak for dscp table reported by coverity Coverity ID: 326961 Fixes: 281eeb8afc55 ("app/testpmd: add commands for metering and policing") CC: sta...@dpdk.org Signed-off-by: Jasvinder Singh --- app/test-pmd/cmdline_mtr.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) di

[dpdk-dev] [PATCH] doc: fix DESTDIR variable name in meson guide

2018-11-14 Thread Ilya Maximets
ninja does not recognize 'DEST_DIR'. Fixes: 9c3adc289c5e ("doc: add instructions on build using meson") Cc: sta...@dpdk.org Signed-off-by: Ilya Maximets --- doc/build-sdk-meson.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/build-sdk-meson.txt b/doc/build-sdk-meson.

Re: [dpdk-dev] [PATCH 2/2] build: establish an invariant machine type

2018-11-14 Thread Luca Boccassi
On Wed, 2018-11-14 at 11:52 +, Bruce Richardson wrote: > On Wed, Nov 14, 2018 at 11:40:11AM +, Luca Boccassi wrote: > > On Wed, 2018-11-14 at 12:34 +0100, Christian Ehrhardt wrote: > > > Add the machine definition 'baseline' which is special compared > > > to 'native' (most optimized for cu

Re: [dpdk-dev] [PATCH 2/2] net/mlx5: fix initialization of struct members

2018-11-14 Thread Shahaf Shuler
Adding Koh, see below Tuesday, November 13, 2018 9:11 PM, Ali Alnubani: > Subject: [PATCH 2/2] net/mlx5: fix initialization of struct members > > This patch fixes compilation errors with meson and the clang compiler caused > by some of the struct members not being initialized. > > ``` > ../driv

[dpdk-dev] [PATCH] bitmap: deprecate rte_bsf64

2018-11-14 Thread Anatoly Burakov
The rte_bsf64 in rte_bitmap.h has a global namespace but does not follow convention of existing rte_bsf32 function in rte_common.h. Therefore, deprecate the current rte_bsf64 and introduce a new rte_bitmap_bsf64 function that will do the same thing. In later release cycles, rte_bsf64 will be remo

[dpdk-dev] [PATCH] examples/bond: wait for slaves to become active

2018-11-14 Thread Radu Nicolau
Do not start the packet processing threads until all configured slaves become active. Signed-off-by: Radu Nicolau --- examples/bond/main.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/examples/bond/main.c b/examples/bond/main.c index b282e68..6623cae 100644 --- a/examples

Re: [dpdk-dev] [PATCH] doc: security deprecation notice for session changes

2018-11-14 Thread Akhil Goyal
On 11/14/2018 4:53 PM, Konstantin Ananyev wrote: > Add 'uint64_t opaque_data' inside struct rte_security_session. > That allows upper layer to easily associate some user defined > data with the session. > Proposed new layout for: > struct rte_security_session { > void *sess_private_data; >

Re: [dpdk-dev] [PATCH] security: remove experimental tag

2018-11-14 Thread Hemant Agrawal
Acked-by: Hemant Agrawal On 11/13/2018 4:58 PM, Akhil Goyal wrote: > rte_security has been experimental since DPDK 17.11 release. > Now the library has matured and expermental tag is removed in > this patch. > >

Re: [dpdk-dev] [dpdk-stable] [PATCH 17.11] mem: fix memory initialization time

2018-11-14 Thread Eelco Chaudron
On 12 Nov 2018, at 12:26, Eelco Chaudron wrote: On 12 Nov 2018, at 12:18, Alejandro Lucero wrote: When using large amount of hugepage based memory, doing all the hugepages mapping can take quite significant time. The problem is hugepages being initially mmaped to virtual addresses which wi

Re: [dpdk-dev] [PATCH 2/4] net/mlx5: fix Netlink communication routine

2018-11-14 Thread Slava Ovsiienko
> -Original Message- > From: Shahaf Shuler > Sent: Tuesday, November 13, 2018 15:22 > To: Slava Ovsiienko ; Yongseok Koh > > Cc: dev@dpdk.org > Subject: RE: [PATCH 2/4] net/mlx5: fix Netlink communication routine > > Monday, November 12, 2018 10:02 PM, Slava Ovsiienko: > > Subject: [PATCH

Re: [dpdk-dev] [PATCH] doc: security deprecation notice for session changes

2018-11-14 Thread Ananyev, Konstantin
> -Original Message- > From: Akhil Goyal [mailto:akhil.go...@nxp.com] > Sent: Wednesday, November 14, 2018 12:40 PM > To: Ananyev, Konstantin ; dev@dpdk.org > Cc: Doherty, Declan > Subject: Re: [dpdk-dev] [PATCH] doc: security deprecation notice for session > changes > > > > On 11/14

Re: [dpdk-dev] [PATCH 2/2] build: establish an invariant machine type

2018-11-14 Thread Luca Boccassi
On Wed, 2018-11-14 at 12:34 +0100, Christian Ehrhardt wrote: > Add the machine definition 'baseline' which is special compared > to 'native' (most optimized for current system) or any explicit > type (external entity has to decide on the type). > > It defaults to the per arch agreed common minimal

Re: [dpdk-dev] [PATCH 2/2] build: establish an invariant machine type

2018-11-14 Thread Christian Ehrhardt
On Wed, Nov 14, 2018 at 2:06 PM Luca Boccassi wrote: > > On Wed, 2018-11-14 at 12:34 +0100, Christian Ehrhardt wrote: > > Add the machine definition 'baseline' which is special compared > > to 'native' (most optimized for current system) or any explicit > > type (external entity has to decide on t

Re: [dpdk-dev] [PATCH 2/2] build: establish an invariant machine type

2018-11-14 Thread Christian Ehrhardt
On Wed, Nov 14, 2018 at 1:05 PM Luca Boccassi wrote: > > On Wed, 2018-11-14 at 11:52 +, Bruce Richardson wrote: > > On Wed, Nov 14, 2018 at 11:40:11AM +, Luca Boccassi wrote: > > > On Wed, 2018-11-14 at 12:34 +0100, Christian Ehrhardt wrote: > > > > Add the machine definition 'baseline' wh

[dpdk-dev] [PATCH] build: establish an invariant machine type

2018-11-14 Thread Christian Ehrhardt
Add the machine definition 'default' which is special compared to 'native' (most optimized for current system) or any explicit type (external entity has to decide on the type). It defaults to the per arch agreed common minimal baseline needed for DPDK to reasonable work. That might not be the mos

Re: [dpdk-dev] [PATCH 1/2] net/mlx4: fix typo

2018-11-14 Thread Shahaf Shuler
Tuesday, November 13, 2018 9:13 PM, Ali Alnubani: > Subject: [PATCH 1/2] net/mlx4: fix typo > > Fixes: 9797bfcce1c9 ("net/mlx4: add new memory region support") > Cc: sta...@dpdk.org > > Signed-off-by: Ali Alnubani Series applied to next-net-mlx with minor commit title edit. Please have a look,

[dpdk-dev] [PATCH] net/mlx5: fix flow query routine in Direct Verbs

2018-11-14 Thread Slava Ovsiienko
From: Viacheslav Ovsiienko The flow_dv_query() just returns -ENOTSUP value and does not set provided error parameter structure, that crashes the port_flow_query(). The patch fixes flow_db_query(), now it sets an error parameter structure. Fixes: 684dafe795d0 ("net/mlx5: add flow query abstractio

Re: [dpdk-dev] [PATCH v2] ethdev: document RSS default key and types

2018-11-14 Thread Shahaf Shuler
Wednesday, November 14, 2018 11:41 AM, Adrien Mazarguil: > Subject: Re: [dpdk-dev] [PATCH v2] ethdev: document RSS default key and > types > > Hi Shahaf, > > On Tue, Nov 13, 2018 at 06:39:04PM +, Shahaf Shuler wrote: > > Hi Adrien, > > > > Tuesday, November 13, 2018 7:15 PM, Adrien Mazarguil:

Re: [dpdk-dev] [PATCH] build: establish an invariant machine type

2018-11-14 Thread Bruce Richardson
On Wed, Nov 14, 2018 at 02:18:38PM +0100, Christian Ehrhardt wrote: > Add the machine definition 'default' which is special compared > to 'native' (most optimized for current system) or any explicit > type (external entity has to decide on the type). > > It defaults to the per arch agreed common m

Re: [dpdk-dev] [PATCH] doc: fix DESTDIR variable name in meson guide

2018-11-14 Thread Bruce Richardson
On Wed, Nov 14, 2018 at 03:04:38PM +0300, Ilya Maximets wrote: > ninja does not recognize 'DEST_DIR'. > > Fixes: 9c3adc289c5e ("doc: add instructions on build using meson") > Cc: sta...@dpdk.org > > Signed-off-by: Ilya Maximets > --- > doc/build-sdk-meson.txt | 2 +- > 1 file changed, 1 inserti

Re: [dpdk-dev] [PATCH] test: fix to skip power kvm vm autotest

2018-11-14 Thread Pattan, Reshma
> -Original Message- > From: Poornima, PallantlaX > Sent: Wednesday, November 14, 2018 9:24 AM > To: dev@dpdk.org > Cc: Pattan, Reshma ; Hunt, David > ; Poornima, PallantlaX > ; sta...@dpdk.org > Subject: [PATCH] test: fix to skip power kvm vm autotest > > Power_kvm_vm_autotest should r

Re: [dpdk-dev] [PATCH v3] doc: add meson build to contributing guide

2018-11-14 Thread Kovacevic, Marko
> Patches has to be validated for meson builds. Updating documentation for > meson build steps in Checking Compilation category. > > Signed-off-by: Vipin Varghese > --- > > V3: > removed extra character - Vipin Varghese > > V2: > updated the meson build options - Bruce Richardson > --- > doc/g

[dpdk-dev] [PATCH v3] build: establish an invariant machine type

2018-11-14 Thread Christian Ehrhardt
Add the machine definition 'default' which is special compared to 'native' (most optimized for current system) or any explicit type (external entity has to decide on the type). It defaults to the per arch agreed common minimal baseline needed for DPDK to reasonable work. That might not be the mos

[dpdk-dev] [PATCH] memalloc: check for contiguousness in external segments

2018-11-14 Thread Anatoly Burakov
For IOVA as VA mode, we assume that memory is contiguous. However, for external segments that assumption may not necessarily hold. Fix the code to not assume that external memory segments are contiguous even in IOVA as VA mode. Fixes: 5282bb1c3695 ("mem: allow memseg lists to be marked as external

[dpdk-dev] [PATCH] malloc: fix adjacency check to also include segment list

2018-11-14 Thread Anatoly Burakov
It may so happen that two memory locations may be adjacent in virtual memory, but belong to different segment lists. With current code, such segments will be concatenated. Fix the adjacency checking code to also check if the adjacent malloc elements belong to the same memseg list. Fixes: 66cc45e29

Re: [dpdk-dev] [RFC] ethdev: introduce DMA memory mapping for external memory

2018-11-14 Thread Shahaf Shuler
Hi Anatoly, Wednesday, November 14, 2018 1:19 PM, Burakov, Anatoly: > Subject: Re: [RFC] ethdev: introduce DMA memory mapping for external > memory > > Hi Shahaf, > > Great to see such effort! Few comments below. > > Note: halfway through writing my comments i realized that i am starting with

Re: [dpdk-dev] [PATCH 0/4] net/mlx5: prepare to add E-switch rule flags check

2018-11-14 Thread Shahaf Shuler
Tuesday, November 13, 2018 3:21 PM, Shahaf Shuler: > Subject: Re: [dpdk-dev] [PATCH 0/4] net/mlx5: prepare to add E-switch rule > flags check > > Monday, November 12, 2018 10:02 PM, Slava Ovsiienko: > > Subject: [PATCH 0/4] net/mlx5: prepare to add E-switch rule flags > > check > > > > The tc flow

[dpdk-dev] [PATCH v2] malloc: fix adjacency check to also include segment list

2018-11-14 Thread Anatoly Burakov
It may so happen that two memory locations may be adjacent in virtual memory, but belong to different segment lists. With current code, such segments will be concatenated. Fix the adjacency checking code to also check if the adjacent malloc elements belong to the same memseg list. Fixes: 66cc45e29

Re: [dpdk-dev] [PATCH 1/2] net/mlx4: fix typo

2018-11-14 Thread Shahaf Shuler
Wednesday, November 14, 2018 9:48 AM, Ali Alnubani: > Subject: [PATCH 1/2] net/mlx4: fix typo > > Fixes: 9797bfcce1c9 ("net/mlx4: add new memory region support") > Cc: sta...@dpdk.org > > Signed-off-by: Ali Alnubani > --- >From some reason my previous mail is not shown on patchwork. Resending

Re: [dpdk-dev] [PATCH v2 2/2] net/mlx5: fix typos

2018-11-14 Thread Shahaf Shuler
Wednesday, November 14, 2018 9:49 AM, Ali Alnubani: > Subject: [PATCH v2 2/2] net/mlx5: fix typos > > Fixes: e1114ff6a5ab ("net/mlx5: support e-switch flow count action") > Fixes: 974f1e7ef146 ("net/mlx5: add new memory region support") > Cc: sta...@dpdk.org > > Signed-off-by: Ali Alnubani Appl

Re: [dpdk-dev] [PATCH v5 1/3] crypto/openssl: add rsa and mod asym op

2018-11-14 Thread Mcnamara, John
> +err_rsa: > + if (n) > + BN_free(n); > + if (e) > + BN_free(e); > + if (d) > + BN_free(d); > + if (p) > + BN_free(p); > + if (q) > + BN_f

Re: [dpdk-dev] [PATCH v2] ethdev: document RSS default key and types

2018-11-14 Thread Adrien Mazarguil
On Wed, Nov 14, 2018 at 01:51:19PM +, Shahaf Shuler wrote: > IMO, it will make it more clear if the key will *have* to be null, because > there is no single good reason to have it otherwise. > > However it looks like an endless debate between strict and relaxed API. there > are points to b

Re: [dpdk-dev] [PATCH] mlx5: Report imissed stat

2018-11-14 Thread Shahaf Shuler
Hi Again Tom, Tuesday, November 13, 2018 12:17 PM, Tom Barbette: > Subject: [PATCH] mlx5: Report imissed stat > > The imissed counters (number of packets dropped because the queues were > full) were actually reported through xstats as "rx_out_of_buffer" > but was not reported through stats. > >

[dpdk-dev] [PATCH] doc: deprecation notice for sched API change

2018-11-14 Thread Jasvinder Singh
There will be change in API functions because of mbuf sched field updates, outlined in deprecation note of mbuf->hash.sched. Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- doc/guides/rel_notes/deprecation.rst | 5 + 1 file changed, 5 insertions(+) diff --git a/doc/guides/

Re: [dpdk-dev] [PATCH v2] eal: clean up unused files on initialization

2018-11-14 Thread Eads, Gage
Worked in my testing. Tested-by: Gage Eads Thanks, Gage

Re: [dpdk-dev] [PATCH v2] malloc: fix adjacency check to also include segment list

2018-11-14 Thread Burakov, Anatoly
On 14-Nov-18 3:00 PM, Anatoly Burakov wrote: It may so happen that two memory locations may be adjacent in virtual memory, but belong to different segment lists. With current code, such segments will be concatenated. Fix the adjacency checking code to also check if the adjacent malloc elements be

Re: [dpdk-dev] [PATCH] mlx5: Report imissed stat

2018-11-14 Thread Tom Barbette
Hi Shahaf, Yes we learned this distinction with rx_discards_phy the hard way. I would expect imissed to be only rx_out_of_buffer actually. I'd say people look at imissed to see if they consume packets fast enough. If the problem is pure CPU power. And that is more the definition of imissed, it

Re: [dpdk-dev] Where is the padding code in DPDK?

2018-11-14 Thread Wiles, Keith
> On Nov 14, 2018, at 4:51 AM, Morten Brørup wrote: > > Anatoly, > > This differs from the Linux kernel's behavior, where padding belongs in the > NIC driver layer, not in the protocol layer. If you pass a runt frame (too > short packet) to a Linux NIC driver's transmission function, the NIC

[dpdk-dev] [PATCH v2 2/5] bitmap: rename rte_bsf64 and move to common header

2018-11-14 Thread Anatoly Burakov
Rename rte_bsf64 to rte_bsf64_safe (this is a "safe" version in that it prevents undefined behavior by checking if incoming parameter is zero) and move it to common header. Signed-off-by: Anatoly Burakov --- doc/guides/rel_notes/deprecation.rst | 5 + lib/librte_eal/common/include/rte

[dpdk-dev] [PATCH v2 3/5] common: add missing implementations

2018-11-14 Thread Anatoly Burakov
Implement missing functions for 32-bit safe bsf, as well as 64-bit fls and log2. Signed-off-by: Anatoly Burakov --- lib/librte_eal/common/include/rte_common.h | 62 +- 1 file changed, 61 insertions(+), 1 deletion(-) diff --git a/lib/librte_eal/common/include/rte_common.h b/

[dpdk-dev] [PATCH v2 1/5] bitmap: remove useless code

2018-11-14 Thread Anatoly Burakov
RTE_BITMAP_OPTIMIZATIONS was never set to 0 and makes no sense anyway, so remove all code related to it. Also, drop the "likely" for bsf64 code, because it's a generic function and we cannot make any assumptions about likely values of incoming arguments. Signed-off-by: Anatoly Burakov --- lib/li

[dpdk-dev] [PATCH v2 4/5] memalloc: use library implementation of 64-bit log2

2018-11-14 Thread Anatoly Burakov
Remove duplicated code and use library version of 64-bit log2. Signed-off-by: Anatoly Burakov --- lib/librte_eal/linuxapp/eal/eal_memalloc.c | 17 + 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/lib/librte_eal/linuxapp/eal/eal_memalloc.c b/lib/librte_eal/linuxapp

[dpdk-dev] [PATCH v2 5/5] testpmd: use library implementation of 64-bit log2

2018-11-14 Thread Anatoly Burakov
Remove duplicated code and use library version of 64-bit log2. Signed-off-by: Anatoly Burakov --- app/test-pmd/testpmd.c | 17 + 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index 9c0edcaed..89c6ffd53 100644 --- a/a

Re: [dpdk-dev] [PATCH v2 1/5] bitmap: remove useless code

2018-11-14 Thread Dumitrescu, Cristian
> -Original Message- > From: Burakov, Anatoly > Sent: Wednesday, November 14, 2018 4:30 PM > To: dev@dpdk.org > Cc: Dumitrescu, Cristian ; > tho...@monjalon.net; Richardson, Bruce ; > Yigit, Ferruh ; Singh, Jasvinder > > Subject: [PATCH v2 1/5] bitmap: remove useless code > > RTE_BITMA

[dpdk-dev] [PATCH v3 5/5] testpmd: use library implementation of 64-bit log2

2018-11-14 Thread Anatoly Burakov
Remove duplicated code and use library version of 64-bit log2. Signed-off-by: Anatoly Burakov Acked-by: Cristian Dumitrescu --- app/test-pmd/testpmd.c | 17 + 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index 9c0e

[dpdk-dev] [PATCH v3 1/5] bitmap: remove useless code

2018-11-14 Thread Anatoly Burakov
RTE_BITMAP_OPTIMIZATIONS was never set to 0 and makes no sense anyway, so remove all code related to it. Also, drop the "likely" for bsf64 code, because it's a generic function and we cannot make any assumptions about likely values of incoming arguments. Signed-off-by: Anatoly Burakov Acked-by: C

[dpdk-dev] [PATCH v3 3/5] common: add missing implementations

2018-11-14 Thread Anatoly Burakov
Implement missing functions for 32-bit safe bsf, as well as 64-bit fls and log2. Signed-off-by: Anatoly Burakov Acked-by: Cristian Dumitrescu --- Notes: v3: - Added clarification that pos is not checked lib/librte_eal/common/include/rte_common.h | 64 +- 1 file cha

[dpdk-dev] [PATCH v3 2/5] bitmap: rename rte_bsf64 and move to common header

2018-11-14 Thread Anatoly Burakov
Rename rte_bsf64 to rte_bsf64_safe (this is a "safe" version in that it prevents undefined behavior by checking if incoming parameter is zero) and move it to common header. Signed-off-by: Anatoly Burakov Acked-by: Cristian Dumitrescu --- Notes: v3: - Added clarification that pos is not

[dpdk-dev] [PATCH v3 4/5] memalloc: use library implementation of 64-bit log2

2018-11-14 Thread Anatoly Burakov
Remove duplicated code and use library version of 64-bit log2. Signed-off-by: Anatoly Burakov Acked-by: Cristian Dumitrescu --- lib/librte_eal/linuxapp/eal/eal_memalloc.c | 17 + 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/lib/librte_eal/linuxapp/eal/eal_memall

  1   2   >