[dpdk-dev] [RFC] ethdev: complete closing to free all resources

2018-09-07 Thread Thomas Monjalon
After closing a port, it cannot be restarted. So there is no reason to not free all associated resources. The last step was done with rte_eth_dev_detach() which is deprecated. Instead of removing the associated rte_device, the driver should check if no more port (ethdev, cryptodev, etc) is still o

[dpdk-dev] [RFC] eal: allow hotplug to skip an already probed device

2018-09-07 Thread Thomas Monjalon
In the devargs syntax for device representors, it is possible to add several devices at once: -w dbdf,representor=[0-3] It will become a more frequent case when introducing wildcards and ranges in the new devargs syntax. If a devargs string is provided for probing, and updated with a bigger range

[dpdk-dev] [RFC] eal: simplify parameters of hotplug functions

2018-09-07 Thread Thomas Monjalon
All informations about a device to probe can be grouped in a common string, which is what we usually call devargs. That's why the bus name and device name can be removed from rte_eal_hotplug_add(). When removing a device, we already know its rte_device handle which can be directly passed as parame

Re: [dpdk-dev] [PATCH] eal: force IOVA mode to physical

2018-09-07 Thread Eric Zhang
On 09/07/2018 05:26 AM, Burakov, Anatoly wrote: On 06-Sep-18 8:34 AM, Jerin Jacob wrote: -Original Message- Date: Tue, 4 Sep 2018 23:40:36 -0400 From: Eric Zhang To: santosh , hemant.agra...@nxp.com,   Gaëtan Rivet , "Burakov, Anatoly"   CC: bruce.richard...@intel.com, dev@dpdk.o

[dpdk-dev] [RFC] net/mlx5: support multiple groups and jump action

2018-09-07 Thread Yongseok Koh
Hi, rte_flow has 'group' attribute and 'jump' action in order to support multiple groups. This feature is known as multi-table support ('chain' in linux TC flower) in general because a group means a table of flows. This will be added to mlx5 PMD for 18.11. Example commands are: flow creat

[dpdk-dev] [PATCH] build: add PPC64 Meson build

2018-09-07 Thread Luca Boccassi
This has been only build-tested for now, on a native ppc64el POWER8E machine running Debian sid. Signed-off-by: Luca Boccassi --- The build box cannot be used to run DPDK as it doesn't have supported NICs and root access. Would be great if someone could run-test it, but at this point I think buil

[dpdk-dev] [PATCH 10/10] net/softnic: enable meter action using flow rule

2018-09-07 Thread Jasvinder Singh
Implement meter enablement through flow rules. Signed-off-by: Jasvinder Singh --- drivers/net/softnic/rte_eth_softnic_flow.c | 170 + 1 file changed, 170 insertions(+) diff --git a/drivers/net/softnic/rte_eth_softnic_flow.c b/drivers/net/softnic/rte_eth_softnic_flow

[dpdk-dev] [PATCH 09/10] net/softnic: meter stats read

2018-09-07 Thread Jasvinder Singh
Implement meter object stats read function. Signed-off-by: Jasvinder Singh --- drivers/net/softnic/rte_eth_softnic_meter.c | 99 - 1 file changed, 98 insertions(+), 1 deletion(-) diff --git a/drivers/net/softnic/rte_eth_softnic_meter.c b/drivers/net/softnic/rte_eth_

[dpdk-dev] [PATCH 04/10] net/softnic: create meter object

2018-09-07 Thread Jasvinder Singh
implement meter object create function. Signed-off-by: Jasvinder Singh --- drivers/net/softnic/rte_eth_softnic_internals.h | 4 ++ drivers/net/softnic/rte_eth_softnic_meter.c | 92 - 2 files changed, 95 insertions(+), 1 deletion(-) diff --git a/drivers/net/softnic/r

[dpdk-dev] [PATCH 08/10] net/softnic: update policer actions

2018-09-07 Thread Jasvinder Singh
Implement meter object policer actions function. Signed-off-by: Jasvinder Singh --- drivers/net/softnic/rte_eth_softnic_meter.c | 127 +++- 1 file changed, 126 insertions(+), 1 deletion(-) diff --git a/drivers/net/softnic/rte_eth_softnic_meter.c b/drivers/net/softnic/rt

[dpdk-dev] [PATCH 07/10] net/softnic: update dscp table

2018-09-07 Thread Jasvinder Singh
Implement meter object dscp table update. Signed-off-by: Jasvinder Singh --- drivers/net/softnic/rte_eth_softnic_internals.h | 1 + drivers/net/softnic/rte_eth_softnic_meter.c | 53 - drivers/net/softnic/rte_eth_softnic_pipeline.c | 1 + 3 files changed, 54 inserti

[dpdk-dev] [PATCH 05/10] net/softnic: destroy meter object

2018-09-07 Thread Jasvinder Singh
Implement meter object destroy function. Signed-off-by: Jasvinder Singh --- drivers/net/softnic/rte_eth_softnic_meter.c | 49 - 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/drivers/net/softnic/rte_eth_softnic_meter.c b/drivers/net/softnic/rte_eth_sof

[dpdk-dev] [PATCH 00/10] net/softnic: implement metering and policing API

2018-09-07 Thread Jasvinder Singh
This patchset adds the metering and policing API support for the softnic. The metering and policing action can be enabled through the flow rules. This series is prepared on top of following patchset; https://mails.dpdk.org/archives/dev/2018-September/110998.html Jasvinder Singh (10): net/softni

[dpdk-dev] [PATCH 06/10] net/softnic: update meter profile

