[dpdk-dev] [PATCH] net/failsafe: fix calling device during RMV events

2017-09-09 Thread Ophir Munk
This commit prevents control path operations from failing after a sub device has informed failsafe it has been removed. Before this commit if a device was removed and then a control path operations was initiated on failsafe - in some cases failsafe called the sub device operation instead of avoidi

Re: [dpdk-dev] [PATCH v2] vhost: adaptively batch small guest memory copies

2017-09-09 Thread santosh
On Friday 08 September 2017 06:20 PM, Tiwei Bie wrote: > This patch adaptively batches the small guest memory copies. > By batching the small copies, the efficiency of executing the > memory LOAD instructions can be improved greatly, because the > memory LOAD latency can be effectively hidden by th

[dpdk-dev] [PATCH v3 3/4] examples: increase port_id range

2017-09-09 Thread Zhiyong Yang
Modify port_id related code in examples accordingly since port_id definition in lib and pmd changes. Fix some original checkpatch issues and remove some unnecessary cast at the same time. Signed-off-by: Zhiyong Yang --- doc/guides/rel_notes/release_17_11.rst | 4 + examples/bond/m

[dpdk-dev] [PATCH v3 4/4] librte_mbuf: modify port initialization value

2017-09-09 Thread Zhiyong Yang
In order to support more than 256 virtual ports, the field "port" in rte_mbuf has been increased to 16 bits. The initialization/reset value of the field "port" should be changed from 0xff to 0x accordingly. Signed-off-by: Zhiyong Yang --- lib/librte_mbuf/rte_mbuf.c | 2 +- lib/librte_mbuf/rt

[dpdk-dev] [PATCH v3 2/4] test: increase port_id range

2017-09-09 Thread Zhiyong Yang
Increase port_id range from 8 bit to 16 bits in test code. And remove some unnecessary cast operations. Signed-off-by: Zhiyong Yang --- test/test/test_kni.c| 14 ++--- test/test/test_link_bonding.c | 42 ++--- test/test/test_link_bond

[dpdk-dev] [PATCH v3 0/4] increase port_id range

2017-09-09 Thread Zhiyong Yang
port_id is currently defined as uint8_t, which is limited to the range 0 to 255. A larger range is required for vdev scalability. It is necessary for a redefinition of port_id to extend it from 1 bytes to 2 bytes. All ethdev APIs and usages related to port_id will be changed at the same time. Dis

[dpdk-dev] [PATCH v4 40/41] net/dpaa: support for firmware version get API

2017-09-09 Thread Shreyansh Jain
From: Hemant Agrawal Signed-off-by: Hemant Agrawal --- doc/guides/nics/features/dpaa.ini | 1 + drivers/net/dpaa/dpaa_ethdev.c| 36 2 files changed, 37 insertions(+) diff --git a/doc/guides/nics/features/dpaa.ini b/doc/guides/nics/features/dpaa.ini in

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

2017-09-09 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 | 159 ++ drivers/net/dpaa/dpaa_rxtx.h | 9 +++ 3 files changed, 169 insertions(+) diff --git a/doc/guides/nics

[dpdk-dev] [PATCH v4 41/41] net/dpaa: support for extended statistics

2017-09-09 Thread Shreyansh Jain
From: Hemant Agrawal Signed-off-by: Hemant Agrawal --- doc/guides/nics/features/dpaa.ini | 1 + drivers/net/dpaa/dpaa_ethdev.c| 143 ++ drivers/net/dpaa/dpaa_ethdev.h| 40 +++ 3 files changed, 184 insertions(+) diff --git a/doc/guides/nics

[dpdk-dev] [PATCH v4 39/41] net/dpaa: add packet dump for debugging

2017-09-09 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 | 26 3 files changed, 70 insertions(+)

[dpdk-dev] [PATCH v4 37/41] net/dpaa: add support for checksum offload

2017-09-09 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 | 89 +++ drivers/net/dpaa/dpaa_rxtx.h | 23 +- 4 files changed,

[dpdk-dev] [PATCH v4 35/41] net/dpaa: add support for hashed RSS

2017-09-09 Thread Shreyansh Jain
Signed-off-by: Hemant Agrawal Signed-off-by: Shreyansh Jain --- drivers/net/dpaa/dpaa_ethdev.c | 1 + drivers/net/dpaa/dpaa_ethdev.h | 10 ++ 2 files changed, 11 insertions(+) diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c index f423e51..b1525a4 100644 ---

