[dpdk-dev] [PATCH v10 4/4] doc/guides/sample_app_ug/l3_forward_power_man.rst: update

2018-10-02 Thread Liang Ma
Add empty poll mode command line example ChangeLogs: v9: update the document Signed-off-by: Liang Ma --- doc/guides/sample_app_ug/l3_forward_power_man.rst | 69 +++ 1 file changed, 69 insertions(+) diff --git a/doc/guides/sample_app_ug/l3_forward_power_man.rst b/doc

[dpdk-dev] [PATCH v10 2/4] examples/l3fwd-power: simple app update for new API

2018-10-02 Thread Liang Ma
10ms. ChangeLog: v2 fix some coding style issues v3 rename the API. v6 re-work the API. v7 no change. v8 disable training as default option. v10 update due to review comments. Signed-off-by: Liang Ma Reviewed-by: Lei Yao --- examples/l3fwd-power

[dpdk-dev] [PATCH v10 3/4] doc/guides/pro_guide/power-man: update the power API

2018-10-02 Thread Liang Ma
Update the document for empty poll API. Change Logs: v9: minor changes for syntax. Update document. Signed-off-by: Liang Ma --- doc/guides/prog_guide/power_man.rst | 86 + 1 file changed, 86 insertions(+) diff --git a/doc/guides/prog_guide/power_man.rst b

[dpdk-dev] [PATCH] devtools/check-symbol-changes.sh: awk script issue

2018-10-04 Thread Liang Ma
There is a issue inside check-symbol-changes.sh awk script. When the script try to parse the section name from patch, The script put char "+" into the section name. Signed-off-by: Liang Ma --- devtools/check-symbol-change.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di

Re: [dpdk-dev] [PATCH v10 1/4] lib/librte_power: traffic pattern aware power control