2018-09-07 Thread Jasvinder Singh
Implement meter profile update function Signed-off-by: Jasvinder Singh --- drivers/net/softnic/rte_eth_softnic_internals.h | 5 + drivers/net/softnic/rte_eth_softnic_meter.c | 139 +++- drivers/net/softnic/rte_eth_softnic_pipeline.c | 12 ++ 3 files changed, 155 inser

[dpdk-dev] [PATCH 03/10] net/softnic: delete meter profile

2018-09-07 Thread Jasvinder Singh
Implement meter profile delete function. Signed-off-by: Jasvinder Singh --- drivers/net/softnic/rte_eth_softnic_meter.c | 35 - 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/drivers/net/softnic/rte_eth_softnic_meter.c b/drivers/net/softnic/rte_eth_sof

[dpdk-dev] [PATCH 01/10] net/softnic: add metering and policing support

2018-09-07 Thread Jasvinder Singh
Enable metering and policing support for softnic. Signed-off-by: Jasvinder Singh --- drivers/net/softnic/Makefile| 1 + drivers/net/softnic/meson.build | 1 + drivers/net/softnic/rte_eth_softnic.c | 10 drivers/net/softnic/rte_eth_softnic_

[dpdk-dev] [PATCH 02/10] net/softnic: add meter profile

2018-09-07 Thread Jasvinder Singh
Implement meter profile add function. Signed-off-by: Jasvinder Singh --- drivers/net/softnic/rte_eth_softnic.c | 3 + drivers/net/softnic/rte_eth_softnic_internals.h | 42 drivers/net/softnic/rte_eth_softnic_meter.c | 137 +++- 3 files changed, 181 i

[dpdk-dev] [PATCH v1 2/2] test/test: cryptodev application parser for FIPS certification

2018-09-07 Thread Marko Kovacevic
Added parser to parser required request file which has different algos required by the fips certification and to generate the response file needed. Signed-off-by: Marko Kovacevic --- test/test/Makefile | 3 + test/test/test_cryptodev_fips_parse.h| 156

[dpdk-dev] [PATCH v1 1/2] test/test: cryptodev application for FIPS certification

2018-09-07 Thread Marko Kovacevic
Adding initial set up for the FIPS ceritifcation into DPDK, more algos will be added in other versions of the code. Also documentation will be added with steps on how to run. Signed-off-by: Marko Kovacevic --- test/test/Makefile | 1 + test/test/test_cryptodev_fips.c | 771 +++

[dpdk-dev] [PATCH v1 0/2] FIPS validation capability

2018-09-07 Thread Marko Kovacevic
Adding capability into DPDK to allow certification for FIPS validation, I have just added one test for one algo will be adding other algos into other versions of the patch and i will be refactoring the code and cleaning the parser once i start adding the different algos. Marko Kovacevic (2): tes

Re: [dpdk-dev] DPDK Shared lib: No Ethernet ports

2018-09-07 Thread Shubhachint, Chaitanya
Thank you for your reply Bruce. Still having issues with shared-lib DPDK. I tried both options and get two distinct issues. I tried running the l2fwd example with e1000 driver and get little farther. This time it does find the devices but there is an error with MBUF root:build$./l2fwd -d /hom

Re: [dpdk-dev] [PATCH 1/4] mk: use script to generate examples.dox

2018-09-07 Thread Luca Boccassi
On Fri, 2018-09-07 at 17:13 +0100, Bruce Richardson wrote: > On Mon, Sep 03, 2018 at 10:07:07AM +0100, Luca Boccassi wrote: > > On Mon, 2018-09-03 at 02:54 +0200, Thomas Monjalon wrote: > > > 31/08/2018 20:20, Luca Boccassi: > > > > +# SC2129 - avoid multiple individual redirects > > > > > > What

[dpdk-dev] [PATCH v2 2/4] mk: use templated doxygen config, modified on the fly

2018-09-07 Thread Luca Boccassi
This will allow the same config file to be used from Meson. The result has been verified to be identical via diffoscope. Signed-off-by: Luca Boccassi --- v2: reordered generated fields as requested doc/api/doxy-api.conf| 87 doc/api/doxy-api.conf.in | 96

[dpdk-dev] [PATCH v2 3/4] build: use same version as make showversion in Meson

2018-09-07 Thread Luca Boccassi
make showversion will print 18.11.0-rc0 but Meson sets 18.11-rc0, causing among other things a difference in the generated documentation. Fixes: 76b9d9de5c7d ("version: 18.11-rc0") Signed-off-by: Luca Boccassi --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m

[dpdk-dev] [PATCH v2 1/4] mk: use script to generate examples.dox

2018-09-07 Thread Luca Boccassi
This will make it possible to generate the file in the same way from Meson as well. Signed-off-by: Luca Boccassi --- v2: simplified script by using exec > file doc/api/generate_examples.sh | 12 mk/rte.sdkdoc.mk | 5 + 2 files changed, 13 insertions(+), 4 deletions

Re: [dpdk-dev] [PATCH 4/4] build: generate API documentation with Meson

2018-09-07 Thread Luca Boccassi
On Fri, 2018-09-07 at 17:31 +0100, Bruce Richardson wrote: > On Fri, Aug 31, 2018 at 07:20:55PM +0100, Luca Boccassi wrote: > > Both a configuration-time "enable_docs" boolean option and an > > optional > > 'ninja doc' target are available. Note that due to a Meson bug for > > now > > the latter wi

[dpdk-dev] [PATCH v2 4/4] build: generate API documentation with Meson

