]> git.droids-corp.org - dpdk.git/commit
graph: remove useless duplicate name check
authorHaiyue Wang <haiyue.wang@intel.com>
Mon, 7 Mar 2022 10:25:56 +0000 (18:25 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 7 Mar 2022 19:31:14 +0000 (20:31 +0100)
commit6eccb0c9eea51089ce14bff92697245eb342963b
treea724c5f5a44e65d2bd3516b2c0a536c401e2eaec
parent79aab97c94024c4f969308ec806efb168cccc83d
graph: remove useless duplicate name check

The node clone API parameter 'name' is the new node's postfix name, not
the final node name, so it makes no sense to check it. And the new name
will be checked duplicate when calling API '__rte_node_register'.

And update the test case to call clone API twice to check the real name
duplicate.

Signed-off-by: Haiyue Wang <haiyue.wang@intel.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
app/test/test_graph.c
lib/graph/node.c