2018-10-12 Thread Liang, Ma
On 11 Oct 18:59, Yao, Lei A wrote: > > > + > + if (get_freq_index(LOW) > total_avail_freqs[i]) > + return -1; > + > + if (rte_get_master_lcore() != i) { > + w->wrk_stats[i].lcore_id = i; > + set_policy(&w->wrk_sta

[dpdk-dev] [PATCH v11 1/5] lib/librte_power: traffic pattern aware power control

2018-10-19 Thread Liang Ma
r typo and lift node num limit. v8: disable training as default option. v9: minor git log update. v10: update due to the code review comments. Signed-off-by: Liang Ma Reviewed-by: Lei Yao Acked-by: David Hunt --- lib/librte_power/Makefile | 6 +- lib/librte_power/m

[dpdk-dev] [PATCH v11 5/5] doc: update release notes for empty poll library

2018-10-19 Thread Liang Ma
Signed-off-by: Liang Ma --- doc/guides/rel_notes/release_18_11.rst | 21 - 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/doc/guides/rel_notes/release_18_11.rst b/doc/guides/rel_notes/release_18_11.rst index a8327ea..bbfa8d6 100644 --- a/doc/guides/rel_notes

[dpdk-dev] [PATCH v11 3/5] doc/guides/pro_guide/power-man: update the power API

2018-10-19 Thread Liang Ma
Update the document for empty poll API. Change Logs: v9: minor changes for syntax. Update document. Signed-off-by: Liang Ma Acked-by: David Hunt --- doc/guides/prog_guide/power_man.rst | 86 + 1 file changed, 86 insertions(+) diff --git a/doc/guides

[dpdk-dev] [PATCH v11 2/5] examples/l3fwd-power: simple app update for new API

2018-10-19 Thread Liang Ma
10ms. ChangeLog: v2 fix some coding style issues v3 rename the API. v6 re-work the API. v7 no change. v8 disable training as default option. v10 update due to review comments. v11 add checking for empty poll init function return value. Signed-off-by: Liang Ma Reviewed-by: Lei Yao Acked

Re: [dpdk-dev] is per patch checkpatch reports working?

2018-10-19 Thread Liang, Ma
Hi Thomas, I still see the issue with the awk script inside check-symbol-changes.sh. that script still put '+' as the Section name. any suggestion ? I use fedora 24 and gawk Regards Liang On 19 Oct 11:27, Thomas Monjalon wrote: > 19/10/2018 09:42, Ferruh Yigit: > > I am not getting the

Re: [dpdk-dev] is per patch checkpatch reports working?

2018-10-19 Thread Liang, Ma
I did send out a patch to the author for a while. but no response. FYI http://patches.dpdk.org/patch/46101/ Liang On 19 Oct 12:43, Thomas Monjalon wrote: > You should open a dedicated thread on the mailing with Cc the author of this > script. > > 19/10/2018 12:38, Liang, Ma: &

[dpdk-dev] [PATCH v12 3/5] doc/guides/pro_guide/power-man: update the power API

2018-10-19 Thread Liang Ma
Update the document for empty poll API. Change Logs: v9: minor changes for syntax. Update document. Signed-off-by: Liang Ma Acked-by: David Hunt --- doc/guides/prog_guide/power_man.rst | 86 + 1 file changed, 86 insertions(+) diff --git a/doc/guides

[dpdk-dev] [PATCH v12 5/5] doc: update release notes for empty poll library

2018-10-19 Thread Liang Ma
Update the release nots for Traffic Pattern Aware Control Library(empty poll). Signed-off-by: Liang Ma --- doc/guides/rel_notes/release_18_11.rst | 21 - 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/doc/guides/rel_notes/release_18_11.rst b/doc/guides

[dpdk-dev] [PATCH v12 1/5] lib/librte_power: traffic pattern aware power control

2018-10-19 Thread Liang Ma
r typo and lift node num limit. v8: disable training as default option. v9: minor git log update. v10: update due to the code review comments. v12: remove rte_panic Signed-off-by: Liang Ma Reviewed-by: Lei Yao Acked-by: David Hunt --- lib/librte_power/Makefile | 6 +- lib/li

[dpdk-dev] [PATCH v12 2/5] examples/l3fwd-power: simple app update for new API

2018-10-19 Thread Liang Ma
10ms. ChangeLog: v2 fix some coding style issues v3 rename the API. v6 re-work the API. v7 no change. v8 disable training as default option. v10 update due to review comments. v11 add checking for empty poll init function return value. Signed-off-by: Liang Ma Reviewed-by: Lei Yao Acked

[dpdk-dev] [PATCH v12 4/5] doc/guides/sample_app_ug/l3_forward_power_man.rst: update

2018-10-19 Thread Liang Ma
Add empty poll mode command line example ChangeLogs: v9: update the document Signed-off-by: Liang Ma Acked-by: David Hunt --- doc/guides/sample_app_ug/l3_forward_power_man.rst | 69 +++ 1 file changed, 69 insertions(+) diff --git a/doc/guides/sample_app_ug

Re: [dpdk-dev] [PATCH] devtools/check-symbol-changes.sh: awk script issue

2018-10-19 Thread Liang, Ma
he section name should start with 'A-Z' only for my opinion. Regards Liang On 19 Oct 07:38, Neil Horman wrote: > On Fri, Oct 19, 2018 at 12:48:57PM +0200, Thomas Monjalon wrote: > > Hi Neil, > > > > Are you OK with this patch? > > > > > > 04/10/

Re: [dpdk-dev] [PATCH v1 1/2] lib/librte_power: traffic pattern aware power control

2018-06-18 Thread Liang, Ma
On 14 Jun 11:59, Hunt, David wrote: > Hi Liang > > > > On 8/6/2018 10:57 AM, Liang Ma wrote: > > 1. Abstract > > > > For packet processing workloads such as DPDK polling is continuous. > > This means CPU cores always show 100% busy independent of how muc

[dpdk-dev] [PATCH v3 1/2] lib/librte_power: traffic pattern aware power control

2018-06-20 Thread Liang Ma
rename the filename, API name. Signed-off-by: Liang Ma --- lib/librte_power/Makefile | 3 +- lib/librte_power/meson.build| 5 +- lib/librte_power/rte_power_empty_poll.c | 521 lib/librte_power/rte_power_empty_poll.h | 202

[dpdk-dev] [PATCH v3 2/2] examples/l3fwd-power: simple app update to support new API

2018-06-20 Thread Liang Ma
ChangeLog: v2 fix some coding style issues v3 rename the API. Signed-off-by: Liang Ma --- examples/l3fwd-power/main.c | 232 1 file changed, 214 insertions(+), 18 deletions(-) diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c ind

Re: [dpdk-dev] [PATCH v4 1/2] lib/librte_power: traffic pattern aware power control

2018-07-05 Thread Liang, Ma
On 27 Jun 18:33, Kevin Traynor wrote: > On 06/26/2018 12:40 PM, Radu Nicolau wrote: > > From: Liang Ma > > > > 1. Abstract > > > > For packet processing workloads such as DPDK polling is continuous. > > This means CPU cores always show 100% busy independe

Re: [dpdk-dev] [PATCH v12 1/5] lib/librte_power: traffic pattern aware power control

2018-10-26 Thread Liang, Ma
Hi Thomas, Many thanks, I will check carefully for meson build and doc next time. Regards Liang On 26 Oct 01:55, Thomas Monjalon wrote: > 19/10/2018 13:07, Liang Ma: > > The proposed solution focuses on how many times empty polls are executed. > > The less the number of emp

Re: [dpdk-dev] [PATCH] power: fix traffic aware compilation errors

2018-10-26 Thread Liang, Ma
Hi Dave, Many thanks! Regards Liang On 26 Oct 13:38, David Hunt wrote: > 1. %ld to PRId64 for 32-bit builds > 2. Fix dependency on librte_timer > > Fixes: 450f0791312c ("power: add traffic pattern aware power control") > > Signed-off-by: David Hunt > Tested-by: Ferruh Yigit > --- > lib/Mak

[dpdk-dev] [PATCH] libs/power: add p-state driver compatibility

2018-11-23 Thread Liang Ma
or in a guest, using kvm. The library API and ABI is unchanged. Signed-off-by: Liang Ma --- lib/librte_power/Makefile | 2 + lib/librte_power/meson.build| 4 +- lib/librte_power/power_pstate_cpufreq.c | 778 lib/librte_power

Re: [dpdk-dev] eventdev: method for finding out unlink status

2018-07-30 Thread Liang, Ma
On 30 Jul 16:06, Jerin Jacob wrote: > -Original Message- > > Date: Mon, 30 Jul 2018 09:38:01 + > > From: "Van Haaren, Harry" > > To: Jerin Jacob , "Elo, Matias (Nokia - > > FI/Espoo)" > > CC: "dev@dpdk.org" > > Subject: RE: [dpdk-dev] eventdev: method for finding out unlink status >

[dpdk-dev] [PATCH v6 1/4] lib/librte_power: traffic pattern aware power control

2018-08-31 Thread Liang Ma
poll counter. 7. rte_empty_poll_detection(void); which is used to detect empty poll state changes. ChangeLog: v2: fix some coding style issues v3: rename the filename, API name. v4: no change v5: no change v6: re-work the code layout, update API Signed-off-by: Liang Ma --- lib/librte_power/Mak

[dpdk-dev] [PATCH v6 3/4] doc/guides/proguides/power-man: update the power API

2018-08-31 Thread Liang Ma
update the document for empty poll API. Signed-off-by: Liang Ma --- doc/guides/prog_guide/power_man.rst | 87 + 1 file changed, 87 insertions(+) diff --git a/doc/guides/prog_guide/power_man.rst b/doc/guides/prog_guide/power_man.rst index eba1cc6..d8a4ef7

[dpdk-dev] [PATCH v6 4/4] doc/guides/sample_app_ug/l3_forward_power_man.rst: empty poll update

2018-08-31 Thread Liang Ma
add empty poll mode command line example Signed-off-by: Liang Ma --- doc/guides/sample_app_ug/l3_forward_power_man.rst | 21 + 1 file changed, 21 insertions(+) diff --git a/doc/guides/sample_app_ug/l3_forward_power_man.rst b/doc/guides/sample_app_ug

[dpdk-dev] [PATCH v6 2/4] examples/l3fwd-power: simple app update for new API

2018-08-31 Thread Liang Ma
drop below 30%), system will fallback to the modest power state. Example code use master thread to monitoring worker thread busyness. the default timer resolution is 10ms. ChangeLog: v2 fix some coding style issues v3 rename the API. v6 re-work the API. Signed-off-by: Liang Ma --- examples/l

[dpdk-dev] [PATCH v7 2/4] examples/l3fwd-power: simple app update for new API

2018-09-04 Thread Liang Ma
drop below 30%), system will fallback to the modest power state. Example code use master thread to monitoring worker thread busyness. the default timer resolution is 10ms. ChangeLog: v2 fix some coding style issues v3 rename the API. v6 re-work the API. v7 no change. Signed-off-by: Liang Ma R