2018-09-07 Thread Luca Boccassi
Signed-off-by: Luca Boccassi --- v2: made doxygen dependency optional, skip doxygen build when not found doc/api/generate_doxygen.sh | 10 +++ doc/api/meson.build | 54 + doc/build-sdk-meson.txt | 2 ++ doc/meson.build | 4 +++ me

Re: [dpdk-dev] [PATCH 4/4] build: generate API documentation with Meson

2018-09-07 Thread Bruce Richardson
On Fri, Aug 31, 2018 at 07:20:55PM +0100, Luca Boccassi wrote: > Both a configuration-time "enable_docs" boolean option and an optional > 'ninja doc' target are available. Note that due to a Meson bug for now > the latter will only build, but not install the files. > > Signed-off-by: Luca Boccassi

Re: [dpdk-dev] [PATCH 1/4] mk: use script to generate examples.dox

2018-09-07 Thread Bruce Richardson
On Mon, Sep 03, 2018 at 10:07:07AM +0100, Luca Boccassi wrote: > On Mon, 2018-09-03 at 02:54 +0200, Thomas Monjalon wrote: > > 31/08/2018 20:20, Luca Boccassi: > > > +# SC2129 - avoid multiple individual redirects > > > > What is SC2129 ? > > shellcheck - will clarify in v2 > > > > +{ \ > > > + 

[dpdk-dev] A couple question before starting to work on a Silicom NIC-Bypass driver implementation

2018-09-07 Thread Jean-Christophe BEGUE
Hello everyone, Here at FraudBuster we really need a NIC-Bypass feature to be integrated in our products. We've been able to use the Silicom boards we can find here: https://bit.ly/2NrIK7z . Unfortunately the only driver Silicom seems to support is written for kernel-space bound interfaces:

Re: [dpdk-dev] [PATCH v2] test/event: add adapter tests to meson build

2018-09-07 Thread Bruce Richardson
On Wed, Sep 05, 2018 at 07:36:13PM +0530, Nikhil Rao wrote: > Add tests for event eth Rx, crypto and timer adapters to > meson build > > Cc: Abhinandan Gujjar > Cc: Erik G. Carrillo > Signed-off-by: Nikhil Rao > --- > > v2: > * fix Erik's email address > > test/test/meson.build | 7 +++ >

[dpdk-dev] [PATCH v2] eal/bus: use RTE_IOVA_PA only if phys addresses are available

2018-09-07 Thread Darek Stojaczyk
When neither RTE_IOVA_VA nor RTE_IOVA_PA was explicitly requested, DPDK would currently fallback to the default RTE_IOVA_PA mode and possibly encounter a failure later on if running as a non-priviledged user. Attempting to use RTE_IOVA_VA if no phys addresses are available may help in this case. S

[dpdk-dev] [PATCH 2/2] examples/ip_pipeline: add vxlan encap

2018-09-07 Thread Cristian Dumitrescu
Add CLI support for VXLAN encap. Signed-off-by: Cristian Dumitrescu --- examples/ip_pipeline/cli.c | 181 - 1 file changed, 177 insertions(+), 4 deletions(-) diff --git a/examples/ip_pipeline/cli.c b/examples/ip_pipeline/cli.c index 102a1d6..01c3769 1

[dpdk-dev] [PATCH 1/2] pipeline: add vxlan encap

2018-09-07 Thread Cristian Dumitrescu
Add support for VXLAN as part of the encap table action. Signed-off-by: Cristian Dumitrescu --- lib/librte_pipeline/rte_table_action.c | 356 + lib/librte_pipeline/rte_table_action.h | 75 +++ 2 files changed, 431 insertions(+) diff --git a/lib/librte_pipeli

[dpdk-dev] [PATCH] eal/bus: use RTE_IOVA_PA only if phys addresses are available

2018-09-07 Thread Darek Stojaczyk
When neither RTE_IOVA_VA nor RTE_IOVA_PA was explicitly requested, DPDK would currently fallback to the default RTE_IOVA_PA mode and possibly encounter a failure later on if running as a non-priviledged user. Attempting to use RTE_IOVA_VA if no phys addresses are available may help in this case. S

[dpdk-dev] [PATCH 21/21] net/atlantic: TX side structures and implementation

2018-09-07 Thread Igor Russkikh
From: Pavel Belous Signed-off-by: Igor Russkikh --- drivers/net/atlantic/atl_ethdev.c | 10 + drivers/net/atlantic/atl_rxtx.c | 566 ++ 2 files changed, 576 insertions(+) diff --git a/drivers/net/atlantic/atl_ethdev.c b/drivers/net/atlantic/atl_ethdev.c

Re: [dpdk-dev] Change in binary name w/ meson build

2018-09-07 Thread Bruce Richardson
On Fri, Sep 07, 2018 at 03:13:43PM +0100, Bruce Richardson wrote: > On Wed, Sep 05, 2018 at 11:52:10AM +, Shahaf Shuler wrote: > >Hi Bruce, > > > > > >Playing w/ meson build I got to know that the binary name for testpmd > >got changed to dpdk-testpmd. > > > > > >Not sure if

[dpdk-dev] [PATCH 20/21] net/atlantic: RX side structures and implementation

2018-09-07 Thread Igor Russkikh
Signed-off-by: Igor Russkikh --- drivers/net/atlantic/Makefile | 6 + drivers/net/atlantic/atl_ethdev.c | 44 +++ drivers/net/atlantic/atl_ethdev.h | 80 drivers/net/atlantic/atl_rxtx.c | 758 ++ drivers/net/atlantic/meson.build | 6 + 5 files

[dpdk-dev] [PATCH 19/21] net/atlantic: device MTU and statuses