[dpdk-dev] [PATCH v4 36/41] net/dpaa: add support for packet type parsing

2017-09-09 Thread Shreyansh Jain
Add support for parsing the packet type and L2/L3 checksum offload capability information. Signed-off-by: Hemant Agrawal Signed-off-by: Shreyansh Jain --- doc/guides/nics/features/dpaa.ini | 2 + drivers/net/dpaa/dpaa_ethdev.c| 27 + drivers/net/dpaa/dpaa_rxtx.c | 116 ++

[dpdk-dev] [PATCH v4 33/41] net/dpaa: add support for basic stats

2017-09-09 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 cdf5

[dpdk-dev] [PATCH v4 34/41] net/dpaa: add support for flow control

2017-09-09 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 v4 30/41] net/dpaa: add support for promiscuous toggle

2017-09-09 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 19b

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

2017-09-09 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| 48 +++ 2 files changed, 49 insertions(+) diff --git a/doc/guides/nics/features/dpaa.ini b/doc/guides/nics/features/

[dpdk-dev] [PATCH v4 29/41] net/dpaa: add support for device info and speed capability

2017-09-09 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 132f

[dpdk-dev] [PATCH v4 31/41] net/dpaa: add support for multicast toggle

2017-09-09 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 b2df

[dpdk-dev] [PATCH v4 28/41] net/dpaa: add support for link status update

2017-09-09 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| 42 +++ 2 files changed, 43 insertions(+) diff --git a/doc/guides/nics/features/dpaa.ini b/doc/guides/nics/features/

[dpdk-dev] [PATCH v4 27/41] net/dpaa: add support for jumbo frames

2017-09-09 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| 13 +++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/doc/guides/nics/features/dpaa.ini b/doc/guides/nics/features/dpaa.ini i

[dpdk-dev] [PATCH v4 26/41] net/dpaa: add support for MTU update

2017-09-09 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 9e8

[dpdk-dev] [PATCH v4 23/41] net/dpaa: add NXP DPAA PMD driver skeleton

2017-09-09 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 | 63 drivers/net/dpaa/dpaa_e

[dpdk-dev] [PATCH v4 25/41] net/dpaa: add support for Tx and Rx queue setup

2017-09-09 Thread Shreyansh Jain
Signed-off-by: Hemant Agrawal Signed-off-by: Shreyansh Jain --- drivers/net/dpaa/Makefile | 4 + drivers/net/dpaa/dpaa_ethdev.c | 290 +++- drivers/net/dpaa/dpaa_rxtx.c | 370 + drivers/net/dpaa/dpaa_rxtx.h | 61

[dpdk-dev] [PATCH v4 24/41] config: enable NXP DPAA PMD compilation

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

[dpdk-dev] [PATCH v4 22/41] bus/dpaa: add DPAA PMD logging macros

2017-09-09 Thread Shreyansh Jain
Signed-off-by: Shreyansh Jain --- drivers/bus/dpaa/dpaa_bus.c | 5 + drivers/bus/dpaa/rte_dpaa_logs.h | 36 2 files changed, 41 insertions(+) diff --git a/drivers/bus/dpaa/dpaa_bus.c b/drivers/bus/dpaa/dpaa_bus.c index dc2b3ad..7ae5bfa 100644 --- a/

[dpdk-dev] [PATCH v4 21/41] maintainers: claim ownership of DPAA Mempool driver

2017-09-09 Thread Shreyansh Jain
Signed-off-by: Shreyansh Jain --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 10646a4..74b7aba 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -409,6 +409,7 @@ NXP dpaa M: Hemant Agrawal M: Shreyansh Jain F: drivers/bus/dpaa/ +F: drivers/memp

[dpdk-dev] [PATCH v4 20/41] drivers: enable compilation of DPAA Mempool driver

2017-09-09 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 v4 19/41] mempool/dpaa: add support for NXP DPAA Mempool

2017-09-09 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 v4 16/41] bus/dpaa: integrate DPAA Bus with hardware blocks

2017-09-09 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 v4 13/41] bus/dpaa: add support for FMAN frame queue lookup

2017-09-09 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 v4 15/41] bus/dpaa: add fman flow control threshold setting

