[PATCH v5] graph: mcore: optimize graph search
David Marchand
david.marchand at redhat.com
Fri Dec 13 15:36:11 CET 2024
On Fri, Dec 13, 2024 at 3:22 AM Huichao Cai <chcchc88 at 163.com> wrote:
> diff --git a/lib/graph/rte_graph_worker_common.h b/lib/graph/rte_graph_worker_common.h
> index d3ec88519d..aef0f65673 100644
> --- a/lib/graph/rte_graph_worker_common.h
> +++ b/lib/graph/rte_graph_worker_common.h
> @@ -110,6 +110,7 @@ struct __rte_cache_aligned rte_node {
> unsigned int lcore_id; /**< Node running lcore. */
> uint64_t total_sched_objs; /**< Number of objects scheduled. */
> uint64_t total_sched_fail; /**< Number of scheduled failure. */
> + struct rte_graph *graph; /**< Graph corresponding to lcore_id. */
> } dispatch;
> };
The rte_node struct size is not changed with this patch.
In v24.11, rte_node objects are populated/allocated in
graph_nodes_populate which zero's the whole rte_node.
So this change looks safe from an ABI compat with v24.11 pov.
However, we need to waive the warning from libabigail:
http://mails.dpdk.org/archives/test-report/2024-December/834167.html
Please add a temporary exception in devtools/libabigail.abignore.
It should be something like:
[suppress_type]
name = rte_node
has_size_change = no
has_data_member_inserted_between =
{offset_of(total_sched_fail), offset_of(xstat_off)}
--
David Marchand
More information about the dev
mailing list