Re: [dpdk-dev] [PATCH] crypto/openssl: performance improvements

2017-08-14 Thread Akhil Goyal
On 8/14/2017 7:47 PM, De Lara Guarch, Pablo wrote: Hi Akhil, -Original Message- From: Akhil Goyal [mailto:akhil.go...@nxp.com] Sent: Friday, July 28, 2017 12:08 PM To: dev@dpdk.org; Doherty, Declan Cc: De Lara Guarch, Pablo ; hemant.agra...@nxp.com; Akhil Goyal Subject: [PATCH] crypto

[dpdk-dev] [RFC PATCH 4/4] example/ipsec-secgw: add support for offloading crypto op

2017-08-14 Thread Akhil Goyal
ipsec-secgw application is modified so that it can support following type of actions for crypto operations 1. full protocol offload using crypto devices. 2. inline ipsec using ethernet devices to perform crypto operations 3. full protocol offload using ethernet devices. 4. non protocol offload act

[dpdk-dev] [RFC PATCH 3/4] crypto/dpaa2_sec: add support for protocol offload ipsec

2017-08-14 Thread Akhil Goyal
driver implementation to support rte_security APIs Signed-off-by: Akhil Goyal --- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 368 +++- drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h | 33 +++ 2 files changed, 399 insertions(+), 2 deletions(-) diff --git a/drivers/crypto

[dpdk-dev] [RFC PATCH 2/4] cryptodev: entend cryptodev to support security APIs

2017-08-14 Thread Akhil Goyal
cryptodev library is extended to support security APIs Similar changes needs to be done for ether devices also to support security APIs Signed-off-by: Akhil Goyal --- lib/librte_cryptodev/Makefile| 3 ++- lib/librte_cryptodev/rte_crypto_sym.h| 15 ++ lib/librte_crypt

[dpdk-dev] [RFC PATCH 1/4] rte_security: API definitions

2017-08-14 Thread Akhil Goyal
Detailed description is added in the coverletter Signed-off-by: Akhil Goyal --- lib/librte_cryptodev/rte_security.c | 171 +++ lib/librte_cryptodev/rte_security.h | 409 2 files changed, 580 insertions(+) create mode 100644 lib/librte_cryptodev/r

[dpdk-dev] [RFC PATCH v2 0/4] IPSec Inline and look aside crypto offload

2017-08-14 Thread Akhil Goyal
This patchet showcases the definition and usage of the rte_security APIs described in the RFC v1 sent earlier. The data path and configuration path is similar to what was proposed in version 1. However, rte_security_configure API is removed, as it looked redundant. Also the rte_security.x files a

[dpdk-dev] [PATCH v4 7/7] mempool: update range info to pool

2017-08-14 Thread Santosh Shukla
HW pool manager e.g. Octeontx SoC demands s/w to program start and end address of pool. Currently, there is no such handle in external mempool. Introducing rte_mempool_update_range handle which will let HW(pool manager) know when common layer selects hugepage: For each hugepage - update its start/e

[dpdk-dev] [PATCH v4 4/7] mempool: get the mempool capability

2017-08-14 Thread Santosh Shukla
Allow mempool to advertise its capability. A handler been introduced called rte_mempool_ops_get_capabilities. - Upon ->get_capabilities call, mempool driver will advertise capability by updating to 'mp->flags'. Signed-off-by: Santosh Shukla Signed-off-by: Jerin Jacob --- lib/librte_mempool/rte_

[dpdk-dev] [PATCH v4 5/7] mempool: detect physical contiguous object in pool

2017-08-14 Thread Santosh Shukla
The memory area containing all the objects must be physically contiguous. Introducing MEMPOOL_F_CAPA_PHYS_CONTIG flag for such use-case. The flag useful to detect whether pool area has sufficient space to fit all objects. If not then return -ENOSPC. This way, we make sure that all object within a

[dpdk-dev] [PATCH v4 6/7] mempool: introduce block size align flag

2017-08-14 Thread Santosh Shukla
Some mempool hw like octeontx/fpa block, demands block size (/total_elem_sz) aligned object start address. Introducing an MEMPOOL_F_POOL_BLK_SZ_ALIGNED flag. If this flag is set: - Align object start address to a multiple of total_elt_sz. - Allocate one additional object. Additional object is need

[dpdk-dev] [PATCH v4 3/7] doc: remove mempool api change notice

2017-08-14 Thread Santosh Shukla
Removed mempool api change deprecation notice and updated change info in release_17.11. Signed-off-by: Santosh Shukla --- doc/guides/rel_notes/deprecation.rst | 9 - doc/guides/rel_notes/release_17_11.rst | 7 +++ 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/doc/g

[dpdk-dev] [PATCH v4 2/7] mempool: add mempool arg in xmem size and usage

2017-08-14 Thread Santosh Shukla
xmem_size and xmem_usage need to know the status of mp->flag. Following patch will make use of that. Signed-off-by: Santosh Shukla --- drivers/net/xenvirt/rte_mempool_gntalloc.c | 5 +++-- lib/librte_mempool/rte_mempool.c | 10 ++ lib/librte_mempool/rte_mempool.h |

