Update the email address for graph libraries.
Signed-off-by: Zhirun Yan
---
MAINTAINERS | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/MAINTAINERS b/MAINTAINERS
index 962c359cdd..ff71dc2825 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -1738,7 +1738,7 @@ Graph
M: Jerin
Return value stored in "ret" but it may be overwritten before use.
Add goto to return when meet an error. Issue reported by coverity scan.
Coverity issue: 395532
Fixes: 15f483feec65 ("graph: fix model check in core binding")
Signed-off-by: Zhirun Yan
---
app/te
nbind API")
Signed-off-by: Zhirun Yan
---
app/test/test_graph.c | 6 ++
doc/guides/rel_notes/release_23_07.rst | 10 ++
lib/graph/graph.c | 2 +-
3 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/app/test/test_graph.c
rte_graph_clone() should use valid param rather than NULL pointer, cause it
needs the param for alloc work queue memory for mcore dispatch model in
graph_sched_wq_create().
Fixes: 67e2303cd823 ("test/graph: add functional tests for mcore dispatch
model")
Signed-off-by: Zhirun Yan
---
Fix graph clone issue in functional test.
Correct graph model check in graph core binding.
Update release note for mcore dispatch model.
Zhirun Yan (2):
graph: fix graph functional tests with valid params
graph: fix graph model check in core binding
app/test/test_graph.c
ional tests for mcore dispatch
model")
Signed-off-by: Zhirun Yan
---
app/test/test_graph.c | 15 ---
doc/guides/rel_notes/release_23_07.rst | 11 +++
lib/graph/graph.c | 2 +-
3 files changed, 24 insertions(+), 4 deletions(-)
d
Fix graph model check in core binding with graph. And rte_graph_clone()
need to use valid params rather than NULL pointer.
Update release notes for new mcore dispatch model.
Signed-off-by: Zhirun Yan
---
app/test/test_graph.c | 15 ---
doc/guides/rel_notes
Fix graph model check in core binding with graph.
Update release notes for new mcore dispatch model.
Signed-off-by: Zhirun Yan
---
doc/guides/rel_notes/release_23_07.rst | 12
lib/graph/graph.c | 2 +-
2 files changed, 13 insertions(+), 1 deletion(-)
diff
-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
Acked-by: Pavan Nikhilesh
---
doc/guides/sample_app_ug/l3_forward_graph.rst | 16 ++
examples/l3fwd-graph/main.c | 230 +++---
2 files changed, 208 insertions(+), 38 deletions(-)
diff --
Add functional test for mcore dispatch model including graph clone,
graph model set/get, node worker affinity, graph worker binding/unbinding.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Pavan Nikhilesh
---
app/test/test_graph.c | 130
Add stats for mcore dispatch model if stats collection is
enabled.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
Acked-by: Pavan Nikhilesh
---
lib/graph/graph_debug.c| 6 ++
lib/graph/graph_stats.c
This patch enables to chose new scheduler model. Must define
RTE_GRAPH_MODEL_SELECT before including rte_graph_worker.h
to enable specific model choosing.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
Acked-by: Pavan Nikhilesh
queue first, then handle the local work queue.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
Acked-by: Pavan Nikhilesh
---
lib/graph/rte_graph_model_mcore_dispatch.h | 43 ++
1 file changed, 43 insertions(+)
diff
This patch enables to create and destroy scheduling workqueue into
common graph operations.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Pavan Nikhilesh
---
lib/graph/graph.c | 11 ++-
1 file changed, 10 insertions(+), 1 deletion
This patch introduces key functions to allow a worker thread to
enable enqueue and move streams of objects to the next nodes over
different cores for mcore dispatch model.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Pavan Nikhilesh
---
lib
Add graph_mcore_dispatch_wq_node to hold graph scheduling workqueue
node.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
---
lib/graph/graph.c | 2 ++
lib/graph/graph_populate.c | 1 +
lib/graph/graph_private.h | 12
This patch adds graph API for supporting to clone the graph object for
a specified worker core. The new graph will also clone all nodes.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
---
lib/graph/graph.c | 89
Move clone_name() into graph_private.h as a common function for both node
and graph to naming a new cloned object.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
---
lib/graph/graph_private.h | 41
Add lcore_id for graph to hold affinity core id where graph would run on.
Add bind/unbind API to set/unset graph affinity attribute. lcore_id will
be set as MAX by default, it means not enable this attribute.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Add lcore_id for node to hold affinity core id and impl
rte_graph_model_mcore_dispatch_lcore_affinity_set to set node affinity
with specific lcore.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
---
lib/graph/graph_private.h
Add new get/set APIs to configure graph worker model which is used to
determine which model will be chosen.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
---
lib/graph/meson.build | 1 +
lib/graph/rte_graph_worker.c
Node process is a single and reusable block, move the code into an inline
function.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
---
lib/graph/rte_graph_model_rtc.h | 20 ++---
lib/graph/rte_graph_worker_common.h | 33
To support multiple graph worker model, split graph into common
and default. Naming the current walk function as rte_graph_model_rtc
cause the default model is RTC(Run-to-completion).
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
Rename rte_graph_work.h to rte_graph_work_common.h for supporting
multiple graph worker model.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
---
MAINTAINERS | 3 ++-
app/test/test_graph.c
l choosing.
We could run with new worker model by this:
./dpdk-l3fwd-graph -l 8,9,10,11 -n 4 -- -p 0x1 --config="(0,0,9)" -P
--model="dispatch"
References:
https://static.sched.com/hosted_files/dpdkuserspace22/a6/graph%20introduce%20remote%20dispatch%20for%20mult-core%20scaling.pdf
-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
Acked-by: Pavan Nikhilesh
---
doc/guides/sample_app_ug/l3_forward_graph.rst | 16 ++
examples/l3fwd-graph/main.c | 230 +++---
2 files changed, 208 insertions(+), 38 deletions(-)
diff --
Add functional test for mcore dispatch model including graph clone,
graph model set/get, node worker affinity, graph worker binding/unbinding.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Pavan Nikhilesh
---
app/test/test_graph.c | 130
Add stats for mcore dispatch model if stats collection is
enabled.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
Acked-by: Pavan Nikhilesh
---
lib/graph/graph_debug.c| 6 ++
lib/graph/graph_stats.c
This patch enables to chose new scheduler model. Must define
RTE_GRAPH_MODEL_SELECT before including rte_graph_worker.h
to enable specific model choosing.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
Acked-by: Pavan Nikhilesh
queue first, then handle the local work queue.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
Acked-by: Pavan Nikhilesh
---
lib/graph/rte_graph_model_mcore_dispatch.h | 44 ++
1 file changed, 44 insertions(+)
diff
This patch enables to create and destroy scheduling workqueue into
common graph operations.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Pavan Nikhilesh
---
lib/graph/graph.c | 10 ++
1 file changed, 10 insertions(+)
diff --git a/lib
This patch introduces key functions to allow a worker thread to
enable enqueue and move streams of objects to the next nodes over
different cores for mcore dispatch model.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Pavan Nikhilesh
---
lib
Add graph_mcore_dispatch_wq_node to hold graph scheduling workqueue
node.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
---
lib/graph/graph.c | 2 ++
lib/graph/graph_populate.c | 1 +
lib/graph/graph_private.h | 12
This patch adds graph API for supporting to clone the graph object for
a specified worker core. The new graph will also clone all nodes.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
---
lib/graph/graph.c | 89
Move clone_name() into graph_private.h as a common function for both node
and graph to naming a new cloned object.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
---
lib/graph/graph_private.h | 41
Add lcore_id for graph to hold affinity core id where graph would run on.
Add bind/unbind API to set/unset graph affinity attribute. lcore_id will
be set as MAX by default, it means not enable this attribute.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Add lcore_id for node to hold affinity core id and impl
rte_graph_model_mcore_dispatch_lcore_affinity_set to set node affinity
with specific lcore.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
---
lib/graph/graph_private.h
Add new get/set APIs to configure graph worker model which is used to
determine which model will be chosen.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
---
lib/graph/meson.build | 1 +
lib/graph/rte_graph_worker.c
Node process is a single and reusable block, move the code into an inline
function.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
---
lib/graph/rte_graph_model_rtc.h | 20 ++---
lib/graph/rte_graph_worker_common.h | 33
To support multiple graph worker model, split graph into common
and default. Naming the current walk function as rte_graph_model_rtc
cause the default model is RTC(Run-to-completion).
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
Rename rte_graph_work.h to rte_graph_work_common.h for supporting
multiple graph worker model.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
---
MAINTAINERS | 3 ++-
app/test/test_graph.c
for new models.
9. Abstract default graph config process and integrate new model into
example/l3fwd-graph. Add new parameters for model choosing.
We could run with new worker model by this:
./dpdk-l3fwd-graph -l 8,9,10,11 -n 4 -- -p 0x1 --config="(0,0,9)" -P
--model="dispatch"
-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
Acked-by: Pavan Nikhilesh
---
doc/guides/sample_app_ug/l3_forward_graph.rst | 16 ++
examples/l3fwd-graph/main.c | 230 +++---
2 files changed, 208 insertions(+), 38 deletions(-)
diff --
Add functional test for mcore dispatch model including graph clone,
graph model set/get, node worker affinity, graph worker binding/unbinding.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Pavan Nikhilesh
---
app/test/test_graph.c | 130
Add stats for mcore dispatch model if stats collection is
enabled.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
Acked-by: Pavan Nikhilesh
---
lib/graph/graph_debug.c| 6 ++
lib/graph/graph_stats.c
This patch enables to chose new scheduler model. Must define
RTE_GRAPH_MODEL_SELECT before including rte_graph_worker.h
to enable specific model choosing.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
Acked-by: Pavan Nikhilesh
queue first, then handle the local work queue.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
Acked-by: Pavan Nikhilesh
---
lib/graph/rte_graph_model_mcore_dispatch.h | 44 ++
1 file changed, 44 insertions(+)
diff
This patch enables to create and destroy scheduling workqueue into
common graph operations.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Pavan Nikhilesh
---
lib/graph/graph.c | 10 ++
1 file changed, 10 insertions(+)
diff --git a/lib
This patch introduces key functions to allow a worker thread to
enable enqueue and move streams of objects to the next nodes over
different cores for mcore dispatch model.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Pavan Nikhilesh
---
lib
Add graph_mcore_dispatch_wq_node to hold graph scheduling workqueue
node.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
---
lib/graph/graph.c | 2 ++
lib/graph/graph_populate.c | 1 +
lib/graph/graph_private.h | 12
This patch adds graph API for supporting to clone the graph object for
a specified worker core. The new graph will also clone all nodes.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
---
lib/graph/graph.c | 89
Move clone_name() into graph_private.h as a common function for both node
and graph to naming a new cloned object.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
---
lib/graph/graph_private.h | 41
Add lcore_id for graph to hold affinity core id where graph would run on.
Add bind/unbind API to set/unset graph affinity attribute. lcore_id will
be set as MAX by default, it means not enable this attribute.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Add lcore_id for node to hold affinity core id and impl
rte_graph_model_mcore_dispatch_lcore_affinity_set to set node affinity
with specific lcore.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
---
lib/graph/graph_private.h
Add new get/set APIs to configure graph worker model which is used to
determine which model will be chosen.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
---
lib/graph/meson.build | 1 +
lib/graph/rte_graph_worker.c
Node process is a single and reusable block, move the code into an inline
function.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
---
lib/graph/rte_graph_model_rtc.h | 20 ++---
lib/graph/rte_graph_worker_common.h | 33
To support multiple graph worker model, split graph into common
and default. Naming the current walk function as rte_graph_model_rtc
cause the default model is RTC(Run-to-completion).
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
Rename rte_graph_work.h to rte_graph_work_common.h for supporting
multiple graph worker model.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
---
MAINTAINERS | 3 ++-
app/test/test_graph.c
into
example/l3fwd-graph. Add new parameters for model choosing.
We could run with new worker model by this:
./dpdk-l3fwd-graph -l 8,9,10,11 -n 4 -- -p 0x1 --config="(0,0,9)" -P
--model="dispatch"
References:
https://static.sched.com/hosted_files/dpdkuserspace22/a6/graph%20int
-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
Acked-by: Pavan Nikhilesh
---
doc/guides/sample_app_ug/l3_forward_graph.rst | 16 ++
examples/l3fwd-graph/main.c | 230 +++---
2 files changed, 208 insertions(+), 38 deletions(-)
diff --
Add functional test for mcore dispatch model including graph clone,
graph model set/get, node worker affinity, graph worker binding/unbinding.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Pavan Nikhilesh
---
app/test/test_graph.c | 130
Add stats for mcore dispatch model if stats collection is
enabled.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
Acked-by: Pavan Nikhilesh
---
lib/graph/graph_debug.c| 6 ++
lib/graph/graph_stats.c
This patch enables to chose new scheduler model. Must define
RTE_GRAPH_MODEL_SELECT before including rte_graph_worker.h
to enable specific model choosing.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
Acked-by: Pavan Nikhilesh
This patch enables to create and destroy scheduling workqueue into
common graph operations.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Pavan Nikhilesh
---
lib/graph/graph.c | 10 ++
1 file changed, 10 insertions(+)
diff --git a/lib
queue first, then handle the local work queue.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
Acked-by: Pavan Nikhilesh
---
lib/graph/rte_graph_model_mcore_dispatch.h | 44 ++
1 file changed, 44 insertions(+)
diff
This patch introduces key functions to allow a worker thread to
enable enqueue and move streams of objects to the next nodes over
different cores for mcore dispatch model.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Pavan Nikhilesh
---
lib
Add graph_mcore_dispatch_wq_node to hold graph scheduling workqueue
node.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
---
lib/graph/graph.c | 2 ++
lib/graph/graph_populate.c | 1 +
lib/graph/graph_private.h | 12
This patch adds graph API for supporting to clone the graph object for
a specified worker core. The new graph will also clone all nodes.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
---
lib/graph/graph.c | 89
Move clone_name() into graph_private.h as a common function for both node
and graph to naming a new cloned object.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
---
lib/graph/graph_private.h | 41
Add lcore_id for graph to hold affinity core id where graph would run on.
Add bind/unbind API to set/unset graph affinity attribute. lcore_id will
be set as MAX by default, it means not enable this attribute.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Add lcore_id for node to hold affinity core id and impl
rte_graph_model_mcore_dispatch_lcore_affinity_set to set node affinity
with specific lcore.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
---
lib/graph/graph_private.h
Add new get/set APIs to configure graph worker model which is used to
determine which model will be chosen.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
---
lib/graph/meson.build | 1 +
lib/graph/rte_graph_worker.c
Node process is a single and reusable block, move the code into an inline
function.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
---
lib/graph/rte_graph_model_rtc.h | 20 ++---
lib/graph/rte_graph_worker_common.h | 33
To support multiple graph worker model, split graph into common
and default. Naming the current walk function as rte_graph_model_rtc
cause the default model is RTC(Run-to-completion).
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
Rename rte_graph_work.h to rte_graph_work_common.h for supporting
multiple graph worker model.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
---
MAINTAINERS | 3 ++-
app/test/test_graph.c
-queue in patch 8~12.
8. Add stats for new models.
9. Abstract default graph config process and integrate new model into
example/l3fwd-graph. Add new parameters for model choosing.
We could run with new worker model by this:
./dpdk-l3fwd-graph -l 8,9,10,11 -n 4 -- -p 0x1 --config="(0,0,9)&q
-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
Acked-by: Pavan Nikhilesh
---
doc/guides/sample_app_ug/l3_forward_graph.rst | 16 ++
examples/l3fwd-graph/main.c | 230 +++---
2 files changed, 208 insertions(+), 38 deletions(-)
diff --
Add functional test for mcore dispatch model including graph clone,
graph model set/get, node worker affinity, graph worker binding/unbinding.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Pavan Nikhilesh
---
app/test/test_graph.c | 130
This patch enables to chose new scheduler model. Must define
RTE_GRAPH_MODEL_SELECT before including rte_graph_worker.h
to enable specific model choosing.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
Acked-by: Pavan Nikhilesh
Add stats for mcore dispatch model if stats collection is
enabled.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
Acked-by: Pavan Nikhilesh
---
lib/graph/graph_debug.c| 6 ++
lib/graph/graph_stats.c
queue first, then handle the local work queue.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
Acked-by: Pavan Nikhilesh
---
lib/graph/rte_graph_model_mcore_dispatch.h | 44 ++
1 file changed, 44 insertions(+)
diff
This patch enables to create and destroy scheduling workqueue into
common graph operations.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Pavan Nikhilesh
---
lib/graph/graph.c | 10 ++
1 file changed, 10 insertions(+)
diff --git a/lib
This patch introduces key functions to allow a worker thread to
enable enqueue and move streams of objects to the next nodes over
different cores for mcore dispatch model.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Pavan Nikhilesh
---
lib
This patch adds graph API for supporting to clone the graph object for
a specified worker core. The new graph will also clone all nodes.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
---
lib/graph/graph.c | 89
Add graph_mcore_dispatch_wq_node to hold graph scheduling workqueue
node.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
---
lib/graph/graph.c | 2 ++
lib/graph/graph_populate.c | 1 +
lib/graph/graph_private.h | 12
Move clone_name() into graph_private.h as a common function for both node
and graph to naming a new cloned object.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
---
lib/graph/graph_private.h | 41
Add lcore_id for graph to hold affinity core id where graph would run on.
Add bind/unbind API to set/unset graph affinity attribute. lcore_id will
be set as MAX by default, it means not enable this attribute.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Add lcore_id for node to hold affinity core id and impl
rte_graph_model_mcore_dispatch_lcore_affinity_set to set node affinity
with specific lcore.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
---
lib/graph/graph_private.h
Add new get/set APIs to configure graph worker model which is used to
determine which model will be chosen.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
---
lib/graph/meson.build | 1 +
lib/graph/rte_graph_worker.c
Node process is a single and reusable block, move the code into an inline
function.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
---
lib/graph/rte_graph_model_rtc.h | 20 ++---
lib/graph/rte_graph_worker_common.h | 33
To support multiple graph worker model, split graph into common
and default. Naming the current walk function as rte_graph_model_rtc
cause the default model is RTC(Run-to-completion).
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
Rename rte_graph_work.h to rte_graph_work_common.h for supporting
multiple graph worker model.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
---
MAINTAINERS | 3 ++-
lib/graph
-queue in patch 8~12.
8. Add stats for new models.
9. Abstract default graph config process and integrate new model into
example/l3fwd-graph. Add new parameters for model choosing.
We could run with new worker model by this:
./dpdk-l3fwd-graph -l 8,9,10,11 -n 4 -- -p 0x1 --config="(0,0,9)
Add functional test for mcore dispatch model including graph clone,
graph model set/get, node worker affinity, graph worker binding/unbinding.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
---
app/test/test_graph.c | 130
-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
---
doc/guides/sample_app_ug/l3_forward_graph.rst | 16 ++
examples/l3fwd-graph/main.c | 230 +++---
2 files changed, 208 insertions(+), 38 deletions(-)
diff --git a/doc/guides/sample_app_ug/l3_forward_graph.r
Add stats for mcore dispatch model if stats collection is
enabled.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
---
lib/graph/graph_debug.c| 6 ++
lib/graph/graph_stats.c| 76
queue first, then handle the local work queue.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
Acked-by: Jerin Jacob
---
lib/graph/rte_graph_model_mcore_dispatch.h | 44 ++
1 file changed, 44 insertions(+)
diff --git a/lib/graph
This patch enables to chose new scheduler model. Must define
RTE_GRAPH_MODEL_SELECT before including rte_graph_worker.h
to enable specific model choosing.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
---
doc/guides/prog_guide/graph_lib.rst | 71
This patch enables to create and destroy scheduling workqueue into
common graph operations.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
---
lib/graph/graph.c | 10 ++
1 file changed, 10 insertions(+)
diff --git a/lib/graph/graph.c b/lib/graph
This patch introduces key functions to allow a worker thread to
enable enqueue and move streams of objects to the next nodes over
different cores for mcore dispatch model.
Signed-off-by: Haiyue Wang
Signed-off-by: Cunming Liang
Signed-off-by: Zhirun Yan
---
lib/graph/graph.c
1 - 100 of 362 matches
Mail list logo