2017-09-09 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 v4 17/41] doc: add NXP DPAA PMD documentation

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

[dpdk-dev] [PATCH v4 14/41] bus/dpaa: add BMan hardware interfaces

2017-09-09 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 v4 18/41] bus/dpaa: add DPAA mempool logging macros

2017-09-09 Thread Shreyansh Jain
Signed-off-by: Shreyansh Jain --- drivers/bus/dpaa/dpaa_bus.c | 5 + drivers/bus/dpaa/rte_dpaa_logs.h | 28 2 files changed, 33 insertions(+) diff --git a/drivers/bus/dpaa/dpaa_bus.c b/drivers/bus/dpaa/dpaa_bus.c index 8017df3..dc2b3ad 100644 --- a/drivers/

[dpdk-dev] [PATCH v4 10/41] bus/dpaa: add QMAN interface driver

2017-09-09 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 v4 12/41] bus/dpaa: add BMAN driver core

2017-09-09 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 v4 11/41] bus/dpaa: add QMan driver core routines

2017-09-09 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 v4 08/41] bus/dpaa: add layer for interrupt emulation using pthread

2017-09-09 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 v4 09/41] bus/dpaa: add routines for managing a RB tree

2017-09-09 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 v4 06/41] bus/dpaa: add FMan hardware operations

2017-09-09 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 | 562 ++ drivers/bus/dpaa/include/fsl_fman.h | 174 + drivers/bus/d

[dpdk-dev] [PATCH v4 07/41] bus/dpaa: enable DPAA IOCTL portal driver

2017-09-09 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 v4 05/41] bus/dpaa: introducing FMan configurations

2017-09-09 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 v4 03/41] bus/dpaa: add compatibility and helper macros

2017-09-09 Thread Shreyansh Jain
From: Hemant Agrawal Linked list, bit operations and compatibility macros. Signed-off-by: Geoff Thorpe Signed-off-by: Hemant Agrawal --- v3: - Removed checkpatch warning and duplicate PER_CPU macro --- drivers/bus/dpaa/include/compat.h| 389 +++ drivers/b

[dpdk-dev] [PATCH v4 01/41] config: add NXP DPAA SoC build configuration

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

[dpdk-dev] [PATCH v4 04/41] bus/dpaa: add OF parser for device scanning

2017-09-09 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 v4 00/41] Introduce NXP DPAA Bus, Mempool and PMD

2017-09-09 Thread Shreyansh Jain
Change Log: v4: - Some checkpatch fixes which were reported by checkpatch@dpdk - adding support for extended stats (patch 41) v3: - Rebasing over 17.11-rc0 (85238f50) - Checkpatch fixes (There are still 2 errors which I think are false positives) - Implement rte_bus.find_devi

[dpdk-dev] [PATCH v4 02/41] bus/dpaa: introduce NXP DPAA Bus driver skeleton

2017-09-09 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 | 6 + drivers/bus/Makefile | 3 + drivers/bus/dpaa/Makefile

[dpdk-dev] [PATCH v3 2/2] eal/malloc: fix RTE malloc element free

2017-09-09 Thread Xueming Li
malloc_elem_free() is clearing(setting to 0) the trailer cookie when RTE_MALLOC_DEBUG is enabled. In case of joining free neighbor element, part of joined memory is not getting cleared due to missing the length of trailer cookie in the middle. This patch fixes calculation of free memory length to

[dpdk-dev] [PATCH v3 1/2] eal/malloc: fix RTE malloc debug macro

2017-09-09 Thread Xueming Li
This patch replaces broken macro RTE_LIBRTE_MALLOC_DEBUG with RTE_MALLOC_DEBUG. Fixes: af75078fece3 ("first public release") Cc: Sergio Gonzalez Monroy Signed-off-by: Xueming Li --- lib/librte_eal/common/malloc_elem.h | 4 ++-- test/test/test_malloc.c | 12 +--- 2 files ch

Re: [dpdk-dev] [PATCH v2 1/2] eal/malloc: fix RTE malloc debug macro

2017-09-09 Thread Xueming(Steven) Li
Thanks, updated in v3. > -Original Message- > From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Saturday, September 9, 2017 12:04 AM > To: Xueming(Steven) Li > Cc: Sergio Gonzalez Monroy ; > dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2 1/2] eal/malloc: fix RTE malloc