[dpdk-dev] [PATCH 08/10 v4] event/dpaa: add eth rx adapter queue config support

2018-01-16 Thread Nipun Gupta
From: Sunil Kumar Kori Signed-off-by: Sunil Kumar Kori Acked-by: Hemant Agrawal --- drivers/event/dpaa/dpaa_eventdev.c | 117 + 1 file changed, 117 insertions(+) diff --git a/drivers/event/dpaa/dpaa_eventdev.c b/drivers/event/dpaa/dpaa_eventdev.c index cb6

[dpdk-dev] [PATCH 09/10 v4] event/dpaa: add eventdev enqueue/dequeue support

2018-01-16 Thread Nipun Gupta
From: Sunil Kumar Kori Signed-off-by: Sunil Kumar Kori Acked-by: Hemant Agrawal --- drivers/event/dpaa/dpaa_eventdev.c | 114 + 1 file changed, 114 insertions(+) diff --git a/drivers/event/dpaa/dpaa_eventdev.c b/drivers/event/dpaa/dpaa_eventdev.c index 054

[dpdk-dev] [PATCH 10/10 v4] doc: add DPAA eventdev guide

2018-01-16 Thread Nipun Gupta
From: Sunil Kumar Kori Signed-off-by: Sunil Kumar Kori Acked-by: Hemant Agrawal --- MAINTAINERS| 1 + doc/guides/eventdevs/dpaa.rst | 140 + doc/guides/eventdevs/index.rst | 1 + 3 files changed, 142 insertions(+) create mode 10

Re: [dpdk-dev] [PATCH 12/12 v3] doc: add DPAA eventdev guide

