[dpdk-dev] [PATCH] NXP DPAA2 bus driver fw upgrade

2017-09-16 Thread Hemant Agrawal
This patch upgrades the DPAA2- FSLMC bus firmware support to 10.3.x. It was earlier submitted as part of patchset, "NXP DPAA2 PMD updates" http://dpdk.org/ml/archives/dev/2017-September/074846.html It is identified during the review that this should be directly applied on master as it is touching

[dpdk-dev] [PATCH v3 01/27] bus/fslmc: qbman replace word copy with memcpy

2017-09-16 Thread Hemant Agrawal
From: Haiying Wang The word_copy is not as efficient as expected, so remove it from this driver. Signed-off-by: Haiying Wang Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/qbman/include/compat.h | 42 drivers/bus/fslmc/qbman/qbman_portal.c | 12

[dpdk-dev] [PATCH v3 00/27] NXP DPAA2 PMD updates

2017-09-16 Thread Hemant Agrawal
This patchset includes the hw driver upgrades and additional nic feature implementations. patches 1..8 - upgrades the qbman hw driver patches 9..10 - adds the support for LX2160 platform patches 11..27 - adds various features and cleanups in NXP DPAA2 pmd mainly - links status, RSS

[dpdk-dev] [PATCH v3 03/27] bus/fslmc: add qbman API to do enqueue with multiple frames

2017-09-16 Thread Hemant Agrawal
From: Haiying Wang Clean it up and update the prototype. Signed-off-by: Haiying Wang Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h | 32 ++-- drivers/bus/fslmc/qbman/qbman_portal.c | 200 +++-- drivers/bus/fslmc/rte_bus_fslmc

[dpdk-dev] [PATCH v3 02/27] bus/fslmc: remove the export for qbman version function

2017-09-16 Thread Hemant Agrawal
This func is not required to be used outside of the qbman driver. Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/qbman/include/fsl_qbman_base.h | 4 drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h | 2 -- drivers/bus/fslmc/qbman/qbman_portal.c | 7 --- drivers/bus/

[dpdk-dev] [PATCH v3 05/27] bus/fslmc: enhance the QBMAN CENA mode

2017-09-16 Thread Hemant Agrawal
From: Haiying Wang Signed-off-by: Haiying Wang Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/qbman/qbman_sys.h | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/bus/fslmc/qbman/qbman_sys.h b/drivers/bus/fslmc/qbman/qbman_sys.h index 9ea55de..47da595 10064

[dpdk-dev] [PATCH v3 06/27] bus/fslmc: qbman remove unused funcs and align names

2017-09-16 Thread Hemant Agrawal
name alignment for check command and result functions putting them as separate functions instead of changing the original functions. Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h | 146 ++-- drivers/bus/fslmc/qbman/qbman_portal.c | 731 +

[dpdk-dev] [PATCH v3 04/27] bus/fslmc: support up to 32 frames in one volatile dequeue

2017-09-16 Thread Hemant Agrawal
From: Haiying Wang QMan5.0 supports up to 32 frames in one volatile dequeue command. For the older Qman versions which only support up to 16 frames, the highest bit in NUMF will be ignored. Signed-off-by: Haiying Wang Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/qbman/qbman_portal.c |

[dpdk-dev] [PATCH v3 08/27] bus/fslmc: clean the qbman support code

2017-09-16 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/qbman/include/compat.h | 98 +++- drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h | 5 +- drivers/bus/fslmc/qbman/qbman_portal.c | 26 +-- drivers/bus/fslmc/qbman/qbman_portal.h | 133 ++--

[dpdk-dev] [PATCH v3 11/27] net/dpaa2: add support for congestion overhead

2017-09-16 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_ethdev.c | 1 + drivers/net/dpaa2/dpaa2_ethdev.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 945dcc7..d7950a5 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c

[dpdk-dev] [PATCH v3 10/27] bus/fslmc: add support for LX2160 platform

2017-09-16 Thread Hemant Agrawal
From: Ashish Jain Signed-off-by: Ashish Jain --- drivers/bus/fslmc/portal/dpaa2_hw_dpio.c | 22 ++ drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 1 + 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c b/drivers/bus/fslmc/p

[dpdk-dev] [PATCH v3 09/27] config/dpaa2: change max lores to 16