[dpdk-dev] [PATCH v4 1/7] mempool: fix flags data type

2017-08-14 Thread Santosh Shukla
mp->flags is int and mempool API updates unsigned int value in 'flags', so fix the 'flags' data type. Patch also does mp->flags cleanup like: * Remove redundant 'flags' API description from - __rte_mempool_generic_put - __rte_mempool_generic_get * Remove unused 'flags' param from - rte_memp

[dpdk-dev] [PATCH v4 0/7] Infrastructure to support octeontx HW mempool manager

2017-08-14 Thread Santosh Shukla
v4: Include - mempool deprecation changes, refer [1], - patches are rebased against v17.11-rc0. v3: In order to support octeontx HW mempool manager, the common mempool layer must meet below condition. - Object start address should be block size (total elem size) aligned. - Object must have the p

Re: [dpdk-dev] [PATCH 1/2] app/testpmd: support the heavywight mode GRO

2017-08-14 Thread Jiayu Hu
Hi Ferruh, On Thu, Aug 10, 2017 at 10:50:02AM +0100, Ferruh Yigit wrote: > On 8/10/2017 3:50 AM, Jiayu Hu wrote: > > The GRO library provides two reassembly modes: lightweight mode and > > heavyweight mode. This patch is to support the heavyweight mode in > > csum forwarding engine. > > > > With

Re: [dpdk-dev] [PATCH] net/i40e: fix PF notify issue when VF is not up

2017-08-14 Thread Xing, Beilei
> -Original Message- > From: Li, Xiaoyun > Sent: Tuesday, August 15, 2017 11:34 AM > To: Xing, Beilei > Cc: Wu, Jingjing ; dev@dpdk.org; Li, Xiaoyun > ; sta...@dpdk.org > Subject: [PATCH] net/i40e: fix PF notify issue when VF is not up > > This patch stops PF from sending message to VF w

[dpdk-dev] [PATCH] doc: add i40e firmware upgrade guide

2017-08-14 Thread Qiming Yang
This patch adds one link to DPDK i40e doc, which is for users on how to upgrade firmware. Signed-off-by: Qiming Yang --- doc/guides/nics/i40e.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/guides/nics/i40e.rst b/doc/guides/nics/i40e.rst index bc200d3..606375d 100644 --- a/doc/guid

Re: [dpdk-dev] [PATCH 4/5] eal/armv8: define architecture specific rdtsc hz

2017-08-14 Thread Jianbo Liu
On 13 August 2017 at 15:03, Jerin Jacob wrote: > Use cntvct_el0 system register to get the system counter frequency. > > If the system is configured with RTE_ARM_EAL_RDTSC_USE_PMU then > return 0(let the common code calibrate the tsc frequency). > > CC: Jianbo Liu > Signed-off-by: Jerin Jacob >

[dpdk-dev] [PATCH] net/i40e: fix PF notify issue when VF is not up

2017-08-14 Thread Xiaoyun Li
This patch stops PF from sending message to VF when VF's ARQ and ATQ isn't enabled, namely VF isn't up and modifies VF state to active when VF reset is completed. Fixes: 4861cde46116 ("i40e: new poll mode driver") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- drivers/net/i40e/i40e_pf.c | 21

Re: [dpdk-dev] [RFC] Add RIB library

2017-08-14 Thread Vladimir Medvedkin
2017-08-14 13:51 GMT+03:00 Bruce Richardson : > On Tue, Jul 11, 2017 at 07:33:04PM +, Medvedkin Vladimir wrote: > > Hi, > > > > I want to introduce new library for ip routing lookup that have some > advantages > > over current LPM library. In short: > > - Increases the speed of control pl

Re: [dpdk-dev] [PATCH v2] eal: add counter size for efd clean

2017-08-14 Thread Tan, Jianfeng
On 8/13/2017 8:03 AM, Jingjing Wu wrote: For virtual device, the rte_intr_handle struct is initialized by the virtual device driver, including the event fd assignment. If the event fd need to be read for clean, an argument is required for the proper event fd read. This patch adds efd_counter_s

[dpdk-dev] Regarding changing RTE_RING_SZ_MASK to 0x7FFFFFFF

2017-08-14 Thread Venkatesh Nuthula
Hi all, I am a newbie to DPDK and in one of the applications I am building , I am trying to capture more than 150M packets and save them to file. I noticed that with packet count > 134M, the check 'count > RTE_RING_SZ_MASK' fails as RTE_RING_SZ_MASK is set to 0x0FFF. So I tried changing RTE_

[dpdk-dev] [PATCH v6 12/12] eal/rte_malloc: honor iova mode in virt2phy

2017-08-14 Thread Santosh Shukla
Check iova mode and accordingly return phy addr. Signed-off-by: Santosh Shukla Signed-off-by: Jerin Jacob Reviewed-by: Maxime Coquelin --- lib/librte_eal/common/rte_malloc.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/librte_eal/common/rte_malloc.c b/lib/li