2018-01-16 Thread Nipun Gupta
Yes done :) > -Original Message- > From: Kovacevic, Marko [mailto:marko.kovace...@intel.com] > Sent: Tuesday, January 16, 2018 21:03 > To: Nipun Gupta ; jerin.ja...@caviumnetworks.com; > dev@dpdk.org > Cc: Sunil Kumar Kori ; Hemant Agrawal > > Subject: RE: [dpdk-d

Re: [dpdk-dev] [PATCH 1/6 v2] event/dpaa2: replace static with dynamic logging

2018-01-16 Thread Nipun Gupta
> -Original Message- > From: Hemant Agrawal [mailto:hemant.agra...@nxp.com] > Sent: Friday, January 12, 2018 20:59 > To: Nipun Gupta ; jerin.ja...@caviumnetworks.com > Cc: dev@dpdk.org > Subject: Re: [PATCH 1/6 v2] event/dpaa2: replace static with dynamic logging > > On

[dpdk-dev] [PATCH 0/6 v3] support atomic queues in dpaa2 ethernet with eventdev

2018-01-16 Thread Nipun Gupta
ld_bufs with dpaa2_held_bufs Nipun Gupta (6): event/dpaa2: replace static with dynamic logging bus/fslmc: introduce API to consume dqrr using index event/dpaa2: use dqrr index to cosume the DQRR entry event/dpaa2: have separate structure to hold dqrr entries bus/fslmc: add flag to configure

[dpdk-dev] [PATCH 1/6 v3] event/dpaa2: replace static with dynamic logging

2018-01-16 Thread Nipun Gupta
Signed-off-by: Nipun Gupta Acked-by: Hemant Agrawal --- drivers/event/dpaa2/dpaa2_eventdev.c | 83 --- drivers/event/dpaa2/dpaa2_eventdev.h | 12 - drivers/event/dpaa2/dpaa2_eventdev_logs.h | 37 ++ drivers/event/dpaa2/dpaa2_hw_dpcon.c

[dpdk-dev] [PATCH 3/6 v3] event/dpaa2: use dqrr index to cosume the DQRR entry

2018-01-16 Thread Nipun Gupta
Signed-off-by: Nipun Gupta Acked-by: Hemant Agrawal --- drivers/event/dpaa2/dpaa2_eventdev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/event/dpaa2/dpaa2_eventdev.c b/drivers/event/dpaa2/dpaa2_eventdev.c index 542bccc..65c2c7a 100644 --- a/drivers/event/dpaa2

[dpdk-dev] [PATCH 4/6 v3] event/dpaa2: have separate structure to hold dqrr entries

2018-01-16 Thread Nipun Gupta
This patch provides cleaner approach to store the DQRR entries, which are yet to be consumed in case of atomic queues. Also, this patch changes the storage of the DQRR entry index into the mbuf->seqn instead of ev->opaque Signed-off-by: Nipun Gupta Acked-by: Hemant Agrawal --- drive

[dpdk-dev] [PATCH 5/6 v3] bus/fslmc: add flag to configure DCA in QBMAN multi Tx

2018-01-16 Thread Nipun Gupta
performance impact. This patch introduces a flag parameter in the QBMAN multi-tx API, so that DCA configuration (and later on ORP/ODP for ordered queues) can be passed using flags and be updated in the EQCR using this flag. Signed-off-by: Nipun Gupta Acked-by: Hemant Agrawal --- drivers/bus/fslmc/qbman

[dpdk-dev] [PATCH 6/6 v3] net/dpaa2: support atomic queues

2018-01-16 Thread Nipun Gupta
Signed-off-by: Nipun Gupta Acked-by: Hemant Agrawal --- drivers/net/dpaa2/Makefile | 1 + drivers/net/dpaa2/dpaa2_ethdev.c | 7 +++ drivers/net/dpaa2/dpaa2_ethdev.h | 5 + drivers/net/dpaa2/dpaa2_rxtx.c | 43 +--- 4 files changed, 53

[dpdk-dev] [PATCH 2/6 v3] bus/fslmc: introduce API to consume dqrr using index

2018-01-16 Thread Nipun Gupta
A new API qbman_swp_dqrr_idx_consume is defined which takes input as DQRR index to consume corresponding DQRR entry. Signed-off-by: Nipun Gupta Acked-by: Hemant Agrawal --- drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h | 7 +++ drivers/bus/fslmc/qbman/qbman_portal.c | 7

[dpdk-dev] [PATCH 4/7] bus/dpaa: fix port order shuffling

2018-01-22 Thread Nipun Gupta
From: Shreyansh Jain While scanning for devices, the order in which devices appear is different as compared to MAC sequence. This can cause confusion for users and automated scripts. This patch create a sorted list of devices. Fixes: 919eeaccb2ba ("bus/dpaa: introduce NXP DPAA bus driver skeleto

[dpdk-dev] [PATCH 3/7] mempool/dpaa: fix the phy to virt optimization

2018-01-22 Thread Nipun Gupta
From: Hemant Agrawal Fixes: 83a4f267f2e3 ("mempool/dpaa: optimize phy to virt conversion") Cc: sta...@dpdk.org Signed-off-by: Hemant Agrawal --- drivers/mempool/dpaa/dpaa_mempool.c | 9 - drivers/mempool/dpaa/dpaa_mempool.h | 4 ++-- 2 files changed, 6 insertions(+), 7 deletions(-) di

[dpdk-dev] [PATCH 2/7] bus/dpaa: allocate qman portals in thread safe manner

2018-01-22 Thread Nipun Gupta
Fixes: 9d32ef0f5d61 ("bus/dpaa: support creating dynamic HW portal") Cc: sta...@dpdk.org Signed-off-by: Nipun Gupta --- drivers/bus/dpaa/base/qbman/qman.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/bus/dpaa/base/qbman/qman.c b/drivers/bus

[dpdk-dev] [PATCH 6/7] bus/dpaa: check portal presence in the caller API

2018-01-22 Thread Nipun Gupta
In the I/O path we were calling rte_dpaa_portal_init which internally checks if a portal is affined to the core. But this lead to calling of that non-static API in every call. Instead check the portal affinity in the caller itself for performance reasons Signed-off-by: Nipun Gupta --- drivers

[dpdk-dev] [PATCH 0/7] dpaa: fixes and performance improvement changes

2018-01-22 Thread Nipun Gupta
Patch 1-4 - Fixes some of the issues in the DPAA bus Patch 5-7 - Performance enhancement changes on DPAA platform Hemant Agrawal (2): mempool/dpaa: fix the phy to virt optimization net/dpaa: use phy to virt optimizations Nipun Gupta (4): bus/dpaa: check flag in qman multi enqueue bus

[dpdk-dev] [PATCH 1/7] bus/dpaa: check flag in qman multi enqueue

2018-01-22 Thread Nipun Gupta
A caller may/may not pass the flags in qman enqueue multi API. This patch adds a check on that flag and only accesses it if passed by the caller. Fixes: 43797e7b4774 ("bus/dpaa: support event dequeue and consumption") Cc: sta...@dpdk.org Signed-off-by: Nipun Gupta --- drivers/bus

[dpdk-dev] [PATCH 7/7] net/dpaa: further push mode optimizations

2018-01-22 Thread Nipun Gupta
This patch supports batch processing of multiple packets in the Rx side Signed-off-by: Nipun Gupta Signed-off-by: Hemant Agrawal --- drivers/bus/dpaa/base/qbman/qman.c | 89 ++--- drivers/bus/dpaa/include/fsl_qman.h | 10 + drivers/net/dpaa/dpaa_ethdev.c

[dpdk-dev] [PATCH 5/7] net/dpaa: use phy to virt optimizations

2018-01-22 Thread Nipun Gupta
From: Hemant Agrawal Use the optimized routine for phy to virt conversion, when the mempool is allocated from physical contiguous memory. Signed-off-by: Hemant Agrawal --- drivers/net/dpaa/dpaa_rxtx.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers/ne

[dpdk-dev] [PATCH 2/7 v2] bus/dpaa: allocate qman portals in thread safe manner

2018-01-23 Thread Nipun Gupta
Fixes: 9d32ef0f5d61 ("bus/dpaa: support creating dynamic HW portal") Cc: sta...@dpdk.org Signed-off-by: Nipun Gupta --- drivers/bus/dpaa/base/qbman/qman.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/bus/dpaa/base/qbman/qman.c b/drivers/bus

[dpdk-dev] [PATCH 1/7 v2] bus/dpaa: check flag in qman multi enqueue

2018-01-23 Thread Nipun Gupta
A caller may/may not pass the flags in qman enqueue multi API. This patch adds a check on that flag and only accesses it if passed by the caller. Fixes: 43797e7b4774 ("bus/dpaa: support event dequeue and consumption") Cc: sta...@dpdk.org Signed-off-by: Nipun Gupta --- drivers/bus

[dpdk-dev] [PATCH 0/7 v2] dpaa: fixes and performance improvement changes

2018-01-23 Thread Nipun Gupta
Patch 1-4 - Fixes some of the issues in the DPAA bus Patch 5-7 - Performance enhancement changes on DPAA platform Hemant Agrawal (2): mempool/dpaa: fix the phy to virt optimization net/dpaa: use phy to virt optimizations Nipun Gupta (4): bus/dpaa: check flag in qman multi enqueue bus

[dpdk-dev] [PATCH 6/7 v2] bus/dpaa: check portal presence in the caller API

2018-01-23 Thread Nipun Gupta
In the I/O path we were calling rte_dpaa_portal_init which internally checks if a portal is affined to the core. But this lead to calling of that non-static API in every call. Instead check the portal affinity in the caller itself for performance reasons Signed-off-by: Nipun Gupta --- drivers

[dpdk-dev] [PATCH 4/7 v2] bus/dpaa: fix port order shuffling

2018-01-23 Thread Nipun Gupta
From: Shreyansh Jain While scanning for devices, the order in which devices appear is different as compared to MAC sequence. This can cause confusion for users and automated scripts. This patch create a sorted list of devices. Fixes: 919eeaccb2ba ("bus/dpaa: introduce NXP DPAA bus driver skeleto

[dpdk-dev] [PATCH 5/7 v2] net/dpaa: use phy to virt optimizations

2018-01-23 Thread Nipun Gupta
From: Hemant Agrawal Use the optimized routine for phy to virt conversion, when the mempool is allocated from physical contiguous memory. Signed-off-by: Hemant Agrawal --- drivers/net/dpaa/dpaa_rxtx.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers/ne

[dpdk-dev] [PATCH 7/7 v2] net/dpaa: further push mode optimizations

2018-01-23 Thread Nipun Gupta
This patch supports batch processing of multiple packets in the Rx side Signed-off-by: Nipun Gupta Signed-off-by: Hemant Agrawal --- drivers/bus/dpaa/base/qbman/qman.c | 89 ++--- drivers/bus/dpaa/include/fsl_qman.h | 10 + drivers/net/dpaa/dpaa_ethdev.c

[dpdk-dev] [PATCH 3/7 v2] mempool/dpaa: fix the phy to virt optimization

2018-01-23 Thread Nipun Gupta
From: Hemant Agrawal Fixes: 83a4f267f2e3 ("mempool/dpaa: optimize phy to virt conversion") Cc: sta...@dpdk.org Signed-off-by: Hemant Agrawal --- drivers/mempool/dpaa/dpaa_mempool.c | 9 - drivers/mempool/dpaa/dpaa_mempool.h | 4 ++-- 2 files changed, 6 insertions(+), 7 deletions(-) di

[dpdk-dev] [PATCH 3/3] net/dpaa2: prefetch the annotation in event processing

2018-01-23 Thread Nipun Gupta
This patch adds software prefetching of the annotation which is accessed by the driver to fetch the parsing results. The changes also include as many instructions in between prefetching memory and using it. Signed-off-by: Nipun Gupta --- drivers/net/dpaa2/dpaa2_rxtx.c | 24

[dpdk-dev] [PATCH 1/3] bus/fslmc: create function to prefetch next DQRR entry

2018-01-23 Thread Nipun Gupta
Signed-off-by: Nipun Gupta --- drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h | 6 ++ drivers/bus/fslmc/qbman/qbman_portal.c | 11 +++ drivers/bus/fslmc/rte_bus_fslmc_version.map| 1 + 3 files changed, 18 insertions(+) diff --git a/drivers/bus/fslmc/qbman

[dpdk-dev] [PATCH 2/3] event/dpaa2: prefetch the next DQRR entry

2018-01-23 Thread Nipun Gupta
Signed-off-by: Nipun Gupta --- drivers/event/dpaa2/dpaa2_eventdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/event/dpaa2/dpaa2_eventdev.c b/drivers/event/dpaa2/dpaa2_eventdev.c index 84ecd1b..c3e6fbf 100644 --- a/drivers/event/dpaa2/dpaa2_eventdev.c +++ b

Re: [dpdk-dev] [RESEND v2 4/7] event/dpaa2: change to dynamic logging

2018-03-13 Thread Nipun Gupta
> -Original Message- > From: Shreyansh Jain > Sent: Tuesday, March 13, 2018 11:14 > To: ferruh.yi...@intel.com > Cc: dev@dpdk.org; Hemant Agrawal ; Nipun Gupta > ; Akhil Goyal ; Shreyansh Jain > > Subject: [RESEND v2 4/7] event/dpaa2: change to dynamic loggi

Re: [dpdk-dev] [PATCH v3 2/4] eventdev: Add eth Rx adapter caps callback to SW evdev

2017-09-13 Thread Nipun Gupta
om; Hemant Agrawal ; > Nipun Gupta ; narender.vang...@intel.com; > erik.g.carri...@intel.com; abhinandan.guj...@intel.com; Nikhil Rao > > Subject: [PATCH v3 2/4] eventdev: Add eth Rx adapter caps callback to SW evdev > > The SW event device always uses a EAL service function for pack

Re: [dpdk-dev] [PATCH v3 2/4] eventdev: Add eth Rx adapter caps callback to SW evdev

2017-09-13 Thread Nipun Gupta
> -Original Message- > From: Rao, Nikhil [mailto:nikhil@intel.com] > Sent: Thursday, September 14, 2017 8:34 > To: Nipun Gupta ; jerin.ja...@caviumnetworks.com; > bruce.richard...@intel.com > Cc: gage.e...@intel.com; dev@dpdk.org; tho...@monjalon.net; > harry

Re: [dpdk-dev] [PATCH 3/4] eventdev: Add eventdev ethernet Rx adapter

2017-09-14 Thread Nipun Gupta
om; Hemant Agrawal ; > Nipun Gupta ; narender.vang...@intel.com; > erik.g.carri...@intel.com; abhinandan.guj...@intel.com > Subject: [PATCH 3/4] eventdev: Add eventdev ethernet Rx adapter > > Add common APIs for configuring packet transfer from ethernet Rx > queues to event de

Re: [dpdk-dev] [PATCH v4 0/4] eventdev: add attribute based get APIs

2017-09-14 Thread Nipun Gupta
14 ++- > test/test/test_eventdev.c| 132 +++-- > test/test/test_eventdev_octeontx.c | 143 > --- > 5 files changed, 345 insertions(+), 156 deletions(-) > > -- > 2.7.4 Changes look good. Series Acked-by: Nipun Gupta

Re: [dpdk-dev] [PATCH v5 0/7] eventdev: cover letter: eth Rx adapter

2017-10-09 Thread Nipun Gupta
> -Original Message- > From: Jerin Jacob [mailto:jerin.ja...@caviumnetworks.com] > Sent: Monday, October 09, 2017 18:13 > To: Nikhil Rao > Cc: bruce.richard...@intel.com; dev@dpdk.org; Hemant Agrawal > ; Nipun Gupta > Subject: Re: [PATCH v5 0/7] eventdev: cover l

[dpdk-dev] [PATCH 2/4] net/dpaa2: add API's to support event eth adapter

2017-10-10 Thread Nipun Gupta
Signed-off-by: Nipun Gupta --- drivers/net/dpaa2/dpaa2_ethdev.c| 67 + drivers/net/dpaa2/dpaa2_ethdev.h| 15 +++ drivers/net/dpaa2/dpaa2_rxtx.c | 20 + drivers/net/dpaa2/rte_pmd_dpaa2_version.map | 7 +++ 4 files

[dpdk-dev] [PATCH 1/4] drivers: add queue parameter in event processing callback

2017-10-10 Thread Nipun Gupta
For event dequeues for ethernet queues, a dpaa2_queue structure is required to get the configuration for that ethernet queue. Based on this configuration the rte_event is to be filled at the ingress side. Signed-off-by: Nipun Gupta --- These patches are based on the below patch series: http

[dpdk-dev] [PATCH 4/4] event/dpaa2: improve the err handling and log msg

2017-10-10 Thread Nipun Gupta
Signed-off-by: Hemant Agrawal --- drivers/event/dpaa2/dpaa2_eventdev.c | 9 + drivers/event/dpaa2/dpaa2_hw_dpcon.c | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/event/dpaa2/dpaa2_eventdev.c b/drivers/event/dpaa2/dpaa2_eventdev.c index ca782c3..7cb5d43 100

[dpdk-dev] [PATCH 3/4] event/dpaa2: support event eth adapter

2017-10-10 Thread Nipun Gupta
Signed-off-by: Nipun Gupta --- drivers/event/Makefile | 4 +- drivers/event/dpaa2/Makefile | 2 + drivers/event/dpaa2/dpaa2_eventdev.c | 96 +++- drivers/event/dpaa2/dpaa2_eventdev.h | 8 +++ 4 files changed, 107 insertions(+), 3 deletions

Re: [dpdk-dev] [PATCH 3/4] event/dpaa2: support event eth adapter

2017-10-11 Thread Nipun Gupta
> -Original Message- > From: Rao, Nikhil [mailto:nikhil@intel.com] > Sent: Wednesday, October 11, 2017 9:15 > To: Nipun Gupta ; dev@dpdk.org > Cc: Hemant Agrawal ; > jerin.ja...@caviumnetworks.com > Subject: Re: [PATCH 3/4] event/dpaa2: support event eth adapter

Re: [dpdk-dev] [PATCH 3/4] event/dpaa2: support event eth adapter

2017-10-11 Thread Nipun Gupta
> -Original Message- > From: Rao, Nikhil [mailto:nikhil@intel.com] > Sent: Wednesday, October 11, 2017 9:40 > To: Nipun Gupta ; dev@dpdk.org > Cc: Hemant Agrawal ; > jerin.ja...@caviumnetworks.com > Subject: Re: [PATCH 3/4] event/dpaa2: support event eth adapter

[dpdk-dev] [PATCH v2 1/4] drivers: add queue parameter in event processing callback

2017-10-12 Thread Nipun Gupta
For event dequeues for ethernet queues, a dpaa2_queue structure is required to get the configuration for that ethernet queue. Based on this configuration the rte_event is to be filled at the ingress side. Signed-off-by: Nipun Gupta --- drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 4 drivers

[dpdk-dev] [PATCH v2 2/4] net/dpaa2: add API's to support event eth adapter

2017-10-12 Thread Nipun Gupta
Signed-off-by: Nipun Gupta --- drivers/net/dpaa2/dpaa2_ethdev.c| 67 + drivers/net/dpaa2/dpaa2_ethdev.h| 15 +++ drivers/net/dpaa2/dpaa2_rxtx.c | 20 + drivers/net/dpaa2/rte_pmd_dpaa2_version.map | 7 +++ 4 files

[dpdk-dev] [PATCH v2 3/4] event/dpaa2: support event eth adapter

2017-10-12 Thread Nipun Gupta
Signed-off-by: Nipun Gupta --- drivers/event/Makefile | 4 +- drivers/event/dpaa2/Makefile | 2 + drivers/event/dpaa2/dpaa2_eventdev.c | 151 ++- drivers/event/dpaa2/dpaa2_eventdev.h | 8 ++ 4 files changed, 162 insertions(+), 3

[dpdk-dev] [PATCH v2 4/4] event/dpaa2: improve the err handling and log msg

2017-10-12 Thread Nipun Gupta
Signed-off-by: Nipun Gupta --- drivers/event/dpaa2/dpaa2_eventdev.c | 9 + drivers/event/dpaa2/dpaa2_hw_dpcon.c | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/event/dpaa2/dpaa2_eventdev.c b/drivers/event/dpaa2/dpaa2_eventdev.c index ee3a164..d1be5de

[dpdk-dev] [PATCH v3 1/4] drivers: add queue parameter in event processing callback

2017-10-16 Thread Nipun Gupta
For event dequeues for ethernet queues, a dpaa2_queue structure is required to get the configuration for that ethernet queue. Based on this configuration the rte_event is to be filled at the ingress side. Signed-off-by: Nipun Gupta Acked-by: Hemant Agrawal --- This patch series is based over

[dpdk-dev] [PATCH v3 2/4] net/dpaa2: add API's to support event eth adapter

2017-10-16 Thread Nipun Gupta
Signed-off-by: Nipun Gupta --- Changes in v3: Check the queue schedule type before configuring MC (Hemant) drivers/net/dpaa2/dpaa2_ethdev.c| 62 + drivers/net/dpaa2/dpaa2_ethdev.h| 15 +++ drivers/net/dpaa2/dpaa2_rxtx.c | 20

[dpdk-dev] [PATCH v3 3/4] event/dpaa2: support event eth adapter

2017-10-16 Thread Nipun Gupta
Signed-off-by: Nipun Gupta Reviewed-by: Nikhil Rao Acked-by: Hemant Agrawal --- Changes in v3: Fix shared library build Changes in v2: Support rx_queue_id = -1 in eth adapter queue and and del (Nikhil) Remove duplicate returns (Nikhil) drivers/Makefile | 2

[dpdk-dev] [PATCH v3 4/4] event/dpaa2: improve the err handling and log msg

2017-10-16 Thread Nipun Gupta
Signed-off-by: Nipun Gupta Acked-by: Hemant Agrawal --- drivers/event/dpaa2/dpaa2_eventdev.c | 9 + drivers/event/dpaa2/dpaa2_hw_dpcon.c | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/event/dpaa2/dpaa2_eventdev.c b/drivers/event/dpaa2/dpaa2_eventdev.c

[dpdk-dev] [PATCH v4 1/5] drivers: add queue parameter in event processing callback

2017-10-17 Thread Nipun Gupta
For event dequeues for ethernet queues, a dpaa2_queue structure is required to get the configuration for that ethernet queue. Based on this configuration the rte_event is to be filled at the ingress side. Signed-off-by: Nipun Gupta Acked-by: Hemant Agrawal --- This patch series is based over

[dpdk-dev] [PATCH v4 3/5] drivers: add net as dependency for event drivers

2017-10-17 Thread Nipun Gupta
Signed-off-by: Nipun Gupta --- Changes in v4: This change is separated from patch-3/4 from v3 of this patchset (Jerin) drivers/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/Makefile b/drivers/Makefile index 0467250..db0cd76 100644 --- a/drivers

[dpdk-dev] [PATCH v4 2/5] net/dpaa2: add API's to support event eth adapter

2017-10-17 Thread Nipun Gupta
Signed-off-by: Nipun Gupta --- Changes in v3: Check the queue schedule type before configuring MC (Hemant) drivers/net/dpaa2/dpaa2_ethdev.c| 62 + drivers/net/dpaa2/dpaa2_ethdev.h| 15 +++ drivers/net/dpaa2/dpaa2_rxtx.c | 20

[dpdk-dev] [PATCH v4 4/5] event/dpaa2: support event eth adapter

2017-10-17 Thread Nipun Gupta
Signed-off-by: Nipun Gupta Reviewed-by: Nikhil Rao Acked-by: Hemant Agrawal --- Changes in v4: Move driver/Makefile changes in separate patch (Jerin) Changes in v3: Fix shared library build Changes in v2: Support rx_queue_id = -1 in eth adapter queue and and del (Nikhil) Remove

[dpdk-dev] [PATCH v4 5/5] event/dpaa2: improve the err handling and log msg

2017-10-17 Thread Nipun Gupta
Signed-off-by: Nipun Gupta Acked-by: Hemant Agrawal --- drivers/event/dpaa2/dpaa2_eventdev.c | 9 + drivers/event/dpaa2/dpaa2_hw_dpcon.c | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/event/dpaa2/dpaa2_eventdev.c b/drivers/event/dpaa2/dpaa2_eventdev.c

Re: [dpdk-dev] [PATCH v3 3/4] event/dpaa2: support event eth adapter

2017-10-17 Thread Nipun Gupta
> -Original Message- > From: Jerin Jacob [mailto:jerin.ja...@caviumnetworks.com] > Sent: Tuesday, October 17, 2017 10:31 > To: Nipun Gupta > Cc: dev@dpdk.org; Hemant Agrawal ; > nikhil@intel.com > Subject: Re: [PATCH v3 3/4] event/dpaa2: support event eth adapt

[dpdk-dev] [PATCH v5 3/5] drivers: add net as dependency for event drivers

2017-10-22 Thread Nipun Gupta
With the introduction of eventdev-ethdev RX adapter support in event device, some of the event device will have dependency on their respective ethernet drivers. This patch adds the net as a dependency for eventdevs. Signed-off-by: Nipun Gupta --- Changes in v5: Added get commit message (Jerin

[dpdk-dev] [PATCH v5 2/5] net/dpaa2: add API's to support event eth adapter

2017-10-22 Thread Nipun Gupta
Signed-off-by: Nipun Gupta Acked-by: Hemant Agrawal --- Changes in v3: Check the queue schedule type before configuring MC (Hemant) drivers/net/dpaa2/dpaa2_ethdev.c| 62 + drivers/net/dpaa2/dpaa2_ethdev.h| 15 +++ drivers/net/dpaa2

[dpdk-dev] [PATCH v5 1/5] drivers: add queue parameter in event processing callback

2017-10-22 Thread Nipun Gupta
For event dequeues for ethernet queues, a dpaa2_queue structure is required to get the configuration for that ethernet queue. Based on this configuration the rte_event is to be filled at the ingress side. Signed-off-by: Nipun Gupta Acked-by: Hemant Agrawal --- This patch series is based over

[dpdk-dev] [PATCH v5 4/5] event/dpaa2: support event eth adapter

2017-10-22 Thread Nipun Gupta
Signed-off-by: Nipun Gupta Reviewed-by: Nikhil Rao Acked-by: Hemant Agrawal --- Changes in v4: Move driver/Makefile changes in separate patch (Jerin) Changes in v3: Fix shared library build Changes in v2: Support rx_queue_id = -1 in eth adapter queue and and del (Nikhil) Remove

[dpdk-dev] [PATCH v5 5/5] event/dpaa2: improve the err handling and log msg

2017-10-22 Thread Nipun Gupta
Signed-off-by: Nipun Gupta Acked-by: Hemant Agrawal --- drivers/event/dpaa2/dpaa2_eventdev.c | 9 + drivers/event/dpaa2/dpaa2_hw_dpcon.c | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/event/dpaa2/dpaa2_eventdev.c b/drivers/event/dpaa2/dpaa2_eventdev.c

Re: [dpdk-dev] [PATCH] doc: update release note for DPAA2 Event PMD

2017-10-26 Thread Nipun Gupta
MD > > Signed-off-by: Shreyansh Jain Acked by: Nipun Gupta

[dpdk-dev] [PATCH 1/4] bus/fslmc: fix registering dpaa2 mempool ops

2018-02-04 Thread Nipun Gupta
Fixes: 8824b74d8f5f ("bus/fslmc: register platform HW mempool on runtime") Signed-off-by: Nipun Gupta --- Though I have sent these patches yesterday, but they did not reach out. If by any chance they have entered your mailbox before please ignore the older patches. drivers/bus/fs

[dpdk-dev] [PATCH 4/4] event/dpaa: fix portal allocation

2018-02-04 Thread Nipun Gupta
Checking if portal has been allocated is now required at the caller of rte_dpaa_portal_init() API. This patch adds check in the dpaa eventdev driver. Fixes: 5d944582d028 ("bus/dpaa: check portal presence in the caller function") Signed-off-by: Nipun Gupta --- drivers/event/dpaa/dpaa_

[dpdk-dev] [PATCH 2/4] bus/dpaa: fix registering dpaa mempool ops

2018-02-04 Thread Nipun Gupta
Fixes: 2bd0d5b951a9 ("bus/dpaa: register platform HW mempool on runtime") Signed-off-by: Nipun Gupta --- drivers/bus/dpaa/dpaa_bus.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/bus/dpaa/dpaa_bus.c b/drivers/bus/dpaa/dpaa_bus.c index 1946bbe..290b

[dpdk-dev] [PATCH 3/4] event/dpaa: rename dpaa vdev with dpaa1

2018-02-04 Thread Nipun Gupta
DPAA2 eventdev is named as event_dpaa2 which conflicts with event_dpaa when both are compiled in together. So event_dpaa is required to renamed. Fixes: 1ee9569576f6 ("config: enable dpaaX drivers for generic ARMv8") Signed-off-by: Nipun Gupta --- doc/guides/eventdevs/dpaa.rs

[dpdk-dev] [PATCH] test: use the best mempool ops API to get mbuf pool

2018-02-04 Thread Nipun Gupta
From: Hemant Agrawal This patch replaces the uses of default mempool ops API with newly supported best_mempool_ops API. Signed-off-by: Hemant Agrawal --- test/test/test_mempool.c | 3 ++- test/test/test_mempool_perf.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a

[dpdk-dev] [PATCH 1/9] mempool/dpaa2: add functions exposed to DPDK applications

2018-02-22 Thread Nipun Gupta
There are two API's which are required by NXP specific Command Interface Application (AIOP CMDIF). This patch exposes these two API's. Signed-off-by: Nipun Gupta --- doc/api/doxy-api-index.md | 1 + doc/api/doxy-api.conf | 1

[dpdk-dev] [PATCH 2/9] bus/fslmc: expose API to free dpci device

2018-02-22 Thread Nipun Gupta
Signed-off-by: Nipun Gupta --- drivers/bus/fslmc/rte_bus_fslmc_version.map | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/bus/fslmc/rte_bus_fslmc_version.map b/drivers/bus/fslmc/rte_bus_fslmc_version.map index b7db074..c02b9c6 100644 --- a/drivers/bus/fslmc

[dpdk-dev] [PATCH 3/9] bus/fslmc: keep Tx queues information for DPCI devices too

2018-02-22 Thread Nipun Gupta
The DPCI devices have oth Tx and Rx queues. Event devices use DPCI Rx queues only, but CMDIF (AIOP) uses both Tx and Rx queues. This patch enables Tx queues configuration too. Signed-off-by: Nipun Gupta --- drivers/bus/fslmc/portal/dpaa2_hw_dpci.c | 57 ++-- drivers

[dpdk-dev] [PATCH 5/9] raw/dpaa2_cmdif: introduce DPAA2 command interface driver

2018-02-22 Thread Nipun Gupta
Signed-off-by: Nipun Gupta --- MAINTAINERS| 6 + config/common_armv8a_linuxapp | 5 + config/common_base | 5 + config/defconfig_arm64-dpaa2-linuxapp-gcc | 6 + drivers/raw/Makefile

[dpdk-dev] [PATCH 4/9] bus/fslmc: add preprocessors to get flc and frc from fd

2018-02-22 Thread Nipun Gupta
This patch also fixes the typecasting in iova/virt conversion macros Fixes: df0011c92312 ("bus/fslmc: add physical-virtual address translation helpers") Cc: sta...@dpdk.org Signed-off-by: Nipun Gupta --- drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 9 ++--- 1 file changed, 6 insert

[dpdk-dev] [PATCH 6/9] raw/dpaa2_cmdif: add attribute get functionality

2018-02-22 Thread Nipun Gupta
Signed-off-by: Nipun Gupta --- drivers/raw/dpaa2_cmdif/dpaa2_cmdif.c | 25 + 1 file changed, 25 insertions(+) diff --git a/drivers/raw/dpaa2_cmdif/dpaa2_cmdif.c b/drivers/raw/dpaa2_cmdif/dpaa2_cmdif.c index 0d98d36..9044489 100644 --- a/drivers/raw/dpaa2_cmdif

[dpdk-dev] [PATCH 8/9] doc: add DPAA2 CMDIF rawdev guide

2018-02-22 Thread Nipun Gupta
Signed-off-by: Nipun Gupta --- MAINTAINERS| 1 + doc/guides/rawdevs/dpaa2_cmdif.rst | 136 + 2 files changed, 137 insertions(+) create mode 100644 doc/guides/rawdevs/dpaa2_cmdif.rst diff --git a/MAINTAINERS b/MAINTAINERS index

[dpdk-dev] [PATCH 7/9] raw/dpaa2_cmdif: support enqueue dequeue operations

2018-02-22 Thread Nipun Gupta
Signed-off-by: Nipun Gupta --- doc/api/doxy-api-index.md | 1 + doc/api/doxy-api.conf | 1 + drivers/raw/dpaa2_cmdif/Makefile | 2 + drivers/raw/dpaa2_cmdif/dpaa2_cmdif.c | 146 ++ drivers/raw

[dpdk-dev] [PATCH 9/9] doc: add dpaa2 command interface rawdev to release notes

2018-02-22 Thread Nipun Gupta
Signed-off-by: Nipun Gupta --- doc/guides/rel_notes/release_18_05.rst | 7 +++ 1 file changed, 7 insertions(+) diff --git a/doc/guides/rel_notes/release_18_05.rst b/doc/guides/rel_notes/release_18_05.rst index 3923dc2..db403eb 100644 --- a/doc/guides/rel_notes/release_18_05.rst +++ b/doc

[dpdk-dev] [PATCH 0/9] Introduce DPAA2 Command Interface raw driver

2018-02-22 Thread Nipun Gupta
the respective documentation Nipun Gupta (9): mempool/dpaa2: add functions exposed to DPDK applications bus/fslmc: expose API to free dpci device bus/fslmc: keep Tx queues information for DPCI devices too bus/fslmc: add preprocessors to get flc and frc from fd raw/dpaa2_cmdif: introduce

Re: [dpdk-dev] [PATCH 5/9] raw/dpaa2_cmdif: introduce DPAA2 command interface driver

2018-02-22 Thread Nipun Gupta
> -Original Message- > From: Shreyansh Jain > Sent: Thursday, February 22, 2018 18:42 > To: Nipun Gupta > Cc: tho...@monjalon.net; Hemant Agrawal ; > dev@dpdk.org > Subject: Re: [PATCH 5/9] raw/dpaa2_cmdif: introduce DPAA2 command > interface driver > &g

Re: [dpdk-dev] [PATCH 5/9] raw/dpaa2_cmdif: introduce DPAA2 command interface driver

2018-02-22 Thread Nipun Gupta
> -Original Message- > From: Jerin Jacob [mailto:jerin.ja...@caviumnetworks.com] > Sent: Thursday, February 22, 2018 20:02 > To: Nipun Gupta > Cc: tho...@monjalon.net; Hemant Agrawal ; > Shreyansh Jain ; dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH 5/9] raw/dpaa2_c

[dpdk-dev] [PATCH] bus/fslmc: change the eqcr stashing threshold to 1

2018-01-03 Thread Nipun Gupta
Changing the EQCR stashing threshold boosts the performance of l3fwd application on LS2088 by more than 20% as it helps in burst packet processing at the Tx side. CPU is immediately informed about the empty EQCR entries once consumed by the hardware. Signed-off-by: Nipun Gupta --- drivers/bus

[dpdk-dev] [PATCH] event/dpaa2: return correct number of event ports

2018-01-03 Thread Nipun Gupta
In the info get API we were returning number of event ports as MAX number of LCORE's. After this change actual number of event ports (i.e. number of DPIO's) is provided in the info get API. Signed-off-by: Nipun Gupta --- This patch is dependent on https://dpdk.org/dev/patchwork/patch

[dpdk-dev] [PATCH 1/6] event/dpaa2: replace static with dynamic logging

2018-01-04 Thread Nipun Gupta
Signed-off-by: Nipun Gupta --- drivers/event/dpaa2/dpaa2_eventdev.c | 83 --- drivers/event/dpaa2/dpaa2_eventdev.h | 12 - drivers/event/dpaa2/dpaa2_eventdev_logs.h | 37 ++ drivers/event/dpaa2/dpaa2_hw_dpcon.c | 1 + 4 files changed

[dpdk-dev] [PATCH 0/6] support atomic queues in dpaa2 ethernet with eventdev

2018-01-04 Thread Nipun Gupta
queues in DPAA2 ethernet driver Nipun Gupta (6): event/dpaa2: replace static with dynamic logging bus/fslmc: introduce API to consume dqrr using index event/dpaa2: use dqrr index to cosume the DQRR entry event/dpaa2: have separate structure to hold dqrr entries bus/fslmc: add flag to

[dpdk-dev] [PATCH 2/6] bus/fslmc: introduce API to consume dqrr using index

2018-01-04 Thread Nipun Gupta
A new API qbman_swp_dqrr_idx_consume is defined which takes input as DQRR index to consume corresponding DQRR entry. Signed-off-by: Nipun Gupta --- drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h | 7 +++ drivers/bus/fslmc/qbman/qbman_portal.c | 7 +++ drivers/bus/fslmc

[dpdk-dev] [PATCH 3/6] event/dpaa2: use dqrr index to cosume the DQRR entry

2018-01-04 Thread Nipun Gupta
Signed-off-by: Nipun Gupta --- drivers/event/dpaa2/dpaa2_eventdev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/event/dpaa2/dpaa2_eventdev.c b/drivers/event/dpaa2/dpaa2_eventdev.c index c6dc5a2..23727f0 100644 --- a/drivers/event/dpaa2/dpaa2_eventdev.c +++ b

[dpdk-dev] [PATCH 4/6] event/dpaa2: have separate structure to hold dqrr entries

2018-01-04 Thread Nipun Gupta
This patch provides cleaner approach to store the DQRR entries, which are yet to be consumed in case of atomic queues. Also, this patch changes the storage of the DQRR entry index into the mbuf->seqn instead of ev->opaque Signed-off-by: Nipun Gupta --- drivers/bus/fslmc/fslmc

[dpdk-dev] [PATCH 5/6] bus/dpaa2: add flag to configure DCA in QBMAN multi Tx

2018-01-04 Thread Nipun Gupta
performance impact. This patch introduces a flag parameter in the QBMAN multi-tx API, so that DCA configuration (and later on ORP/ODP for ordered queues) can be passed using flags and be updated in the EQCR using this flag. Signed-off-by: Nipun Gupta --- drivers/bus/fslmc/qbman/include

[dpdk-dev] [PATCH 5/6] bus/fslmc: add flag to configure DCA in QBMAN multi Tx

2018-01-04 Thread Nipun Gupta
performance impact. This patch introduces a flag parameter in the QBMAN multi-tx API, so that DCA configuration (and later on ORP/ODP for ordered queues) can be passed using flags and be updated in the EQCR using this flag. Signed-off-by: Nipun Gupta --- drivers/bus/fslmc/qbman/include

[dpdk-dev] [PATCH 6/6] net/dpaa2: support atomic queues

2018-01-04 Thread Nipun Gupta
Signed-off-by: Nipun Gupta --- drivers/net/dpaa2/Makefile | 1 + drivers/net/dpaa2/dpaa2_ethdev.c | 7 +++ drivers/net/dpaa2/dpaa2_ethdev.h | 5 + drivers/net/dpaa2/dpaa2_rxtx.c | 43 +--- 4 files changed, 53 insertions(+), 3 deletions

Re: [dpdk-dev] [PATCH 5/6] bus/dpaa2: add flag to configure DCA in QBMAN multi Tx

2018-01-04 Thread Nipun Gupta
Sent this particular patch by mistake. Please ignore. I have rejected this patch in the patchworks. Thanks, Nipun > -Original Message- > From: Nipun Gupta [mailto:nipun.gu...@nxp.com] > Sent: Thursday, January 04, 2018 21:36 > To: jerin.ja...@caviumnetworks.com > Cc: dev@d

Re: [dpdk-dev] [PATCH v2 04/11] examples/l3fwd: add ethdev setup based on eventdev

2019-12-27 Thread Nipun Gupta
> -Original Message- > From: dev On Behalf Of > pbhagavat...@marvell.com > Sent: Wednesday, December 4, 2019 8:14 PM > To: jer...@marvell.com; Marko Kovacevic ; Ori > Kam ; Bruce Richardson > ; Radu Nicolau ; > Akhil Goyal ; Tomasz Kantecki > ; Sunil Kumar Kori ; > Pavan Nikhilesh > Cc

Re: [dpdk-dev] [PATCH v2 04/11] examples/l3fwd: add ethdev setup based on eventdev

2019-12-29 Thread Nipun Gupta
Hi Pavan, > -Original Message- > From: Pavan Nikhilesh Bhagavatula > Sent: Sunday, December 29, 2019 9:12 PM > To: Nipun Gupta ; Jerin Jacob Kollanukkaran > ; Marko Kovacevic ; Ori > Kam ; Bruce Richardson > ; Radu Nicolau ; > Akhil Goyal ; Tomasz Kantecki > ;

Re: [dpdk-dev] [PATCH v2 04/11] examples/l3fwd: add ethdev setup based on eventdev

2020-01-02 Thread Nipun Gupta
> -Original Message- > From: Pavan Nikhilesh Bhagavatula > Sent: Thursday, January 2, 2020 11:52 AM > To: Nipun Gupta ; Jerin Jacob Kollanukkaran > ; Marko Kovacevic ; Ori > Kam ; Bruce Richardson > ; Radu Nicolau ; > Akhil Goyal ; Tomasz Kantecki > ;

Re: [dpdk-dev] [PATCH v2 04/11] examples/l3fwd: add ethdev setup based on eventdev

2020-01-03 Thread Nipun Gupta
> -Original Message- > From: Jerin Jacob > Sent: Thursday, January 2, 2020 3:04 PM > To: Nipun Gupta > Cc: Pavan Nikhilesh Bhagavatula ; Jerin Jacob > Kollanukkaran ; Marko Kovacevic > ; Ori Kam ; Bruce > Richardson ; Radu Nicolau > ; Akhil Goyal ; Tomasz &g

[dpdk-dev] [PATCH 1/2] examples/l3fwd: set default schedule type as atomic

2020-01-05 Thread Nipun Gupta
Signed-off-by: Nipun Gupta --- These patches are based over https://patchwork.dpdk.org/patch/63553/. Feel free to merge into the series. examples/l3fwd/l3fwd_event.h | 4 1 file changed, 4 insertions(+) diff --git a/examples/l3fwd/l3fwd_event.h b/examples/l3fwd/l3fwd_event.h index

[dpdk-dev] [PATCH 2/2] examples/l3fwd: support multiple queues in event mode

2020-01-05 Thread Nipun Gupta
Signed-off-by: Nipun Gupta --- examples/l3fwd/l3fwd_event.c | 55 examples/l3fwd/l3fwd_event.h | 4 +++ examples/l3fwd/main.c| 8 -- 3 files changed, 53 insertions(+), 14 deletions(-) diff --git a/examples/l3fwd/l3fwd_event.c b/examples/l3fwd

Re: [dpdk-dev] [EXT] [PATCH 2/2] examples/l3fwd: support multiple queues in event mode

2020-01-06 Thread Nipun Gupta
> -Original Message- > From: Sunil Kumar Kori > Sent: Monday, January 6, 2020 11:39 AM > To: Nipun Gupta ; dev@dpdk.org > Cc: Pavan Nikhilesh Bhagavatula ; Jerin Jacob > Kollanukkaran ; Hemant Agrawal > ; Akhil Goyal ; > marko.kovace...@intel.com; or...@mella

[dpdk-dev] [PATCH 2/2 v2] examples/l3fwd: support multiple eth Rx queues in event mode

2020-01-07 Thread Nipun Gupta
This patch adds support of multiple Ethernet RX queues for the event dev mode. Signed-off-by: Nipun Gupta --- Changes in v2: - Update command line argument to '--event-eth-rxqs' instead of '--event-eth-queues' - Correctly printed the number of RX queues being crea

[dpdk-dev] [PATCH 1/2 v2] examples/l3fwd: set default schedule type as atomic

2020-01-07 Thread Nipun Gupta
Signed-off-by: Nipun Gupta --- examples/l3fwd/l3fwd_event.h | 4 1 file changed, 4 insertions(+) diff --git a/examples/l3fwd/l3fwd_event.h b/examples/l3fwd/l3fwd_event.h index fcc0ce51a..470aedc61 100644 --- a/examples/l3fwd/l3fwd_event.h +++ b/examples/l3fwd/l3fwd_event.h @@ -100,7

<    2   3   4   5   6   7   8   9   >