2018-09-07 Thread Igor Russkikh
From: Pavel Belous Signed-off-by: Igor Russkikh --- drivers/net/atlantic/atl_ethdev.c | 160 ++ 1 file changed, 160 insertions(+) diff --git a/drivers/net/atlantic/atl_ethdev.c b/drivers/net/atlantic/atl_ethdev.c index 80b7ac88e..44cea12ab 100644 --- a/driv

[dpdk-dev] [PATCH 16/21] net/atlantic: promisc and allmulti configuration

2018-09-07 Thread Igor Russkikh
From: Pavel Belous Signed-off-by: Igor Russkikh --- drivers/net/atlantic/atl_ethdev.c | 46 +++ 1 file changed, 46 insertions(+) diff --git a/drivers/net/atlantic/atl_ethdev.c b/drivers/net/atlantic/atl_ethdev.c index 00e686639..b3ec7c492 100644 --- a/drive

[dpdk-dev] [PATCH 15/21] net/atlantic: LED control DPDK and private APIs

2018-09-07 Thread Igor Russkikh
Signed-off-by: Igor Russkikh --- drivers/net/atlantic/Makefile | 4 +++ drivers/net/atlantic/atl_ethdev.c | 52 + drivers/net/atlantic/atl_ethdev.h | 2 ++ drivers/net/atlantic/meson.build| 3 ++ drivers/net/atlantic/rte_pmd_atlanti

[dpdk-dev] [PATCH 18/21] net/atlantic: VLAN filters and offloads

2018-09-07 Thread Igor Russkikh
From: Pavel Belous Signed-off-by: Igor Russkikh --- drivers/net/atlantic/atl_ethdev.c | 156 +- 1 file changed, 154 insertions(+), 2 deletions(-) diff --git a/drivers/net/atlantic/atl_ethdev.c b/drivers/net/atlantic/atl_ethdev.c index c99d321c9..80b7ac88e 1

[dpdk-dev] [PATCH 17/21] net/atlantic: device statistics, xstats

2018-09-07 Thread Igor Russkikh
Signed-off-by: Igor Russkikh --- drivers/net/atlantic/atl_ethdev.c | 131 ++ 1 file changed, 131 insertions(+) diff --git a/drivers/net/atlantic/atl_ethdev.c b/drivers/net/atlantic/atl_ethdev.c index b3ec7c492..c99d321c9 100644 --- a/drivers/net/atlantic/atl_

[dpdk-dev] [PATCH 14/21] net/atlantic: eeprom and register manipulation routines

2018-09-07 Thread Igor Russkikh
From: Pavel Belous Signed-off-by: Igor Russkikh --- drivers/net/atlantic/atl_ethdev.c | 77 +++ 1 file changed, 77 insertions(+) diff --git a/drivers/net/atlantic/atl_ethdev.c b/drivers/net/atlantic/atl_ethdev.c index 24c3a0cf3..fe1560923 100644 --- a/drive

[dpdk-dev] [PATCH 13/21] net/atlantic: MAC address manipulations

2018-09-07 Thread Igor Russkikh
From: Pavel Belous Signed-off-by: Igor Russkikh --- drivers/net/atlantic/atl_ethdev.c | 101 ++ 1 file changed, 101 insertions(+) diff --git a/drivers/net/atlantic/atl_ethdev.c b/drivers/net/atlantic/atl_ethdev.c index a95dc87fd..24c3a0cf3 100644 --- a/driv

[dpdk-dev] [PATCH 11/21] net/atlantic: RSS and RETA manipulation API

2018-09-07 Thread Igor Russkikh
Signed-off-by: Igor Russkikh --- drivers/net/atlantic/atl_ethdev.c | 93 +++ 1 file changed, 93 insertions(+) diff --git a/drivers/net/atlantic/atl_ethdev.c b/drivers/net/atlantic/atl_ethdev.c index 6dda8280a..ec1c22886 100644 --- a/drivers/net/atlantic/atl_e

[dpdk-dev] [PATCH 12/21] net/atlantic: flow control configuration

2018-09-07 Thread Igor Russkikh
From: Pavel Belous Signed-off-by: Igor Russkikh --- drivers/net/atlantic/atl_ethdev.c | 50 +++ 1 file changed, 50 insertions(+) diff --git a/drivers/net/atlantic/atl_ethdev.c b/drivers/net/atlantic/atl_ethdev.c index ec1c22886..a95dc87fd 100644 --- a/drive

[dpdk-dev] [PATCH 10/21] net/atlantic: add hw adapter structures and defines

2018-09-07 Thread Igor Russkikh
From: Pavel Belous These declare statistic structures, hw internal structures and variables. Signed-off-by: Igor Russkikh --- drivers/net/atlantic/atl_ethdev.h | 9 ++ drivers/net/atlantic/atl_types.h | 202 +- 2 files changed, 210 insertions(+), 1 deleti

[dpdk-dev] [PATCH 09/21] net/atlantic: link status and interrupt management

2018-09-07 Thread Igor Russkikh
From: Pavel Belous Implement link interrupt, link info, link polling Signed-off-by: Igor Russkikh --- drivers/net/atlantic/atl_ethdev.c | 255 ++ drivers/net/atlantic/atl_ethdev.h | 10 ++ 2 files changed, 265 insertions(+) diff --git a/drivers/net/atlanti

[dpdk-dev] [PATCH 07/21] net/atlantic: hardware register access routines

2018-09-07 Thread Igor Russkikh
Signed-off-by: Igor Russkikh --- drivers/net/atlantic/atl_hw_regs.c | 58 + drivers/net/atlantic/atl_hw_regs.h | 59 ++ 2 files changed, 117 insertions(+) create mode 100644 drivers/net/atlantic/atl_hw_regs.c create mode 10

[dpdk-dev] [PATCH 00/21] net/atlantic: Aquantia aQtion 10G NIC Family DPDK PMD driver

2018-09-07 Thread Igor Russkikh
Hello DPDK community! Aquantia would like to contribute PMD for aQtion AQC10X NIC family: https://www.aquantia.com/products/aqtion/chips/ These are 10G ethernet NICs with various features. We do base this work on parts of the existing native linux kernel driver source (atlantic). Shared code is h

[dpdk-dev] [PATCH 08/21] net/atlantic: rte device start, stop, initial configuration

2018-09-07 Thread Igor Russkikh
Start, stop and reset are all done via hw_atl layer. Link interrupt configuration is also done here. Signed-off-by: Igor Russkikh --- drivers/net/atlantic/atl_ethdev.c | 253 ++ drivers/net/atlantic/atl_ethdev.h | 2 + 2 files changed, 255 insertions(+) dif

[dpdk-dev] [PATCH 06/21] net/atlantic: firmware operations layer

2018-09-07 Thread Igor Russkikh
AQC NICs comes in fields with two major FW generations: 1x and 3x. This is part of linux atlantic driver shared code, responsible for internal NIC firmware interactions, including link management ops, FW initialization, various lifecycle features. Signed-off-by: Igor Russkikh --- drivers/net/at

[dpdk-dev] [PATCH 03/21] net/atlantic: logging macroes and some typedefs

2018-09-07 Thread Igor Russkikh
Signed-off-by: Igor Russkikh --- drivers/net/atlantic/atl_ethdev.c | 9 +++ drivers/net/atlantic/atl_logs.h | 55 +++ drivers/net/atlantic/atl_types.h | 34 3 files changed, 98 insertions(+) create mode 100644 drivers/net/atlan

[dpdk-dev] [PATCH 05/21] net/atlantic: b0 hardware layer main logic

2018-09-07 Thread Igor Russkikh
This is hw_atl logic layer derived from linux atlantic driver. It contains RX/TX hardware initialization sequences, various hw configuration. Signed-off-by: Igor Russkikh --- drivers/net/atlantic/hw_atl/hw_atl_b0.c | 504 +++ drivers/net/atlantic/hw_atl/hw_atl_b0.h

[dpdk-dev] [PATCH 02/21] net/atlantic: documentation and rel notes

2018-09-07 Thread Igor Russkikh
Signed-off-by: Igor Russkikh --- doc/guides/nics/atlantic.rst | 59 ++ doc/guides/nics/features/atlantic.ini | 37 + doc/guides/nics/index.rst | 1 + doc/guides/rel_notes/release_18_11.rst | 5 +++ 4 files changed, 102

[dpdk-dev] [PATCH 01/21] net/atlantic: atlantic PMD driver skeleton

2018-09-07 Thread Igor Russkikh
From: Pavel Belous Makefile/meson build infrastructure, atl_ethdev minimal skeleton, header with aquantia aQtion NIC device and vendor IDs. Signed-off-by: Igor Russkikh --- config/common_base| 9 + drivers/net/Makefile | 2 + dri

[dpdk-dev] [PATCH] net/ixgbe: firmware status check

2018-09-07 Thread Xiaoyun Li
Check the firmware status at init time. If the firmware is in recovery mode, alert the user to check it. Signed-off-by: Xiaoyun Li --- v1: * This patch needs base code updating which will be done later. --- drivers/net/ixgbe/ixgbe_ethdev.c | 8 1 file changed, 8 insertions(+) diff --g

[dpdk-dev] [PATCH] net/i40e: firmware status check

2018-09-07 Thread Xiaoyun Li
Check the firmware status at init time. If the firmware is in recovery mode, alert the user to check it. Signed-off-by: Xiaoyun Li --- drivers/net/i40e/i40e_ethdev.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/

[dpdk-dev] [PATCH] pci/linux: use RTE_IOVA_VA whenever possible

2018-09-07 Thread Darek Stojaczyk
This allows DPDK to use RTE_IOVA_VA with VFIO/UIO-bound PCI devices present on the system, but not attached to any rte_pci_driver at the time of init. So far we used RTE_IOVA_VA whenever there was at least one device attached to a driver with an RTE_PCI_DRV_IOVA_AS_VA flag, meaning that other driv

Re: [dpdk-dev] DPDK Shared lib: No Ethernet ports

2018-09-07 Thread Richardson, Bruce
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Shubhachint, > Chaitanya > Sent: Friday, September 7, 2018 3:18 PM > To: dev@dpdk.org > Subject: [dpdk-dev] DPDK Shared lib: No Ethernet ports > > Hello, > > I recently started working with DPDK and gone throug

[dpdk-dev] DPDK Shared lib: No Ethernet ports

2018-09-07 Thread Shubhachint, Chaitanya
Hello, I recently started working with DPDK and gone through the initial steps of getting source code installed and trying out few examples. To integrate DPDK with our product, I need to build the share-lib version of DPDK. I run into an issue when I build DPDK as shared, I don't see this issue

Re: [dpdk-dev] Change in binary name w/ meson build

2018-09-07 Thread Bruce Richardson
On Wed, Sep 05, 2018 at 11:52:10AM +, Shahaf Shuler wrote: >Hi Bruce, > > >Playing w/ meson build I got to know that the binary name for testpmd >got changed to dpdk-testpmd. > > >Not sure if it was discussed or not before, but such change will affect >all the automation

Re: [dpdk-dev] [PATCH 3/3] net/virtio-user: fix memory hotplug support in vhost-kernel

2018-09-07 Thread Burakov, Anatoly
On 07-Sep-18 12:37 PM, Tiwei Bie wrote: On Fri, Sep 07, 2018 at 10:44:22AM +0100, Burakov, Anatoly wrote: On 05-Sep-18 5:28 AM, Tiwei Bie wrote: It's possible to have much more hugepage backed memory regions than what vhost-kernel supports due to the memory hotplug, which may cause problems. A

Re: [dpdk-dev] [PATCH 2/3] net/virtio-user: avoid parsing process mappings

2018-09-07 Thread Burakov, Anatoly
On 07-Sep-18 12:35 PM, Tiwei Bie wrote: On Fri, Sep 07, 2018 at 10:39:16AM +0100, Burakov, Anatoly wrote: On 05-Sep-18 5:28 AM, Tiwei Bie wrote: Recently some memory APIs were introduced to allow users to get the file descriptor and offset for each memory segment. We can leverage those APIs to

Re: [dpdk-dev] [PATCH 3/3] net/virtio-user: fix memory hotplug support in vhost-kernel

2018-09-07 Thread Tiwei Bie
On Fri, Sep 07, 2018 at 10:44:22AM +0100, Burakov, Anatoly wrote: > On 05-Sep-18 5:28 AM, Tiwei Bie wrote: > > It's possible to have much more hugepage backed memory regions > > than what vhost-kernel supports due to the memory hotplug, which > > may cause problems. A better solution is to have the

Re: [dpdk-dev] [PATCH 2/3] net/virtio-user: avoid parsing process mappings

2018-09-07 Thread Tiwei Bie
On Fri, Sep 07, 2018 at 10:39:16AM +0100, Burakov, Anatoly wrote: > On 05-Sep-18 5:28 AM, Tiwei Bie wrote: > > Recently some memory APIs were introduced to allow users to > > get the file descriptor and offset for each memory segment. > > We can leverage those APIs to get rid of the /proc magic on

[dpdk-dev] [dpdk-announce] DPDK 18.05.1 released

2018-09-07 Thread Christian Ehrhardt
Hi all, Here is a new stable release: https://fast.dpdk.org/rel/dpdk-18.05.1.tar.xz The git tree is at: https://dpdk.org/browse/dpdk-stable/?h=18.05 Christian Ehrhardt --- MAINTAINERS | 12 +- app/test-crypto-perf/cperf_ops.c

Re: [dpdk-dev] [PATCH v3] hash table: add an iterator over conflicting entries

2018-09-07 Thread Michel Machado
On 09/05/2018 06:13 PM, Honnappa Nagarahalli wrote: + uint32_t next; + uint32_t total_entries; +}; This structure can be moved to rte_cuckoo_hash.h file. What's the purpose of moving this struct to a header file since it's only used in the C file rte_

Re: [dpdk-dev] [PATCH v3] hash table: add an iterator over conflicting entries

2018-09-07 Thread Michel Machado
On 09/05/2018 04:27 PM, Wang, Yipeng1 wrote: Hmm I see, it falls back to my original thought to have malloc inside the init function.. Thanks for the explanation. :) So I guess with your implementation, in future if we change the internal state to be larger, the ABI will be broken. If tha

Re: [dpdk-dev] [PATCH] app/testpmd: add check for rx offload security flag

2018-09-07 Thread Ferruh Yigit
On 9/4/2018 1:32 PM, Kevin Laatz wrote: > Add a check for the DEV_RX_OFFLOAD_SECURITY flag to the > port_offload_cap_display(). > > Signed-off-by: Kevin Laatz Reviewed-by: Ferruh Yigit

[dpdk-dev] [PATCH 3/3] doc: update cryptodev and release note

2018-09-07 Thread Fan Zhang
Signed-off-by: Fan Zhang --- doc/guides/cryptodevs/aesni_mb.rst | 1 + doc/guides/rel_notes/release_18_11.rst | 5 + 2 files changed, 6 insertions(+) diff --git a/doc/guides/cryptodevs/aesni_mb.rst b/doc/guides/cryptodevs/aesni_mb.rst index c29295002..63e060d75 100644 --- a/doc/guides/c

[dpdk-dev] [PATCH 2/3] test/test_cryptodev: add AES-GCM tests to AESNI-MB

2018-09-07 Thread Fan Zhang
Signed-off-by: Fan Zhang --- test/test/test_cryptodev.c | 126 ++--- 1 file changed, 120 insertions(+), 6 deletions(-) diff --git a/test/test/test_cryptodev.c b/test/test/test_cryptodev.c index a6044b261..5e9ed357a 100644 --- a/test/test/test_cryptodev.c +

[dpdk-dev] [PATCH 1/3] crypto/aesni_mb: add aes-gcm algorithm support

2018-09-07 Thread Fan Zhang
This patch adds AES-GCM algorithm support to AESNI-MB PMD. Signed-off-by: Fan Zhang --- drivers/crypto/aesni_mb/aesni_mb_ops.h | 28 +++- drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c | 159 +++-- drivers/crypto/aesni_mb/rte_aesni_mb_pmd_ops.c | 30 dr

[dpdk-dev] [PATCH 0/3] crypto/aesni_mb: add aes-gcm support

2018-09-07 Thread Fan Zhang
This patchset adds the AES-GCM algorithm support to AESNI-MB Cryptodev PMD and updates the unit test and documentations along. Fan Zhang (3): crypto/aesni_mb: add aes-gcm algorithm support test/test_cryptodev: add AES-GCM tests to AESNI-MB doc: update cryptodev and release note doc/guides/

Re: [dpdk-dev] [PATCH v5] net/mlx: add meson build support

2018-09-07 Thread Bruce Richardson
On Wed, Sep 05, 2018 at 02:47:46PM +0300, Shahaf Shuler wrote: > From: Nelio Laranjeiro > > Compile Mellanox drivers when their external dependencies are met. A > glue version of the driver can still be requested by using the > -Denable_driver_mlx_glue=true > > To avoid modifying the whole sour

Re: [dpdk-dev] [PATCH v3 2/3] examples/ip_pipeline: modify application to use librte_table headers

2018-09-07 Thread Gavin Hu (Arm Technology China)
> -Original Message- > From: Kevin Laatz > Sent: Friday, September 7, 2018 6:06 PM > To: dev@dpdk.org > Cc: cristian.dumitre...@intel.com; Jianbo Liu ; Gavin > Hu (Arm Technology China) ; > jerin.ja...@caviumnetworks.com; Kevin Laatz > Subject: [PATCH v3 2/3] examples/ip_pipeline: modi

Re: [dpdk-dev] [PATCH v3 3/3] net/softnic: modify softnic to use librte_table headers

2018-09-07 Thread Gavin Hu (Arm Technology China)
> -Original Message- > From: Kevin Laatz > Sent: Friday, September 7, 2018 6:06 PM > To: dev@dpdk.org > Cc: cristian.dumitre...@intel.com; Jianbo Liu ; Gavin > Hu (Arm Technology China) ; > jerin.ja...@caviumnetworks.com; Kevin Laatz > Subject: [PATCH v3 3/3] net/softnic: modify softni

[dpdk-dev] [PATCH v3 3/3] net/softnic: modify softnic to use librte_table headers

2018-09-07 Thread Kevin Laatz
This commit modifies SoftNIC to make use of the new header files in librte_table. As we are now using the new header files in librte_table in SoftNIC, we no longer need the old header files so they can be removed. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kevin Laatz --- drivers/net/so

[dpdk-dev] [PATCH v3 1/3] lib/librte_table: add hash_func header files

2018-09-07 Thread Kevin Laatz
This commit adds rte_table_hash_func.h and rte_table_hash_func_arm64.h to librte_table. This reduces code duplication by removing duplicate header files within two folders and consolidating them into a single one. This also adds a scalar implementation of the x86_64 intrinsic for crc32 as a generic

[dpdk-dev] [PATCH v3 2/3] examples/ip_pipeline: modify application to use librte_table headers

2018-09-07 Thread Kevin Laatz
This commit modifies the IP Pipeline application to use the new header files in librte_table. As we are now using the new header files, we can remove the old ones from the application directory. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kevin Laatz --- examples/ip_pipeline/action.c

Re: [dpdk-dev] [PATCH] vhost: fix corner case for split ring enqueue operation

2018-09-07 Thread Gavin Hu (Arm Technology China)
This is a good catch for split vring, I advise to change also for packed vring. It also has this issue. > -Original Message- > From: dev On Behalf Of Jiayu Hu > Sent: Friday, September 7, 2018 3:25 PM > To: dev@dpdk.org > Cc: zhihong.w...@intel.com; tiwei@intel.com; > maxime.coque...

Re: [dpdk-dev] [PATCH 02/11] telemetry: add initial connection socket

2018-09-07 Thread Burakov, Anatoly
On 23-Aug-18 1:08 PM, Ciara Power wrote: This patch adds the telemetry UNIX socket. It is used to allow connections from external clients. On the initial connection from a client, ethdev stats are registered in the metrics library, to allow for their retrieval at a later stage. Signed-off-by: C

Re: [dpdk-dev] [PATCH 3/3] net/virtio-user: fix memory hotplug support in vhost-kernel

2018-09-07 Thread Burakov, Anatoly
On 05-Sep-18 5:28 AM, Tiwei Bie wrote: It's possible to have much more hugepage backed memory regions than what vhost-kernel supports due to the memory hotplug, which may cause problems. A better solution is to have the virtio-user pass all the memory ranges reserved by DPDK to vhost-kernel. Fix

Re: [dpdk-dev] [PATCH 2/3] net/virtio-user: avoid parsing process mappings

2018-09-07 Thread Burakov, Anatoly
On 05-Sep-18 5:28 AM, Tiwei Bie wrote: Recently some memory APIs were introduced to allow users to get the file descriptor and offset for each memory segment. We can leverage those APIs to get rid of the /proc magic on memory table preparation in vhost-user backend. Signed-off-by: Tiwei Bie ---

Re: [dpdk-dev] [PATCH 1/3] net/virtio-user: fix deadlock in memory events callback

2018-09-07 Thread Burakov, Anatoly
On 05-Sep-18 5:28 AM, Tiwei Bie wrote: Deadlock can occur when allocating memory if a vhost-kernel based virtio-user device is in use. To fix the deadlock, we will take memory hotplug lock explicitly in virtio-user when necessary, and always call the _thread_unsafe memory functions. Bugzilla ID:

Re: [dpdk-dev] [PATCH] eal: force IOVA mode to physical

2018-09-07 Thread Burakov, Anatoly
On 06-Sep-18 8:34 AM, Jerin Jacob wrote: -Original Message- Date: Tue, 4 Sep 2018 23:40:36 -0400 From: Eric Zhang To: santosh , hemant.agra...@nxp.com, Gaëtan Rivet , "Burakov, Anatoly" CC: bruce.richard...@intel.com, dev@dpdk.org, allain.leg...@windriver.com, matt.pet...@windriv

Re: [dpdk-dev] [PATCH v3] net/i40e: add interface to choose latest vector path

2018-09-07 Thread Li, Xiaoyun
OK. Will send v4 later. Thanks. > -Original Message- > From: Zhang, Qi Z > Sent: Wednesday, September 5, 2018 20:22 > To: Li, Xiaoyun ; Xing, Beilei > Cc: dev@dpdk.org; Yang, Zhiyong ; Richardson, > Bruce ; Hunt, David > Subject: RE: [PATCH v3] net/i40e: add interface to choose latest ve

Re: [dpdk-dev] [PATCH v2 1/3] lib/librte_table: add hash_func header files

2018-09-07 Thread Gavin Hu (Arm Technology China)
The code looks good, some comments to the commit message. > -Original Message- > From: Kevin Laatz > Sent: Friday, September 7, 2018 4:05 PM > To: dev@dpdk.org > Cc: cristian.dumitre...@intel.com; Jianbo Liu ; Gavin > Hu (Arm Technology China) ; > jerin.ja...@caviumnetworks.com; Kevin Laa

[dpdk-dev] [PATCH v2 2/3] examples/ip_pipeline: modify application to use librte_table headers

2018-09-07 Thread Kevin Laatz
This commit modifies the IP Pipeline application to use the new header files in librte_table. As we are now using the new header files, we can remove the old ones from the application directory. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kevin Laatz --- examples/ip_pipeline/action.c

[dpdk-dev] [PATCH v2 3/3] net/softnic: modify softnic to use librte_table headers

2018-09-07 Thread Kevin Laatz
This commit modifies SoftNIC to make use of the new header files in librte_table. As we are now using the new header files in librte_table in SoftNIC, we no longer need the old header files so they can be removed. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kevin Laatz --- drivers/net/so

[dpdk-dev] [PATCH v2 1/3] lib/librte_table: add hash_func header files

2018-09-07 Thread Kevin Laatz
This commit adds rte_table_hash_func.h and rte_table_hash_func_arm64.h to librte_table. This will replace hash_func.h and hash_func_arm64.h in the IP Pipeline application and in SoftNIC. This also adds a scalar implementation of the x86_64 intrinsic for crc32 as a generic fallback. Signed-off-by:

[dpdk-dev] [PATCH 3/3] net/softnic: modify softnic to use librte_table headers

2018-09-07 Thread Kevin Laatz
This commit modifies SoftNIC to make use of the new header files in librte_table. As we are now using the new header files in librte_table in SoftNIC, we no longer need the old header files so they can be removed. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kevin Laatz --- drivers/net/so

[dpdk-dev] [PATCH 2/3] examples/ip_pipeline: modify application to use librte_table headers

2018-09-07 Thread Kevin Laatz
This commit modifies the IP Pipeline application to use the new header files in librte_table. As we are now using the new header files, we can remove the old ones from the application directory. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kevin Laatz --- examples/ip_pipeline/action.c

[dpdk-dev] [PATCH 1/3] lib/librte_table: add hash_func header files

2018-09-07 Thread Kevin Laatz
This commit adds rte_table_hash_func.h and rte_table_hash_func_arm64.h to librte_table. This will replace hash_func.h and hash_func_arm64.h in the IP Pipeline application and in SoftNIC. This also adds a scalar implementation of the x86_64 intrinsic for crc32 as a generic fallback. Signed-off-by:

[dpdk-dev] [PATCH v2 3/4] doc: create a platorm specific page for NXP DPAA2 platform

2018-09-07 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- doc/guides/platform/dpaa2.rst | 98 +++ doc/guides/platform/index.rst | 1 + 2 files changed, 99 insertions(+) create mode 100644 doc/guides/platform/dpaa2.rst diff --git a/doc/guides/platform/dpaa2.rst b/doc/guides/plat

[dpdk-dev] [PATCH v2 4/4] doc: remove redundant prerequisite info for dpaa2 devices

2018-09-07 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- doc/guides/cryptodevs/dpaa2_sec.rst | 28 + doc/guides/eventdevs/dpaa2.rst | 50 - doc/guides/nics/dpaa2.rst | 49 +++- 3 files changed, 15 insertions(+), 112 d

[dpdk-dev] [PATCH v2 2/4] doc: remove redundant prerequisite info for dpaa devices

2018-09-07 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- doc/guides/cryptodevs/dpaa_sec.rst | 25 ++-- doc/guides/eventdevs/dpaa.rst | 48 +++ doc/guides/nics/dpaa.rst | 59 +- 3 files changed, 7 insertions(+), 125 deletions(-)

[dpdk-dev] [PATCH v2 1/4] doc: create a platorm specific page for NXP DPAA platform

2018-09-07 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- doc/guides/platform/dpaa.rst | 100 ++ doc/guides/platform/index.rst | 1 + 2 files changed, 101 insertions(+) create mode 100644 doc/guides/platform/dpaa.rst diff --git a/doc/guides/platform/dpaa.rst b/doc/guides/plat

[dpdk-dev] [PATCH] vhost: fix corner case for split ring enqueue operation

2018-09-07 Thread Jiayu Hu
When perform enqueue operations on the split ring, if the reserved buffer length from the descriptor table execeeds 65535, the returned length by fill_vec_buf_split() is overflowed. This patch is to avoid this corner case. Fixes: f689586bc060 ("vhost: shadow used ring update") Signed-off-by: Jiay

  1   2   >