[dpdk-dev] [PATCH 35/38] net/dpaa: add support for packet type parsing

2017-06-15 Thread Shreyansh Jain
Signed-off-by: Hemant Agrawal Signed-off-by: Shreyansh Jain --- doc/guides/nics/features/dpaa.ini | 1 + drivers/net/dpaa/dpaa_ethdev.c| 26 ++ drivers/net/dpaa/dpaa_rxtx.c | 111 drivers/net/dpaa/dpaa_rxtx.h | 174 +++

[dpdk-dev] [PATCH 37/38] net/dpaa: add support for Scattered Rx

2017-06-15 Thread Shreyansh Jain
Signed-off-by: Hemant Agrawal Signed-off-by: Shreyansh Jain --- doc/guides/nics/features/dpaa.ini | 1 + drivers/net/dpaa/dpaa_rxtx.c | 160 ++ drivers/net/dpaa/dpaa_rxtx.h | 2 + 3 files changed, 163 insertions(+) diff --git a/doc/guides/nics/f

[dpdk-dev] [PATCH 34/38] net/dpaa: add support for hashed RSS

2017-06-15 Thread Shreyansh Jain
Signed-off-by: Hemant Agrawal Signed-off-by: Shreyansh Jain --- doc/guides/nics/features/dpaa.ini | 1 + drivers/net/dpaa/dpaa_ethdev.c| 1 + drivers/net/dpaa/dpaa_ethdev.h| 10 ++ 3 files changed, 12 insertions(+) diff --git a/doc/guides/nics/features/dpaa.ini b/doc/guides/n

[dpdk-dev] [PATCH 38/38] net/dpaa: add packet dump for debugging

2017-06-15 Thread Shreyansh Jain
Signed-off-by: Hemant Agrawal Signed-off-by: Shreyansh Jain --- config/defconfig_arm64-dpaa-linuxapp-gcc | 2 ++ drivers/net/dpaa/dpaa_ethdev.c | 42 drivers/net/dpaa/dpaa_rxtx.c | 27 +++- 3 files changed, 70 insertions(+),

[dpdk-dev] [PATCH 36/38] net/dpaa: add support for checksum offload

2017-06-15 Thread Shreyansh Jain
Signed-off-by: Hemant Agrawal Signed-off-by: Shreyansh Jain --- doc/guides/nics/features/dpaa.ini | 2 + drivers/net/dpaa/dpaa_ethdev.c| 4 ++ drivers/net/dpaa/dpaa_rxtx.c | 88 +++ drivers/net/dpaa/dpaa_rxtx.h | 19 + 4 files changed,

[dpdk-dev] [PATCH 32/38] net/dpaa: add support for MAC address update

2017-06-15 Thread Shreyansh Jain
Signed-off-by: Hemant Agrawal Signed-off-by: Shreyansh Jain --- drivers/net/dpaa/dpaa_ethdev.c | 55 ++ 1 file changed, 55 insertions(+) diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c index 649b67f..0eb5b71 100644 --- a/drive

[dpdk-dev] [PATCH 31/38] net/dpaa: add support for basic stats

2017-06-15 Thread Shreyansh Jain
Signed-off-by: Hemant Agrawal Signed-off-by: Shreyansh Jain --- doc/guides/nics/features/dpaa.ini | 1 + drivers/net/dpaa/dpaa_ethdev.c| 20 2 files changed, 21 insertions(+) diff --git a/doc/guides/nics/features/dpaa.ini b/doc/guides/nics/features/dpaa.ini index 80dd

[dpdk-dev] [PATCH 33/38] net/dpaa: add support for flow control

2017-06-15 Thread Shreyansh Jain
Signed-off-by: Hemant Agrawal Signed-off-by: Shreyansh Jain --- doc/guides/nics/features/dpaa.ini | 1 + drivers/net/dpaa/dpaa_ethdev.c| 112 ++ 2 files changed, 113 insertions(+) diff --git a/doc/guides/nics/features/dpaa.ini b/doc/guides/nics/feature

[dpdk-dev] [PATCH 24/38] net/dpaa: add support for Tx and Rx queue setup

2017-06-15 Thread Shreyansh Jain
Signed-off-by: Hemant Agrawal Signed-off-by: Shreyansh Jain --- doc/guides/nics/features/dpaa.ini | 1 + drivers/net/dpaa/Makefile | 4 + drivers/net/dpaa/dpaa_ethdev.c| 279 - drivers/net/dpaa/dpaa_ethdev.h| 6 + drivers/net/dpaa/dpaa_rxtx.c

[dpdk-dev] [PATCH 29/38] net/dpaa: add support for promiscuous toggle

2017-06-15 Thread Shreyansh Jain
Signed-off-by: Hemant Agrawal Signed-off-by: Shreyansh Jain --- doc/guides/nics/features/dpaa.ini | 1 + drivers/net/dpaa/dpaa_ethdev.c| 21 + 2 files changed, 22 insertions(+) diff --git a/doc/guides/nics/features/dpaa.ini b/doc/guides/nics/features/dpaa.ini index cfc

[dpdk-dev] [PATCH 30/38] net/dpaa: add support for multicast toggle

2017-06-15 Thread Shreyansh Jain
Signed-off-by: Hemant Agrawal Signed-off-by: Shreyansh Jain --- doc/guides/nics/features/dpaa.ini | 2 ++ drivers/net/dpaa/dpaa_ethdev.c| 21 + 2 files changed, 23 insertions(+) diff --git a/doc/guides/nics/features/dpaa.ini b/doc/guides/nics/features/dpaa.ini index a6

[dpdk-dev] [PATCH 26/38] net/dpaa: add support for jumbo frames

