graph: populate fastpath memory for graph reel
authorJerin Jacob <jerinj@marvell.com>
Sat, 11 Apr 2020 14:14:05 +0000 (19:44 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 5 May 2020 21:28:24 +0000 (23:28 +0200)
commitd6bba625cd5097199bde4a766a03e61bb2349778
tree1d4564df1ac5a39bb6473e4c0e3516a19a4f42fa
parent32bd4751f941be8f77b3a260f947f21a7115964d
graph: populate fastpath memory for graph reel

Adding support to create and populate the memory for graph reel.
This includes reserving the memory in the memzone, populating the nodes,
Allocating memory for node-specific streams to hold objects.

Once it is populated the reel memory contains the following sections.

+---------------------+
|   Graph Header      |
+---------------------+
|   Fence             |
+---------------------+
|   Circular buffer   |
+---------------------+
|   Fence             |
+---------------------+
|   Node Object 0     |
+------------------- -+
|   Node Object 1     |
+------------------- -+
|   Node Object 2     |
+------------------- -+
|   Node Object n     |
+------------------- -+

Signed-off-by: Jerin Jacob <jerinj@marvell.com>
Signed-off-by: Kiran Kumar K <kirankumark@marvell.com>
Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
lib/librte_graph/Makefile
lib/librte_graph/graph.c
lib/librte_graph/graph_populate.c [new file with mode: 0644]
lib/librte_graph/graph_private.h
lib/librte_graph/meson.build
lib/librte_graph/node.c
lib/librte_graph/rte_graph_version.map
lib/librte_graph/rte_graph_worker.h [new file with mode: 0644]