[dpdk-dev] [PATCH] net/mlx5: fix flow director matching rules

2017-10-26 Thread Nelio Laranjeiro
Flow director API does not provide a layer 2 configuration when the filter is for layer 3 and 4 causing the translation to generic flow API to be wrong, as not providing a mask for layer ends by using the default one. In this case, the Ethernet mask layer is full whereas it must be empty. Fixes:

Re: [dpdk-dev] [PATCH] net/mlx5: fix RSS action for tunneled packets

2017-10-26 Thread Nélio Laranjeiro
On Thu, Oct 26, 2017 at 08:41:57PM +0300, Shahaf Shuler wrote: > The flow engine in mlx5 searches for the most specific layer in the > pattern in order to set the flow rule priority properly. > > Since the RSS can be currently performed only for the outer headers, avoid > updating the layer for th

[dpdk-dev] [PATCH v10 3/4] bus/vdev: move to vdev bus to drivers/bus

2017-10-26 Thread Jianfeng Tan
Move the vdev bus from lib/librte_eal to drivers/bus. As the crypto vdev helper function refers to data structure in rte_vdev.h, so we move those helper function into drivers/bus too. Signed-off-by: Jianfeng Tan --- config/common_base| 5 + doc/guides/rel_notes/release

[dpdk-dev] [PATCH v10 4/4] bus/vdev: change log type

2017-10-26 Thread Jianfeng Tan
Use specialized dynamic log type for vdev bus logging. Suggested-by: Gaetan Rivet Suggested-by: Shreyansh Jain Signed-off-by: Jianfeng Tan --- drivers/bus/vdev/vdev.c | 20 drivers/bus/vdev/vdev_logs.h | 45 2 files changed

[dpdk-dev] [PATCH v10 2/4] eal: remove dependency on vdev

2017-10-26 Thread Jianfeng Tan
We can call bus->plug() to avoid calling rte_vdev_init() explicitly. Signed-off-by: Jianfeng Tan --- lib/librte_eal/common/eal_common_dev.c | 22 ++ 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/lib/librte_eal/common/eal_common_dev.c b/lib/librte_eal/common/

[dpdk-dev] [PATCH v10 1/4] cryptodev: remove crypto vdev init API

2017-10-26 Thread Jianfeng Tan
Remove rte_cryptodev_create_vdev() for duplication. Signed-off-by: Jianfeng Tan Acked-by: Pablo de Lara --- doc/guides/rel_notes/deprecation.rst | 5 - doc/guides/rel_notes/release_17_11.rst | 2 ++ lib/librte_cryptodev/rte_cryptodev.c | 6 -- lib/librte_c

[dpdk-dev] [PATCH v10 0/4] move vdev into drivers/bus

2017-10-26 Thread Jianfeng Tan
v10: - Rebase on 17.11-rc2. v9: - Avoid bumping library version (eal, crypto) as other commits in this release already do that as suggested by Pablo. - Move vdev's dir dependency to its own folder as suggested by Gaetan. v8: (Suggested by Pablo) - As we bump the library version and ad

[dpdk-dev] [PATCH] net/virtio: fix memory leak

2017-10-26 Thread Pengzhen Liu
In function eth_virtio_dev_init(), dynamic memory stored in "eth_dev->data->mac_addrs" variable and it is not freed when function return, this is a possible memory leak. Fixes: 8ced1542f7a3 ("net/virtio: eth_dev->data->mac_addrs is not freed") Cc: sta...@dpdk.org Signed-off-by: Pengzhen Liu ---

[dpdk-dev] [PATCH] examples/ip_pipeline: avoid the failure of creating hash table

2017-10-26 Thread Jianbo Liu
Hash table function will check if the input bucket size is power of 2, so the parameter should be rounded up before sending to the creating function. Signed-off-by: Jianbo Liu --- examples/ip_pipeline/pipeline/pipeline_flow_classification_be.c | 2 +- examples/ip_pipeline/pipeline/pipeline_routi

[dpdk-dev] [PATCH] net/bnxt: donot set hash type unnecessarily