2017-06-15 Thread Shreyansh Jain
Signed-off-by: Hemant Agrawal Signed-off-by: Shreyansh Jain --- doc/guides/nics/features/dpaa.ini | 1 + drivers/net/dpaa/dpaa_ethdev.c| 15 --- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/doc/guides/nics/features/dpaa.ini b/doc/guides/nics/features/dpaa.ini

[dpdk-dev] [PATCH 25/38] net/dpaa: add support for MTU update

2017-06-15 Thread Shreyansh Jain
Signed-off-by: Hemant Agrawal Signed-off-by: Shreyansh Jain --- doc/guides/nics/features/dpaa.ini | 1 + drivers/net/dpaa/dpaa_ethdev.c| 21 + 2 files changed, 22 insertions(+) diff --git a/doc/guides/nics/features/dpaa.ini b/doc/guides/nics/features/dpaa.ini index 29b

[dpdk-dev] [PATCH 27/38] net/dpaa: add support for link status update

2017-06-15 Thread Shreyansh Jain
Signed-off-by: Hemant Agrawal Signed-off-by: Shreyansh Jain --- doc/guides/nics/features/dpaa.ini | 2 ++ drivers/net/dpaa/dpaa_ethdev.c| 42 +++ 2 files changed, 44 insertions(+) diff --git a/doc/guides/nics/features/dpaa.ini b/doc/guides/nics/features

[dpdk-dev] [PATCH 28/38] net/dpaa: add support for device info

2017-06-15 Thread Shreyansh Jain
Signed-off-by: Hemant Agrawal Signed-off-by: Shreyansh Jain --- drivers/net/dpaa/dpaa_ethdev.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c index f3de967..0cceffa 100644 --- a/drivers/net/dpaa/dpaa_ethdev.

[dpdk-dev] [PATCH 23/38] config: enable NXP DPAA PMD compilation

2017-06-15 Thread Shreyansh Jain
Signed-off-by: Shreyansh Jain --- config/common_base | 1 + config/defconfig_arm64-dpaa-linuxapp-gcc | 10 ++ drivers/net/Makefile | 2 ++ mk/rte.app.mk| 5 + 4 files changed, 18 insertions(+) diff --git a/confi

[dpdk-dev] [PATCH 21/38] drivers: enable compilation of DPAA Mempool driver

2017-06-15 Thread Shreyansh Jain
This patch also adds configuration necessary for compilation of DPAA Mempool driver into the DPAA specific config file. CONFIG_RTE_MBUF_DEFAULT_MEMPOOL_OPS=dpaa is also configured to allow applications to use DPAA mempool as default. Signed-off-by: Shreyansh Jain --- config/common_base

[dpdk-dev] [PATCH 22/38] net/dpaa: add NXP DPAA PMD driver skeleton

2017-06-15 Thread Shreyansh Jain
A skeleton which would be called after bus device scan. It currently fails to identify the device. Signed-off-by: Hemant Agrawal Signed-off-by: Shreyansh Jain --- MAINTAINERS | 1 + drivers/net/dpaa/Makefile | 64 + drivers/net/dpaa/dpaa_

[dpdk-dev] [PATCH 20/38] maintainers: claim ownership of DPAA Mempool driver

2017-06-15 Thread Shreyansh Jain
Signed-off-by: Shreyansh Jain --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index c14b7b3..ec5eb00 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -392,6 +392,7 @@ NXP dpaa M: Hemant Agrawal M: Shreyansh Jain F: drivers/bus/dpaa/ +F: drivers/memp

[dpdk-dev] [PATCH 19/38] mempool/dpaa: add support for NXP DPAA Mempool

2017-06-15 Thread Shreyansh Jain
This Mempool driver works with DPAA BMan hardware block. This block manages data buffers in memory, and provides efficient interface with other hardware and software components for buffer requests. This patch adds support for BMan. Compilation would be enabled in subsequent patches. Signed-off-by

[dpdk-dev] [PATCH 17/38] bus/dpaa: integrate DPAA Bus with hardware blocks

2017-06-15 Thread Shreyansh Jain
Now that QBMAN (QMAN, BMAN) and FMAN drivers are available, this patch integrates the DPAA Bus driver for using the drivers for scanning devices and calling the PMD registered probe callbacks. Signed-off-by: Hemant Agrawal Signed-off-by: Shreyansh Jain --- drivers/bus/dpaa/dpaa_bus.c

[dpdk-dev] [PATCH 14/38] bus/dpaa: add support for FMAN frame queue lookup

2017-06-15 Thread Shreyansh Jain
Signed-off-by: Geoff Thorpe Signed-off-by: Roy Pledge Signed-off-by: Hemant Agrawal Signed-off-by: Shreyansh Jain --- drivers/bus/dpaa/base/qbman/qman.c| 99 ++- drivers/bus/dpaa/base/qbman/qman_driver.c | 7 ++- drivers/bus/dpaa/base/qbman/qman_priv.h |

[dpdk-dev] [PATCH 18/38] doc: add NXP DPAA PMD documentation

2017-06-15 Thread Shreyansh Jain
Signed-off-by: Hemant Agrawal Signed-off-by: Shreyansh Jain --- MAINTAINERS | 2 + doc/guides/nics/dpaa.rst | 360 ++ doc/guides/nics/features/dpaa.ini | 8 + doc/guides/nics/index.rst | 1 + 4 files changed, 371 in

[dpdk-dev] [PATCH 16/38] bus/dpaa: add fman flow control threshold setting

2017-06-15 Thread Shreyansh Jain
Signed-off-by: Geoff Thorpe Signed-off-by: Roy Pledge Signed-off-by: Hemant Agrawal Signed-off-by: Shreyansh Jain --- drivers/bus/dpaa/base/fman/fman_hw.c | 28 drivers/bus/dpaa/include/fsl_fman.h | 7 +++ 2 files changed, 35 insertions(+) diff --git a/drive

[dpdk-dev] [PATCH 15/38] bus/dpaa: add BMan hardware interfaces

2017-06-15 Thread Shreyansh Jain
Signed-off-by: Geoff Thorpe Signed-off-by: Roy Pledge Signed-off-by: Hemant Agrawal Signed-off-by: Shreyansh Jain --- drivers/bus/dpaa/Makefile | 1 + drivers/bus/dpaa/base/qbman/bman.c| 394 + drivers/bus/dpaa/base/qbman/bman.h| 550 ++

[dpdk-dev] [PATCH 13/38] bus/dpaa: add BMAN driver core

2017-06-15 Thread Shreyansh Jain
The Buffer Manager (BMan) is a hardware buffer pool management block that allows software and accelerators on the datapath to acquire and release buffers in order to build frames. This patch adds the core routines. Signed-off-by: Geoff Thorpe Signed-off-by: Roy Pledge Signed-off-by: Hemant Agra

[dpdk-dev] [PATCH 12/38] bus/dpaa: add QMan driver core routines

2017-06-15 Thread Shreyansh Jain
Signed-off-by: Geoff Thorpe Signed-off-by: Roy Pledge Signed-off-by: Hemant Agrawal Signed-off-by: Shreyansh Jain --- drivers/bus/dpaa/Makefile |2 + drivers/bus/dpaa/base/qbman/dpaa_alloc.c | 88 ++ drivers/bus/dpaa/base/qbman/qman.c| 2402 ++

[dpdk-dev] [PATCH 11/38] bus/dpaa: add QMAN interface driver

2017-06-15 Thread Shreyansh Jain
The Queue Manager (QMan) is a hardware queue management block that allows software and accelerators on the datapath to enqueue and dequeue frames in order to communicate. This part of QBMAN DPAA Block. Signed-off-by: Geoff Thorpe Signed-off-by: Roy Pledge Signed-off-by: Hemant Agrawal Signed-o

[dpdk-dev] [PATCH 09/38] bus/dpaa: add layer for interrupt emulation using pthread

2017-06-15 Thread Shreyansh Jain
An interrupt manager is implemented by emulating over pthreads. Handlers are registered by QBMAN layer for being notified about any interrupt request from DPAA blocks in userspace. Signed-off-by: Roy Pledge Signed-off-by: Hemant Agrawal Signed-off-by: Shreyansh Jain --- drivers/bus/dpaa/Makefi

[dpdk-dev] [PATCH 08/38] bus/dpaa: enable DPAA IOCTL portal driver

2017-06-15 Thread Shreyansh Jain
Userspace applications interact with DPAA blocks using this IOCTL driver. Signed-off-by: Geoff Thorpe Signed-off-by: Hemant Agrawal Signed-off-by: Shreyansh Jain --- drivers/bus/dpaa/Makefile | 4 +- drivers/bus/dpaa/base/qbman/process.c | 331 ++

[dpdk-dev] [PATCH 10/38] bus/dpaa: add routines for managing a RB tree

2017-06-15 Thread Shreyansh Jain
QMAN frames are managed over a RB tree data structure. This patch introduces necessary routines for implementing a RB tree. Signed-off-by: Geoff Thorpe Signed-off-by: Hemant Agrawal Signed-off-by: Shreyansh Jain --- drivers/bus/dpaa/include/dpaa_rbtree.h | 143 +

[dpdk-dev] [PATCH 07/38] bus/dpaa: add FMan hardware operations

2017-06-15 Thread Shreyansh Jain
Signed-off-by: Geoff Thorpe Signed-off-by: Hemant Agrawal Signed-off-by: Shreyansh Jain --- drivers/bus/dpaa/Makefile | 1 + drivers/bus/dpaa/base/fman/fman_hw.c | 606 ++ drivers/bus/dpaa/include/fman.h | 2 + drivers/bus/dpaa/incl

[dpdk-dev] [PATCH 06/38] bus/dpaa: introducing FMan configurations

2017-06-15 Thread Shreyansh Jain
FMan or Frame Manager, inspects traffic, splits it into queueson ingress. It is also responsible for directing traffic on queues on egress. This patch introduces FMan configurational interfaces. This layer is used by Bus driver for configuring the hardware block. Signed-off-by: Geoff Thorpe Sign

[dpdk-dev] [PATCH 04/38] bus/dpaa: add compatibility and helper macros

2017-06-15 Thread Shreyansh Jain
From: Hemant Agrawal Linked list, bit operations and compatibility macros. Signed-off-by: Geoff Thorpe Signed-off-by: Hemant Agrawal --- drivers/bus/dpaa/include/compat.h| 330 +++ drivers/bus/dpaa/include/dpaa_bits.h | 65 +++ drivers/bus/dpaa/include

[dpdk-dev] [PATCH 05/38] bus/dpaa: add OF parser for device scanning

2017-06-15 Thread Shreyansh Jain
This layer is used by Bus driver's scan function. Devices are parsed using OF parser and added to DPAA device list. Signed-off-by: Geoff Thorpe Signed-off-by: Shreyansh Jain --- drivers/bus/dpaa/Makefile | 7 + drivers/bus/dpaa/base/fman/of.c | 576 ++

[dpdk-dev] [PATCH 03/38] bus/dpaa: introduce NXP DPAA Bus driver skeleton

2017-06-15 Thread Shreyansh Jain
Signed-off-by: Shreyansh Jain Signed-off-by: Hemant Agrawal --- MAINTAINERS | 5 + config/common_base| 3 + config/defconfig_arm64-dpaa-linuxapp-gcc | 9 ++ drivers/bus/Makefile | 3 + drivers/bus/dpaa/Makefile

[dpdk-dev] [PATCH 02/38] config: add NXP DPAA SoC build configuration

2017-06-15 Thread Shreyansh Jain
This patch adds skeleton build configuration for DPAA platform. Signed-off-by: Shreyansh Jain --- config/defconfig_arm64-dpaa-linuxapp-gcc | 38 mk/machine/dpaa/rte.vars.mk | 61 2 files changed, 99 insertions(+) create mode 100

[dpdk-dev] [PATCH 00/38] Introduce NXP DPAA Bus, Mempool and PMD

2017-06-15 Thread Shreyansh Jain
Series based on net-next/master (bc16bce) Introduction RFC was posted here -> [R3] This patch series adds NXP's QorIQ-Layerscape DPAA Architecture based bus driver, mempool driver and PMD. This version of driver supports NXP LS1043A/LS1023A, LS1046A/LS1026A family of network SoCs. [

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

2017-06-15 Thread Shreyansh Jain
From: Hemant Agrawal Bit Swap and LE<=>BE conversions for 23, 40 and 48 bit width Signed-off-by: Hemant Agrawal --- .../common/include/generic/rte_byteorder.h | 78 ++ 1 file changed, 78 insertions(+) diff --git a/lib/librte_eal/common/include/generic/rte_byteorder

[dpdk-dev] [PATCH v2 1/2] net/e1000: fix flex type filter

2017-06-15 Thread Wei Zhao
Fix bug in parse the flex info of wrong use local variable index which will cause filter fail, and some error in calculation mask. Fixes: 7cd77faf7129 ("net/igb: parse flow API flex filter") Signed-off-by: Wei Zhao --- Changes in v2: add more log for details and fix patch check warning. ---

[dpdk-dev] [PATCH v2 2/2] net/e1000: fix flex filter length error

2017-06-15 Thread Wei Zhao
igb flex filter support a recognize any arbitrary pattern within the first 128 bytes of the packet, but the macro E1000_FLEX_FILTERS_MASK_SIZE define only the first 64 byte. Fixes: 231d43909a31 ("igb: migrate flex filter to new API") Signed-off-by: Wei Zhao --- drivers/net/e1000/e1000_ethdev.h

[dpdk-dev] [PATCH 1/2] net/e1000: fix flex type filter

2017-06-15 Thread Wei Zhao
Fix bug in parse the flex info of wrong use local varible index which will cause filter fail. Fixes: 7cd77faf7129 ("net/igb: parse flow API flex filter") Signed-off-by: Wei Zhao --- drivers/net/e1000/igb_flow.c | 57 +++- 1 file changed, 41 insertions(+),

[dpdk-dev] [PATCH 2/2] net/e1000: fix flex filter length error

2017-06-15 Thread Wei Zhao
igb flex filter support a recognize any arbitrary pattern within the first 128 bytes of the packet, but the macro E1000_FLEX_FILTERS_MASK_SIZE define only the first 64 byte. Fixes: 231d43909a31 ("igb: migrate flex filter to new API") Signed-off-by: Wei Zhao --- drivers/net/e1000/e1000_ethdev.h

[dpdk-dev] [PATCH] doc: add testpmd commands for DDP

2017-06-15 Thread Beilei Xing
Add testpmd commands for loading DDP package and getting loaded DDP info list. Signed-off-by: Beilei Xing --- doc/guides/testpmd_app_ug/testpmd_funcs.rst | 14 ++ 1 file changed, 14 insertions(+) diff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst b/doc/guides/testpmd_app_ug/t

[dpdk-dev] [PATCH] app/testpmd: fix the comments in source file cmdline

2017-06-15 Thread RongQiang Xie
Because the comments in function cmd_add_bonding_slave_parsed() and cmd_remove_bonding_slave_parsed() is 'Set the primary slave for a bonded device',so fix it with 'add the slave for a bonded device' and 'remove the slave from a bonded device'. Signed-off-by: RongQiang Xie --- app/test-pmd/cmdli

Re: [dpdk-dev] [PATCH] app/testpmd: fix build without ixgbe

2017-06-15 Thread Lu, Wenzhuo
Hi Radu, > -Original Message- > From: Nicolau, Radu > Sent: Thursday, June 15, 2017 7:37 PM > To: Thomas Monjalon > Cc: Lu, Wenzhuo; dev@dpdk.org > Subject: Re: [PATCH] app/testpmd: fix build without ixgbe > > Looks ok to me, but why would one enable IXGBE_BYPASS without enabling > IXGBE?

Re: [dpdk-dev] [RFC] Add hot plug event in rte eal interrupt and inplement it in i40e driver.

2017-06-15 Thread Gaëtan Rivet
Hi Jingjing, On Wed, Jun 07, 2017 at 07:40:37AM +, Wu, Jingjing wrote: > > > > > >Secondly, in order to read out the uevent that monitoring, we need to add > > >uevent API in rte > > layer. We plan add 2 , rte_uevent_connect and rte_get_uevent. All driver > > interrupt handler > > could use

[dpdk-dev] How to get "--base-virtaddr" when using DPDK

2017-06-15 Thread Junguk Cho
Hi, I have the same situation which is explained here ( https://github.com/collectd/collectd/issues/2284). So, I would like to try "--base-virtaddr" option. I tried to use "struct rte_memseg *m = rte_eal_get_physmem_layout()" option based on (http://dpdk.org/doc/api/structrte__memseg.html). Howev

[dpdk-dev] [PATCH] mem: support page locking on FreeBSD

2017-06-15 Thread Thomas Monjalon
The function rte_mem_lock_page() was added for Linux only. The file eal_common_memory.c is a better place to make it available in FreeBSD also. The issue is seen when trying to compile bnxt on FreeBSD: bnxt_hwrm.c: undefined reference to `rte_mem_lock_page' Fixes: 3097de6e6bfb ("mem: get

Re: [dpdk-dev] [PATCH] app/testpmd: fix build without ixgbe

2017-06-15 Thread Thomas Monjalon
15/06/2017 12:17, Thomas Monjalon: > cmd_set_vf_rxmode_parsed() was defined only in the build context > of RTE_LIBRTE_IXGBE_PMD: > app/test-pmd/cmdline.c:13817:27: error: ‘cmd_set_vf_rxmode’ undeclared here > > Fixes: 4cfe399f6550 ("net/bnxt: support to set VF rxmode") > > Reported-by: Jan Viktor

Re: [dpdk-dev] Compilation error by "net/bnxt: add support to set VF rxmode"

2017-06-15 Thread Thomas Monjalon
14/06/2017 20:01, Yongseok Koh: > Hi, Ajit > > It looks you missed some #ifdef/endif when you made newer version for the > following patch. > http://dpdk.org/dev/patchwork/patch/25011 > > Currently, if RTE_LIBRTE_IXGBE_PMD isn't enabled, a compilation error occurs. Fixed: http://dpdk.org/commit

[dpdk-dev] [PATCH v2 3/3] ethdev: tidy up endianness handling in flow API

2017-06-15 Thread Adrien Mazarguil
The flow API defines several structures whose fields must be specified in network order. This commit documents them using explicit type names and related endianness conversion macros. No ABI change. Signed-off-by: Adrien Mazarguil --- lib/librte_ether/rte_flow.h | 52 ++-

[dpdk-dev] [PATCH v2 1/3] eal: introduce big and little endian types

2017-06-15 Thread Adrien Mazarguil
From: Nelio Laranjeiro This commit introduces new rte_{le,be}{16,32,64}_t types and updates rte_{le,be,cpu}_to_{le,be,cpu}_*() accordingly. These types are added for documentation purposes, mainly to clarify the byte ordering to use for storage when not CPU order. Doing so eliminates uncertainty

[dpdk-dev] [PATCH v2 2/3] eal: add static endianness conversion macros

2017-06-15 Thread Adrien Mazarguil
These macros resolve to constant expressions that allow developers to perform endianness conversion on static/const objects, even outside of function scope as they do not translate to function calls. This is most useful for static initializers and constant values (whenever it has to be performed a

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

2017-06-15 Thread Stephen Hemminger
On Mon, 12 Jun 2017 16:18:08 +0100 Bernard Iremonger wrote: > From: "Bernard.Iremonger" > > Change the rte_eth_dev_callback_process function to return int, > and add a void *ret_param parameter. What is the motivation for this? What is return value used for?

Re: [dpdk-dev] [PATCH v2 08/12] kni: disabled by default

2017-06-15 Thread Gaëtan Rivet
On Thu, Jun 15, 2017 at 02:09:41PM +0100, Ferruh Yigit wrote: > On 6/9/2017 10:06 AM, Gaëtan Rivet wrote: > > Hi Ferruh, > > > > On Fri, Jun 09, 2017 at 09:56:14AM +0100, Ferruh Yigit wrote: > >> On 6/8/2017 12:59 AM, Gaetan Rivet wrote: > >>> Signed-off-by: Gaetan Rivet > >>> --- > >>> config/c

Re: [dpdk-dev] [PATCH] net/bonding: enable bonding pmd in ppc64le

2017-06-15 Thread Ferruh Yigit
On 6/14/2017 11:16 AM, Gowrishankar wrote: > From: Gowrishankar Muthukrishnan > > Earlier bonding pmd was disabled in default config for ppc64le. Same has > been verified, with active-backup mode for an instance (to bond two VFs in > each > phy port): > > testpmd-bonding-cmd.txt: > create bonde

Re: [dpdk-dev] [PATCH] net/bonding: support bifurcated driver in eal cli using --vdev

2017-06-15 Thread Ferruh Yigit
On 6/14/2017 11:49 AM, Gowrishankar wrote: > From: Gowrishankar Muthukrishnan > > At present, creating bonding devices using --vdev is broken for PMD like > mlx5 as it is neither UIO nor VFIO based and hence PMD driver is unknown > to find_port_id_by_pci_addr(), as below. > > testpmd --vdev 'ne

Re: [dpdk-dev] [dpdk-stable] [PATCH v2] doc: add VLAN flow limitation on mlx5 PMD

2017-06-15 Thread Ferruh Yigit
On 6/13/2017 11:20 AM, Shahaf Shuler wrote: > On mlx5 PMD Flow pattern without any specific vlan will match for vlan > packets as well. > > Cc: sta...@dpdk.org > > Signed-off-by: Shahaf Shuler > Acked-by: Nelio Laranjeiro Applied to dpdk-next-net/master, thanks.

Re: [dpdk-dev] [dpdk-test-report] | ERROR | daily Intel builds (57/60)

2017-06-15 Thread Wei, FangfangX
Hi all, I've verified the failure #1, #2 and #3. It occurred by following commit: commit b7778e8a1c00a76872a02840150022e2210bc912 Author: Ajit Khaparde Date: Thu Jun 1 12:06:59 2017 -0500 net/bnxt: refactor to properly allocate resources for PF/VF Could anyone help to fix it? Many thanks! Best

Re: [dpdk-dev] [PATCH] net/tap: support flow API isolated mode

2017-06-15 Thread Ferruh Yigit
On 5/24/2017 4:41 PM, Pascal Mazon wrote: > With this patch, it is possible to enable or disable the isolate > feature anytime, even immediately after a probe while the tap has not > been configured yet. It will do its job as soon as the netdevice gets > created. > > A specific implicit flow rule

Re: [dpdk-dev] [PATCH] net/mlx5: implement isolated mode from flow API

2017-06-15 Thread Ferruh Yigit
On 5/24/2017 2:44 PM, Nelio Laranjeiro wrote: > Signed-off-by: Nelio Laranjeiro > Acked-by: Adrien Mazarguil > Acked-by: Shahaf Shuler Applied to dpdk-next-net/master, thanks.

Re: [dpdk-dev] [PATCH v2 08/12] kni: disabled by default

2017-06-15 Thread Ferruh Yigit
On 6/9/2017 10:06 AM, Gaëtan Rivet wrote: > Hi Ferruh, > > On Fri, Jun 09, 2017 at 09:56:14AM +0100, Ferruh Yigit wrote: >> On 6/8/2017 12:59 AM, Gaetan Rivet wrote: >>> Signed-off-by: Gaetan Rivet >>> --- >>> config/common_linuxapp | 2 +- >>> 1 file changed, 1 insertion(+), 1 deletion(-) >>> >

Re: [dpdk-dev] [PATCH v2 07/12] pdump: disabled by default

2017-06-15 Thread Ferruh Yigit
On 6/15/2017 12:01 AM, Gaëtan Rivet wrote: > Hi Ferruh, > > On Tue, Jun 13, 2017 at 06:15:45PM +0100, Ferruh Yigit wrote: >> On 6/11/2017 8:42 PM, Gaëtan Rivet wrote: >>> Hi Reshma, >>> >>> On Fri, Jun 09, 2017 at 02:24:58PM +, Pattan, Reshma wrote: Hi, > -Original Message---

Re: [dpdk-dev] [PATCH] net/mlx5: fix creation of drop flows

2017-06-15 Thread Nélio Laranjeiro
On Thu, Jun 15, 2017 at 01:34:31PM +0100, Ferruh Yigit wrote: > On 6/15/2017 9:25 AM, Nelio Laranjeiro wrote: > > Drop flows being created when the port is stop should not access to the drop > > table hash queues as it is invalid. > > > > Fixes: 028761059aeb ("net/mlx5: use an RSS drop queue") > >

Re: [dpdk-dev] [PATCH] app/testpmd: fix build without ixgbe

2017-06-15 Thread Thomas Monjalon
15/06/2017 13:37, Radu Nicolau: > Looks ok to me, but why would one enable IXGBE_BYPASS without enabling > IXGBE? [...] > > -#ifdef RTE_LIBRTE_IXGBE_BYPASS > > +#if defined RTE_LIBRTE_IXGBE_PMD && defined RTE_LIBRTE_IXGBE_BYPASS RTE_LIBRTE_IXGBE_BYPASS should not be enabled if RTE_LIBRTE_IXGBE_PM

Re: [dpdk-dev] [PATCH] net/mlx5: fix creation of drop flows

2017-06-15 Thread Ferruh Yigit
On 6/15/2017 9:25 AM, Nelio Laranjeiro wrote: > Drop flows being created when the port is stop should not access to the drop > table hash queues as it is invalid. > > Fixes: 028761059aeb ("net/mlx5: use an RSS drop queue") > > Signed-off-by: Nelio Laranjeiro > Acked-by: Shahaf Shuler Applied t

[dpdk-dev] [PATCH v3] ethdev: modify callback process API

2017-06-15 Thread Bernard Iremonger
From: "Bernard.Iremonger" Change the rte_eth_dev_callback_process function to return int, and add a void *ret_param parameter. Update version map Modify the following PMD's for rte_eth_dev_callback_process API changes: net/bonding net/nfp net/enic net/vhost net/virtio net/thunderx net/e1000: e1

[dpdk-dev] [PATCH v3] ethdev: callback process API

2017-06-15 Thread Bernard Iremonger
At present the _rte_eth_dev_callback_process function is using the cb_arg parameter to return data to the caller. The cb_arg parameter is an input parameter and should not be used to return data to the caller. In this patchset the return type of _rte_eth_dev_callback_process has been changed from

[dpdk-dev] [PATCH v2 6/6] net/vmxnet3: preserve configured MAC address

2017-06-15 Thread Charles (Chas) Williams
From: George Wilkie When starting a vmxnet3 device, it is always writing the permanent MAC address, even if a different MAC address was configured. Write from the device data instead which holds the current one. Signed-off-by: George Wilkie Acked-by: Shrikrishna Khare --- drivers/net/vmxnet3

Re: [dpdk-dev] [PATCH] cxgbe: fix alignment for data offset in mbufs

2017-06-15 Thread Ferruh Yigit
On 6/15/2017 3:13 AM, Rahul Lakkireddy wrote: > Fixup alignment for data offset when refilling mbufs. > > Fixes: edd04c619685 ("net/cxgbe: update Rx path for Chelsio T6") > > Signed-off-by: Rahul Lakkireddy > Signed-off-by: Kumar Sanghvi Applied to dpdk-next-net/master, thanks.

[dpdk-dev] [PATCH v2 5/6] net/vmxnet3: receive queue memory leak

2017-06-15 Thread Charles (Chas) Williams
From: Mandeep Rohilla This addresses an mbuf leak in an error condition during packet receive. Fixes: dfaff37fc46d ("vmxnet3: import new vmxnet3 poll mode driver implementation") Signed-off-by: Mandeep Rohilla --- drivers/net/vmxnet3/vmxnet3_rxtx.c | 6 ++ 1 file changed, 6 insertions(+)

[dpdk-dev] [PATCH v2 3/6] net/vmxnet3: Generate link-state change notifications

2017-06-15 Thread Charles (Chas) Williams
From: Robert Shearman Generate link-state change notifications by listening to interrupts generated by the device. Make use of the existing vmxnet3_process_events function that was compiled out, but change it to call vmxnet3_dev_link_update on a VMXNET3_ECR_LINK event and to not be so noisy in it

[dpdk-dev] [PATCH v2 2/6] net/vmxnet3: Implement retrieval of extended stats

2017-06-15 Thread Charles (Chas) Williams
From: Robert Shearman Implement xstats_get() to allow a number of driver-specific tx and rx stats to be retrieved. Signed-off-by: Robert Shearman --- drivers/net/vmxnet3/vmxnet3_ethdev.c | 113 +++ 1 file changed, 113 insertions(+) diff --git a/drivers/net/vmxn

[dpdk-dev] [PATCH v2 4/6] net/vmxnet3: Make vmxnet3_process_events less noisy

2017-06-15 Thread Charles (Chas) Williams
From: Robert Shearman Make vmxnet3_process_events less noisy by removing logging when there are no events to process and by making link, device-change and debug events DEBUG level rather than ERR. Change these to use PMD_DRV_LOG instead of PMD_INIT_LOG since they don't happen at device init. Si

[dpdk-dev] [PATCH v2 1/6] net/vmxnet3: retain counters on restart

2017-06-15 Thread Charles (Chas) Williams
From: Nachiketa Prachanda Most nics like virtio, igb/ixgbe etc. don't reset counters on dev_start and arguably this helps in monitoring the counters across a longer time span with multiple device start/stops. vmxnet3 behavior is opposite to that and counters are reset by the host side implementat

[dpdk-dev] [PATCH V2 0/6] some local vmxnet3 patches

2017-06-15 Thread Charles (Chas) Williams
This series addresses some local issues with the vmxnet3 driver that others might find of interest. Changes in v2: - net/vmxnet3: Implement retrieval of extended stats .id field wasn't being filled in xstats. - net/vmxnet3: receive queue memory leak The leak and buffer reallcation were

Re: [dpdk-dev] [PATCH] doc: add igb generic api features update

2017-06-15 Thread Ferruh Yigit
On 6/14/2017 9:47 AM, Wei Zhao wrote: > Add release notes update to announce support of rte_flow > on igb nic, and nic features update of this feature. > > Signed-off-by: Wei Zhao Applied to dpdk-next-net/master, thanks.

Re: [dpdk-dev] [RFC] Kernel Control Path (KCP)

2017-06-15 Thread Alex Rosenbaum
please excuse me if I missed out of the previous conversation and asking these questions again... Why create a new driver instead of improving the existing KNI driver? Can you share a table of the differences between the two driver / approaches [KNI vs KCP]? Why do you want to remove features lik

Re: [dpdk-dev] [PATCH v3] app/testpmd: add parameter to start forwarding TX first

2017-06-15 Thread De Lara Guarch, Pablo
Sending to right Jingjing mail address. > -Original Message- > From: De Lara Guarch, Pablo > Sent: Thursday, June 15, 2017 5:04 AM > To: jingjing...@dpdk.org > Cc: dev@dpdk.org; De Lara Guarch, Pablo > Subject: [PATCH v3] app/testpmd: add parameter to start forwarding TX > first > > Add p

[dpdk-dev] [PATCH v3] app/testpmd: add parameter to start forwarding TX first

2017-06-15 Thread Pablo de Lara
Add parameter to start forwarding sending first a burst of packets, which is useful when testing a loopback connection. This was already implemented as an internal command, but adding it as a parameter is interesting, as it allows the user to test a loopback connection without entering in the inte

Re: [dpdk-dev] [PATCH] app/testpmd: fix build without ixgbe

2017-06-15 Thread Radu Nicolau
Looks ok to me, but why would one enable IXGBE_BYPASS without enabling IXGBE? On 6/15/2017 10:54 AM, Thomas Monjalon wrote: When ixgbe bypass is not explictly disabled while ixgbe is disabled: app/test-pmd/testpmd.c:304:27: error: ‘RTE_PMD_IXGBE_BYPASS_TMT_OFF’ undeclared here The ixg

Re: [dpdk-dev] [PATCH] net/szedata2: use macro from common library

2017-06-15 Thread Ferruh Yigit
On 6/14/2017 12:08 PM, Matej Vido wrote: > Macro for alignment is defined in the common library. > Use macro from the common library in own macro definition. > > Signed-off-by: Matej Vido Applied to dpdk-next-net/master, thanks.

Re: [dpdk-dev] [PATCH] net/szedata2: remove unused macro

2017-06-15 Thread Ferruh Yigit
On 6/14/2017 9:21 AM, Matej Vido wrote: > Removed macro is not used since commit: > 2f3193c ("pci: inherit common driver in PCI driver") > > Signed-off-by: Matej Vido Applied to dpdk-next-net/master, thanks.

[dpdk-dev] [PATCH] app/testpmd: always build VF and MACsec functions

2017-06-15 Thread Thomas Monjalon
These functions are supported only on ixgbe. However, they should appear in the help and returns an error if the function is not supported or not enabled. Signed-off-by: Thomas Monjalon --- app/test-pmd/cmdline.c | 54 ++ app/test-pmd/config.c | 2

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

2017-06-15 Thread Iremonger, Bernard
Hi Thomas, > -Original Message- > From: Thomas Monjalon [mailto:tho...@monjalon.net] > Sent: Wednesday, June 14, 2017 10:22 PM > To: Iremonger, Bernard > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2 1/4] ethdev: modify callback process API > > Hi, > > 12/06/2017 17:18, Bernard I

Re: [dpdk-dev] [PATCH v4 1/2] net/ixgbe: add SSE4.1 support to vPMD's minimum requirement

2017-06-15 Thread Ferruh Yigit
On 6/13/2017 9:58 AM, Qi Zhang wrote: > x86 vPMD will be disabled if currently platform does not support SSE4.1. > This is the prework to enable vPMD ptype offload where SSE4.1 instrunctions > will be involved. > > Signed-off-by: Qi Zhang Series applied to dpdk-next-net/master, thanks. (Kept or

[dpdk-dev] [PATCH] app/testpmd: fix build without ixgbe

2017-06-15 Thread Thomas Monjalon
cmd_set_vf_rxmode_parsed() was defined only in the build context of RTE_LIBRTE_IXGBE_PMD: app/test-pmd/cmdline.c:13817:27: error: ‘cmd_set_vf_rxmode’ undeclared here Fixes: 4cfe399f6550 ("net/bnxt: support to set VF rxmode") Reported-by: Jan Viktorin Signed-off-by: Thomas Monjalon --- app/test

[dpdk-dev] [PATCH v2] librte_cmdline: fix parsing initialisation

2017-06-15 Thread Adrien Mazarguil
From: "Bernard.Iremonger" The dyn_tokens array is initialised at the beginning of the cmdline_parse function. However when the inst_num variable is incremented later in the function the dyn_tokens array is not reinitialised so the tokens from the previous command are used. The solution is to ini

Re: [dpdk-dev] [PATCH v2 2/2] app/testpmd: enable ddp get info feature

2017-06-15 Thread Ferruh Yigit
On 6/12/2017 9:00 PM, Andrey Chilikin wrote: > This patch demostrates how to get information about dynamic device > personalization profile. > Command 'ddp get info (profile_path)' extracts and prints > information about the given profile. > > Signed-off-by: Andrey Chilikin > --- > app/test-pmd/

[dpdk-dev] [PATCH] app/testpmd: fix build without ixgbe

2017-06-15 Thread Thomas Monjalon
When ixgbe bypass is not explictly disabled while ixgbe is disabled: app/test-pmd/testpmd.c:304:27: error: ‘RTE_PMD_IXGBE_BYPASS_TMT_OFF’ undeclared here The ixgbe bypass feature is meaningful only if ixgbe is enabled. So we need to check both. A best fix will be to enable bypass always a

Re: [dpdk-dev] [PATCH v3]net/mlx5: implement drop action in hardware classifier

2017-06-15 Thread Ferruh Yigit
On 6/5/2017 9:30 AM, Nélio Laranjeiro wrote: > On Sun, Jun 04, 2017 at 05:25:20AM +, Shachar Beiser wrote: >> remove/add blank line according to convensions >> >> Shachar Beiser (1): >> net/mlx5: implement drop action in hardware classifier >> >> drivers/net/mlx5/Makefile| 5 + >> d

[dpdk-dev] [PATCH v3] app/testpmd: print statistics periodically

2017-06-15 Thread Pablo de Lara
Add parameter to print port statistics periodically (disabled by default), if interactive mode is not enabled. This is useful to allow the user to see port statistics without having to get into the internal command line. Signed-off-by: Pablo de Lara --- Changes in v3: - Added missing "|" chara

[dpdk-dev] Executed testpmd application and encountered no free page issues

2017-06-15 Thread Paul Tsvika
Hi, I have one board with two 10G etherent on it. ( and two 1G ethernet as well ) Below is my working environment: OS: Ubuntu 16.04 10G Ethernet controller: X552/X557-AT 10GBASE-T Ethernet driver: ixgbe - 4.2.1-k dpdk version: 17.02.1 In order to avoid doing configuration incorrectly, i run the

Re: [dpdk-dev] cmdline.c: error: ‘cmd_set_vf_rxmode’ undeclared here (not in a function)

2017-06-15 Thread Thomas Monjalon
15/06/2017 09:26, Jan Viktorin: > Hi, my testing build for ARMv7 has failed during the last night with > the following output: > > /var/lib/jenkins/jobs/dpdk-armv7/workspace/app/test-pmd/cmdline.c:13813:27: > error: ‘cmd_set_vf_rxmode’ undeclared here (not in a function) > (cmdline_parse_inst_t

[dpdk-dev] [PATCH] net/i40e: avoid PCI probing failure when using bogus sfp

2017-06-15 Thread Olivier Matz
When a port is using a bogus SFP, the PCI probing returns an error, preventing to register a portid. To give a better chance to the applications to retry after the SFP is changed, move this check in eth_i40e_dev_configure(), so that only a port reconfiguration is needed to retry. Signed-off-by: O

[dpdk-dev] [PATCH 20/20 v2] doc: add NXP DPAA2 EVENTDEV details

2017-06-15 Thread Nipun Gupta
Signed-off-by: Nipun Gupta --- MAINTAINERS| 1 + doc/guides/eventdevs/dpaa2.rst | 175 + 2 files changed, 176 insertions(+) create mode 100644 doc/guides/eventdevs/dpaa2.rst diff --git a/MAINTAINERS b/MAINTAINERS index fe1a25b..d9dbf

Re: [dpdk-dev] i40e: pci probe fails when using one bogus sfp

2017-06-15 Thread Olivier MATZ
Hi, On Tue, 13 Jun 2017 14:14:43 +, "Wu, Jingjing" wrote: > > -Original Message- > > From: Olivier MATZ [mailto:olivier.m...@6wind.com] > > Sent: Tuesday, June 13, 2017 4:28 PM > > To: Wu, Jingjing > > Cc: Xing, Beilei ; Richardson, Bruce > > ; > > Zhang, Helin ; dev@dpdk.org > > S

[dpdk-dev] [PATCH 19/20 v2] event/dpaa2: handle timeout using interrupts in dequeue

2017-06-15 Thread Nipun Gupta
This patch adds support for interrupt handling on the event port. These interrupts facilitates managing of timeout ticks in the event dequeue functions. Signed-off-by: Nipun Gupta --- drivers/event/dpaa2/dpaa2_eventdev.c | 36 +--- 1 file changed, 33 insertions(+)

[dpdk-dev] [PATCH 17/20 v2] fslmc/bus: add interrupt enabling routine

2017-06-15 Thread Nipun Gupta
Signed-off-by: Nipun Gupta --- drivers/bus/fslmc/fslmc_vfio.c | 34 ++ drivers/bus/fslmc/fslmc_vfio.h | 3 +++ 2 files changed, 37 insertions(+) diff --git a/drivers/bus/fslmc/fslmc_vfio.c b/drivers/bus/fslmc/fslmc_vfio.c index 07a9278..88cac20 100644 --- a/drive

  1   2   >