[dpdk-dev] [PATCH v6 10/12] linuxapp/eal_vfio: honor iova mode before mapping

2017-08-14 Thread Santosh Shukla
Check iova mode and accordingly map iova to pa or va. Signed-off-by: Santosh Shukla Signed-off-by: Jerin Jacob Reviewed-by: Maxime Coquelin --- lib/librte_eal/linuxapp/eal/eal_vfio.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/librte_eal/linuxapp/eal/eal_

[dpdk-dev] [PATCH v6 11/12] linuxapp/eal_memory: honor iova mode in virt2phy

2017-08-14 Thread Santosh Shukla
Check iova mode and accordingly return phy addr. Signed-off-by: Santosh Shukla Signed-off-by: Jerin Jacob Reviewed-by: Maxime Coquelin --- lib/librte_eal/linuxapp/eal/eal_memory.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/librte_eal/linuxapp/eal/eal_memory.c b/lib/librte_eal/

[dpdk-dev] [PATCH v6 09/12] bsdapp/eal: auto detect iova mapping mode

2017-08-14 Thread Santosh Shukla
- Moving late bus scanning to up..just after eal_parsing. - Mapping mode would be default for bsdapp. It supports only one pass through mode (RTE_KDRV_NIC_UIO) Signed-off-by: Santosh Shukla Signed-off-by: Jerin Jacob Reviewed-by: Maxime Coquelin --- lib/librte_eal/bsdapp/eal/eal.c | 14 +

[dpdk-dev] [PATCH v6 08/12] linuxapp/eal: auto detect iova mode

2017-08-14 Thread Santosh Shukla
- Moving late bus scanning to up..just after eal_parsing. - Auto detect iova mapping mode, based on the result of rte_bus_scan_iommu_class. Signed-off-by: Santosh Shukla Signed-off-by: Jerin Jacob Reviewed-by: Maxime Coquelin --- lib/librte_eal/linuxapp/eal/eal.c | 15 +-- 1 file

[dpdk-dev] [PATCH v6 07/12] eal: introduce iova mode helper api

2017-08-14 Thread Santosh Shukla
Introducing rte_eal_iova_mode() helper API. This API used by non-eal library for detecting iova mode. Signed-off-by: Santosh Shukla Signed-off-by: Jerin Jacob Reviewed-by: Maxime Coquelin --- lib/librte_eal/bsdapp/eal/eal.c | 6 ++ lib/librte_eal/bsdapp/eal/rte_eal_version

[dpdk-dev] [PATCH v6 06/12] bus: get iommu class

2017-08-14 Thread Santosh Shukla
API(rte_bus_get_iommu_class) helps to automatically detect and select appropriate iova mapping scheme for iommu capable device on that bus. Algorithm for iova scheme selection for bus: 0. Iterate through bus_list. 1. Collect each bus iova mode value and update into 'mode' var. 2. Mode selection sc

[dpdk-dev] [PATCH v6 05/12] linuxapp/eal_pci: get iommu class

2017-08-14 Thread Santosh Shukla
Get iommu class of PCI device on the bus and returns preferred iova mapping mode for that bus. Algorithm for iova scheme selection for PCI bus: 0. If no device bound then return with RTE_IOVA_DC mapping mode, else goto 1). 1. Look for device attached to vfio kdrv and has .drv_flag set to RTE_PCI_D

[dpdk-dev] [PATCH v6 04/12] bsdapp/eal_pci: get iommu class

2017-08-14 Thread Santosh Shukla
Bsdapp case returns default iova mode. Signed-off-by: Santosh Shukla Signed-off-by: Jerin Jacob Reviewed-by: Maxime Coquelin --- lib/librte_eal/bsdapp/eal/eal_pci.c | 10 ++ lib/librte_eal/bsdapp/eal/rte_eal_version.map | 1 + 2 files changed, 11 insertions(+) diff --git a/

[dpdk-dev] [PATCH v6 03/12] eal/pci: get iommu class

2017-08-14 Thread Santosh Shukla
Introducing rte_pci_get_iommu_class API which helps to get iommu class of PCI device on the bus and returns preferred iova mapping mode for PCI bus. Signed-off-by: Santosh Shukla Signed-off-by: Jerin Jacob Reviewed-by: Maxime Coquelin --- lib/librte_eal/common/include/rte_bus.h | 10 ++

[dpdk-dev] [PATCH v6 02/12] eal/pci: export match function

2017-08-14 Thread Santosh Shukla
Export rte_pci_match() function as it needed in the followup patch. Signed-off-by: Santosh Shukla Signed-off-by: Jerin Jacob Acked-by: Maxime Coquelin --- lib/librte_eal/bsdapp/eal/rte_eal_version.map | 7 +++ lib/librte_eal/common/eal_common_pci.c | 10 +- lib/librte_e

