Re: [dpdk-dev] Will huge page have negative effect on guest vm in qemu enviroment?

2017-06-21 Thread Sam
Thank you~ 1. We have a compare test on qemu-kvm enviroment with huge page and without huge page. Qemu start process is much longer in huge page enviromwnt. And I write an email titled with '[DPDK-memory] how qemu waste such long time under dpdk huge page envriment?'. I could resend it later. 2.

[dpdk-dev] [PATCH 0/5] eal: check socket memory

2017-06-21 Thread Pablo de Lara
Several drivers, libraries and apps check if a socket has reserved memory, by implementing their own function, which returns the total number of sockets that have memory. First of all, this function is not completely correct, as it really returns the highest socket id that has memory. So, if all

[dpdk-dev] [PATCH 2/5] cryptodev: check if socket id has memory

2017-06-21 Thread Pablo de Lara
Use new function to check if socket id has reserved memory, instead of implementing a local function that checks total number of sockets, to verify if selected socket id is beyond the range of sockets. Signed-off-by: Pablo de Lara --- lib/librte_cryptodev/rte_cryptodev.c | 23 ---

[dpdk-dev] [PATCH 3/5] crypto/scheduler: check if socket id has memory

2017-06-21 Thread Pablo de Lara
Use new function to check if socket id has reserved memory, instead of implementing a local function that checks total number of sockets, to verify if selected socket id is beyond the range of sockets. Signed-off-by: Pablo de Lara --- drivers/crypto/scheduler/scheduler_pmd.c | 23 ---

[dpdk-dev] [PATCH 1/5] eal: check if socket has memory reserved

2017-06-21 Thread Pablo de Lara
Several drivers and apps check if a socket has reserved memory, by implementing their own function, which returns the total number of sockets that have memory. This function is not really useful, as the main goal is to check if memory on a specific socket is available, rather than checking if a soc

[dpdk-dev] [PATCH 4/5] net/bonding: check if socket id has memory

2017-06-21 Thread Pablo de Lara
Use new function to check if socket id has reserved memory, instead of implementing a local function that checks total number of sockets, to verify if selected socket id is beyond the range of sockets. Signed-off-by: Pablo de Lara --- drivers/net/bonding/rte_eth_bond_api.c | 16 -

[dpdk-dev] [PATCH 5/5] test/bonding: check if socket id has memory

2017-06-21 Thread Pablo de Lara
Use new function to check if socket id has reserved memory, instead of implementing a local function that checks total number of sockets, to verify if selected socket id is beyond the range of sockets. Signed-off-by: Pablo de Lara --- test/test/virtual_pmd.c | 16 +--- 1 file changed

Re: [dpdk-dev] [PATCH v3 2/9] eal: expose rte_eal_using_phys_addrs

2017-06-21 Thread Thomas Monjalon
21/06/2017 01:36, Gaetan Rivet: > This function was previously private to the EAL layer. > Other subsystems requires it, such as the PCI bus. > > This function is only exposed for linuxapps. Why exposing it only for Linux? Every API should be common, even if it is not implemented for FreeBSD.

Re: [dpdk-dev] [PATCH v3 4/9] bus: properly include rte_debug

2017-06-21 Thread Thomas Monjalon
21/06/2017 01:36, Gaetan Rivet: > Signed-off-by: Gaetan Rivet Please add a comment to explain why this include is required now.

Re: [dpdk-dev] [PATCH v3 5/9] pmdinfogen: move to drivers subdirectory

2017-06-21 Thread Thomas Monjalon
21/06/2017 01:36, Gaetan Rivet: > pmdinfogen has a dependency on the PCI bus. The latter must be built > first. I think it should not be moved outside of buildtools. The build order can be fixed by installing headers before any compilation like proposed in this RFC: http://dpdk.org/patch/25463 A

[dpdk-dev] [PATCH v6 1/2] mem: balanced allocation of hugepages

2017-06-21 Thread Ilya Maximets
Currently EAL allocates hugepages one by one not paying attention from which NUMA node allocation was done. Such behaviour leads to allocation failure if number of available hugepages for application limited by cgroups or hugetlbfs and memory requested not only from the first socket. Example:

[dpdk-dev] [PATCH v6 2/2] config: enable vhost numa awareness by default

2017-06-21 Thread Ilya Maximets
It is safe to enable LIBRTE_VHOST_NUMA by default for all configurations where libnuma is already a default dependency. Signed-off-by: Ilya Maximets --- config/common_linuxapp | 1 + config/defconfig_arm-armv7a-linuxapp-gcc | 1 + config/defconfig_arm64-armv8a-linuxapp-

[dpdk-dev] [PATCH v6 0/2] Balanced allocation of hugepages

2017-06-21 Thread Ilya Maximets
Version 6: * Configuration option RTE_LIBRTE_EAL_NUMA_AWARE_HUGEPAGES returned. Enabled by default for x86, ppc and thunderx. Version 5: * Fixed shared build. (Automated build test will fail anyway because libnuma-devel not installed on build servers) Version 4

Re: [dpdk-dev] [PATCH v5 0/2] Balanced allocation of hugepages

2017-06-21 Thread Hemant Agrawal
On 6/20/2017 9:11 PM, Jerin Jacob wrote: -Original Message- Date: Tue, 20 Jun 2017 15:58:50 +0100 From: Sergio Gonzalez Monroy To: Thomas Monjalon , Ilya Maximets CC: dev@dpdk.org, Hemant Agrawal , Bruce Richardson , David Marchand , Heetae Ahn , Yuanhan Liu , Jianfeng Tan , Neil H

Re: [dpdk-dev] [PATCH 01/38] eal: add support for 24 40 and 48 bit operations