[dpdk-dev] [PATCH v7 3/4] doc/guides/proguides/power-man: update the power API

2018-09-04 Thread Liang Ma
update the document for empty poll API. Signed-off-by: Liang Ma --- doc/guides/prog_guide/power_man.rst | 87 + 1 file changed, 87 insertions(+) diff --git a/doc/guides/prog_guide/power_man.rst b/doc/guides/prog_guide/power_man.rst index eba1cc6..d8a4ef7

[dpdk-dev] [PATCH v7 1/4] lib/librte_power: traffic pattern aware power control

2018-09-04 Thread Liang Ma
d-off-by: Liang Ma Reviewed-by: Lei Yao --- lib/librte_power/Makefile | 6 +- lib/librte_power/meson.build| 5 +- lib/librte_power/rte_power_empty_poll.c | 500 lib/librte_power/rte_power_empty_poll.h | 205 + lib/librte_

[dpdk-dev] [PATCH v7 4/4] doc/guides/sample_app_ug/l3_forward_power_man.rst: empty poll update

2018-09-04 Thread Liang Ma
add empty poll mode command line example Signed-off-by: Liang Ma --- doc/guides/sample_app_ug/l3_forward_power_man.rst | 21 + 1 file changed, 21 insertions(+) diff --git a/doc/guides/sample_app_ug/l3_forward_power_man.rst b/doc/guides/sample_app_ug

Re: [dpdk-dev] [PATCH v4 1/2] lib/librte_power: traffic pattern aware power control

2018-09-13 Thread Liang, Ma
Hi Kevin, Many thanks for your feedback. Please check my comments below. On 13 Sep 10:46, Kevin Traynor wrote: > > Thanks for following up. It's allowing it to run without a training > phase which is what I thought could be problematic from an application > view, so that's nice. I'm no

Re: [dpdk-dev] [PATCH v7 1/4] lib/librte_power: traffic pattern aware power control

2018-09-13 Thread Liang, Ma
Hi Kevin, Many thanks for your comments. I will send v8 patch soon. Please check comments below. On 13 Sep 11:54, Kevin Traynor wrote: > On 09/04/2018 03:10 PM, Liang Ma wrote: > > 1. Abstract > > > > Hi Liang, > > I didn't review the code, but some c

[dpdk-dev] [PATCH v8 2/4] examples/l3fwd-power: simple app update for new API

2018-09-17 Thread Liang Ma
read to monitoring worker thread busyness. the default timer resolution is 10ms. ChangeLog: v2 fix some coding style issues v3 rename the API. v6 re-work the API. v7 no change. v8 disable training as default option. Signed-off-by: Liang Ma Reviewed-by: Lei Yao --- examples/l3fwd-power

[dpdk-dev] [PATCH v8 3/4] doc/guides/proguide/power-man: update the power API

2018-09-17 Thread Liang Ma
Update the document for empty poll API. Signed-off-by: Liang Ma --- doc/guides/prog_guide/power_man.rst | 90 + 1 file changed, 90 insertions(+) diff --git a/doc/guides/prog_guide/power_man.rst b/doc/guides/prog_guide/power_man.rst index eba1cc6..056cb12