[dpdk-dev] [PATCH v6 01/12] eal/pci: introduce PCI driver iova as va flag

2017-08-14 Thread Santosh Shukla
Introducing RTE_PCI_DRV_IOVA_AS_VA flag. Flag used when driver needs to operate in iova=va mode. Why driver need iova=va mapping? On NPU style co-processors like Octeontx, the buffer recycling has been done in HW, unlike SW model. Here is the data flow: 1) On control path, Fill the HW mempool wit

[dpdk-dev] [PATCH v6 00/12] Infrastructure to detect iova mapping on the bus

2017-08-14 Thread Santosh Shukla
v6: Sending v5 series rebased on top of version: 17.11-rc0. v5: Introducing RTE_PCI_DRV_IOVA_AS_VA flag for autodetection of iova va mapping. If a PCI driver demand for IOVA as VA scheme then the driver can add it in the PCI driver registration function. Algorithm to select IOVA as VA for PCI bus

[dpdk-dev] [PATCH v1 4/4] doc: remove dpdk iova aware notice

2017-08-14 Thread Santosh Shukla
Removed dpdk iova aware ABI deprecation notice, and updated ABI change details in release_17.11.rst. Signed-off-by: Santosh Shukla --- doc/guides/rel_notes/deprecation.rst | 7 --- doc/guides/rel_notes/release_17_11.rst | 27 +++ 2 files changed, 27 insertions(+),

[dpdk-dev] [PATCH v1 3/4] eal/memory: rename memory translational api to _iova types

2017-08-14 Thread Santosh Shukla
The following api renamed from: rte_mempool_populate_phys() rte_mempool_populate_phys_tab() rte_eal_using_phys_addrs() rte_mem_virt2phy() rte_dump_physmem_layout() rte_eal_get_physmem_layout() rte_eal_get_physmem_size() rte_malloc_virt2phy() rte_mem_phy2mch() To the following iova types api: rte

[dpdk-dev] [PATCH v1 2/4] eal/memory: rename buf_physaddr to buf_iovaaddr

2017-08-14 Thread Santosh Shukla
Signed-off-by: Santosh Shukla --- v1 notes: Since crux of change is at eal/memory area so using that as title. doc/guides/prog_guide/img/mbuf1.svg| 2 +- drivers/bus/fslmc/portal/dpaa2_hw_pvt.h| 2 +- drivers/net/ark/ark_ethdev_rx.c

[dpdk-dev] [PATCH v1 0/4] make dpdk iova aware

2017-08-14 Thread Santosh Shukla
Changeset based on deprecation notice[1], planned for v17.11 release. Patches are based on version: 17.11-rc0. Summary: Renaming memory address translation api/ datatypes and memory struct members to iova types. Includes: 1st patch : rename phys_addr_t to iova_addr_t 2nd patch : rename dma var ma

[dpdk-dev] [PATCH v1 1/4] eal: rename phys_addr_t to iova_addr_t

2017-08-14 Thread Santosh Shukla
Signed-off-by: Santosh Shukla --- v1 note: - As changes percolate to all possible dpdk subsystem.. so its difficult to tag subject with one common title, but since, core of changeset is at eal layer so keeping 'eal:' as title. app/test-crypto-perf/cperf_test_vectors.h | 4 +-- do

Re: [dpdk-dev] [PATCH] crypto/openssl: performance improvements

2017-08-14 Thread De Lara Guarch, Pablo
Hi Akhil, > -Original Message- > From: Akhil Goyal [mailto:akhil.go...@nxp.com] > Sent: Friday, July 28, 2017 12:08 PM > To: dev@dpdk.org; Doherty, Declan > Cc: De Lara Guarch, Pablo ; > hemant.agra...@nxp.com; Akhil Goyal > Subject: [PATCH] crypto/openssl: performance improvements > >

[dpdk-dev] [PATCH] net/mlx5: fix xstats functions unlock missing

2017-08-14 Thread Matan Azrad
The corrupted code didn't unlock the spinlock in xstats get and reset functions error flow. Hence, if these errors happaned, the device spinlock was left locked and many mlx5 device functionalities were blocked. The fix unlocks the spinlock in the missed places. Fixes: e62bc9e70608 ("net/mlx5: f

Re: [dpdk-dev] Announcement of SSE requirement change in dpdk

2017-08-14 Thread Neil Horman
On Mon, Aug 14, 2017 at 11:58:21AM +0100, Bruce Richardson wrote: > On Mon, Aug 14, 2017 at 06:50:40AM -0400, Neil Horman wrote: > > On Mon, Aug 14, 2017 at 10:32:15AM +0100, Bruce Richardson wrote: > > > On Sat, Aug 12, 2017 at 02:19:45PM -0400, Neil Horman wrote: > > > > On Fri, Aug 11, 2017 at 0

Re: [dpdk-dev] [PATCH 1/2] eventdev: add event adapter for ethernet Rx queues