2017-06-21 Thread Hemant Agrawal
On 6/20/2017 8:04 PM, Wiles, Keith wrote: On Jun 20, 2017, at 5:43 AM, Hemant Agrawal wrote: On 6/19/2017 7:22 PM, Wiles, Keith wrote: On Jun 19, 2017, at 6:00 AM, Shreyansh Jain wrote: Hello Adrien, On Friday 16 June 2017 04:04 PM, Adrien Mazarguil wrote: Hi Shreyansh, On Fri, Jun 16,

Re: [dpdk-dev] [PATCH v5 0/2] Balanced allocation of hugepages

2017-06-21 Thread Sergio Gonzalez Monroy
On 21/06/2017 09:14, Hemant Agrawal wrote: On 6/20/2017 9:11 PM, Jerin Jacob wrote: -Original Message- Date: Tue, 20 Jun 2017 15:58:50 +0100 From: Sergio Gonzalez Monroy To: Thomas Monjalon , Ilya Maximets CC: dev@dpdk.org, Hemant Agrawal , Bruce Richardson , David Marchand , Hee

Re: [dpdk-dev] [PATCH 01/38] eal: add support for 24 40 and 48 bit operations

2017-06-21 Thread Bruce Richardson
On Wed, Jun 21, 2017 at 01:47:52PM +0530, Hemant Agrawal wrote: > On 6/20/2017 8:04 PM, Wiles, Keith wrote: > > > > > On Jun 20, 2017, at 5:43 AM, Hemant Agrawal > > > wrote: > > > > > > On 6/19/2017 7:22 PM, Wiles, Keith wrote: > > > > > > > > > On Jun 19, 2017, at 6:00 AM, Shreyansh Jain > >

Re: [dpdk-dev] [PATCH v5 0/2] Balanced allocation of hugepages

2017-06-21 Thread Ilya Maximets
On 21.06.2017 11:25, Sergio Gonzalez Monroy wrote: > On 21/06/2017 09:14, Hemant Agrawal wrote: >> On 6/20/2017 9:11 PM, Jerin Jacob wrote: >>> -Original Message- Date: Tue, 20 Jun 2017 15:58:50 +0100 From: Sergio Gonzalez Monroy To: Thomas Monjalon , Ilya Maximets >>

Re: [dpdk-dev] [PATCH v5 0/2] Balanced allocation of hugepages

2017-06-21 Thread Jerin Jacob
-Original Message- > Date: Wed, 21 Jun 2017 09:25:25 +0100 > From: Sergio Gonzalez Monroy > To: Hemant Agrawal , Jerin Jacob > > CC: Thomas Monjalon , Ilya Maximets > , dev@dpdk.org, Bruce Richardson > , David Marchand , > Heetae Ahn , Yuanhan Liu , > Jianfeng Tan , Neil Horman > ,

Re: [dpdk-dev] [PATCH v5 0/2] Balanced allocation of hugepages

2017-06-21 Thread Thomas Monjalon
21/06/2017 10:41, Jerin Jacob: > > > 1. There are many machines (arm/ppc), which do not support NUMA. > > > > > > https://wiki.linaro.org/LEG/Engineering/Kernel/NUMA > > > > > > > I did find that link too, last modified 4 years ago. > > Despite that, I could not find any ARM references in libnum

Re: [dpdk-dev] [PATCH v6 1/2] mem: balanced allocation of hugepages

2017-06-21 Thread Thomas Monjalon
21/06/2017 10:04, Ilya Maximets: > +CONFIG_RTE_LIBRTE_EAL_NUMA_AWARE_HUGEPAGES=n We can stop inserting LIBRTE in our config options. CONFIG_RTE_EAL_ is long enough :)

Re: [dpdk-dev] [PATCH v6 1/2] mem: balanced allocation of hugepages

2017-06-21 Thread Bruce Richardson
On Wed, Jun 21, 2017 at 10:51:58AM +0200, Thomas Monjalon wrote: > 21/06/2017 10:04, Ilya Maximets: > > +CONFIG_RTE_LIBRTE_EAL_NUMA_AWARE_HUGEPAGES=n > > We can stop inserting LIBRTE in our config options. > CONFIG_RTE_EAL_ is long enough :) > Consistency. While I agree it's unneeded should have

Re: [dpdk-dev] [PATCH 01/38] eal: add support for 24 40 and 48 bit operations

2017-06-21 Thread Adrien Mazarguil
On Wed, Jun 21, 2017 at 01:47:52PM +0530, Hemant Agrawal wrote: > On 6/20/2017 8:04 PM, Wiles, Keith wrote: > > > >>On Jun 20, 2017, at 5:43 AM, Hemant Agrawal wrote: > >> > >>On 6/19/2017 7:22 PM, Wiles, Keith wrote: > >>> > On Jun 19, 2017, at 6:00 AM, Shreyansh Jain > wrote: > >

Re: [dpdk-dev] Will huge page have negative effect on guest vm in qemu enviroment?

2017-06-21 Thread Gaëtan Rivet
Hi Sam, On Wed, Jun 21, 2017 at 03:22:45PM +0800, Sam wrote: > Thank you~ > > 1. We have a compare test on qemu-kvm enviroment with huge page and without > huge page. Qemu start process is much longer in huge page enviromwnt. And I > write an email titled with '[DPDK-memory] how qemu waste such l

Re: [dpdk-dev] [PATCH v3 2/9] eal: expose rte_eal_using_phys_addrs

2017-06-21 Thread Gaëtan Rivet
On Wed, Jun 21, 2017 at 09:44:06AM +0200, Thomas Monjalon wrote: > 21/06/2017 01:36, Gaetan Rivet: > > This function was previously private to the EAL layer. > > Other subsystems requires it, such as the PCI bus. > > > > This function is only exposed for linuxapps. > > Why exposing it only for Li

Re: [dpdk-dev] [PATCH v2 1/4] ethdev: modify callback process API

2017-06-21 Thread Iremonger, Bernard
Hi Stephen, > -Original Message- > From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Thursday, June 15, 2017 4:43 PM > To: Iremonger, Bernard > Cc: dev@dpdk.org; tho...@monjalon.net > Subject: Re: [dpdk-dev] [PATCH v2 1/4] ethdev: modify callback process API > > On Mon,

Re: [dpdk-dev] [PATCH v6 1/2] mem: balanced allocation of hugepages

2017-06-21 Thread Ilya Maximets
On 21.06.2017 11:58, Bruce Richardson wrote: > On Wed, Jun 21, 2017 at 10:51:58AM +0200, Thomas Monjalon wrote: >> 21/06/2017 10:04, Ilya Maximets: >>> +CONFIG_RTE_LIBRTE_EAL_NUMA_AWARE_HUGEPAGES=n >> >> We can stop inserting LIBRTE in our config options. >> CONFIG_RTE_EAL_ is long enough :) >> > C

Re: [dpdk-dev] [PATCH v3 4/9] bus: properly include rte_debug

2017-06-21 Thread Gaëtan Rivet
On Wed, Jun 21, 2017 at 09:45:12AM +0200, Thomas Monjalon wrote: > 21/06/2017 01:36, Gaetan Rivet: > > Signed-off-by: Gaetan Rivet > > Please add a comment to explain why this include is required now. This commit will have this comment in the next version: This include is necessary for rte_

Re: [dpdk-dev] [PATCH v6 1/2] mem: balanced allocation of hugepages

2017-06-21 Thread Thomas Monjalon
21/06/2017 10:58, Bruce Richardson: > On Wed, Jun 21, 2017 at 10:51:58AM +0200, Thomas Monjalon wrote: > > 21/06/2017 10:04, Ilya Maximets: > > > +CONFIG_RTE_LIBRTE_EAL_NUMA_AWARE_HUGEPAGES=n > > > > We can stop inserting LIBRTE in our config options. > > CONFIG_RTE_EAL_ is long enough :) > > > C

Re: [dpdk-dev] [PATCH v5 0/2] Balanced allocation of hugepages

2017-06-21 Thread Jerin Jacob
-Original Message- > Date: Wed, 21 Jun 2017 10:49:14 +0200 > From: Thomas Monjalon > To: Jerin Jacob > Cc: Sergio Gonzalez Monroy , Hemant > Agrawal , Ilya Maximets , > dev@dpdk.org, Bruce Richardson , David > Marchand , Heetae Ahn > , Yuanhan Liu , Jianfeng > Tan , Neil Horman , Yul

Re: [dpdk-dev] [PATCH v6 1/2] mem: balanced allocation of hugepages

2017-06-21 Thread Bruce Richardson
On Wed, Jun 21, 2017 at 12:25:51PM +0300, Ilya Maximets wrote: > On 21.06.2017 11:58, Bruce Richardson wrote: > > On Wed, Jun 21, 2017 at 10:51:58AM +0200, Thomas Monjalon wrote: > >> 21/06/2017 10:04, Ilya Maximets: > >>> +CONFIG_RTE_LIBRTE_EAL_NUMA_AWARE_HUGEPAGES=n > >> > >> We can stop insertin

Re: [dpdk-dev] [PATCH v3 5/9] pmdinfogen: move to drivers subdirectory

2017-06-21 Thread Gaëtan Rivet
On Wed, Jun 21, 2017 at 09:57:18AM +0200, Thomas Monjalon wrote: > 21/06/2017 01:36, Gaetan Rivet: > > pmdinfogen has a dependency on the PCI bus. The latter must be built > > first. > > I think it should not be moved outside of buildtools. > Right, I agree. I took the simplest path here, but if

Re: [dpdk-dev] [PATCH v4 4/4] app/testpmd: add isolated mode parameter