[dpdk-dev] [PATCH v8 1/4] lib/librte_power: traffic pattern aware power control

2018-09-17 Thread Liang Ma
e training as default option. Signed-off-by: Liang Ma Reviewed-by: Lei Yao --- lib/librte_power/Makefile | 6 +- lib/librte_power/meson.build| 5 +- lib/librte_power/rte_power_empty_poll.c | 539 lib/librte_power/rte_power_empty_po

[dpdk-dev] [PATCH v8 4/4] doc/guides/sample_app_ug/l3_forward_power_man.rst: empty poll update

2018-09-17 Thread Liang Ma
Add empty poll mode command line example Signed-off-by: Liang Ma --- doc/guides/sample_app_ug/l3_forward_power_man.rst | 29 +++ 1 file changed, 29 insertions(+) diff --git a/doc/guides/sample_app_ug/l3_forward_power_man.rst b/doc/guides/sample_app_ug

Re: [dpdk-dev] [PATCH v8 4/4] doc/guides/sample_app_ug/l3_forward_power_man.rst: empty poll update

2018-09-28 Thread Liang, Ma
fic Aware power management. See below for details. > > > > On 25/9/2018 2:20 PM, Kovacevic, Marko wrote: > >>Add empty poll mode command line example > >> > >>Signed-off-by: Liang Ma > >>--- > >> doc/guides/sample_app_ug/l3_fo

[dpdk-dev] [PATCH v9 2/4] examples/l3fwd-power: simple app update for new API

2018-09-28 Thread Liang Ma
worker thread busyness. the default timer resolution is 10ms. ChangeLog: v2 fix some coding style issues v3 rename the API. v6 re-work the API. v7 no change. v8 disable training as default option. Signed-off-by: Liang Ma Reviewed-by: Lei Yao --- examples/l3fwd-power

[dpdk-dev] [PATCH v9 3/4] doc/guides/pro_guide/power-man: update the power API

2018-09-28 Thread Liang Ma
Update the document for empty poll API. Change Logs: v9: minor changes for syntax. Update document. Signed-off-by: Liang Ma --- doc/guides/prog_guide/power_man.rst | 86 + 1 file changed, 86 insertions(+) diff --git a/doc/guides/prog_guide/power_man.rst b

[dpdk-dev] [PATCH v9 1/4] lib/librte_power: traffic pattern aware power control

2018-09-28 Thread Liang Ma
r typo and lift node num limit. v8: disable training as default option. v9: minor git log update. Signed-off-by: Liang Ma Reviewed-by: Lei Yao --- lib/librte_power/Makefile | 6 +- lib/librte_power/meson.build| 5 +- lib/librte_power/rte_power_empty_po

[dpdk-dev] [PATCH v1 1/2] lib/librte_power: traffic pattern aware power control

2018-06-08 Thread Liang Ma
_val index, uint32_t limit); which allow user customize the frequency of power state. 8. rte_empty_poll_setup_timer(void); which is used to setup the timer/callback to process all above counter. Signed-off-by: Liang Ma --- lib/librte_power/Makefile | 3 +- lib/librte_power/meson.build

[dpdk-dev] [PATCH v1 2/2] examples/l3fwd-power: simple app update to support new API

2018-06-08 Thread Liang Ma
Add the support for new traffic pattern aware power control power management API. Example: ./l3fwd-power -l xxx -n 4 -w :xx:00.0 -w :xx:00.1 -- -p 0x3 -P --config="(0,0,xx),(1,0,xx)" --empty-poll Signed-off-by: Liang Ma --- examples/l3fwd-power/ma

[dpdk-dev] [PATCH v2 1/2] lib/librte_power: traffic pattern aware power control

2018-06-08 Thread Liang Ma
_val index, uint32_t limit); which allow user customize the frequency of power state. 8. rte_empty_poll_setup_timer(void); which is used to setup the timer/callback to process all above counter. ChangeLog: v2: fix some coding style issues Signed-off-by: Liang Ma --- lib/librte_power/Makefile

[dpdk-dev] [PATCH v2 2/2] examples/l3fwd-power: simple app update to support new API

2018-06-08 Thread Liang Ma
Add the support for new traffic pattern aware power control power management API. Example: ./l3fwd-power -l xxx -n 4 -w :xx:00.0 -w :xx:00.1 -- -p 0x3 -P --config="(0,0,xx),(1,0,xx)" --empty-poll ChangeLog: v2 Fix some coding style issues Signed-off-by: Liang Ma --- exam

Re: [dpdk-dev] OPDL and 18.02 Release Notes

2018-04-09 Thread Liang, Ma
On 05 Mar 17:58, Ferruh Yigit wrote: > On 2/9/2018 12:08 AM, Rosen, Rami wrote: > > Hi all, > > Following the recent announcement of DPDK 18.02-RC4, I went over > > 18.02 release notes and I have this minor query which I am not sure about: > > In the release notes: > > http://dpdk.org/doc/guides/re

[dpdk-dev] [PATCH v5 01/12] event/opdl: add the opdl ring infrastructure library

2018-01-09 Thread Liang Ma
system to enable compilation. Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- config/common_base|5 + drivers/event/Makefile|1 + drivers/event/opdl/Makefile | 35 + drivers/event/opdl

[dpdk-dev] [RFC v5 PATCH 00/12] event: eventdev OPDL PMD

2018-01-09 Thread Liang Ma
. remove the opdl pmd example doc. Liang Ma (12): event/opdl: add the opdl ring infrastructure library event/opdl: add opdl PMD main body and helper function event/opdl: add event queue config get/set support event/opdl: add event port config get/set support event/opdl: add eventdev enqueue

[dpdk-dev] [PATCH v5 02/12] event/opdl: add opdl PMD main body and helper function

2018-01-09 Thread Liang Ma
implement all initailization helper function This commit only adds the implementation, no existing DPDK files are modified. Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- drivers/event/opdl/Makefile| 3 + drivers/event/opdl/opdl_evdev.c| 440

[dpdk-dev] [PATCH v5 03/12] event/opdl: add event queue config get/set support

2018-01-09 Thread Liang Ma
Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- drivers/event/opdl/opdl_evdev.c | 108 1 file changed, 108 insertions(+) diff --git a/drivers/event/opdl/opdl_evdev.c b/drivers/event/opdl/opdl_evdev.c index cad000a..11ac8fc 100644 --- a/drivers

[dpdk-dev] [PATCH v5 04/12] event/opdl: add event port config get/set support

2018-01-09 Thread Liang Ma
Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- drivers/event/opdl/opdl_evdev.c | 152 1 file changed, 152 insertions(+) diff --git a/drivers/event/opdl/opdl_evdev.c b/drivers/event/opdl/opdl_evdev.c index 11ac8fc..56e6910 100644 --- a/drivers

[dpdk-dev] [PATCH v5 05/12] event/opdl: add eventdev enqueue/dequeue support

2018-01-09 Thread Liang Ma
Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- drivers/event/opdl/opdl_evdev.c | 66 + 1 file changed, 66 insertions(+) diff --git a/drivers/event/opdl/opdl_evdev.c b/drivers/event/opdl/opdl_evdev.c index 56e6910..c42e813 100644 --- a/drivers

[dpdk-dev] [PATCH v5 06/12] event/opdl: opdl eventdev PMD unit test function

2018-01-09 Thread Liang Ma
This commit adds unit test inside the OPDL PMD. There is a PMd parameter "self_test" can be used to triger the test when vdev bus probe opdl device e.g. sudo ./app/test --vdev="event_opdl0,self_test=1" Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- drivers

[dpdk-dev] [PATCH v5 08/12] event/dpaa2: apply the three new capability flags

2018-01-09 Thread Liang Ma
Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- drivers/event/dpaa2/dpaa2_eventdev.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/event/dpaa2/dpaa2_eventdev.c b/drivers/event/dpaa2/dpaa2_eventdev.c index 13e7122..e437edc 100644 --- a/drivers/event

[dpdk-dev] [PATCH v5 09/12] event/octeontx: apply the three new capability flags

2018-01-09 Thread Liang Ma
Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- drivers/event/octeontx/ssovf_evdev.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/event/octeontx/ssovf_evdev.c b/drivers/event/octeontx/ssovf_evdev.c index b80a6c0..d85b4fb 100644 --- a/drivers/event

[dpdk-dev] [PATCH v5 07/12] lib/librte_eventdev: extend the eventdev capability flags

2018-01-09 Thread Liang Ma
single port. if the flag is not set, the eventdev can only map a single queue to each port or map a signle queue to many port. Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- lib/librte_eventdev/rte_eventdev.h | 22 ++ 1 file changed, 22 insertions(+) diff --git a

[dpdk-dev] [PATCH v5 11/12] doc: update 18.02 release notes and maintainers info

2018-01-09 Thread Liang Ma
Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- MAINTAINERS| 6 ++ doc/guides/rel_notes/release_18_02.rst | 11 +++ 2 files changed, 17 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index f0baeb4..1b8d617 100644 --- a/MAINTAINERS +++ b

[dpdk-dev] [PATCH v5 10/12] event/sw: apply the three new capability flags

2018-01-09 Thread Liang Ma
Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- drivers/event/sw/sw_evdev.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/event/sw/sw_evdev.c b/drivers/event/sw/sw_evdev.c index 1ef6340..aed521b 100644 --- a/drivers/event/sw/sw_evdev.c +++ b/drivers

[dpdk-dev] [PATCH v5 12/12] doc: add eventdev opdl PMD guide

2018-01-09 Thread Liang Ma
Add the description about opdl pmd Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- doc/guides/eventdevs/index.rst | 1 + doc/guides/eventdevs/opdl.rst | 162 + 2 files changed, 163 insertions(+) create mode 100644 doc/guides/eventdevs

[dpdk-dev] [RFC v6 PATCH 00/12] event: eventdev OPDL PMD

2018-01-09 Thread Liang Ma
eventdev. 3. remove the opdl pmd example code. 4. remove the opdl pmd example doc. Liang Ma (12): event/opdl: add the opdl ring infrastructure library event/opdl: add opdl PMD main body and helper function event/opdl: add event queue config get/set support event/opdl: add event port config

[dpdk-dev] [PATCH v6 01/12] event/opdl: add the opdl ring infrastructure library

2018-01-09 Thread Liang Ma
system to enable compilation. Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- config/common_base|5 + drivers/event/Makefile|1 + drivers/event/opdl/Makefile | 35 + drivers/event/opdl

[dpdk-dev] [PATCH v6 02/12] event/opdl: add opdl PMD main body and helper function

2018-01-09 Thread Liang Ma
implement all initailization helper function This commit only adds the implementation, no existing DPDK files are modified. Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- drivers/event/opdl/Makefile| 3 + drivers/event/opdl/opdl_evdev.c| 440

[dpdk-dev] [PATCH v6 03/12] event/opdl: add event queue config get/set support

2018-01-09 Thread Liang Ma
Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- drivers/event/opdl/opdl_evdev.c | 108 1 file changed, 108 insertions(+) diff --git a/drivers/event/opdl/opdl_evdev.c b/drivers/event/opdl/opdl_evdev.c index cad000a..11ac8fc 100644 --- a/drivers

[dpdk-dev] [PATCH v6 04/12] event/opdl: add event port config get/set support

2018-01-09 Thread Liang Ma
Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- drivers/event/opdl/opdl_evdev.c | 152 1 file changed, 152 insertions(+) diff --git a/drivers/event/opdl/opdl_evdev.c b/drivers/event/opdl/opdl_evdev.c index 11ac8fc..56e6910 100644 --- a/drivers

[dpdk-dev] [PATCH v6 05/12] event/opdl: add eventdev enqueue/dequeue support

2018-01-09 Thread Liang Ma
Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- drivers/event/opdl/opdl_evdev.c | 66 + 1 file changed, 66 insertions(+) diff --git a/drivers/event/opdl/opdl_evdev.c b/drivers/event/opdl/opdl_evdev.c index 56e6910..c42e813 100644 --- a/drivers

[dpdk-dev] [PATCH v6 06/12] event/opdl: opdl eventdev PMD unit test function

2018-01-09 Thread Liang Ma
This commit adds unit test inside the OPDL PMD. There is a PMd parameter "self_test" can be used to triger the test when vdev bus probe opdl device e.g. sudo ./app/test --vdev="event_opdl0,self_test=1" Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- drivers

[dpdk-dev] [PATCH v6 07/12] event/opdl: extend the eventdev capability flags

2018-01-09 Thread Liang Ma
queue with single port. If the flag is not set, the eventdev can only map a single queue to each port or map a single queue to many port. Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- lib/librte_eventdev/rte_eventdev.h | 22 ++ 1 file changed, 22 insertions(+) diff

[dpdk-dev] [PATCH v6 08/12] event/dpaa2: apply the three new capability flags

2018-01-09 Thread Liang Ma
Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- drivers/event/dpaa2/dpaa2_eventdev.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/event/dpaa2/dpaa2_eventdev.c b/drivers/event/dpaa2/dpaa2_eventdev.c index 13e7122..e437edc 100644 --- a/drivers/event

[dpdk-dev] [PATCH v6 10/12] event/sw: apply the three new capability flags

2018-01-09 Thread Liang Ma
Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- drivers/event/sw/sw_evdev.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/event/sw/sw_evdev.c b/drivers/event/sw/sw_evdev.c index 1ef6340..aed521b 100644 --- a/drivers/event/sw/sw_evdev.c +++ b/drivers

[dpdk-dev] [PATCH v6 09/12] event/octeontx: apply the three new capability flags

2018-01-09 Thread Liang Ma
Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- drivers/event/octeontx/ssovf_evdev.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/event/octeontx/ssovf_evdev.c b/drivers/event/octeontx/ssovf_evdev.c index b80a6c0..d85b4fb 100644 --- a/drivers/event

[dpdk-dev] [PATCH v6 11/12] doc: update 18.02 release notes and maintainers info

2018-01-09 Thread Liang Ma
Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- MAINTAINERS| 6 ++ doc/guides/rel_notes/release_18_02.rst | 11 +++ 2 files changed, 17 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index f0baeb4..1b8d617 100644 --- a/MAINTAINERS +++ b

[dpdk-dev] [PATCH v6 12/12] doc: add eventdev opdl PMD guide

2018-01-09 Thread Liang Ma
Add the description about opdl pmd Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- doc/guides/eventdevs/index.rst | 1 + doc/guides/eventdevs/opdl.rst | 162 + 2 files changed, 163 insertions(+) create mode 100644 doc/guides/eventdevs

[dpdk-dev] [RFC v7 PATCH 00/12] event: eventdev OPDL PMD

2018-01-10 Thread Liang Ma
capability flags for overall eventdev. 3. remove the opdl pmd example code. 4. remove the opdl pmd example doc. Liang Ma (12): event/opdl: add the opdl ring infrastructure library event/opdl: add opdl PMD main body and helper function event/opdl: add event queue config get/set support event

[dpdk-dev] [PATCH v7 01/12] event/opdl: add the opdl ring infrastructure library

2018-01-10 Thread Liang Ma
system to enable compilation. Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy Reviewed-by: Seán Harte --- config/common_base|5 + drivers/event/Makefile|1 + drivers/event/opdl/Makefile | 35

[dpdk-dev] [PATCH v7 02/12] event/opdl: add opdl PMD main body and helper function

2018-01-10 Thread Liang Ma
implement all initialization helper function This commit only adds the implementation, no existing DPDK files are modified. Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- drivers/event/opdl/Makefile| 3 + drivers/event/opdl/opdl_evdev.c| 440

[dpdk-dev] [PATCH v7 04/12] event/opdl: add event port config get/set support

2018-01-10 Thread Liang Ma
Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- drivers/event/opdl/opdl_evdev.c | 152 1 file changed, 152 insertions(+) diff --git a/drivers/event/opdl/opdl_evdev.c b/drivers/event/opdl/opdl_evdev.c index 11ac8fc..56e6910 100644 --- a/drivers

[dpdk-dev] [PATCH v7 03/12] event/opdl: add event queue config get/set support

2018-01-10 Thread Liang Ma
Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- drivers/event/opdl/opdl_evdev.c | 108 1 file changed, 108 insertions(+) diff --git a/drivers/event/opdl/opdl_evdev.c b/drivers/event/opdl/opdl_evdev.c index cad000a..11ac8fc 100644 --- a/drivers

[dpdk-dev] [PATCH v7 05/12] event/opdl: add eventdev enqueue/dequeue support

2018-01-10 Thread Liang Ma
Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- drivers/event/opdl/opdl_evdev.c | 66 + 1 file changed, 66 insertions(+) diff --git a/drivers/event/opdl/opdl_evdev.c b/drivers/event/opdl/opdl_evdev.c index 56e6910..c42e813 100644 --- a/drivers

[dpdk-dev] [PATCH v7 06/12] event/opdl: opdl eventdev PMD unit test function

2018-01-10 Thread Liang Ma
This commit adds unit test inside the OPDL PMD. There is a PMD parameter "self_test" can be used to trigger the test when vdev bus probe opdl device e.g. sudo ./app/test --vdev="event_opdl0,self_test=1" Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- drivers

[dpdk-dev] [PATCH v7 07/12] event/opdl: extend the eventdev capability flags

2018-01-10 Thread Liang Ma
queue with single port. If the flag is not set, the eventdev can only map a single queue to each port or map a single queue to many port. Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- lib/librte_eventdev/rte_eventdev.h | 22 ++ 1 file changed, 22 insertions(+) diff

[dpdk-dev] [PATCH v7 08/12] event/dpaa2: apply the three new capability flags

2018-01-10 Thread Liang Ma
Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- drivers/event/dpaa2/dpaa2_eventdev.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/event/dpaa2/dpaa2_eventdev.c b/drivers/event/dpaa2/dpaa2_eventdev.c index 13e7122..e437edc 100644 --- a/drivers/event

[dpdk-dev] [PATCH v7 09/12] event/octeontx: apply the three new capability flags

2018-01-10 Thread Liang Ma
Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- drivers/event/octeontx/ssovf_evdev.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/event/octeontx/ssovf_evdev.c b/drivers/event/octeontx/ssovf_evdev.c index b80a6c0..d85b4fb 100644 --- a/drivers/event

[dpdk-dev] [PATCH v7 12/12] doc: add eventdev opdl PMD guide

2018-01-10 Thread Liang Ma
Add the description about opdl PMD Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- doc/guides/eventdevs/index.rst | 1 + doc/guides/eventdevs/opdl.rst | 136 + 2 files changed, 137 insertions(+) create mode 100644 doc/guides/eventdevs

[dpdk-dev] [PATCH v7 10/12] event/sw: apply the three new capability flags

2018-01-10 Thread Liang Ma
Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- drivers/event/sw/sw_evdev.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/event/sw/sw_evdev.c b/drivers/event/sw/sw_evdev.c index 1ef6340..aed521b 100644 --- a/drivers/event/sw/sw_evdev.c +++ b/drivers

[dpdk-dev] [PATCH v7 11/12] doc: update 18.02 release notes and maintainers info

2018-01-10 Thread Liang Ma
Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- MAINTAINERS| 6 ++ doc/guides/rel_notes/release_18_02.rst | 11 +++ 2 files changed, 17 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index f0baeb4..1b8d617 100644 --- a/MAINTAINERS +++ b

Re: [dpdk-dev] [PATCH v7 12/12] doc: add eventdev opdl PMD guide

2018-01-10 Thread Liang, Ma
On 10 Jan 20:31, Jerin Jacob wrote: > -Original Message- > > Date: Wed, 10 Jan 2018 14:46:11 + > > From: Liang Ma > > To: jerin.ja...@caviumnetworks.com > > CC: dev@dpdk.org, harry.van.haa...@intel.com, bruce.richard...@intel.com, > > deepak.k.j..

Re: [dpdk-dev] [PATCH] event/opdl: rework loops to comply with dpdk style

2018-01-22 Thread Liang, Ma
xstat; > > - for (uint32_t i = 0; i < max_index; i++) { > + uint32_t i; > + for (i = 0; i < max_index; i++) { > > if (strncmp(name, > device->port_xstat[i].stat.name, > diff --git a/drivers/event/opdl/opdl_test.c b/drivers/event/opdl/opdl_test.c > index 44a5cc5..13d4f6b 100644 > --- a/drivers/event/opdl/opdl_test.c > +++ b/drivers/event/opdl/opdl_test.c > @@ -433,7 +433,8 @@ atomic_basic(struct test *t) > return -1; > } > > - for (int j = 0; j < 3; j++) { > + int j; > + for (j = 0; j < 3; j++) { > deq_ev[j].op = RTE_EVENT_OP_FORWARD; > deq_ev[j].queue_id = t->qid[1]; > } > @@ -495,8 +496,9 @@ static int > check_statistics(void) > { > int num_ports = 3; /* Hard-coded for this app */ > + int i; > > - for (int i = 0; i < num_ports; i++) { > + for (i = 0; i < num_ports; i++) { > int num_stats, num_stats_returned; > > num_stats = rte_event_dev_xstats_names_get(0, > -- > 2.7.4 > Many thanks Harry. Acked-by: Liang Ma

Re: [dpdk-dev] [PATCH] event/opdl: fix license header and SPDX tags

2018-01-23 Thread Liang, Ma
License-Identifier: BSD-3-Clause > + * Copyright(c) 2017 Intel Corporation > */ > > #ifndef _OPDL_H_ > diff --git a/drivers/event/opdl/opdl_test.c b/drivers/event/opdl/opdl_test.c > index 44a5cc539..c57e93b41 100644 > --- a/drivers/event/opdl/opdl_test.c > +++ b/drivers/event/opdl/opdl_test.c > @@ -1,6 +1,5 @@ > -/*- > - * SPDX-License-Identifier: BSD-3-Clause > - * Copyright(c) 2010-2014 Intel Corporation > +/* SPDX-License-Identifier: BSD-3-Clause > + * Copyright(c) 2017 Intel Corporation > */ > > #include > -- > 2.14.3 > Many thanks Bruce Acked-by: Liang Ma

[dpdk-dev] [PATCH 2/2] event/opdl: fix dereference before null check

2018-01-24 Thread Liang Ma
Fixes: 4236ce9bf5bf ("event/opdl: add OPDL ring infrastructure library") Coverity issue: 257022 Signed-off-by: Liang Ma --- drivers/event/opdl/opdl_ring.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/event/opdl/opdl_ring.c b/drivers/event/opdl/o

[dpdk-dev] [PATCH 1/2] event/opdl: fix the resource leak issue

2018-01-24 Thread Liang Ma
Fixes: d548ef513cd7 ("event/opdl: add unit tests") Coverity issue: 257004 Signed-off-by: Liang Ma --- drivers/event/opdl/opdl_test.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/event/opdl/opdl_test.c b/drivers/event/opdl/opdl_test.c index 44a5cc

Re: [dpdk-dev] [PATCH] event/opdl: fix ICC fails at compile time

2018-01-25 Thread Liang, Ma
t uint8_t tx_port = 2; > int err; > - int i; > struct rte_mbuf *mbufs[3]; > RTE_SET_USED(mbufs); > - RTE_SET_USED(i); > > /* Create instance with 5 ports */ > if (init(t, 2, tx_port+1) < 0 || > -- > 2.13.3 > Many thanks Zhi Yong. Acked-by: Liang Ma

Re: [dpdk-dev] [PATCH 02/18] event/opdl: align dynamic log name with standard

2018-01-25 Thread Liang, Ma
pdl_init_log); > static void > opdl_init_log(void) > { > - opdl_logtype_driver = rte_log_register("eventdev.opdl.driver"); > + opdl_logtype_driver = rte_log_register("pmd.event.opdl.driver"); > if (opdl_logtype_driver >= 0) > rte_log_s

[dpdk-dev] [PATCH] event/opdl: fix atomic queue race condition issue

2018-03-13 Thread Liang Ma
OPDL ring infrastructure library") Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- drivers/event/opdl/opdl_evdev_init.c | 3 ++ drivers/event/opdl/opdl_ring.c | 95 +--- drivers/event/opdl/opdl_ring.h | 16 +- 3 files changed, 85

Re: [dpdk-dev] [PATCH] event/opdl: fix atomic queue race condition issue

2018-03-26 Thread Liang, Ma
On 26 Mar 05:29, Van Haaren, Harry wrote: > > From: Ma, Liang J > > Sent: Tuesday, March 13, 2018 11:34 AM > > To: jerin.ja...@caviumnetworks.com > > Cc: dev@dpdk.org; Van Haaren, Harry ; Jain, > > Deepak > > K ; Geary, John ; Mccarthy, > > Peter > > Subject: [PATCH] event/opdl: fix atomic queue

[dpdk-dev] [PATCH v2] event/opdl: fix atomic queue race condition issue

2018-03-27 Thread Liang Ma
OPDL ring infrastructure library") Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- drivers/event/opdl/opdl_evdev_init.c | 3 ++ drivers/event/opdl/opdl_ring.c | 97 +--- drivers/event/opdl/opdl_ring.h | 16 +- 3 files changed, 86

Re: [dpdk-dev] [PATCH v4 1/2] eventdev: add device stop flush callback

2018-03-30 Thread Liang, Ma
On 29 Mar 04:02, Van Haaren, Harry wrote: > (+Liang Ma for OPDL maintainer) > > Ping to maintainers, is the below suggestion acceptable for your PMDs? > > Summary of suggestion: > - After event_dev_stop() dequeue() is no longer allowed on any thread > - All events in the

[dpdk-dev] [PATCH v2 1/8] event/opdl: add the opdl ring infrastructure library

2017-12-15 Thread Liang Ma
: Liang Ma Signed-off-by: Peter, Mccarthy --- drivers/event/opdl/Makefile | 66 ++ drivers/event/opdl/opdl_ring.c| 1232 + drivers/event/opdl/opdl_ring.h| 601 ++ drivers/event/opdl

[dpdk-dev] [RFC v2 PATCH 0/8] event: eventdev OPDL PMD

2017-12-15 Thread Liang Ma
/eventdevs/index.html] Original Ordered Pipeline Design slides [https://dpdksummit.com/Archive/pdf/2017Asia/DPDK-China2017-Ma-OPDL.pdf] Liang Ma (8): event/opdl: add the opdl ring infrastructure library event/opdl: add the opdl pmd header and init helper function event/opdl: add the opdl pmd

<    1   2   3   >