2017-08-14 Thread Jerin Jacob
-Original Message- > Date: Mon, 14 Aug 2017 14:18:15 +0530 > From: "Rao, Nikhil" > To: Jerin Jacob , "Eads, Gage" > > CC: "dev@dpdk.org" , "tho...@monjalon.net" > , "Richardson, Bruce" , > "Van Haaren, Harry" , "hemant.agra...@nxp.com" > , "nipun.gu...@nxp.com" , > "Vangati, Narender

Re: [dpdk-dev] Announcement of SSE requirement change in dpdk

2017-08-14 Thread Bruce Richardson
On Mon, Aug 14, 2017 at 06:50:40AM -0400, Neil Horman wrote: > On Mon, Aug 14, 2017 at 10:32:15AM +0100, Bruce Richardson wrote: > > On Sat, Aug 12, 2017 at 02:19:45PM -0400, Neil Horman wrote: > > > On Fri, Aug 11, 2017 at 09:29:24PM +0100, Bruce Richardson wrote: > > > > On Wed, Aug 09, 2017 at 0

Re: [dpdk-dev] [RFC] Add RIB library

2017-08-14 Thread Bruce Richardson
On Tue, Jul 11, 2017 at 07:33:04PM +, Medvedkin Vladimir wrote: > Hi, > > I want to introduce new library for ip routing lookup that have some > advantages > over current LPM library. In short: > - Increases the speed of control plane operations against lpm such as >adding/deleti

Re: [dpdk-dev] Announcement of SSE requirement change in dpdk

2017-08-14 Thread Neil Horman
On Mon, Aug 14, 2017 at 10:32:15AM +0100, Bruce Richardson wrote: > On Sat, Aug 12, 2017 at 02:19:45PM -0400, Neil Horman wrote: > > On Fri, Aug 11, 2017 at 09:29:24PM +0100, Bruce Richardson wrote: > > > On Wed, Aug 09, 2017 at 04:21:32PM -0400, Neil Horman wrote: > > > > Can anyone point out to m

[dpdk-dev] [RFCv2 38/40] build: fix static library builds with base code

2017-08-14 Thread Bruce Richardson
for static library builds, we miss the base code, as the base code .a file is not included in the overall driver .a file. Instead mark the objects in the base code lib to be included in the overall library. Signed-off-by: Bruce Richardson --- drivers/crypto/meson.build | 6 +++--- driver

[dpdk-dev] [RFCv2 40/40] examples: allow basic sample app build using pkg-config

2017-08-14 Thread Bruce Richardson
Signed-off-by: Bruce Richardson --- examples/helloworld/Makefile | 13 + examples/l2fwd/Makefile | 13 + 2 files changed, 26 insertions(+) diff --git a/examples/helloworld/Makefile b/examples/helloworld/Makefile index c83ec01e8..270f02f91 100644 --- a/examples/hellow

[dpdk-dev] [RFCv2 37/40] build: add ark and avp PMDs to build

2017-08-14 Thread Bruce Richardson
Signed-off-by: Bruce Richardson --- drivers/net/ark/meson.build | 44 drivers/net/avp/meson.build | 36 drivers/net/meson.build | 2 +- 3 files changed, 81 insertions(+), 1 deletion(-) create mode 100644 drive

[dpdk-dev] [RFCv2 39/40] build: fix driver dependencies for static builds

2017-08-14 Thread Bruce Richardson
For static builds we need to better track the dependencies of drivers, because, unlike with shared libs, the static libs don't track them themselves. Because of this we have a new global list of external dependencies which is used for creating the pkg-config file. We also move the logic for what de

[dpdk-dev] [RFCv2 35/40] build: add packet framework libs to meson build

2017-08-14 Thread Bruce Richardson
Signed-off-by: Bruce Richardson --- lib/librte_pipeline/meson.build | 35 + lib/librte_port/meson.build | 58 + lib/librte_table/meson.build| 52 lib/meson.build | 6 -

[dpdk-dev] [RFCv2 34/40] build: add most remaining libraries to meson build

2017-08-14 Thread Bruce Richardson
Only libraries not included in meson build at this point are the three packet framework libs, and the acl library (which needs some custom handling for the different instruction set levels it has). Signed-off-by: Bruce Richardson --- app/test-pmd/meson.build| 3 +++ config/meson.bui

[dpdk-dev] [RFCv2 36/40] acl: add acl library to meson build

2017-08-14 Thread Bruce Richardson
Signed-off-by: Bruce Richardson --- lib/librte_acl/meson.build | 60 ++ lib/meson.build| 18 -- 2 files changed, 71 insertions(+), 7 deletions(-) create mode 100644 lib/librte_acl/meson.build diff --git a/lib/librte_acl/meson.b

[dpdk-dev] [RFCv2 31/40] build: add cryptodev and some crypto drivers to build

2017-08-14 Thread Bruce Richardson
Signed-off-by: Bruce Richardson --- config/rte_config.h| 9 drivers/crypto/meson.build | 103 + drivers/crypto/null/meson.build| 32 drivers/crypto/openssl/meson.build | 33 drivers/crypto/qat/meson

[dpdk-dev] [RFCv2 33/40] ip_frag: rename version file to standard name

2017-08-14 Thread Bruce Richardson
The version file did not quite match the directory name, as it was missing an '_' between ip and frag. Signed-off-by: Bruce Richardson --- lib/librte_ip_frag/Makefile| 2 +- lib/librte_ip_frag/{rte_ipfrag_version.map => rte_ip_frag_version.map} | 0 2

[dpdk-dev] [RFCv2 32/40] igb_uio: add igb_uio to meson build

2017-08-14 Thread Bruce Richardson
Signed-off-by: Bruce Richardson --- lib/librte_eal/linuxapp/igb_uio/Kbuild | 1 + lib/librte_eal/linuxapp/igb_uio/meson.build | 47 + lib/librte_eal/linuxapp/meson.build | 10 ++ meson_options.txt | 4 ++- 4 files changed, 6

[dpdk-dev] [RFCv2 30/40] crypto/qat: remove dependency on ether library

2017-08-14 Thread Bruce Richardson
Signed-off-by: Bruce Richardson --- drivers/crypto/qat/qat_crypto.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/crypto/qat/qat_crypto.c b/drivers/crypto/qat/qat_crypto.c index 1f52cabfd..62ee175ba 100644 --- a/drivers/crypto/qat/qat_crypto.c +++ b/drivers/crypto/qat/qat_crypto.c @@

[dpdk-dev] [RFCv2 29/40] crypto/null: rename the version file to standard

