Update eventdev application guide to reflect Tx adapter related changes.
Signed-off-by: Pavan Nikhilesh
Acked-by: Jerin Jacob
---
.../eventdev_pipeline_atq_test_generic.svg| 848 +++---
...ntdev_pipeline_atq_test_internal_port.svg} | 26
Convert existing Tx service based pipeline to Tx adapter based APIs and
simplify worker functions.
Signed-off-by: Pavan Nikhilesh
Acked-by: Jerin Jacob
---
app/test-eventdev/test_pipeline_atq.c| 271 ---
app/test-eventdev/test_pipeline_common.c | 200
On Fri, Sep 21, 2018 at 01:14:53PM +0530, Rao, Nikhil wrote:
> On 9/5/2018 7:15 PM, Pavan Nikhilesh wrote:
> > Signed-off-by: Pavan Nikhilesh
> > ---
> > This patch depends on the following series:
> > http://patches.dpdk.org/project/dpdk/list/?series=1121
> >
Redo the worker pipelines and offload transmission to service cores
seamlessly through Tx adapter.
Signed-off-by: Pavan Nikhilesh
---
v2 Changes:
- Updated enqueue,dequeue depth thresholds.
- remove redundant capability checks.
examples/eventdev_pipeline/main.c | 88
Fixes: f874c1eb1519 ("event/octeontx: create and free timer adapter")
Signed-off-by: Pavan Nikhilesh
---
drivers/event/octeontx/timvf_evdev.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/event/octeontx/timvf_evdev.h
b/drivers/event/octeontx/timvf_ev
whitelist the devices.
Signed-off-by: Pavan Nikhilesh
---
lib/librte_eal/common/eal_common_devargs.c | 3 +++
lib/librte_eal/common/eal_common_options.c | 7 +++
lib/librte_eal/common/eal_options.h | 2 ++
lib/librte_eal/common/include/rte_dev.h | 1 +
lib/librte_eal/common/include
On Fri, Jun 08, 2018 at 09:02:27AM +0530, Jerin Jacob wrote:
> Fixes: 3516327e00fd ("event/octeontx: add selftest to device arguments")
>
> Cc: pbhagavat...@caviumnetworks.com
> Cc: sta...@dpdk.org
>
> Signed-off-by: Jerin Jacob
Acked-by: Pavan Nikhilesh
&
d, 1832 insertions(+)
> create mode 100644 test/test/test_event_timer_adapter.c
>
Acked-by: Pavan Nikhilesh
> + .arm_burst = sw_event_timer_arm_burst,
> + .arm_tmo_tick_burst = sw_event_timer_arm_tmo_tick_burst,
> + .cancel_burst = sw_event_timer_cancel_burst,
> +};
Move this above and make it static.
> +
With the above changes
Acked-by: Pavan Nikhilesh
On Tue, Apr 03, 2018 at 10:55:08AM +0100, Bruce Richardson wrote:
> On Mon, Apr 02, 2018 at 11:58:23PM +0530, Pavan Nikhilesh wrote:
> > Meson set RTE_TOOLCHAIN to clang/gcc and set RTE_TOOLCHAIN_CLANG/GCC to
> > 1 during initilizing dpdk_conf so that it can be used by b
Meson set RTE_TOOLCHAIN to clang/gcc and set RTE_TOOLCHAIN_CLANG/GCC to
1 during initilizing dpdk_conf so that it can be used by both x86 and arm.
Signed-off-by: Pavan Nikhilesh
---
v2 Changes:
- Use get_id for identifying compiler instead of checking for compiler defines
manually.(Bruce
On Tue, Apr 03, 2018 at 11:55:24AM +0100, Bruce Richardson wrote:
> On Tue, Apr 03, 2018 at 03:51:10PM +0530, Pavan Nikhilesh wrote:
> > Meson set RTE_TOOLCHAIN to clang/gcc and set RTE_TOOLCHAIN_CLANG/GCC to
> > 1 during initilizing dpdk_conf so that it can be used by b
Meson identify toolchain using cc.get_id and set RTE_TOOLCHAIN,
RTE_TOOLCHAIN_X during initializing dpdk_conf so that it can be used by
both x86 and arm.
Suggested-by: Bruce Richardson
Signed-off-by: Pavan Nikhilesh
---
v3 Changes:
- Use a generic way of setting toolchain instead of chaining
function return from int to uint16_t.
- Add missing state checks while arm/cancel.
- add stats.
v2 Changes:
- Move common code changes to separate patches.
- Reduce ifdef clutter.
- fix improper return value (erik).
- remove redundent ops assignment (erik).
- update octeontx documentation.
Pavan
`rte_event_timer_adapter_create` the driver infrastructure creates
the timer adapter with earlier probed PCIe VF devices.
Signed-off-by: Pavan Nikhilesh
---
drivers/mempool/octeontx/Makefile | 1 +
drivers/mempool/octeontx/meson.build | 1 +
drivers/mempool/octeontx
Signed-off-by: Pavan Nikhilesh
---
usertools/dpdk-devbind.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/usertools/dpdk-devbind.py b/usertools/dpdk-devbind.py
index ff4b186e8..d0c420906 100755
--- a/usertools/dpdk-devbind.py
+++ b/usertools/dpdk-devbind.py
@@ -22,12
Signed-off-by: Pavan Nikhilesh
---
drivers/event/octeontx/timvf_evdev.c | 140 +++
drivers/event/octeontx/timvf_evdev.h | 5 ++
2 files changed, 145 insertions(+)
diff --git a/drivers/event/octeontx/timvf_evdev.c
b/drivers/event/octeontx/timvf_evdev.c
index 473
based on the number of timers.
- Clear the interrupts.
On Free:
- Free the allocated bucket and chunk memory.
- Free private data used by TIMvf.
Signed-off-by: Pavan Nikhilesh
---
drivers/event/octeontx/Makefile | 2 +
drivers/event/octeontx/meson.build | 3 +-
drivers/event/octeontx
Add functions to get and reset event timer adapter stats.
Signed-off-by: Pavan Nikhilesh
---
drivers/event/octeontx/timvf_evdev.c | 26 ++
drivers/event/octeontx/timvf_evdev.h | 1 +
2 files changed, 27 insertions(+)
diff --git a/drivers/event/octeontx/timvf_evdev.c
b
Signed-off-by: Pavan Nikhilesh
---
drivers/event/octeontx/Makefile | 5 +
drivers/event/octeontx/meson.build| 1 +
drivers/event/octeontx/timvf_evdev.c | 7 +-
drivers/event/octeontx/timvf_evdev.h | 32
drivers/event/octeontx/timvf_worker.c | 95
drivers
When application creates the timer adapter by passing
`RTE_EVENT_TIMER_ADAPTER_F_SP_PUT` flag, we can optimize the arm sequence
by removing the locking overhead.
Signed-off-by: Pavan Nikhilesh
---
drivers/event/octeontx/timvf_evdev.c | 15 ---
drivers/event/octeontx/timvf_evdev.h | 2
When application sets `RTE_EVENT_TIMER_ADAPTER_F_ADJUST_RES` flag
while creating adapter underlying driver is free to optimize the
resolution for best possible configuration.
Signed-off-by: Pavan Nikhilesh
---
drivers/event/octeontx/timvf_evdev.c | 48
Signed-off-by: Pavan Nikhilesh
---
drivers/event/octeontx/timvf_evdev.c | 1 +
drivers/event/octeontx/timvf_evdev.h | 3 ++
drivers/event/octeontx/timvf_worker.c | 38 ++
drivers/event/octeontx/timvf_worker.h | 95 +++
4 files changed, 137
Signed-off-by: Pavan Nikhilesh
---
doc/guides/eventdevs/octeontx.rst | 9 +
1 file changed, 9 insertions(+)
diff --git a/doc/guides/eventdevs/octeontx.rst
b/doc/guides/eventdevs/octeontx.rst
index 4fabe54f9..f4f5473fd 100644
--- a/doc/guides/eventdevs/octeontx.rst
+++ b/doc/guides
Add compile-time configurable option to force TIMvf to use Octeontx
FPAvf pool manager as its chunk pool.
When FPAvf is used as pool manager the TIMvf automatically frees the
chunks to FPAvf through gpool-id.
Signed-off-by: Pavan Nikhilesh
---
drivers/event/octeontx/timvf_evdev.c | 22
Signed-off-by: Pavan Nikhilesh
---
MAINTAINERS | 4
1 file changed, 4 insertions(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index d4c0cc1bc..4a4a12d3d 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -736,6 +736,10 @@ M: Santosh Shukla
F: drivers/event/octeontx/
F: doc/guides/eventdevs
Add burst mode for event timer adapter that can be selected by passing
--prod_type_timerdev_burst.
Signed-off-by: Pavan Nikhilesh
---
app/test-eventdev/evt_options.c | 13 +++
app/test-eventdev/evt_options.h | 2 ++
app/test-eventdev/test_perf_common.c | 66
Add options to configure expiry timeout, max number of timers and number
of event timer adapters through command line parameters.
Signed-off-by: Pavan Nikhilesh
---
app/test-eventdev/evt_options.c | 65 +
app/test-eventdev/evt_options.h | 5
2 files
Add event timer adapter as producer option that can be selected by
passing --prod_type_timerdev.
Signed-off-by: Pavan Nikhilesh
---
v2 Changes:
- set timer to NOT_ARMED before trying to arm it.
- prevent edge cases for timeout_ticks being set to 0.
app/test-eventdev/evt_options.c
Update documentation to include new options added for using event timer
adapter as a producer.
Signed-off-by: Pavan Nikhilesh
---
doc/guides/tools/testeventdev.rst | 60 +++
1 file changed, 60 insertions(+)
diff --git a/doc/guides/tools/testeventdev.rst
b
Update common auto test to include test for previous power of 2 for both
32 and 64bit integers.
Signed-off-by: Pavan Nikhilesh
---
test/test/test_common.c | 24
1 file changed, 24 insertions(+)
diff --git a/test/test/test_common.c b/test/test/test_common.c
index
Add 32b and 64b API's to align the given integer to the previous power
of 2.
Signed-off-by: Pavan Nikhilesh
---
v3 Changes:
- Move commonly used code to rte_combine(32/64)ms1b so that it can be reused.
v2 Changes:
- Modified api name to `rte_align(32/64)prevpow2` from
`rte_align(
On Wed, Apr 04, 2018 at 02:49:28PM +0200, Thomas Monjalon wrote:
> 04/04/2018 12:16, Pavan Nikhilesh:
> > Update common auto test to include test for previous power of 2 for both
> > 32 and 64bit integers.
>
> This patch can be merged with previous one (related lib change).
Add 32b and 64b API's to align the given integer to the previous power
of 2. Update common auto test to include test for previous power of 2 for
both 32 and 64bit integers.
Signed-off-by: Pavan Nikhilesh
---
v4 Changes:
- Squash patchset into a single patch.
- Use %PRIu64 instead of %lu
Add driver/common folder and skeleton makefile for adding commonly used
functions across mempool, event and net devices.
Signed-off-by: Pavan Nikhilesh
Acked-by: Hemant Agrawal
Acked-by: Jerin Jacob
Acked-by: Santosh Shukla
---
v5 Changes:
- Move all ssovf related stuff from driver/common
Move commonly used functions across mempool, event and net devices to a
common folder in drivers.
Signed-off-by: Pavan Nikhilesh
Acked-by: Jerin Jacob
Acked-by: Santosh Shukla
---
MAINTAINERS| 1 +
doc/guides/rel_notes/release_18_05.rst
proven math API I don't think it will change anytime
soon.
Thanks,
Pavan
>
> Besides that,
> Acked-by: Matan Azrad
>
> From: Pavan Nikhilesh, Wednesday, April 4, 2018 1:16 PM
> > Add 32b and 64b API's to align the given integer to the previous power of 2.
> >
t_dev_stop_flush_callback_register;
> } DPDK_18.02;
> +
> +EXPERIMENTAL {
> + global:
> +
> +rte_event_timer_adapter_caps_get;
A trivial extra space issue here please remove it with that,
Acked-by: Pavan Nikhilesh
> + rte_event_timer_ada
ns(+), 4 deletions(-)
>
Acked-by: Pavan Nikhilesh
On Wed, Apr 04, 2018 at 05:11:22PM +, Matan Azrad wrote:
>
>
> From: Pavan Nikhilesh, Wednesday, April 4, 2018 7:42 PM
> > Hi Matan,
> >
> > On Wed, Apr 04, 2018 at 04:10:36PM +, Matan Azrad wrote:
> > > Hi Pavan
> > >
> > > Shouldn
Hi Matan,
>
> Got you.
> Looks like you found issue here...
> The experimental tag probably should be in a root .h file.
> Probably, need a fix patch to move it for a different\new .h file.
>
> What do you think?
>
Actually thats just start of the rabbit hole, if we succeed to tag a inline
functi
On Wed, Apr 04, 2018 at 06:23:19PM +, Matan Azrad wrote:
> Hi Pavan
>
> From: Pavan Nikhilesh, Wednesday, April 4, 2018 9:16 PM
> > Hi Matan,
> >
> > >
> > > Got you.
> > > Looks like you found issue here...
> > > The experimental tag p
Add event timer adapter as producer option that can be selected by
passing --prod_type_timerdev.
Signed-off-by: Pavan Nikhilesh
---
v3 Changes:
- Add detailed options dump.
- Fix few typos.
v2 Changes:
- set timer to NOT_ARMED before trying to arm it.
- prevent edge cases for
Add burst mode for event timer adapter that can be selected by passing
--prod_type_timerdev_burst.
Signed-off-by: Pavan Nikhilesh
---
app/test-eventdev/evt_options.c | 13 +++
app/test-eventdev/evt_options.h | 8 -
app/test-eventdev/test_perf_common.c | 66
Add options to configure expiry timeout, max number of timers and number
of event timer adapters through command line parameters.
Signed-off-by: Pavan Nikhilesh
---
app/test-eventdev/evt_options.c | 65 +
app/test-eventdev/evt_options.h | 5
2 files
Update documentation to include new options added for using event timer
adapter as a producer.
Signed-off-by: Pavan Nikhilesh
---
doc/guides/tools/testeventdev.rst | 60 +++
1 file changed, 60 insertions(+)
diff --git a/doc/guides/tools/testeventdev.rst
b
Use the new Rx/Tx offload APIs and remove the old style offloads.
Signed-off-by: Pavan Nikhilesh
Acked-by: Santosh Shukla
---
v3 Changes:
- update dev_info rx_offload_capa to include OCTEONTX_RX_OFFLOADS.
drivers/net/octeontx/octeontx_ethdev.c | 85
Use __atomic_exchange_n instead of __atomic_exchange_(2/4/8).
Fixes: ff2863570fcc ("eal: introduce atomic exchange operation")
Signed-off-by: Pavan Nikhilesh
---
lib/librte_eal/common/include/generic/rte_atomic.h | 8 +---
1 file changed, 5 insertions(+), 3 deletions(-)
diff -
n; expected 'struct ether_addr' or an explicit length
[-Werror,-Wsizeof-pointer-memaccess]
rte_memcpy(&pmd->eth_addr, mac_addr, sizeof(mac_addr));
~~^~~~
Fixes: bcab6c1d27fa ("net/tap: allow user MAC to
Add options to configure expiry timeout, max number of timers and number
of event timer adapters through command line parameters.
Signed-off-by: Pavan Nikhilesh
---
app/test-eventdev/evt_options.c | 65 +
app/test-eventdev/evt_options.h | 5 +++
2 files changed
Add burst mode for event timer adapter that can be selected by passing
--prod_type_timerdev_burst.
Signed-off-by: Pavan Nikhilesh
---
app/test-eventdev/evt_options.c | 13 ++
app/test-eventdev/evt_options.h | 8 +++-
app/test-eventdev/test_perf_common.c | 67
Add event timer adapter as producer option that can be selected by
passing --prod_type_timerdev.
Signed-off-by: Pavan Nikhilesh
---
v4 Changes:
- reuse struct rte_event_timer's unused data portion to store timestamp
instead of spilling timestamp into a new cacheline.
- change bkt_tck
Update documentation to include new options added for using event timer
adapter as a producer.
Signed-off-by: Pavan Nikhilesh
---
doc/guides/tools/testeventdev.rst | 60 +++
1 file changed, 60 insertions(+)
diff --git a/doc/guides/tools/testeventdev.rst
b/doc
Add event timer adapter as producer option that can be selected by
passing --prod_type_timerdev.
Signed-off-by: Pavan Nikhilesh
Acked-by: Erik Gabriel Carrillo
Acked-by: Jerin Jacob
---
v5 Changes:
- Resending cause missing Acked-by.
v4 Changes:
- reuse struct rte_event_timer's u
Add burst mode for event timer adapter that can be selected by passing
--prod_type_timerdev_burst.
Signed-off-by: Pavan Nikhilesh
Acked-by: Erik Gabriel Carrillo
Acked-by: Jerin Jacob
---
app/test-eventdev/evt_options.c | 13 ++
app/test-eventdev/evt_options.h | 8 +++-
app
Add options to configure expiry timeout, max number of timers and number
of event timer adapters through command line parameters.
Signed-off-by: Pavan Nikhilesh
Acked-by: Erik Gabriel Carrillo
Acked-by: Jerin Jacob
---
app/test-eventdev/evt_options.c | 65
Update documentation to include new options added for using event timer
adapter as a producer.
Signed-off-by: Pavan Nikhilesh
Acked-by: Erik Gabriel Carrillo
Acked-by: Jerin Jacob
---
doc/guides/tools/testeventdev.rst | 60 +++
1 file changed, 60 insertions
On Fri, Apr 06, 2018 at 06:24:34PM +0200, Thomas Monjalon wrote:
> 06/04/2018 13:01, Pavan Nikhilesh:
> > Use __atomic_exchange_n instead of __atomic_exchange_(2/4/8).
> >
> > Fixes: ff2863570fcc ("eal: introduce atomic exchange operation")
>
> Please, could
Hi Jerin,
On Sun, Apr 08, 2018 at 08:25:35AM +0530, Jerin Jacob wrote:
> -Original Message-
> > Date: Tue, 3 Apr 2018 20:35:02 +0530
> > From: Pavan Nikhilesh
> > To: jerin.ja...@caviumnetworks.com, santosh.shu...@caviumnetworks.com,
> > erik.g.carri...@int
ment (erik).
- update octeontx documentation.
Pavan Nikhilesh (11):
usertools: add Cavium TIM as an event device
event/octeontx: add support to probe timvf PCIe devices
event/octeontx: add support to create and free timer adapter
event/octeontx: add support to start and stop timer device
event/oct
`rte_event_timer_adapter_create` the driver infrastructure creates
the timer adapter with earlier probed PCIe VF devices.
Signed-off-by: Pavan Nikhilesh
Acked-by: Jerin Jacob
---
drivers/event/octeontx/timvf_evdev.h | 33 ++
drivers/event/octeontx/timvf_probe.c | 148 +++
2 files
Signed-off-by: Pavan Nikhilesh
Acked-by: Jerin Jacob
---
usertools/dpdk-devbind.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/usertools/dpdk-devbind.py b/usertools/dpdk-devbind.py
index ff4b186e8..d0c420906 100755
--- a/usertools/dpdk-devbind.py
+++ b/usertools/dpdk
based on the number of timers.
- Clear the interrupts.
On Free:
- Free the allocated bucket and chunk memory.
- Free private data used by TIMvf.
Signed-off-by: Pavan Nikhilesh
---
drivers/event/octeontx/Makefile | 3 +
drivers/event/octeontx/meson.build | 5 +-
drivers/event/octeontx
Add functions to get and reset event timer adapter stats.
Signed-off-by: Pavan Nikhilesh
---
drivers/event/octeontx/ssovf_evdev.c | 14 -
drivers/event/octeontx/timvf_evdev.c | 30 +++-
drivers/event/octeontx/timvf_evdev.h | 3 +++
3 files changed, 45
Signed-off-by: Pavan Nikhilesh
Acked-by: Jerin Jacob
---
drivers/event/octeontx/Makefile | 5 +
drivers/event/octeontx/meson.build| 1 +
drivers/event/octeontx/timvf_evdev.c | 9 +-
drivers/event/octeontx/timvf_evdev.h | 35
drivers/event/octeontx/timvf_worker.c | 107
Signed-off-by: Pavan Nikhilesh
---
drivers/event/octeontx/timvf_evdev.c | 144 +++
drivers/event/octeontx/timvf_evdev.h | 5 +
2 files changed, 149 insertions(+)
diff --git a/drivers/event/octeontx/timvf_evdev.c
b/drivers/event/octeontx/timvf_evdev.c
index 5728d4944..84c
When application creates the timer adapter by passing
`RTE_EVENT_TIMER_ADAPTER_F_SP_PUT` flag, we can optimize the arm sequence
by removing the locking overhead.
Signed-off-by: Pavan Nikhilesh
---
drivers/event/octeontx/timvf_evdev.c | 19 ---
drivers/event/octeontx/timvf_evdev.h | 5
Signed-off-by: Pavan Nikhilesh
---
drivers/event/octeontx/timvf_evdev.c | 3 +
drivers/event/octeontx/timvf_evdev.h | 7 ++
drivers/event/octeontx/timvf_worker.c | 53 +++
drivers/event/octeontx/timvf_worker.h | 95 +++
4 files changed, 158 insertions
When application sets `RTE_EVENT_TIMER_ADAPTER_F_ADJUST_RES` flag
while creating adapter underlying driver is free to optimize the
resolution for best possible configuration.
Signed-off-by: Pavan Nikhilesh
Acked-by: Jerin Jacob
---
drivers/event/octeontx/timvf_evdev.c | 52
Signed-off-by: Pavan Nikhilesh
Acked-by: Jerin Jacob
---
MAINTAINERS | 4
doc/guides/eventdevs/octeontx.rst | 29 +
2 files changed, 33 insertions(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index 7e966580b..c201e0f7f 100644
--- a
Add compile-time configurable option to force TIMvf to use Octeontx
FPAvf pool manager as its chunk pool.
When FPAvf is used as pool manager the TIMvf automatically frees the
chunks to FPAvf through gpool-id.
Signed-off-by: Pavan Nikhilesh
---
drivers/event/octeontx/timvf_evdev.c | 22
#x27;__atomic_exchange_8'
> is invalid in C99
>
> The proposed solution was:
> Use __atomic_exchange_n instead of __atomic_exchange_(2/4/8),
> and include stdatomic.h.
>
>
>
> 10/04/2018 17:07, Thomas Monjalon:
> > 06/04/2018 20:25, Pava
On Wed, Apr 11, 2018 at 10:46:47AM +0200, Thomas Monjalon wrote:
> 11/04/2018 10:38, Pavan Nikhilesh:
> > On Tue, Apr 10, 2018 at 11:35:15PM +0200, Thomas Monjalon wrote:
> > > Hi, big issue here.
> > > This patch does not compile on Linux with ICC or GCC < 4.9
quot;eal: introduce atomic exchange operation")
Signed-off-by: Pavan Nikhilesh
---
lib/librte_eal/common/include/generic/rte_atomic.h | 12
1 file changed, 12 insertions(+)
diff --git a/lib/librte_eal/common/include/generic/rte_atomic.h
b/lib/librte_eal/common/include/generic
On Wed, Apr 11, 2018 at 09:40:30PM +0200, Thomas Monjalon wrote:
> 11/04/2018 21:09, Andrew Rybchenko:
> > Hello,
> >
> > build fails on RHEL 7.4. I've not tried to dig it.
>
> Thanks for reporting.
>
> [...]
> > ‘FALLOC_FL_PUNCH_HOLE’ undeclared (first use in this function)
> [...]
> > ‘FALLOC_FL_
> ---
> app/test-eventdev/evt_options.c | 2 +-
> doc/guides/tools/testeventdev.rst | 12 ++--
> 2 files changed, 7 insertions(+), 7 deletions(-)
>
Acked-by: Pavan Nikhilesh
On Mon, Apr 16, 2018 at 12:03:53PM +0200, Thomas Monjalon wrote:
> The options names in code and doc are not the same.
>
> Fixes: 98c6292105d4 ("app/eventdev: add options for event timer adapter")
> Cc: pbhagavat...@caviumnetworks.com
>
> Signed-off-by: Thomas Monjalon
> ---
> app/test-eventdev/e
The options names in code and doc are not the same.
Fixes: 98c6292105d4 ("app/eventdev: add options for event timer adapter")
Suggested-by: Thomas Monjalon
Signed-off-by: Pavan Nikhilesh
---
app/test-eventdev/evt_options.c | 2 +-
app/test-eventdev/evt_options.h | 8
2 fil
Hi Andrew,
Thanks for reporting the issue, will fix it and send out a patch soon.
Pavan
On Mon, Apr 16, 2018 at 03:24:21PM +0300, Andrew Rybchenko wrote:
> Hi,
>
> dpdk and dpdk-next-net build is broken on RHEL 7.4.
> It looks like after pull from next-eventdev.
>
> == Build app/test-eventdev
>
adapter as a producer")
Reported-by: Andrew Rybchenko
Signed-off-by: Pavan Nikhilesh
---
app/test-eventdev/test_perf_common.c | 36 ++--
1 file changed, 18 insertions(+), 18 deletions(-)
diff --git a/app/test-eventdev/test_perf_common.c
b/app/test-eventdev/test_per
On Tue, Jan 09, 2018 at 12:49:20PM +, Ferruh Yigit wrote:
> On 1/9/2018 12:47 PM, Ferruh Yigit wrote:
> > On 12/19/2017 6:01 PM, Pavan Nikhilesh wrote:
> >> The channel to port id map is used by event octeontx to map the received
> >> wqe to the respective ethdev po
On Mon, Jan 08, 2018 at 05:05:47PM +, Bruce Richardson wrote:
> On Sat, Dec 30, 2017 at 10:07:54PM +0530, Pavan Nikhilesh wrote:
> > Added support for detecting march and mcpu by reading midr_el1 register.
> > The implementer, primary part number values read can be used to fig
Use event Rx adapter for packets Rx instead of explicit producer logic.
Use service run iter function for granular control instead of using
dedicated service lcore.
Signed-off-by: Pavan Nikhilesh
---
v2 Changes:
- split work funtion into delay cycles and excange_mac
- add option to
Rename existing pipeline as generic worker pipeline.
Signed-off-by: Pavan Nikhilesh
---
v2 Changes:
- Add SPDX licence tags
examples/eventdev_pipeline_sw_pmd/Makefile | 1 +
examples/eventdev_pipeline_sw_pmd/main.c | 440
Each eventdev pipeline needs to allow different cmdline args combination
based on pipeline type.
Signed-off-by: Pavan Nikhilesh
---
v2 Changes:
- remove redundant split in printf
examples/eventdev_pipeline_sw_pmd/main.c | 16 +++-
.../eventdev_pipeline_sw_pmd/pipeline_common.h
Add framework to support capability based pipeline.
Based on the capability of event device and probed ethernet devices the
optimal pipeline configuration can be chosen.
Signed-off-by: Pavan Nikhilesh
---
examples/eventdev_pipeline_sw_pmd/pipeline_common.h | 17 +
1 file changed
Move common structures and functions into pipeline_common.h so that they
can be used by different kinds of pipelines.
Signed-off-by: Pavan Nikhilesh
---
v2 Changes:
- Use SPDX licence tags.
examples/eventdev_pipeline_sw_pmd/main.c | 67
packet is transmitted.
Signed-off-by: Pavan Nikhilesh
---
examples/eventdev_pipeline_sw_pmd/pipeline_common.h | 11 +--
examples/eventdev_pipeline_sw_pmd/pipeline_worker_generic.c | 7 +--
2 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/examples
Currently, worker uses burst dequeue and burst enqueue to forward events.
Add a non burst mode based on the event dev capabilities.
Signed-off-by: Pavan Nikhilesh
---
examples/eventdev_pipeline_sw_pmd/main.c | 12 +-
.../pipeline_worker_generic.c | 126
Add worker pipeline when Tx is multi thread safe.
Probe Ethernet dev capabilities and select it it is supported.
Signed-off-by: Pavan Nikhilesh
---
v2 Changes:
- Redo function names(Harry)
examples/eventdev_pipeline_sw_pmd/Makefile | 1 +
examples/eventdev_pipeline_sw_pmd/main.c
Add burst mode worker pipeline when Tx is multi thread safe.
Signed-off-by: Pavan Nikhilesh
---
.../eventdev_pipeline_sw_pmd/pipeline_worker_tx.c | 74 +-
1 file changed, 72 insertions(+), 2 deletions(-)
diff --git a/examples/eventdev_pipeline_sw_pmd/pipeline_worker_tx.c
Add optimized eventdev pipeline when ethdev supports thread safe Tx
and number of configured stages is one.
Signed-off-by: Pavan Nikhilesh
---
.../eventdev_pipeline_sw_pmd/pipeline_worker_tx.c | 111 -
1 file changed, 107 insertions(+), 4 deletions(-)
diff --git a/examples
Added configurable option to make queue type as all type queues i.e.
RTE_EVENT_QUEUE_CFG_ALL_TYPES based on event dev capability
RTE_EVENT_DEV_CAP_QUEUE_ALL_TYPES.
This can be enabled by supplying '-a' as a cmdline argument.
Signed-off-by: Pavan Nikhilesh
---
v2 Changes:
- r
Add option to configure the mempool size at run time instead of
hardcoding it to 16384 * num_ports.
Signed-off-by: Pavan Nikhilesh
---
examples/eventdev_pipeline_sw_pmd/main.c| 12 ++--
examples/eventdev_pipeline_sw_pmd/pipeline_common.h | 1 +
2 files changed, 11
Add optimized eventdev pipeline when ethdev supports thread safe Tx,
number of configured stages is one and all type queue option is enabled.
Signed-off-by: Pavan Nikhilesh
---
.../eventdev_pipeline_sw_pmd/pipeline_worker_tx.c | 104 -
1 file changed, 101 insertions(+), 3
Rename eventdev_pipeline_sw_pmd to eventdev_pipeline as it is no longer
specific underlying event device.
Signed-off-by: Pavan Nikhilesh
---
examples/Makefile | 2 +-
examples/{eventdev_pipeline_sw_pmd => eventdev_pipeline}/Makef
Removed eventdev sw pmd specific information in document, renamed the
document from eventdev_pipeline_sw_pmd to eventdev_pipeline.
Signed-off-by: Pavan Nikhilesh
Acked-by: Kevin Laatz
---
.../{eventdev_pipeline_sw_pmd.rst => eventdev_pipeline.rst} | 6 +++---
doc/guides/sample_app
wn that "failed to allocate lcore". Investigating
> revealed that the state of the service-cores after del() was
> not allowing a core to be re-used at a later point in time.
>
> Fixes: 21698354c832 ("service: introduce service cores concept")
> +CC sta...@dpdk.
ts*/
> for (i = 0; i < sw->qid_count; i++)
> - if (sw->qids[i].iq[0].head == NULL ||
> - sw->qids[i].cq_num_mapped_cqs == 0) {
> + if (!sw->qids[i].initialized ||
> + sw->qids[i].cq_num_mapped_cqs == 0) {
> SW_LOG_ERR("Queue %d not configured\n", i);
> return -ENOLINK;
> }
> @@ -689,6 +712,8 @@ sw_start(struct rte_eventdev *dev)
> }
> }
>
> + sw_init_qid_iqs(sw);
> +
> if (sw_xstats_init(sw) < 0)
> return -EINVAL;
>
> @@ -702,6 +727,7 @@ static void
> sw_stop(struct rte_eventdev *dev)
> {
> struct sw_evdev *sw = sw_pmd_priv(dev);
> + sw_clean_qid_iqs(sw);
> sw_xstats_uninit(sw);
> sw->started = 0;
> rte_smp_wmb();
> --
> 2.7.4
>
Sw eventdev works well alongside Rx adapter now.
Cheers,
Pavan.
Acked-by: Pavan Nikhilesh
Add logs for packet distribution across worker cores to be printed
along with the test results.
Signed-off-by: Pavan Nikhilesh
Acked-by: Jerin Jacob
---
app/test-eventdev/evt_main.c | 3 +++
app/test-eventdev/test_perf_common.c | 12
2 files changed, 15 insertions
101 - 200 of 1270 matches
Mail list logo