MCPcopy Create free account
hub / github.com/F-Stack/f-stack / graph_setup

Function graph_setup

dpdk/app/test/test_graph.c:1001–1029  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

999}
1000
1001static int
1002graph_setup(void)
1003{
1004 int i, j;
1005
1006 static const struct rte_mbuf_dynfield graph_dynfield_desc = {
1007 .name = "test_graph_dynfield",
1008 .size = sizeof(graph_dynfield_t),
1009 .align = __alignof__(graph_dynfield_t),
1010 };
1011 graph_dynfield_offset =
1012 rte_mbuf_dynfield_register(&graph_dynfield_desc);
1013 if (graph_dynfield_offset < 0) {
1014 printf("Cannot register mbuf field\n");
1015 return TEST_FAILED;
1016 }
1017
1018 for (i = 0; i <= MAX_NODES; i++) {
1019 for (j = 0; j < MBUFF_SIZE; j++)
1020 mbuf_p[i][j] = &mbuf[i][j];
1021 }
1022 if (test_node_clone()) {
1023 printf("test_node_clone: fail\n");
1024 return -1;
1025 }
1026 printf("test_node_clone: pass\n");
1027
1028 return 0;
1029}
1030
1031static void
1032graph_teardown(void)

Callers

nothing calls this directly

Calls 3

test_node_cloneFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected