Hi, All
I'm confused with the function 'dpo_get_next_node()'.
The comment says it create a graph arc from each of
the child's registered node types to "each" of the parent's.
But if the parent_indices is a vector, assertions will be
triggered. So it implies that caller must guarantee the
next node of parent dpo has only one slot.
Is that right ?
vec_foreach(pi, parent_indices) <----- where i am confused with
{
edge = vlib_node_add_next(vm, child_node->index, *pi);
if (~0 == dpo_edges[child_type][child_proto][parent_type][parent_proto])
{
dpo_edges[child_type][child_proto][parent_type][parent_proto] = edge;
}
else
{
ASSERT(dpo_edges[child_type][child_proto][parent_type][parent_proto] == edge);
}
}
Best Regards,
Yacan
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#19184): https://lists.fd.io/g/vpp-dev/message/19184 Mute This Topic: https://lists.fd.io/mt/82059257/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-