2017-10-26 Thread Ajit Khaparde
We are wrongly "OR-ing" the vnic->hash_type instead of assigning the new hash type thereby wrongly configuring hash settings. Fixing it. Fixes: fcc0aa1edc10 ("net/bnxt: add RSS hash configuration") Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_rxq.c | 2 +- 1 file changed, 1 insertion(

Re: [dpdk-dev] [dpdk-users] VLAN tags always stripped on i40evf [VMware SR-IOV]

2017-10-26 Thread Xing, Beilei
> -Original Message- > From: users [mailto:users-boun...@dpdk.org] On Behalf Of Iain Barker > Sent: Wednesday, October 11, 2017 9:20 PM > To: us...@dpdk.org > Cc: dev@dpdk.org > Subject: Re: [dpdk-users] VLAN tags always stripped on i40evf [VMware SR- > IOV] > > On Tuesday, October 10, 20

[dpdk-dev] [PATCH v9 4/4] bus/vdev: change log type

2017-10-26 Thread Jianfeng Tan
Use specialized dynamic log type for vdev bus logging. Suggested-by: Gaetan Rivet Suggested-by: Shreyansh Jain Signed-off-by: Jianfeng Tan --- drivers/bus/vdev/vdev.c | 20 drivers/bus/vdev/vdev_logs.h | 45 2 files changed

[dpdk-dev] [PATCH v9 3/4] bus/vdev: move to vdev bus to drivers/bus

2017-10-26 Thread Jianfeng Tan
Move the vdev bus from lib/librte_eal to drivers/bus. As the crypto vdev helper function refers to data structure in rte_vdev.h, so we move those helper function into drivers/bus too. Signed-off-by: Jianfeng Tan --- config/common_base| 5 + doc/guides/rel_notes/release

[dpdk-dev] [PATCH v0 0/4] move vdev into drivers/bus

2017-10-26 Thread Jianfeng Tan
v9: - Avoid bumping library version (eal, crypto) as other commits in this release already do that as suggested by Pablo. - Move vdev's dir dependency to its own folder as suggested by Gaetan. v8: (Suggested by Pablo) - As we bump the library version and add new library (bus_vdev), we

[dpdk-dev] [PATCH v9 2/4] eal: remove dependency on vdev

2017-10-26 Thread Jianfeng Tan
We can call bus->plug() to avoid calling rte_vdev_init() explicitly. Signed-off-by: Jianfeng Tan --- lib/librte_eal/common/eal_common_dev.c | 22 ++ 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/lib/librte_eal/common/eal_common_dev.c b/lib/librte_eal/common/

[dpdk-dev] [PATCH v9 1/4] cryptodev: remove crypto vdev init API

2017-10-26 Thread Jianfeng Tan
Remove rte_cryptodev_create_vdev() for duplication. Signed-off-by: Jianfeng Tan Acked-by: Pablo de Lara --- doc/guides/rel_notes/deprecation.rst | 5 - doc/guides/rel_notes/release_17_11.rst | 2 ++ lib/librte_cryptodev/rte_cryptodev.c | 6 -- lib/librte_c

Re: [dpdk-dev] [PATCH] igb_uio: remove device reset in open

2017-10-26 Thread Ferruh Yigit
On 10/26/2017 2:28 AM, Tan, Jianfeng wrote: > Hi Rasesh, > > > On 10/26/2017 7:43 AM, Mody, Rasesh wrote: >> Hi Ferruh, >> >>> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Ferruh Yigit >>> Sent: Friday, October 20, 2017 9:58 AM >>> >>> On 10/20/2017 9:55 AM, Ferruh Yigit wrote: Remov

[dpdk-dev] [dpdk-announce] FYI: Open Source Networking Survey

2017-10-26 Thread St Leger, Jim
SDXcentral is running a survey to gather industry insights and market research on networking and open source. If you’re interested in participating and giving your input here’s a link: https://www.sdxcentral.com/articles/announcements/open-source-networking-survey/2017/10/ Note: for the purpose

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

2017-10-26 Thread Thomas Monjalon
A new DPDK release candidate is ready for testing: http://dpdk.org/browse/dpdk/tag/?id=v17.11-rc2 What's new in RC2? - igb_uio reset fixed - EAL PCI moved to driver and lib - Rx offload API for traffic metering and policing (rte_mtr) - IPsec offload API (rte

Re: [dpdk-dev] Fwd: Memory Leak: PCAP TX to File

2017-10-26 Thread Ferruh Yigit
On 10/26/2017 10:44 AM, Stefan Baranoff wrote: > All, > > I think I've found a (very minor) memory leak in writing to a PCAP file. In > drivers/net/pcap/rte_eth_pcap.c in open_single_tx_pcap around line 405 a > pcap_t is allocated by pcap_open_dead but is never freed. You are right. > I see two

Re: [dpdk-dev] [PATCH v10 1/2] doc: add generic compilation doc for all sample apps

2017-10-26 Thread Thomas Monjalon
25/10/2017 17:50, Marko Kovacevic: > From: Herakliusz Lipiec > > Moved duplicated, and occasionally outdated, doc sections from each > of the sample app guides chapters to a common chapter at the start. > > This reduces the duplication in the docs and provides a single > point of reference for c

Re: [dpdk-dev] [PATCH v2] doc: add basic howto for flow API

2017-10-26 Thread Thomas Monjalon
25/10/2017 17:27, Mcnamara, John: > > > -Original Message- > > From: Ori Kam [mailto:or...@mellanox.com] > > Sent: Wednesday, October 25, 2017 3:51 PM > > To: adrien.mazarg...@6wind.com; Mcnamara, John > > Cc: dev@dpdk.org; or...@mellanox.com > > Subject: [PATCH v2] doc: add basic howto f

Re: [dpdk-dev] [PATCH v2] examples/flow_filtering: demo of simple rte flow

2017-10-26 Thread Thomas Monjalon
Few comments below, Ori: 25/10/2017 19:58, Ori Kam: > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -978,3 +978,7 @@ F: examples/tep_termination/ > F: examples/vmdq/ > F: examples/vmdq_dcb/ > F: doc/guides/sample_app_ug/vmdq_dcb_forwarding.rst > + > +M: Ori Kam > +F: examples/flow_filtering/ > +F

Re: [dpdk-dev] [PATCH] examples/simple_mp: fix received message length

2017-10-26 Thread Thomas Monjalon
26/10/2017 10:29, Xueming Li: > Simple_mp example receives message size less than 64 chars while send > side accepts chars less than 128, this leads to different result when > sending text lenght larger than 64. > This patch uses same buffer length on both message pool and command > line. > > Fixe

Re: [dpdk-dev] [PATCH v2] doc: add event eth Rx adapter library

2017-10-26 Thread Thomas Monjalon
> > Signed-off-by: Nikhil Rao > > Acked-by: Jerin Jacob > > Acked-by: John McNamara Applied, thanks

Re: [dpdk-dev] [PATCH v5 1/7] eventdev: add API to get service id

2017-10-26 Thread Thomas Monjalon
25/10/2017 16:50, Pavan Nikhilesh: > In case of sw event device the scheduling can be done on a service core > using the service registered at the time of probe. > This patch adds a helper function to get the service id that can be used > by the application to assign a lcore for the service to run

Re: [dpdk-dev] [PATCH v4 1/3] evendev: fix inconsistency in event queue config

2017-10-26 Thread Thomas Monjalon
25/10/2017 16:21, Pavan Nikhilesh: > With the current scheme of event queue configuration the cfg schedule > type macros (RTE_EVENT_QUEUE_CFG_*_ONLY) are inconsistent with the > event schedule type (RTE_SCHED_TYPE_*) this requires unnecessary > conversion between the fastpath and slowpath API's whi

Re: [dpdk-dev] [dpdk-stable] [PATCH] net/mlx5: fix TSO inline size calculation

2017-10-26 Thread Ferruh Yigit
On 10/26/2017 1:27 AM, Nélio Laranjeiro wrote: > On Wed, Oct 25, 2017 at 04:30:40PM -0700, Yongseok Koh wrote: >> When "net/mlx5: replace network to host macros" is rebased for v4, changes >> of "net/mlx5: fix calculating TSO inline size" have been reverted. >> >> Fixes: 6b30a6a8552a ("net/mlx5: re

Re: [dpdk-dev] [PATCH v4 1/2] net/mlx4: introducing consumer index mask

2017-10-26 Thread Ferruh Yigit
On 10/26/2017 1:12 AM, Nélio Laranjeiro wrote: > On Wed, Oct 25, 2017 at 06:37:26PM +0300, Moti Haimovsky wrote: >> This commit defines MLX4_CQ_DB_CI_MASK which is used when updating >> the consumer index of the completion queue instead of the hardcoded >> 0xff used until now. >> >> Signed-off-

Re: [dpdk-dev] [PATCH] flow_classify: fix logging

2017-10-26 Thread Thomas Monjalon
> > Set log_level to RTE_LOG_INFO. > > The RTE_LIBRTE_CLASSIFY_DEBUG macro has been removed from the config > > file, use the log_level instead. > > > > Fixes: be41ac2a330f ("flow_classify: introduce flow classify library") > > Signed-off-by: Bernard Iremonger > > Acked-by: Jasvinder Singh App

Re: [dpdk-dev] [PATCH] eal: fix bug in x86 cmpset

2017-10-26 Thread Thomas Monjalon
04/09/2017 15:02, Bruce Richardson: > Couple of other comments on this code area that should be taken into > account: > 1. the indentation of the asm code looks wrong, and should probably be >fixed to make it more readable. > 2. the comment on the "D" register is wrong as it refers to ebx > 3.

Re: [dpdk-dev] Fwd: Memory Leak: PCAP TX to File

2017-10-26 Thread Thomas Monjalon
Cc Ferruh, maintainer of this driver. 26/10/2017 19:44, Stefan Baranoff: > All, > > I think I've found a (very minor) memory leak in writing to a PCAP file. In > drivers/net/pcap/rte_eth_pcap.c in open_single_tx_pcap around line 405 a > pcap_t is allocated by pcap_open_dead but is never freed. >

Re: [dpdk-dev] [PATCH v2] vfio: check ioctl return value

2017-10-26 Thread Thomas Monjalon
26/10/2017 17:23, Burakov, Anatoly: > On 26-Oct-17 4:19 PM, Jonas Pfefferle wrote: > > Check return value of device reset ioctl > > > > Fixes: 33604c31354a ("vfio: refactor PCI BAR mapping") > > Coverity issue: 195003 > > > > Signed-off-by: Jonas Pfefferle > > Looks fine to me, so > > Acked-by

Re: [dpdk-dev] [PATCH v2] pci: fix check uio bind

2017-10-26 Thread Thomas Monjalon
24/10/2017 10:25, Gaëtan Rivet: > On Tue, Oct 24, 2017 at 07:44:53AM +, Jianfeng Tan wrote: > > When checking if any devices bound to uio, we did not exclud > > those which are blacklisted (or in the case that a whitelist > > is specified). > > > > This patch fixes it by only checking whitelis

Re: [dpdk-dev] [PATCH v8 00/25] Move PCI away from the EAL

2017-10-26 Thread Thomas Monjalon
26/10/2017 12:05, Gaetan Rivet: > Here is a new version of the PCI bus move out of the EAL. > > The EAL PCI implementation is divided in two parts: > > - librte_pci: library offering helpers to handle PCI objects > - librte_bus_pci: bus driver for PCI devices Applied with few fixes, thanks f

Re: [dpdk-dev] [PATCH] eal: fix build with glibc < 2.12

2017-10-26 Thread Thomas Monjalon
26/10/2017 16:05, Gonzalez Monroy, Sergio: > On 25/10/2017 09:36, Ferruh Yigit wrote: > > build error: > >CC rte_cycles.o > >cc1: warnings being treated as errors > >...dpdk/lib/librte_eal/common/arch/x86/rte_cycles.c: In function > >‘rdmsr’: > >...dpdk/lib/librte_eal/common/arc

Re: [dpdk-dev] [PATCH 1/2] drivers: fix shared build error for DPAA crypto

2017-10-26 Thread Thomas Monjalon
26/10/2017 16:10, Akhil Goyal: > On 10/26/2017 7:39 PM, Shreyansh Jain wrote: > > Various symbols are being used by DPAA Crypto driver which were not exposed > > from DPAA bus during initial version. This breaks the shared build. > > > > This patch also adds the LDLIBS line required after (cbc12b0

Re: [dpdk-dev] [PATCH v2 0/3] Build fails when rte_security is disabled

2017-10-26 Thread Thomas Monjalon
26/10/2017 17:27, David Marchand: > On Thu, Oct 26, 2017 at 4:15 PM, Radu Nicolau wrote: > > v2: Added ifdefs in the ixgbe code, updated dependecies for ipsec_secgw, > > dpaa2_sec kept as in v1, with a dependency check > > > > Radu Nicolau (3): > > net/ixgbe: fix build issue > > examples/ipsec

Re: [dpdk-dev] [PATCH] net/liquidio: add support for 10GBase-T cards

2017-10-26 Thread Ferruh Yigit
On 10/23/2017 9:42 PM, Srisivasubramanian S wrote: > Signed-off-by: Srisivasubramanian S > Signed-off-by: Shijith Thotton Applied to dpdk-next-net/master, thanks.

Re: [dpdk-dev] [PATCH] net/failsafe: fix Rx clean race

2017-10-26 Thread Ferruh Yigit
On 10/26/2017 9:20 AM, Gaëtan Rivet wrote: > Hello Matan, > > I think the commit log could be shorter. > Proposing this, feel free to expand it if you prefer. > > ---8<--- > > When removing a device, the fail-safe checks that it is not within its > datapath before cleaning it. > > When checking

Re: [dpdk-dev] [PATCH 08/10] lpm6: fix compilation with -Og

2017-10-26 Thread Ferruh Yigit
On 9/11/2017 8:13 AM, Olivier Matz wrote: > The compilation with gcc-6.3.0 and EXTRA_CFLAGS=-Og gives the following > error: > > CC rte_lpm6.o > rte_lpm6.c: In function ‘rte_lpm6_add_v1705’: > rte_lpm6.c:442:11: error: ‘tbl_next’ may be used uninitialized in > th

Re: [dpdk-dev] [PATCH] net/liquidio: add support for 10GBase-T cards

2017-10-26 Thread Ferruh Yigit
On 10/25/2017 7:23 PM, Srisivasubramanian Srinivasan wrote: > On Wed, 2017-10-25 at 11:23 -0700, Ferruh Yigit wrote: >> On 10/25/2017 11:06 AM, Srisivasubramanian Srinivasan wrote: >>> On Tue, 2017-10-24 at 10:49 -0700, Ferruh Yigit wrote: On 10/23/2017 9:42 PM, Srisivasubramanian S wrote: >>>

Re: [dpdk-dev] Contribution to DPDK

2017-10-26 Thread Ferruh Yigit
On 10/26/2017 10:18 AM, Ryan Yang wrote: > Hello, > > I am really interested in contributing to DPDK by fixing the bug and > development work. Besides cloning the code first, what are some good ways > to start the work or is there any place to check the bug list? Your help is > appreciated. Hi Ry

[dpdk-dev] Fwd: Memory Leak: PCAP TX to File

2017-10-26 Thread Stefan Baranoff
All, I think I've found a (very minor) memory leak in writing to a PCAP file. In drivers/net/pcap/rte_eth_pcap.c in open_single_tx_pcap around line 405 a pcap_t is allocated by pcap_open_dead but is never freed. I see two obvious fixes: 1) Free the pcap_t immediately after either on pcap_dump_o

Re: [dpdk-dev] [PATCH v8 23/25] pci: introduce PCI lib and bus

2017-10-26 Thread Thomas Monjalon
26/10/2017 12:06, Gaetan Rivet: > lib/librte_pci/Makefile | 49 ++ > lib/librte_pci/include/rte_pci.h | 279 + > lib/librte_pci/rte_pci.c | 220 +++ > lib/librte_pci/rte_pci_version.map | 15 + The include file is usually

[dpdk-dev] [PATCH] net/mlx5: fix RSS action for tunneled packets

2017-10-26 Thread Shahaf Shuler
The flow engine in mlx5 searches for the most specific layer in the pattern in order to set the flow rule priority properly. Since the RSS can be currently performed only for the outer headers, avoid updating the layer for the inner headers. Fixes: 8086cf08b2f0 ("net/mlx5: handle RSS hash configu

[dpdk-dev] Contribution to DPDK

2017-10-26 Thread Ryan Yang
Hello, I am really interested in contributing to DPDK by fixing the bug and development work. Besides cloning the code first, what are some good ways to start the work or is there any place to check the bug list? Your help is appreciated. Ryan

Re: [dpdk-dev] [PATCH v2 4/7] net/mlx4: merge Tx path functions

2017-10-26 Thread Matan Azrad
Hi Nelio > -Original Message- > From: Nélio Laranjeiro [mailto:nelio.laranje...@6wind.com] > Sent: Thursday, October 26, 2017 4:44 PM > To: Matan Azrad > Cc: Ophir Munk ; Adrien Mazarguil > ; dev@dpdk.org; Thomas Monjalon > ; Olga Shern ; Mordechay > Haimovsky > Subject: Re: [dpdk-dev] [

Re: [dpdk-dev] [PATCH] net/failsafe: fix Rx clean race

2017-10-26 Thread Gaëtan Rivet
Hello Matan, I think the commit log could be shorter. Proposing this, feel free to expand it if you prefer. ---8<--- When removing a device, the fail-safe checks that it is not within its datapath before cleaning it. When checking whether an Rx burst should be performed on a device, the remove

Re: [dpdk-dev] [PATCH v8 23/25] pci: introduce PCI lib and bus

2017-10-26 Thread Thomas Monjalon
26/10/2017 12:06, Gaetan Rivet: > Libraries, drivers, unit tests and applications are updated to use the > new rte_bus_pci.h header when necessary. Few compilation fixes: --- a/drivers/crypto/qat/qat_crypto.c +++ b/drivers/crypto/qat/qat_crypto.c @@ -60,6 +60,7 @@ #include #include #include

Re: [dpdk-dev] [RFC PATCH v2 0/1] eventtimer: introduce event timer adapter

2017-10-26 Thread Pavan Nikhilesh Bhagavatula
On Wed, Oct 18, 2017 at 09:48:04PM +, Carrillo, Erik G wrote: > > > > -Original Message- > > From: Pavan Nikhilesh Bhagavatula > > [mailto:pbhagavat...@caviumnetworks.com] > > Sent: Monday, October 16, 2017 7:37 AM > > To: Carrillo, Erik G > > Cc: dev@dpdk.org > > Subject: Re: [RFC PAT

Re: [dpdk-dev] [PATCH v2 0/3] Build fails when rte_security is disabled

2017-10-26 Thread David Marchand
On Thu, Oct 26, 2017 at 4:15 PM, Radu Nicolau wrote: > v2: Added ifdefs in the ixgbe code, updated dependecies for ipsec_secgw, > dpaa2_sec kept as in v1, with a dependency check > > Radu Nicolau (3): > net/ixgbe: fix build issue > examples/ipsec-secgw: fix build issue > crypto/dpaa2_sec: fi

Re: [dpdk-dev] [PATCH v2] vfio: check ioctl return value

2017-10-26 Thread Burakov, Anatoly
On 26-Oct-17 4:19 PM, Jonas Pfefferle wrote: Check return value of device reset ioctl Fixes: 33604c31354a ("vfio: refactor PCI BAR mapping") Coverity issue: 195003 Signed-off-by: Jonas Pfefferle --- v2: * fix whitespace/tab issue lib/librte_eal/linuxapp/eal/eal_pci_vfio.c | 6 +- 1 fil

[dpdk-dev] [PATCH v2] vfio: check ioctl return value

2017-10-26 Thread Jonas Pfefferle
Check return value of device reset ioctl Fixes: 33604c31354a ("vfio: refactor PCI BAR mapping") Coverity issue: 195003 Signed-off-by: Jonas Pfefferle --- v2: * fix whitespace/tab issue lib/librte_eal/linuxapp/eal/eal_pci_vfio.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff -

[dpdk-dev] [PATCH] vfio: check ioctl return value

2017-10-26 Thread Jonas Pfefferle
Check return value of device reset ioctl Fixes: 33604c31354a ("vfio: refactor PCI BAR mapping") Coverity issue: 195003 Signed-off-by: Jonas Pfefferle --- lib/librte_eal/linuxapp/eal/eal_pci_vfio.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/librte_eal/linuxapp/e

Re: [dpdk-dev] [PATCH v2 2/7] net/mlx4: inline more Tx functions

2017-10-26 Thread Ophir Munk
Hi, Please see inside On Thursday, October 26, 2017 10:49 AM Adrien Mazarguil wrote: > To: Ophir Munk > Cc: dev@dpdk.org; Thomas Monjalon ; Olga Shern > ; Matan Azrad > Subject: Re: [PATCH v2 2/7] net/mlx4: inline more Tx functions > > Hi Ophir, > > Please see below. > > On Wed, Oct 25, 2017

[dpdk-dev] [PATCH v2 3/3] crypto/dpaa2_sec: fix build issue

2017-10-26 Thread Radu Nicolau
Build fails when rte_security is disabled; make rte_security mandatory Fixes: 0a23d4b6f4c2 ("crypto/dpaa2_sec: support protocol offload IPsec") Signed-off-by: Radu Nicolau --- drivers/crypto/dpaa2_sec/Makefile | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/crypto/dpaa2_sec/Mak

[dpdk-dev] [PATCH v2 0/3] Build fails when rte_security is disabled

2017-10-26 Thread Radu Nicolau
v2: Added ifdefs in the ixgbe code, updated dependecies for ipsec_secgw, dpaa2_sec kept as in v1, with a dependency check Radu Nicolau (3): net/ixgbe: fix build issue examples/ipsec-secgw: fix build issue crypto/dpaa2_sec: fix build issue drivers/crypto/dpaa2_sec/Makefile | 6 ++

[dpdk-dev] [PATCH v2 1/3] net/ixgbe: fix build issue

2017-10-26 Thread Radu Nicolau
Fixes: 9a0752f498d2 ("net/ixgbe: enable inline IPsec") Signed-off-by: Radu Nicolau --- drivers/net/ixgbe/Makefile | 2 ++ drivers/net/ixgbe/ixgbe_ethdev.c | 8 +++ drivers/net/ixgbe/ixgbe_ethdev.h | 4 drivers/net/ixgbe/ixgbe_flow.c | 6 ++ driver

[dpdk-dev] [PATCH v2 2/3] examples/ipsec-secgw: fix build issue

2017-10-26 Thread Radu Nicolau
Build fails when rte_security is disabled; make rte_security mandatory Fixes: ec17993a145a ("examples/ipsec-secgw: support security offload") Signed-off-by: Radu Nicolau --- examples/Makefile | 2 +- examples/ipsec-secgw/Makefile | 6 ++ 2 files changed, 7 insertions(+), 1 deleti

Re: [dpdk-dev] [PATCH] doc: update release note for DPAA2 Event PMD

2017-10-26 Thread Nipun Gupta
> -Original Message- > From: Shreyansh Jain [mailto:shreyansh.j...@nxp.com] > Sent: Thursday, October 26, 2017 19:56 > To: dev@dpdk.org > Cc: tho...@monjalon.net; john.mcnam...@intel.com; Shreyansh Jain > > Subject: [PATCH] doc: update release note for DPAA2 Event PMD > > Signed-off-by:

[dpdk-dev] [PATCH] doc: update release note for DPAA2 Event PMD

2017-10-26 Thread Shreyansh Jain
Signed-off-by: Shreyansh Jain --- doc/guides/rel_notes/release_17_11.rst | 4 1 file changed, 4 insertions(+) diff --git a/doc/guides/rel_notes/release_17_11.rst b/doc/guides/rel_notes/release_17_11.rst index 93f94fc..d0ca2cf 100644 --- a/doc/guides/rel_notes/release_17_11.rst +++ b/doc/gu

Re: [dpdk-dev] [PATCH 1/2] drivers: fix shared build error for DPAA crypto

2017-10-26 Thread Akhil Goyal
On 10/26/2017 7:39 PM, Shreyansh Jain wrote: Various symbols are being used by DPAA Crypto driver which were not exposed from DPAA bus during initial version. This breaks the shared build. This patch also adds the LDLIBS line required after (cbc12b0a9) patch. Fixes: c3e85bdcc6e6 ("crypto/dpaa_s

[dpdk-dev] [PATCH] net/virtio: fix memory leak

2017-10-26 Thread Pengzhen Liu
In function eth_virtio_dev_init(), dynamic memory stored in "eth_dev->data->mac_addrs" variable and it is not freed when function return, this is a possible memory leak. Fixes: 289ba0c0f52a ("net/virtio: eth_dev->data->mac_addrs is not freed") Cc: sta...@dpdk.org Signed-off-by: Pengzhen Liu ---

Re: [dpdk-dev] [PATCH] eal: fix build with glibc < 2.12

2017-10-26 Thread Gonzalez Monroy, Sergio
On 25/10/2017 09:36, Ferruh Yigit wrote: build error: CC rte_cycles.o cc1: warnings being treated as errors ...dpdk/lib/librte_eal/common/arch/x86/rte_cycles.c: In function ‘rdmsr’: ...dpdk/lib/librte_eal/common/arch/x86/rte_cycles.c:67:2: error: implicit declaration of function

[dpdk-dev] [PATCH v2 3/4] net/ixgbevf: save IXGBE_VTEIMS to intr->mask for performance.

2017-10-26 Thread xiangxia . m . yue
From: Tonghao Zhang If dpdk APPs call the rte_eth_dev_rx_intr_enable or rte_eth_dev_rx_intr_disable frequently, and ixgbe vf will read the IXGBE_VTEIMS register everytime. We can optimize the driver function. The patch save the IXGBE_VTEIMS to mask to avoid read frequently. Signed-off-by: Tongha

[dpdk-dev] [PATCH v2 4/4] net/ixgbevf: add check for rte_intr_enable.

2017-10-26 Thread xiangxia . m . yue
From: Tonghao Zhang When we bind the ixgbevf to vfio and call the rte_eth_dev_rx_intr_enable and rte_eth_dev_rx_intr_disable frequently, the interrupt setting (msi_set_mask_bit) will take more CPU as show below. rte_intr_enable call the ioctl to map the fd to interrupts frequently. perf top: 5.4

[dpdk-dev] [PATCH v2 2/4] net/ixgbevf: set the inter-interrupt interval for EITR.

2017-10-26 Thread xiangxia . m . yue
From: Tonghao Zhang Set EITR interval as default. This patch can improve the performance when we enable the rx-interrupt to process the packets because we hope rx-interrupt reduce CPU. Signed-off-by: Tonghao Zhang --- drivers/net/ixgbe/ixgbe_ethdev.c | 3 +++ 1 file changed, 3 insertions(+) d

[dpdk-dev] [PATCH v2 1/4] net/ixgbevf: unregister irq handler when other interrupts

2017-10-26 Thread xiangxia . m . yue
From: Tonghao Zhang When we bind the ixgbe VF (e.g 82599 card) to igb_uio and enable the rx-interrupt, there will be more than one epoll_wait on intr_handle.fd. One is in "eal-intr-thread" thread, and the others are in the thread which call the "rte_epoll_wait". The problem is that sometiems "ea

Re: [dpdk-dev] [PATCH 2/3] net/ixgbe: fix build issue

2017-10-26 Thread Thomas Monjalon
26/10/2017 15:16, Akhil Goyal: > On 10/26/2017 6:37 PM, Thomas Monjalon wrote: > > 26/10/2017 14:59, Akhil Goyal: > >> Hi Thomas, > >> > >> On 10/26/2017 6:03 PM, Thomas Monjalon wrote: > >>> 26/10/2017 14:28, Radu Nicolau: > > On 10/26/2017 12:39 PM, Thomas Monjalon wrote: > > 26/10/

[dpdk-dev] [PATCH 1/2] drivers: fix shared build error for DPAA crypto

2017-10-26 Thread Shreyansh Jain
Various symbols are being used by DPAA Crypto driver which were not exposed from DPAA bus during initial version. This breaks the shared build. This patch also adds the LDLIBS line required after (cbc12b0a9) patch. Fixes: c3e85bdcc6e6 ("crypto/dpaa_sec: add crypto driver for NXP DPAA platform") C

[dpdk-dev] [PATCH 2/2] drivers: fix shared build error for dpaa2 event

2017-10-26 Thread Shreyansh Jain
Fixes: cbc12b0a96f5 ("mk: do not generate LDLIBS from directory dependencies") Cc: olivier.m...@6wind.com Fixes: b677d4c6d281 ("net/dpaa2: add API for event Rx adapter") Cc: nipun.gu...@nxp.com Signed-off-by: Shreyansh Jain --- * This change should have been originally part of cbc12b0a96 but was

[dpdk-dev] [PATCH 4/4] net/ixgbevf: add check for rte_intr_enable.

2017-10-26 Thread xiangxia . m . yue
From: Tonghao Zhang When we bind the ixgbevf to vfio and call the rte_eth_dev_rx_intr_enable and rte_eth_dev_rx_intr_disable frequently, the interrupt setting (msi_set_mask_bit) will take more CPU as show below. rte_intr_enable call the ioctl to map the fd to interrupts frequently. perf top: 5.4

[dpdk-dev] [PATCH 2/4] net/ixgbevf: set the inter-interrupt interval for EITR.

2017-10-26 Thread xiangxia . m . yue
From: Tonghao Zhang Set EITR interval as default. This patch can improve the performance when we enable the rx-intrrupt to process the packets because we hope rx-intrrupt reduce CPU. Signed-off-by: Tonghao Zhang Signed-off-by: Tonghao Zhang --- drivers/net/ixgbe/ixgbe_ethdev.c | 3 +++ 1 file

[dpdk-dev] [PATCH 3/4] net/ixgbevf: save IXGBE_VTEIMS to intr->mask for performance.

2017-10-26 Thread xiangxia . m . yue
From: Tonghao Zhang If dpdk APPs call the rte_eth_dev_rx_intr_enable or rte_eth_dev_rx_intr_disable frequently, and ixgbe vf will read the IXGBE_VTEIMS register everytime. We can optimize the driver function. The patch save the IXGBE_VTEIMS to mask to avoid read frequently. Signed-off-by: Tongha

[dpdk-dev] [PATCH 1/4] net/ixgbevf: unregister irq handler when other interrupts not allowed.

2017-10-26 Thread xiangxia . m . yue
From: Tonghao Zhang When we bind the ixgbe VF (e.g 82599 card) to igb_uio and enable the rx-interrupt, there will be more than one epoll_wait on intr_handle.fd. One is in "eal-intr-thread" thread, and the others are in the thread which call the "rte_epoll_wait". The problem is that sometiems

Re: [dpdk-dev] [PATCH v2 4/7] net/mlx4: merge Tx path functions

2017-10-26 Thread Nélio Laranjeiro
On Thu, Oct 26, 2017 at 12:30:54PM +, Matan Azrad wrote: > Hi Nelio > Please see my comments below (3). > > > > -Original Message- > > From: Nélio Laranjeiro [mailto:nelio.laranje...@6wind.com] > > Sent: Thursday, October 26, 2017 3:12 PM > > To: Matan Azrad > > Cc: Ophir Munk ; Adri

Re: [dpdk-dev] [PATCH 2/3] net/ixgbe: fix build issue

2017-10-26 Thread Akhil Goyal
On 10/26/2017 6:37 PM, Thomas Monjalon wrote: 26/10/2017 14:59, Akhil Goyal: Hi Thomas, On 10/26/2017 6:03 PM, Thomas Monjalon wrote: 26/10/2017 14:28, Radu Nicolau: On 10/26/2017 12:39 PM, Thomas Monjalon wrote: 26/10/2017 13:27, David Marchand: On Thu, Oct 26, 2017 at 1:01 PM, Radu Nicol

Re: [dpdk-dev] [PATCH 2/3] net/ixgbe: fix build issue

2017-10-26 Thread Thomas Monjalon
26/10/2017 14:59, Akhil Goyal: > Hi Thomas, > > On 10/26/2017 6:03 PM, Thomas Monjalon wrote: > > 26/10/2017 14:28, Radu Nicolau: > >> > >> On 10/26/2017 12:39 PM, Thomas Monjalon wrote: > >>> 26/10/2017 13:27, David Marchand: > On Thu, Oct 26, 2017 at 1:01 PM, Radu Nicolau > wrote: >

Re: [dpdk-dev] [PATCH 2/3] net/ixgbe: fix build issue

2017-10-26 Thread Akhil Goyal
Hi Thomas, On 10/26/2017 6:03 PM, Thomas Monjalon wrote: 26/10/2017 14:28, Radu Nicolau: On 10/26/2017 12:39 PM, Thomas Monjalon wrote: 26/10/2017 13:27, David Marchand: On Thu, Oct 26, 2017 at 1:01 PM, Radu Nicolau wrote: On 10/26/2017 11:36 AM, David Marchand wrote: On Thu, Oct 26, 2017

Re: [dpdk-dev] [PATCH v7 7/9] linuxapp/eal_vfio: honor iova mode before mapping

2017-10-26 Thread Jonas Pfefferle1
Hi @all I just stumbled upon this patch while testing on POWER. RTE_IOVA_VA will not work for the sPAPR code since the dma window size is currently determined by the physical address only. I'm preparing a patch to address this. Thanks, Jonas "dev" wrote on 08/31/2017 05:26:16 AM: > From: Sant

Re: [dpdk-dev] [PATCH 2/3] net/ixgbe: fix build issue

2017-10-26 Thread Thomas Monjalon
26/10/2017 14:28, Radu Nicolau: > > On 10/26/2017 12:39 PM, Thomas Monjalon wrote: > > 26/10/2017 13:27, David Marchand: > >> On Thu, Oct 26, 2017 at 1:01 PM, Radu Nicolau > >> wrote: > >>> On 10/26/2017 11:36 AM, David Marchand wrote: > On Thu, Oct 26, 2017 at 12:22 PM, Radu Nicolau > >>>

Re: [dpdk-dev] [PATCH 2/3] net/ixgbe: fix build issue

2017-10-26 Thread Ananyev, Konstantin
> -Original Message- > From: David Marchand [mailto:david.march...@6wind.com] > Sent: Thursday, October 26, 2017 12:39 PM > To: Ananyev, Konstantin > Cc: Nicolau, Radu ; dev@dpdk.org; Doherty, Declan > ; De Lara Guarch, Pablo > ; Hemant Agrawal ; > bor...@mellanox.com; avia...@mellanox

Re: [dpdk-dev] [PATCH v2 4/7] net/mlx4: merge Tx path functions

2017-10-26 Thread Matan Azrad
Hi Nelio Please see my comments below (3). > -Original Message- > From: Nélio Laranjeiro [mailto:nelio.laranje...@6wind.com] > Sent: Thursday, October 26, 2017 3:12 PM > To: Matan Azrad > Cc: Ophir Munk ; Adrien Mazarguil > ; dev@dpdk.org; Thomas Monjalon > ; Olga Shern ; Mordechay > Hai

Re: [dpdk-dev] [PATCH 2/3] net/ixgbe: fix build issue

2017-10-26 Thread Radu Nicolau
On 10/26/2017 12:39 PM, David Marchand wrote: On Thu, Oct 26, 2017 at 1:30 PM, Ananyev, Konstantin wrote: -Original Message- From: Nicolau, Radu It can be disabled in the code, but as far as I know there is a general push back against having conditionally compiled code. I originally h

Re: [dpdk-dev] [PATCH 2/3] net/ixgbe: fix build issue

2017-10-26 Thread Radu Nicolau
On 10/26/2017 12:39 PM, Thomas Monjalon wrote: 26/10/2017 13:27, David Marchand: On Thu, Oct 26, 2017 at 1:01 PM, Radu Nicolau wrote: On 10/26/2017 11:36 AM, David Marchand wrote: On Thu, Oct 26, 2017 at 12:22 PM, Radu Nicolau wrote: --- a/drivers/net/ixgbe/Makefile +++ b/drivers/net/ixgbe

Re: [dpdk-dev] [PATCH v2 4/7] net/mlx4: merge Tx path functions

2017-10-26 Thread Nélio Laranjeiro
On Thu, Oct 26, 2017 at 10:31:06AM +, Matan Azrad wrote: > Hi Nelio > > I think the memory barrier discussion is not relevant for this patch > (if it will be relevant I will create new one). > Please see my comments inline. It was not my single comment. There is also useless code like having

Re: [dpdk-dev] [PATCH] flow_classify: fix logging

2017-10-26 Thread Singh, Jasvinder
> -Original Message- > From: Iremonger, Bernard > Sent: Thursday, October 26, 2017 11:48 AM > To: dev@dpdk.org; Singh, Jasvinder > Cc: Iremonger, Bernard > Subject: [PATCH] flow_classify: fix logging > > Set log_level to RTE_LOG_INFO. > The RTE_LIBRTE_CLASSIFY_DEBUG macro has been remo

Re: [dpdk-dev] [PATCH 2/3] net/ixgbe: fix build issue

2017-10-26 Thread Thomas Monjalon
26/10/2017 13:27, David Marchand: > On Thu, Oct 26, 2017 at 1:01 PM, Radu Nicolau wrote: > > On 10/26/2017 11:36 AM, David Marchand wrote: > >> On Thu, Oct 26, 2017 at 12:22 PM, Radu Nicolau > >> wrote: > >>> --- a/drivers/net/ixgbe/Makefile > >>> +++ b/drivers/net/ixgbe/Makefile > >>> +ifneq ($(

Re: [dpdk-dev] [PATCH 2/3] net/ixgbe: fix build issue

2017-10-26 Thread David Marchand
On Thu, Oct 26, 2017 at 1:30 PM, Ananyev, Konstantin wrote: >> -Original Message- >> From: Nicolau, Radu >> It can be disabled in the code, but as far as I know there is a general >> push back against having conditionally compiled code. I originally had >> the security sections in ixgbe PM

Re: [dpdk-dev] [PATCH 2/3] net/ixgbe: fix build issue

2017-10-26 Thread Ananyev, Konstantin
> -Original Message- > From: Nicolau, Radu > Sent: Thursday, October 26, 2017 12:01 PM > To: David Marchand > Cc: dev@dpdk.org; Doherty, Declan ; De Lara Guarch, > Pablo ; Hemant > Agrawal ; bor...@mellanox.com; avia...@mellanox.com; > Thomas Monjalon ; > sandeep.ma...@nxp.com; Jerin J

Re: [dpdk-dev] [PATCH 2/3] net/ixgbe: fix build issue

2017-10-26 Thread David Marchand
On Thu, Oct 26, 2017 at 1:01 PM, Radu Nicolau wrote: > On 10/26/2017 11:36 AM, David Marchand wrote: >> On Thu, Oct 26, 2017 at 12:22 PM, Radu Nicolau >> wrote: >>> >>> Build fails when rte_security is disabled; make rte_security mandatory >>> Fixes: 9a0752f498d2 ("net/ixgbe: enable inline IPsec"

Re: [dpdk-dev] [PATCH 2/3] net/ixgbe: fix build issue

2017-10-26 Thread Radu Nicolau
On 10/26/2017 11:36 AM, David Marchand wrote: On Thu, Oct 26, 2017 at 12:22 PM, Radu Nicolau wrote: Build fails when rte_security is disabled; make rte_security mandatory Fixes: 9a0752f498d2 ("net/ixgbe: enable inline IPsec") Signed-off-by: Radu Nicolau --- drivers/net/ixgbe/Makefile | 6

[dpdk-dev] [PATCH] doc: fix description of traffic management function in testpmd

2017-10-26 Thread Jasvinder Singh
Fixes: 5b590fbe09b6 ("app/testpmd: add traffic management forwarding mode") Signed-off-by: Jasvinder Singh --- doc/guides/testpmd_app_ug/testpmd_funcs.rst | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst b/doc/guides

[dpdk-dev] [PATCH] flow_classify: fix logging

2017-10-26 Thread Bernard Iremonger
Set log_level to RTE_LOG_INFO. The RTE_LIBRTE_CLASSIFY_DEBUG macro has been removed from the config file, use the log_level instead. Fixes: be41ac2a330f ("flow_classify: introduce flow classify library") Signed-off-by: Bernard Iremonger --- lib/librte_flow_classify/rte_flow_classify.c | 19 +

Re: [dpdk-dev] [PATCH 0/3] RFC: implement VF reset for i40e, e1000 and ixgbe

2017-10-26 Thread Luca Boccassi
On Thu, 2017-10-26 at 08:08 +, Dai, Wei wrote: > Current rte_eth_dev_reset( ) from my patches are just to reset the > NIC port, NOT recovery its traffic. > All my patches for NIC reset have already been accepted. > > It is the duty of user application to recovery any settings and > traffic by

Re: [dpdk-dev] [PATCH 08/10] lpm6: fix compilation with -Og

2017-10-26 Thread Bruce Richardson
On Fri, Oct 06, 2017 at 01:18:00AM +0100, Ferruh Yigit wrote: > On 9/11/2017 4:13 PM, Olivier Matz wrote: > > The compilation with gcc-6.3.0 and EXTRA_CFLAGS=-Og gives the following > > error: > > > > CC rte_lpm6.o > > rte_lpm6.c: In function ‘rte_lpm6_add_v1705’: > > rte_lpm6.c:442:11: erro

Re: [dpdk-dev] [PATCH 2/3] net/ixgbe: fix build issue

2017-10-26 Thread David Marchand
On Thu, Oct 26, 2017 at 12:22 PM, Radu Nicolau wrote: > Build fails when rte_security is disabled; make rte_security mandatory > Fixes: 9a0752f498d2 ("net/ixgbe: enable inline IPsec") > > Signed-off-by: Radu Nicolau > --- > drivers/net/ixgbe/Makefile | 6 ++ > 1 file changed, 6 insertions(+)

Re: [dpdk-dev] [PATCH 0/3] Build fails when rte_security is disabled.

2017-10-26 Thread Akhil Goyal
On 10/26/2017 3:52 PM, Radu Nicolau wrote: Disabling CONFIG_RTE_LIBRTE_SECURITY results in build failure for crypto/dpaa2_sec and net/ixgbe PMDs and IPsec sample app. This patchset makes CONFIG_RTE_LIBRTE_SECURITY mandatory for all of the above. Radu Nicolau (3): crypto/dpaa2_sec: fix build i

Re: [dpdk-dev] [PATCH v2 4/7] net/mlx4: merge Tx path functions

2017-10-26 Thread Matan Azrad
Hi Nelio I think the memory barrier discussion is not relevant for this patch (if it will be relevant I will create new one). Please see my comments inline. Regarding this specific patch, I didn't see any comment from you, Are you agree with it? > -Original Message- > From: Nélio Lar

  1   2   >