2017-09-16 Thread Hemant Agrawal
From: Ashish Jain To support new LX2 series Signed-off-by: Ashish Jain --- config/defconfig_arm64-dpaa2-linuxapp-gcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/defconfig_arm64-dpaa2-linuxapp-gcc b/config/defconfig_arm64-dpaa2-linuxapp-gcc index 8a42944..91f4993

[dpdk-dev] [PATCH v3 07/27] bus/fslmc: cleanup compat file

2017-09-16 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/qbman/include/compat.h | 188 +-- drivers/bus/fslmc/qbman/qbman_private.h | 2 +- 2 files changed, 4 insertions(+), 186 deletions(-) diff --git a/drivers/bus/fslmc/qbman/include/compat.h b/drivers/bus/fslmc/qbman

[dpdk-dev] [PATCH v3 12/27] bus/fslmc: add support to check dpbp presence

2017-09-16 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c| 7 +++ drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 1 + drivers/bus/fslmc/rte_bus_fslmc_version.map | 1 + 3 files changed, 9 insertions(+) diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c b/drivers/bus/f

[dpdk-dev] [PATCH v3 15/27] bus/fslmc: enable link status interrupt

2017-09-16 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/fslmc_vfio.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/bus/fslmc/fslmc_vfio.c b/drivers/bus/fslmc/fslmc_vfio.c index b2413c2..de08e1f 100644 --- a/drivers/bus/fslmc/fslmc_vfio.c +++ b/drivers/bus/fslmc/fslmc_vfio.c @@ -464,

[dpdk-dev] [PATCH v3 14/27] net/dpaa2: add support for link status event

2017-09-16 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- doc/guides/nics/features/dpaa2.ini | 1 + drivers/net/dpaa2/dpaa2_ethdev.c| 123 +++ drivers/net/dpaa2/mc/dpni.c | 233 drivers/net/dpaa2/mc/fsl_dpni.h | 49 drivers/net/dpaa2/mc/fs

[dpdk-dev] [PATCH v3 13/27] bus/fslmc: cleanup the dpaa2 interrupt support

2017-09-16 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/Makefile | 1 + drivers/bus/fslmc/fslmc_vfio.c | 108 +++- drivers/bus/fslmc/fslmc_vfio.h | 8 ++- drivers/bus/fslmc/portal/dpaa2_hw_dpio.c| 18 +++-- drivers/bus/fslmc/

[dpdk-dev] [PATCH v3 16/27] net/dpaa2: check physical link state on up cmd

2017-09-16 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_ethdev.c | 23 +++ 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 72c9e67..d5fa644 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c

[dpdk-dev] [PATCH v3 19/27] net/dpaa2: remove RSS restriction with num of queues

2017-09-16 Thread Hemant Agrawal
DPAA2 HW does not have such restrictions. Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_ethdev.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index d5fa644..dc24bed 100644 --- a/drivers/net/dpaa2/d

[dpdk-dev] [PATCH v3 17/27] net/dpaa2: improve error and logs for flow distribution

2017-09-16 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/base/dpaa2_hw_dpni.c | 39 +- 1 file changed, 24 insertions(+), 15 deletions(-) diff --git a/drivers/net/dpaa2/base/dpaa2_hw_dpni.c b/drivers/net/dpaa2/base/dpaa2_hw_dpni.c index 1269dd2..ca8a6f7 100644 --- a/dr

[dpdk-dev] [PATCH v3 20/27] net/dpaa2: add support for RSS hash update and get

2017-09-16 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_ethdev.c | 42 1 file changed, 42 insertions(+) diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index dc24bed..643d882 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c

[dpdk-dev] [PATCH v3 21/27] net/dpaa2: add support for extra stats

2017-09-16 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- doc/guides/nics/features/dpaa2.ini | 1 + drivers/net/dpaa2/dpaa2_ethdev.c | 174 - 2 files changed, 173 insertions(+), 2 deletions(-) diff --git a/doc/guides/nics/features/dpaa2.ini b/doc/guides/nics/features/dpaa2.ini i

[dpdk-dev] [PATCH v3 22/27] net/dpaa2: fix the Tx handling of non HW pool bufs

2017-09-16 Thread Hemant Agrawal
The current code is sending 8 packet in each internal loop. In some of the conditions, mbuf is being allocated or freed. In case of error, the code is returning without taking care of such buffer. It is better to send already prepared buffer and err for the current failure only. Fixes: 9e5f3e6d365

[dpdk-dev] [PATCH v3 18/27] net/dpaa2: increase the dist param to 64 bit