2017-06-21 Thread Vasily Philipov
> -Original Message- > From: Wu, Jingjing [mailto:jingjing...@intel.com] > Sent: Tuesday, June 20, 2017 04:27 > To: Vasily Philipov ; dev@dpdk.org > Cc: Adrien Mazarguil ; Nélio Laranjeiro > > Subject: RE: [dpdk-dev] [PATCH v4 4/4] app/testpmd: add isolated mode > parameter > > > > +/*

Re: [dpdk-dev] [PATCH] net/mlx5: fix TSO segment size

2017-06-21 Thread Ferruh Yigit
On 6/20/2017 8:13 AM, Nélio Laranjeiro wrote: > On Tue, Jun 20, 2017 at 08:24:47AM +0300, Shahaf Shuler wrote: >> In case on multi segment packet, the TSO segment size >> was taken from the last segment. This may lead to incorrect >> values in case not all segments are initialized with the field. >

Re: [dpdk-dev] [PATCH v5 0/2] Balanced allocation of hugepages

2017-06-21 Thread Thomas Monjalon
21/06/2017 11:27, Jerin Jacob: > -Original Message- > > Date: Wed, 21 Jun 2017 10:49:14 +0200 > > From: Thomas Monjalon > > To: Jerin Jacob > > Cc: Sergio Gonzalez Monroy , Hemant > > Agrawal , Ilya Maximets , > > dev@dpdk.org, Bruce Richardson , David > > Marchand , Heetae Ahn > > ,

Re: [dpdk-dev] [PATCH v3 5/9] pmdinfogen: move to drivers subdirectory

2017-06-21 Thread Thomas Monjalon
21/06/2017 11:40, Gaëtan Rivet: > On Wed, Jun 21, 2017 at 09:57:18AM +0200, Thomas Monjalon wrote: > > Another (probably better) solution is to keep basic definitions > > and helpers in EAL: > > - rte_pci.h keeps only some PCI definitions and helpers > > like rte_pci_addr and eal_parse_pci_BDF(

Re: [dpdk-dev] [PATCH] net/sfc: add support for the flow API isolated mode

2017-06-21 Thread Ferruh Yigit
On 6/20/2017 5:37 PM, Andrew Rybchenko wrote: > From: Ivan Malov > > Signed-off-by: Ivan Malov > Signed-off-by: Andrew Rybchenko Applied to dpdk-next-net/master, thanks.

[dpdk-dev] [PATCH v7 1/2] mem: balanced allocation of hugepages

2017-06-21 Thread Ilya Maximets
Currently EAL allocates hugepages one by one not paying attention from which NUMA node allocation was done. Such behaviour leads to allocation failure if number of available hugepages for application limited by cgroups or hugetlbfs and memory requested not only from the first socket. Example:

[dpdk-dev] [PATCH v7 0/2] Balanced allocation of hugepages

2017-06-21 Thread Ilya Maximets
Version 7: * RTE_LIBRTE_EAL_NUMA_AWARE_HUGEPAGES --> RTE_EAL_NUMA_AWARE_HUGEPAGES Version 6: * Configuration option RTE_LIBRTE_EAL_NUMA_AWARE_HUGEPAGES returned. Enabled by default for x86, ppc and thunderx. Version 5: * Fixed shared build. (Automated build test

[dpdk-dev] [PATCH v7 2/2] config: enable vhost numa awareness by default

2017-06-21 Thread Ilya Maximets
It is safe to enable LIBRTE_VHOST_NUMA by default for all configurations where libnuma is already a default dependency. Signed-off-by: Ilya Maximets --- config/common_linuxapp | 1 + config/defconfig_arm-armv7a-linuxapp-gcc | 1 + config/defconfig_arm64-armv8a-linuxapp-

Re: [dpdk-dev] [RFC PATCH] mk: symlink every headers first

2017-06-21 Thread Bruce Richardson
On Tue, Jun 20, 2017 at 11:21:39PM +0200, Thomas Monjalon wrote: > If a library or a build tool uses a definition from a driver, > there is a build ordering issue, like seen when moving PCI code > into a bus driver. > > One option is to keep PCI helpers and some common definitions in EAL. > The ot

Re: [dpdk-dev] [PATCH v5 0/2] Balanced allocation of hugepages

2017-06-21 Thread Jerin Jacob
-Original Message- > Date: Wed, 21 Jun 2017 11:58:12 +0200 > From: Thomas Monjalon > To: Jerin Jacob > Cc: Sergio Gonzalez Monroy , Hemant > Agrawal , Ilya Maximets , > dev@dpdk.org, Bruce Richardson , David > Marchand , Heetae Ahn > , Yuanhan Liu , Jianfeng > Tan , Neil Horman , Yul

Re: [dpdk-dev] [PATCH v5 0/2] Balanced allocation of hugepages

2017-06-21 Thread Ilya Maximets
On 21.06.2017 13:29, Jerin Jacob wrote: > -Original Message- >> Date: Wed, 21 Jun 2017 11:58:12 +0200 >> From: Thomas Monjalon >> To: Jerin Jacob >> Cc: Sergio Gonzalez Monroy , Hemant >> Agrawal , Ilya Maximets , >> dev@dpdk.org, Bruce Richardson , David >> Marchand , Heetae Ahn >> ,

Re: [dpdk-dev] [RFC PATCH] mk: symlink every headers first

2017-06-21 Thread Thomas Monjalon
21/06/2017 12:27, Bruce Richardson: > On Tue, Jun 20, 2017 at 11:21:39PM +0200, Thomas Monjalon wrote: > > If a library or a build tool uses a definition from a driver, > > there is a build ordering issue, like seen when moving PCI code > > into a bus driver. > > > > One option is to keep PCI help

[dpdk-dev] [PATCH v8 0/4] Userspace Network Control Interface (UNCI)

2017-06-21 Thread Ferruh Yigit
Userspace Network Control Interface (UNCI), (formerly KCP). When a NIC bound to the DPDK, it can't be controlled by Linux tools. This patch creates a virtual network interface for each DPDK port, initial target is to get some data from those interfaces, in next step target is to control DPDK port

[dpdk-dev] [PATCH v8 2/4] unci: add kernel control path kernel module

2017-06-21 Thread Ferruh Yigit
This kernel module is based on KNI module, but this one is stripped version of it and only for control messages, no data transfer functionality provided. This Linux kernel module helps userspace application create virtual interfaces and when a control command issued into that virtual interface, mo

[dpdk-dev] [PATCH v8 3/4] rte_ctrl_if: add control interface library

2017-06-21 Thread Ferruh Yigit
This library gets control messages form kernelspace and forwards them to librte_ether and returns response back to the kernelspace. Library does: 1) Trigger Linux virtual interface creation 2) Initialize the netlink socket communication 3) Provides process() API to the application that does proces

[dpdk-dev] [PATCH v8 1/4] ethtool: move from sample folder to lib folder

2017-06-21 Thread Ferruh Yigit
Signed-off-by: Ferruh Yigit --- v7: * rebase v17.08 --- config/common_base | 5 ++ config/common_linuxapp | 1 + doc/api/doxy-api-index.md | 3 +- doc/api/doxy-api.conf | 1 + doc

[dpdk-dev] [PATCH v8 4/4] ethdev: add control interface support

2017-06-21 Thread Ferruh Yigit
To have the support corresponding kernel module (UNCI) needs to be inserted. If kernel module is not there, application will run as it is without kernel control path support. When UNCI module inserted, running application creates a virtual Linux network interface (dpdk$) per DPDK port. This inter

Re: [dpdk-dev] [PATCH v5 0/2] Balanced allocation of hugepages

2017-06-21 Thread Jerin Jacob
-Original Message- > Date: Wed, 21 Jun 2017 13:36:58 +0300 > From: Ilya Maximets > To: Jerin Jacob , Thomas Monjalon > > CC: Sergio Gonzalez Monroy , Hemant > Agrawal , dev@dpdk.org, Bruce Richardson > , David Marchand , > Heetae Ahn , Yuanhan Liu , > Jianfeng Tan , Neil Horman > ,

Re: [dpdk-dev] [PATCH v5 0/2] Balanced allocation of hugepages

2017-06-21 Thread Thomas Monjalon
21/06/2017 13:22, Jerin Jacob: > From: Ilya Maximets > > On 21.06.2017 13:29, Jerin Jacob wrote: > > > From: Thomas Monjalon > > >> 21/06/2017 11:27, Jerin Jacob: > > >>> From: Thomas Monjalon > > 21/06/2017 10:41, Jerin Jacob: > > >>> 1. There are many machines (arm/ppc), which do not

Re: [dpdk-dev] [PATCH 0/5] eal: check socket memory

2017-06-21 Thread De Lara Guarch, Pablo
> -Original Message- > From: De Lara Guarch, Pablo > Sent: Wednesday, June 21, 2017 12:26 AM > To: tho...@monjalon.net; Doherty, Declan > Cc: dev@dpdk.org; De Lara Guarch, Pablo > Subject: [PATCH 0/5] eal: check socket memory > > Several drivers, libraries and apps check if a socket ha

Re: [dpdk-dev] [PATCH] eventdev: define the default value for dequeue timeout

2017-06-21 Thread Jerin Jacob
-Original Message- > Date: Tue, 20 Jun 2017 21:18:01 +0530 > From: Jerin Jacob > To: Hemant Agrawal > Cc: dev@dpdk.org, bruce.richard...@intel.com, harry.van.haa...@intel.com, > gage.e...@intel.com, nipun.gu...@nxp.com, narender.vang...@intel.com > Subject: Re: [PATCH] eventdev: define t

Re: [dpdk-dev] [PATCH v3 5/9] pmdinfogen: move to drivers subdirectory

2017-06-21 Thread Gaëtan Rivet
On Wed, Jun 21, 2017 at 12:00:24PM +0200, Thomas Monjalon wrote: > 21/06/2017 11:40, Gaëtan Rivet: > > On Wed, Jun 21, 2017 at 09:57:18AM +0200, Thomas Monjalon wrote: > > > Another (probably better) solution is to keep basic definitions > > > and helpers in EAL: > > > - rte_pci.h keeps only some

Re: [dpdk-dev] [PATCH v4 2/9] bus: add device iterator

2017-06-21 Thread Thomas Monjalon
21/06/2017 01:29, Gaetan Rivet: > +/** > + * Device comparison function. > + * > + * @param dev > + * Device handle. > + * > + * @param data > + * Data to compare against. > + * > + * @return > + * 0 if the device matches the data. > + * !0 if the device does not match. > + * <0 if orderi

[dpdk-dev] [PATCH] net/mlx5: fix drop action seg fault

2017-06-21 Thread Shachar Beiser
Missing room in flow allocation to store the drop specification. Changing flow without storing the change in rte_flow. Fixes: 88c77dedfbb0 ("net/mlx5: implement drop action in hardware classifier") Signed-off-by: Shachar Beiser --- drivers/net/mlx5/mlx5_flow.c | 8 +--- 1 file changed, 5 ins

Re: [dpdk-dev] [PATCH v4 3/9] bus: add helper to find bus for a particular device

2017-06-21 Thread Thomas Monjalon
21/06/2017 01:29, Gaetan Rivet: > +static int > +cmp_rte_device(const struct rte_device *dev, const void *_dev2) Better to rename dev into dev1. > +{ > + const struct rte_device *dev2 = _dev2; > + > + return !(dev == dev2); simpler: return dev1 != dev2 [...] > +static int > +bus_find_de

Re: [dpdk-dev] [PATCH v4 1/9] bus: add bus iterator to find a particular bus

2017-06-21 Thread Thomas Monjalon
21/06/2017 01:29, Gaetan Rivet: > +/** > + * Bus iterator to find a particular bus. > + * > + * If the callback returns zero this function will stop iterating over > + * any more buses. > + * If the start parameter is non-NULL, the comparison will only be determined > + * past this element. > + * >

Re: [dpdk-dev] [PATCH v3 5/9] pmdinfogen: move to drivers subdirectory

2017-06-21 Thread Thomas Monjalon
21/06/2017 13:39, Gaëtan Rivet: > On Wed, Jun 21, 2017 at 12:00:24PM +0200, Thomas Monjalon wrote: > > 21/06/2017 11:40, Gaëtan Rivet: > > > On Wed, Jun 21, 2017 at 09:57:18AM +0200, Thomas Monjalon wrote: > > > > Another (probably better) solution is to keep basic definitions > > > > and helpers i

Re: [dpdk-dev] [PATCH v4 2/9] bus: add device iterator

2017-06-21 Thread Gaëtan Rivet
On Wed, Jun 21, 2017 at 01:55:39PM +0200, Thomas Monjalon wrote: > 21/06/2017 01:29, Gaetan Rivet: > > +/** > > + * Device comparison function. > > + * > > + * @param dev > > + * Device handle. > > + * > > + * @param data > > + * Data to compare against. > > + * > > + * @return > > + * 0 if t

Re: [dpdk-dev] [PATCH v4 4/9] bus: add bus helper iterator to find a particular device

2017-06-21 Thread Thomas Monjalon
21/06/2017 01:29, Gaetan Rivet: > /** > + * Bus iterator to find a particular device. It should be said that it is iterating over every registered buses. > + * > + * If the callback returns non-zero this function will stop iterating over > any > + * more buses and devices. To continue a search

Re: [dpdk-dev] [RFC PATCH] mk: symlink every headers first

2017-06-21 Thread Richardson, Bruce
> -Original Message- > From: Thomas Monjalon [mailto:tho...@monjalon.net] > Sent: Wednesday, June 21, 2017 11:42 AM > To: Richardson, Bruce > Cc: gaetan.ri...@6wind.com; dev@dpdk.org > Subject: Re: [dpdk-dev] [RFC PATCH] mk: symlink every headers first > > 21/06/2017 12:27, Bruce Richar

Re: [dpdk-dev] [PATCH] net/mlx5: fix drop action seg fault

2017-06-21 Thread Nélio Laranjeiro
On Wed, Jun 21, 2017 at 11:55:58AM +, Shachar Beiser wrote: > Missing room in flow allocation to store the drop specification. > Changing flow without storing the change in rte_flow. > Fixes: 88c77dedfbb0 ("net/mlx5: implement drop action in hardware classifier") > > Signed-off-by: Shachar Bei

[dpdk-dev] [PATCH v2 1/4] cryptodev: remove socket id check

2017-06-21 Thread Pablo de Lara
Socket id parsed from the user was checked if it was in the range of available sockets. This check is unnecessary, as the socket specified might not have memory anyway, so it will fail at memory allocation. Therefore, the best solution is to remove this check. Signed-off-by: Pablo de Lara --- l

[dpdk-dev] [PATCH v2 0/4] Socket ID check removal

2017-06-21 Thread Pablo de Lara
Several libraries, drivers and tests check if a socket is within the range of available sockets, by implementig their own function, which returns the total number of sockets that have memory. First of all, this function is not completely correct, as it really returns the highest socket id that ha

[dpdk-dev] [PATCH v2 2/4] crypto/scheduler: remove socket id check

2017-06-21 Thread Pablo de Lara
Socket id parsed from the user was checked if it was in the range of available sockets. This check is unnecessary, as the socket specified might not have memory anyway, so it will fail at memory allocation. Therefore, the best solution is to remove this check. Signed-off-by: Pablo de Lara --- d

[dpdk-dev] [PATCH v2 3/4] net/bonding: remove socket id check

2017-06-21 Thread Pablo de Lara
Socket id parsed from the user was checked if it was in the range of available sockets. This check is unnecessary, as the socket specified might not have memory anyway, so it will fail at memory allocation. Therefore, the best solution is to remove this check. Signed-off-by: Pablo de Lara --- d

[dpdk-dev] [PATCH v2 4/4] test/bonding: remove socket id check

2017-06-21 Thread Pablo de Lara
When creating a virtual pmd to test link bonding, the socket id was checked, if it was in the range of available sockets. This check is unnecessary, as the socket specified might not have memory anyway, so it will fail at memory allocation. Therefore, the best solution is to remove this check. Si

[dpdk-dev] [PATCH] doc: document NIC features

2017-06-21 Thread Ferruh Yigit
Document NIC features, add more information about them and add more implementation related support. Signed-off-by: Ferruh Yigit --- TODO: - Not all features all fully documented, need help from community - Instead of having a new file, it would be nice to auto generate this file from defaults.i

[dpdk-dev] [pull-request] next-eventdev 17.08 pre-rc1

2017-06-21 Thread Jerin Jacob
The following changes since commit 3566af6be7f968c678a867399ddc644fb762873b: app/testpmd: always build VF and MACsec functions (2017-06-20 09:28:34 +0200) are available in the git repository at: http://dpdk.org/git/next/dpdk-next-eventdev for you to fetch changes up to c687cebe095b2ea325aa

[dpdk-dev] ixgbevf & i40evf: no Ethernet multicasts on rx

2017-06-21 Thread Gregory Etelson
Hello, Ethernet frames sent to multicast destination address 01:ff:ff:ff:ff:01 not visible on ixgbe & i40e VF PMDs. PF PMDs receive multicast frames normally. Tested with DPDK v17.05.0 and 3566af6be7f968c678a867399ddc644fb762873b (current master) Regards, Gregory

Re: [dpdk-dev] [PATCH] crypto/aesni_mb: fix assert check

2017-06-21 Thread De Lara Guarch, Pablo
Hi Stephen, > -Original Message- > From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Wednesday, May 31, 2017 11:52 PM > To: De Lara Guarch, Pablo > Cc: Doherty, Declan ; dev@dpdk.org; > sta...@dpdk.org > Subject: Re: [dpdk-dev] [PATCH] crypto/aesni_mb: fix assert check >

Re: [dpdk-dev] [RFC PATCH] mk: symlink every headers first

2017-06-21 Thread Wiles, Keith
> On Jun 21, 2017, at 5:27 AM, Bruce Richardson > wrote: > > On Tue, Jun 20, 2017 at 11:21:39PM +0200, Thomas Monjalon wrote: >> If a library or a build tool uses a definition from a driver, >> there is a build ordering issue, like seen when moving PCI code >> into a bus driver. >> >> One opti

[dpdk-dev] [PATCH v2 00/12] Remove cryptodev driver structure

2017-06-21 Thread Pablo de Lara
Following the same approach taken for ethdev, this patch series removes the PCI specific structure cryptodev driver from rte_cryptodev. The patchset makes the following changes: - Moves the virtual and PCI device specific functions to separate files, so other cryptodev header files contain only

[dpdk-dev] [PATCH v2 02/12] cryptodev: set driver name for all devices

2017-06-21 Thread Pablo de Lara
When retrieving device information for a crypto driver, driver name was only set when it was a PCI driver. Getting the driver name from rte_device structure allows rte_cryptodev_get_info() function to return it regardless they are virtual or physical devices. Signed-off-by: Pablo de Lara Acked-by

[dpdk-dev] [PATCH v2 03/12] cryptodev: rename device retrieval argument

2017-06-21 Thread Pablo de Lara
rte_cryptodev_devices_get() function was parsing a crypto device name as an argument, but the function actually returns device identifiers of devices that share the same crypto driver, so the argument should be driver name, instead. Fixes: 38227c0e3ad2 ("cryptodev: retrieve device info") CC: sta..

[dpdk-dev] [PATCH v2 05/12] cryptodev: only set PCI info when device is PCI

2017-06-21 Thread Pablo de Lara
Do not set PCI information in the device information structure for any crypto device, just for the ones that are PCI, so this is set internally in the PCI crypto PMDs (only QAT now). Signed-off-by: Pablo de Lara Acked-by: Declan Doherty --- drivers/crypto/qat/qat_crypto.c | 5 +++-- lib/li

[dpdk-dev] [PATCH v2 04/12] cryptodev: simplify device list retrieval logic

2017-06-21 Thread Pablo de Lara
rte_cryptodev_devices_get() function returns an array of devices sharing the same driver. Instead of having two different paths depending on the device being virtual or physical, retrieve the driver name from rte_device structure. Signed-off-by: Pablo de Lara Acked-by: Declan Doherty --- lib/l

[dpdk-dev] [PATCH v2 01/12] cryptodev: store device pointer in virtual devices

2017-06-21 Thread Pablo de Lara
Only non virtual devices were storing the pointer to rte_device structure in rte_cryptodev, which will be needed to retrieve the driver name for any device. Signed-off-by: Pablo de Lara Acked-by: Declan Doherty --- drivers/crypto/aesni_gcm/aesni_gcm_pmd.c | 3 ++- drivers/crypto/aesni_mb/rte_

[dpdk-dev] [PATCH v2 06/12] cryptodev: move vdev functions to a separate file

2017-06-21 Thread Pablo de Lara
Move all functions handling virtual devices to a separate header file "rte_cryptodev_vdev.h", in order to leave only generic functions for any device in the rest of the files. Signed-off-by: Pablo de Lara --- drivers/crypto/aesni_gcm/aesni_gcm_pmd.c | 1 + drivers/crypto/aesni_mb/rte_aes

[dpdk-dev] [PATCH v2 07/12] cryptodev: release device if PCI device probing fails

2017-06-21 Thread Pablo de Lara
Call rte_cryptodev_pmd_release_device() if probing a PCI crypto device, instead of accessing the variables directly. This will be useful when rte_cryptodev_pci_probe() gets moved to a separate file. Signed-off-by: Pablo de Lara Acked-by: Declan Doherty --- lib/librte_cryptodev/rte_cryptodev.c |

[dpdk-dev] [PATCH v2 08/12] cryptodev: add PCI driver helpers

2017-06-21 Thread Pablo de Lara
Add PCI probe/remove/init/uninit functions in a separate file rte_cryptodev_pci.h, which do not use cryptodev driver, in order to be removed in next commits. Signed-off-by: Pablo de Lara Acked-by: Declan Doherty --- lib/librte_cryptodev/Makefile| 1 + lib/librte_cryptodev/rte_cryp

[dpdk-dev] [PATCH v2 10/12] crypto/dpaa2_sec: do not use cryptodev driver

2017-06-21 Thread Pablo de Lara
Signed-off-by: Pablo de Lara --- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c index 4e01fe8..e32b27e 100644 --- a/drivers/crypto/d

[dpdk-dev] [PATCH v2 09/12] crypto/qat: do not use cryptodev driver

2017-06-21 Thread Pablo de Lara
Signed-off-by: Pablo de Lara Acked-by: Declan Doherty --- drivers/crypto/qat/qat_crypto.c| 1 + drivers/crypto/qat/qat_qp.c| 8 +--- drivers/crypto/qat/rte_qat_cryptodev.c | 32 3 files changed, 26 insertions(+), 15 deletions(-) diff --

[dpdk-dev] [PATCH v2 11/12] cryptodev: remove unused PCI probe/remove

2017-06-21 Thread Pablo de Lara
Signed-off-by: Pablo de Lara Acked-by: Declan Doherty --- lib/librte_cryptodev/rte_cryptodev.c | 103 - lib/librte_cryptodev/rte_cryptodev_pmd.h | 13 lib/librte_cryptodev/rte_cryptodev_version.map | 10 +-- 3 files changed, 1 insertion(+), 125 dele

[dpdk-dev] [PATCH v2 12/12] cryptodev: remove unused cryptodev driver

2017-06-21 Thread Pablo de Lara
Signed-off-by: Pablo de Lara Acked-by: Declan Doherty --- lib/librte_cryptodev/rte_cryptodev.h | 2 - lib/librte_cryptodev/rte_cryptodev_pmd.h | 64 2 files changed, 66 deletions(-) diff --git a/lib/librte_cryptodev/rte_cryptodev.h b/lib/librte_cryptodev/r

Re: [dpdk-dev] [PATCH v4 9/9] ethdev: use embedded rte_device to detach driver

2017-06-21 Thread Thomas Monjalon
21/06/2017 01:29, Gaetan Rivet: > --- a/lib/librte_ether/rte_ethdev.c > +++ b/lib/librte_ether/rte_ethdev.c > @@ -354,26 +354,14 @@ rte_eth_dev_get_port_by_name(const char *name, uint8_t > *port_id) > static int > rte_eth_dev_is_detachable(uint8_t port_id) > { > - uint32_t dev_flags; > +

Re: [dpdk-dev] [PATCH v4 9/9] ethdev: use embedded rte_device to detach driver

2017-06-21 Thread Thomas Monjalon
21/06/2017 01:29, Gaetan Rivet: > + return !!dev->device->devargs->bus->unplug; lib/librte_ether/rte_ethdev.c:364:33: fatal error: no member named 'bus' in 'struct rte_devargs' Please move this patch alone, specifying the right dependency.

Re: [dpdk-dev] [PATCH v3] pci: implement find_device bus operation

2017-06-21 Thread Thomas Monjalon
08/06/2017 01:54, Gaetan Rivet: > Signed-off-by: Gaetan Rivet > --- > This patch depends on: > > bus: attach / detach API > http://dpdk.org/ml/archives/dev/2017-May/066330.html > http://dpdk.org/dev/patchwork/patch/24489/ Please insert this patch the related series above.

[dpdk-dev] [PATCH 0/9] Crypto fixes/cleanup

2017-06-21 Thread Pablo de Lara
Prior to new crypto patches for this release, there were some fixes and some cleanup to do in some crypto drivers, tests, sample apps and documents. Pablo de Lara (9): crypto/aesni_mb: remove assert check test/crypto: fix wrong AAD setting test/crypto: remove unnecessary offset test/crypto

[dpdk-dev] [PATCH 1/9] crypto/aesni_mb: remove assert check

2017-06-21 Thread Pablo de Lara
Some assert checks in the driver were incorrect, but they are not necessary anyway, as application will panic in any case. Fixes: 0f548b50a160 ("crypto/aesni_mb: process crypto op on dequeue") CC: sta...@dpdk.org Signed-off-by: Pablo de Lara --- drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c | 4 --

Re: [dpdk-dev] [PATCH v3 3/3] vdev: use standard bus registration function

2017-06-21 Thread Thomas Monjalon
08/06/2017 01:58, Gaetan Rivet: > +RTE_REGISTER_BUS(VIRTUAL_BUS_NAME, rte_vdev_bus); nice :)

[dpdk-dev] [PATCH 2/9] test/crypto: fix wrong AAD setting

2017-06-21 Thread Pablo de Lara
AAD should not point at IV for AES algorithms. For AES-GCM, AAD will point at additional data in the mbuf. For the other algorithms (such as AES CBC), AAD is not used. Fixes: ffbe3be0d4b5 ("app/test: add libcrypto") CC: sta...@dpdk.org Signed-off-by: Pablo de Lara --- test/test/test_cryptodev_p

[dpdk-dev] [PATCH 3/9] test/crypto: remove unnecessary offset

2017-06-21 Thread Pablo de Lara
For AES/DES tests, there is no need to leave out the first block from the crypto operation. Signed-off-by: Pablo de Lara --- test/test/test_cryptodev_perf.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/test/test/test_cryptodev_perf.c b/test/test/test_cryptod

[dpdk-dev] [PATCH 5/9] test/crypto: use existing algorithm strings

2017-06-21 Thread Pablo de Lara
Instead of using duplicated functions to get the algorithm strings, use the functions from the cryptodev library. Signed-off-by: Pablo de Lara --- test/test/test_cryptodev_perf.c | 83 - 1 file changed, 16 insertions(+), 67 deletions(-) diff --git a/test/

[dpdk-dev] [PATCH 6/9] examples/l2fwd-crypto: fix application help

2017-06-21 Thread Pablo de Lara
Chain parameter can be CIPHER_HASH, HASH_CIPHER, CIPHER_ONLY or HASH_ONLY, but only the first two were shown in the application help. Fixes: 1a75e9f3fadb ("examples/l2fwd-crypto: add cipher/hash only cases") CC: sta...@dpdk.org Signed-off-by: Pablo de Lara --- examples/l2fwd-crypto/main.c | 3 +

[dpdk-dev] [PATCH 7/9] examples/l2fwd-crypto: fix auth info display

2017-06-21 Thread Pablo de Lara
Fixes: 4790f99d2d31 ("examples/l2fwd-crypto: use cryptodev algorithm parser") CC: sta...@dpdk.org Signed-off-by: Pablo de Lara --- examples/l2fwd-crypto/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/l2fwd-crypto/main.c b/examples/l2fwd-crypto/main.c index 84

[dpdk-dev] [PATCH 4/9] test/crypto: remove offsets in wireless algorithm vectors

2017-06-21 Thread Pablo de Lara
Instead of passing the authentication and cipher offset from the test vectors, just get them from the IV and AAD lengths. Signed-off-by: Pablo de Lara --- test/test/test_cryptodev.c | 59 ++--- .../test/test_cryptodev_kasumi_hash_test_vectors.h | 25 --

[dpdk-dev] [PATCH 8/9] app/crypto-perf: fix error message

2017-06-21 Thread Pablo de Lara
Fixes: f6cefe253cc8 ("app/crypto-perf: add range/list of sizes") CC: sta...@dpdk.org Signed-off-by: Pablo de Lara --- app/test-crypto-perf/cperf_options_parsing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test-crypto-perf/cperf_options_parsing.c b/app/test-crypto-p

[dpdk-dev] [PATCH 9/9] doc: fix typo in l2fwd-crypto usage

2017-06-21 Thread Pablo de Lara
Fixes: ba7b86b1419b ("doc: add l2fwd-crypto sample app guide") CC: sta...@dpdk.org Signed-off-by: Pablo de Lara --- doc/guides/sample_app_ug/l2_forward_crypto.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/guides/sample_app_ug/l2_forward_crypto.rst b/doc/guides/samp

  1   2   >