2017-08-14 Thread Bruce Richardson
Signed-off-by: Bruce Richardson --- drivers/crypto/null/Makefile| 2 +- .../null/{rte_pmd_null_crypto_version.map => rte_pmd_null_version.map} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename drivers/crypto/null/{rte_pmd_null_crypto_version.

[dpdk-dev] [RFCv2 28/40] testpmd: compile testpmd with meson and ninja

2017-08-14 Thread Bruce Richardson
Add testpmd to build. When done, it was found that the -ldl flag was getting duplicated too many times in the build causing static linkage to fail on testpmd as the commandline got to long. [Possible meson bug]. Fix this by making testpmd link explicitly against libdl (or libexecinfo on BSD) and do

[dpdk-dev] [RFCv2 27/40] build: track dependencies recursively

2017-08-14 Thread Bruce Richardson
Signed-off-by: Bruce Richardson --- drivers/mempool/meson.build | 3 ++- drivers/net/meson.build | 6 -- lib/librte_eal/bsdapp/eal/meson.build | 5 - lib/librte_eal/linuxapp/eal/meson.build | 5 - lib/meson.build | 3 ++- 5 files c

[dpdk-dev] [RFCv2 24/40] build: tweak naming of pmd dependencies

2017-08-14 Thread Bruce Richardson
Signed-off-by: Bruce Richardson --- drivers/mempool/meson.build | 2 +- drivers/net/meson.build | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mempool/meson.build b/drivers/mempool/meson.build index 869e75cb7..1d003b757 100644 --- a/drivers/mempool/meson.build

[dpdk-dev] [RFCv2 26/40] metrics: add metrics lib to meson build

2017-08-14 Thread Bruce Richardson
Signed-off-by: Bruce Richardson --- lib/librte_metrics/meson.build | 34 ++ lib/meson.build| 2 +- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 lib/librte_metrics/meson.build diff --git a/lib/librte_metrics/meson.build b/li

[dpdk-dev] [RFCv2 25/40] build: track driver include directories properly

2017-08-14 Thread Bruce Richardson
Signed-off-by: Bruce Richardson --- drivers/mempool/meson.build | 2 +- drivers/net/i40e/meson.build | 2 +- drivers/net/ixgbe/meson.build | 2 +- drivers/net/meson.build | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mempool/meson.build b/drivers/mempool/

[dpdk-dev] [RFCv2 23/40] build: add gro library to meson build

2017-08-14 Thread Bruce Richardson
Signed-off-by: Bruce Richardson --- lib/librte_gro/meson.build | 34 ++ lib/meson.build| 3 ++- 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 lib/librte_gro/meson.build diff --git a/lib/librte_gro/meson.build b/lib/librte_gro/me

[dpdk-dev] [RFCv2 22/40] build: add mempool drivers to build

2017-08-14 Thread Bruce Richardson
Signed-off-by: Bruce Richardson --- drivers/mempool/meson.build | 97 +++ drivers/mempool/ring/meson.build | 32 + drivers/mempool/stack/meson.build | 32 + drivers/meson.build | 1 + 4 files changed, 162 insertions

[dpdk-dev] [RFCv2 21/40] eal: add version information to meson build

2017-08-14 Thread Bruce Richardson
Signed-off-by: Bruce Richardson --- lib/librte_eal/bsdapp/eal/meson.build | 6 +- lib/librte_eal/linuxapp/eal/meson.build | 6 +- lib/librte_eal/meson.build | 1 + 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/lib/librte_eal/bsdapp/eal/meson.build b/lib/l

[dpdk-dev] [RFCv2 20/40] build: version library .so files

2017-08-14 Thread Bruce Richardson
Also rename the ether library to ethdev to maintain backwards compatibility Signed-off-by: Bruce Richardson --- drivers/net/meson.build| 2 ++ lib/librte_cmdline/meson.build | 1 + lib/librte_ether/meson.build | 1 + lib/librte_hash/meson.build| 1 + lib/librte_kvargs/meson.bui

[dpdk-dev] [RFCv2 17/40] build: add pcap PMD support

2017-08-14 Thread Bruce Richardson
Signed-off-by: Bruce Richardson --- drivers/net/meson.build | 13 ++--- drivers/net/pcap/meson.build | 38 ++ 2 files changed, 48 insertions(+), 3 deletions(-) create mode 100644 drivers/net/pcap/meson.build diff --git a/drivers/net/meson.build b

[dpdk-dev] [RFCv2 19/40] build: build libraries in a loop for brevity

2017-08-14 Thread Bruce Richardson
now each library just has to specify it's source files, header files and dependencies, and the higher level lib directory will take care of the rest. Special case for eal, which is not just in one subdir, and is more complicated. It is also used sometimes by e.g. base code drivers, so give it it's

[dpdk-dev] [RFCv2 18/40] build: add symbol version map file support to libs

2017-08-14 Thread Bruce Richardson
Signed-off-by: Bruce Richardson --- drivers/net/meson.build | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/net/meson.build b/drivers/net/meson.build index f64ab07f7..2358194e0 100644 --- a/drivers/net/meson.build +++ b/drivers/net/meson.build @@ -74,12 +74,17 @@

[dpdk-dev] [RFCv2 15/40] build: set up standard deps for drivers

2017-08-14 Thread Bruce Richardson
Driver should not need to specify that they depend on EAL, mempool, mbuf etc., since all drivers are likely to depend on those. Instead, have it that drivers only need to append to the deps array any extra dependencies they have. Signed-off-by: Bruce Richardson --- drivers/net/i40e/meson.build

[dpdk-dev] [RFCv2 14/40] build: add ixgbe driver to build

2017-08-14 Thread Bruce Richardson
Signed-off-by: Bruce Richardson --- drivers/net/ixgbe/base/meson.build | 59 drivers/net/ixgbe/meson.build | 61 ++ drivers/net/meson.build| 5 ++-- 3 files changed, 123 insertions(+), 2 deletions(-) creat

[dpdk-dev] [RFCv2 16/40] build: add af_packet driver to build

2017-08-14 Thread Bruce Richardson
Signed-off-by: Bruce Richardson --- drivers/net/af_packet/meson.build | 32 drivers/net/meson.build | 5 + 2 files changed, 37 insertions(+) create mode 100644 drivers/net/af_packet/meson.build diff --git a/drivers/net/af_packet/meson.build b/dri

[dpdk-dev] [RFCv2 13/40] build: remove hard-coded enablement of vector driver

2017-08-14 Thread Bruce Richardson
Signed-off-by: Bruce Richardson --- config/rte_config.h | 1 - drivers/net/i40e/meson.build | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/config/rte_config.h b/config/rte_config.h index 5b687bb8e..67028f682 100644 --- a/config/rte_config.h +++ b/config/rte_config.h

[dpdk-dev] [RFCv2 11/40] build: simplify generation of pmd.c files

2017-08-14 Thread Bruce Richardson
rather than using the compiler to generate a temporary .o file, get meson to do it, so we don't need to track dpdk includes directly, and pass in a range of parameters Signed-off-by: Bruce Richardson --- buildtools/gen-pmdinfo-cfile.sh| 14 +- drivers/net/i40e/meson.b

[dpdk-dev] [RFCv2 12/40] build: generalize net driver build to higher level

2017-08-14 Thread Bruce Richardson
Move the logic for generating the pmdinfo file and the driver library itself to the meson.build file at the driver/net level, to avoid duplicating code. Signed-off-by: Bruce Richardson --- drivers/net/i40e/base/meson.build | 2 +- drivers/net/i40e/meson.build | 31 -

[dpdk-dev] [RFCv2 09/40] build: build i40e driver, including pmdinfo

2017-08-14 Thread Bruce Richardson
Signed-off-by: Bruce Richardson --- buildtools/gen-pmdinfo-cfile.sh| 45 ++ buildtools/meson.build | 2 ++ drivers/net/i40e/meson.build | 30 - lib/librte_cmdline/meson.build | 17 ++

[dpdk-dev] [RFCv2 10/40] build: install usertools scripts

2017-08-14 Thread Bruce Richardson
Signed-off-by: Bruce Richardson --- meson.build | 1 + usertools/meson.build | 32 2 files changed, 33 insertions(+) create mode 100644 usertools/meson.build diff --git a/meson.build b/meson.build index a0ab08252..717ec070d 100644 --- a/meson.build ++

[dpdk-dev] [RFCv2 07/40] build: add pmdinfogen to build

2017-08-14 Thread Bruce Richardson
Signed-off-by: Bruce Richardson --- buildtools/meson.build| 32 + buildtools/pmdinfogen/meson.build | 43 +++ meson.build | 1 + 3 files changed, 76 insertions(+) create mode 100644 buildtools/meso

[dpdk-dev] [RFCv2 08/40] build: generate list of sources for pmdinfogen

2017-08-14 Thread Bruce Richardson
Signed-off-by: Bruce Richardson --- drivers/net/i40e/meson.build | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/net/i40e/meson.build b/drivers/net/i40e/meson.build index 1e23e0820..a6d0bf4e4 100644 --- a/drivers/net/i40e/meson.build +++ b/drivers/net/i40e/mes

[dpdk-dev] [RFCv2 06/40] build: add i40e driver to meson build

2017-08-14 Thread Bruce Richardson
Signed-off-by: Bruce Richardson --- config/rte_config.h | 14 drivers/meson.build | 32 ++ drivers/net/i40e/base/meson.build | 55 ++ drivers/net/i40e/meson.build | 70 +++ dr

[dpdk-dev] [RFCv2 04/40] build: add EAL support under BSD

2017-08-14 Thread Bruce Richardson
Signed-off-by: Bruce Richardson --- lib/librte_eal/bsdapp/eal/meson.build | 58 +++ lib/librte_eal/bsdapp/meson.build | 32 +++ lib/librte_eal/meson.build| 2 ++ 3 files changed, 92 insertions(+) create mode 100644 lib/librte_eal/b

[dpdk-dev] [RFCv2 05/40] build: add core libraries to meson build system

2017-08-14 Thread Bruce Richardson
Signed-off-by: Bruce Richardson --- config/rte_config.h| 14 ++ lib/librte_cmdline/meson.build | 63 ++ lib/librte_compat/meson.build | 35 +++ lib/librte_ether/meson.build | 49 li

[dpdk-dev] [RFCv2 03/40] build: build linuxapp EAL with meson and ninja

2017-08-14 Thread Bruce Richardson
Signed-off-by: Bruce Richardson --- config/meson.build | 24 +++- config/rte_config.h| 9 +++ config/x86/meson.build | 2 + lib/librte_eal/common/arch/meson.build | 33 ++ lib/lib

[dpdk-dev] [RFCv2 01/40] build: initial hooks for using meson with DPDK

2017-08-14 Thread Bruce Richardson
Signed-off-by: Bruce Richardson --- config/meson.build | 47 ++ config/rte_config.h| 50 + config/x86/meson.build | 68 ++ meson.build| 60 ++

[dpdk-dev] [RFCv2 00/40] Building DPDK with meson and ninja

2017-08-14 Thread Bruce Richardson
Following on from previous RFC [http://dpdk.org/dev/patchwork/patch/25104/] here is a second draft implementation for building DPDK with meson and ninja. While still not building all of DPDK, and needing patch cleanup so that patches don't overwrite previous work, it is more complete in many ways t

[dpdk-dev] [RFCv2 02/40] build: create pkg-config file for DPDK

2017-08-14 Thread Bruce Richardson
Signed-off-by: Bruce Richardson --- meson.build | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 8383d23b5..d7acf174d 100644 --- a/meson.build +++ b/meson.build @@ -36,9 +36,10 @@ project('DPDK', 'C', meson_version: '>=

Re: [dpdk-dev] Announcement of SSE requirement change in dpdk

2017-08-14 Thread Bruce Richardson
On Sat, Aug 12, 2017 at 02:19:45PM -0400, Neil Horman wrote: > On Fri, Aug 11, 2017 at 09:29:24PM +0100, Bruce Richardson wrote: > > On Wed, Aug 09, 2017 at 04:21:32PM -0400, Neil Horman wrote: > > > Can anyone point out to me when and where the change to require SSE4.2 was > > > dicussed? The fir

Re: [dpdk-dev] [PATCH 1/2] eventdev: add event adapter for ethernet Rx queues

2017-08-14 Thread Rao, Nikhil
On 8/10/2017 10:23 PM, Jerin Jacob wrote: -Original Message- Date: Wed, 9 Aug 2017 19:24:30 + From: "Eads, Gage" Makes sense. Are you thinking the helper function would do stop + reconfig with additional port + start + setup port, or just setup the port with an ID the app supplies

[dpdk-dev] [PATCH] drivers/aesni_gcm: fix zero data operation

2017-08-14 Thread Pablo de Lara
When data length passed to the PMD was zero, the PMD was trying to get more data from a non-existent next segment. Fixes: 9c2a5775c028 ("crypto/aesni_gcm: migrate from MB library to ISA-L") Cc: sta...@dpdk.org Signed-off-by: Pablo de Lara --- drivers/crypto/aesni_gcm/aesni_gcm_pmd.c | 2 +- 1 f