2017-09-16 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/base/dpaa2_hw_dpni.c | 8 drivers/net/dpaa2/dpaa2_ethdev.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/dpaa2/base/dpaa2_hw_dpni.c b/drivers/net/dpaa2/base/dpaa2_hw_dpni.c index ca8a6f7..e3ab

[dpdk-dev] [PATCH v3 23/27] net/dpaa2: log that VLAN extend offload not supported

2017-09-16 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_ethdev.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 7b09a87..611f59b 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c +++ b/drivers/net/dpaa2/dpaa2_ethde

[dpdk-dev] [PATCH v3 24/27] net/dpaa2: checksum support as per user config

2017-09-16 Thread Hemant Agrawal
Instead of enabling the RX checksum by default, make it enable only with user ethernet configuration Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_ethdev.c | 65 +--- 1 file changed, 35 insertions(+), 30 deletions(-) diff --git a/drivers/net/dpaa2

[dpdk-dev] [PATCH v3 25/27] net/dpaa2: improve debug messaging

2017-09-16 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_ethdev.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 7756c4e..39c32b3 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c +++ b/driv

[dpdk-dev] [PATCH v3 27/27] bus/fslmc: add devices in sorted order

2017-09-16 Thread Hemant Agrawal
From: Shreyansh Jain Before this patch, the devices discovered from VFIO layer were being added in the device list in the order received from directory scan. This causes an issue in case devices are reordered. This patch makes all the devices inserted in the device list in sorted order according

[dpdk-dev] [PATCH v3 26/27] bus/dpaa2: improve debug log messages

2017-09-16 Thread Hemant Agrawal
enable the printing of objects during debuging. use RTE_LOG to avoid function name printing for object name. Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c | 2 +- drivers/bus/fslmc/portal/dpaa2_hw_dpci.c | 2 +- drivers/bus/fslmc/portal/dpaa2_hw_dpio.c | 6 ++ 3

[dpdk-dev] [PATCH v3] net/tap: fix flow and port commands

2017-09-16 Thread Ophir Munk
This commit fixes two bugs related to tap devices. The first bug occurs when executing in testpmd the following flow rule assuming tap device has 4 rx and tx pair queues "flow create 0 ingress pattern eth / end actions queue index 5 / end" This command will report on success and will print ""Flow r

Re: [dpdk-dev] vf init issue with patch igb_uio: issue FLR during open and release of device file

2017-09-16 Thread Gregory Etelson
Hello Qiming, Did you try to remove PCI reset at igbuio_pci_open ? Reverting the patch entirely will get us back to VF issues Regards, Gregory On Friday, 15 September 2017 11:04:16 IDT Yang, Qiming wrote: > Hi, Thomas > We meet a urgent issue because of Shijith's patch. > When use DPDK versio

[dpdk-dev] [PATCH v4 0/3] ethdev new offloads API

2017-09-16 Thread Shahaf Shuler
Tx offloads configuration is per queue. Tx offloads are enabled by default, and can be disabled using ETH_TXQ_FLAGS_NO* flags. This behaviour is not consistent with the Rx side where the Rx offloads configuration is per port. Rx offloads are disabled by default and enabled according to bit field

[dpdk-dev] [PATCH v4 1/3] ethdev: introduce Rx queue offloads API

2017-09-16 Thread Shahaf Shuler
Introduce a new API to configure Rx offloads. In the new API, offloads are divided into per-port and per-queue offloads. The PMD reports capability for each of them. Offloads are enabled using the existing DEV_RX_OFFLOAD_* flags. To enable per-port offload, the offload should be set on both device

[dpdk-dev] [PATCH v4 2/3] ethdev: introduce Tx queue offloads API

2017-09-16 Thread Shahaf Shuler
Introduce a new API to configure Tx offloads. In the new API, offloads are divided into per-port and per-queue offloads. The PMD reports capability for each of them. Offloads are enabled using the existing DEV_TX_OFFLOAD_* flags. To enable per-port offload, the offload should be set on both device

[dpdk-dev] [PATCH v4 3/3] doc: add details on ethdev offloads API

2017-09-16 Thread Shahaf Shuler
Add the programmers guide details on the new offloads API introduced by commits: commit f649472cad9d ("ethdev: introduce Rx queue offloads API") commit ecb46b66cda5 ("ethdev: introduce Tx queue offloads API") Signed-off-by: Shahaf Shuler --- doc/guides/prog_guide/poll_mode_drv.rst | 17