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

Function graph_init_tree

dpdk/app/test/test_graph_perf.c:844–884  ·  view source on GitHub ↗

Graph Topology * nodes per stage: 4 * stages: 4 * src: 1 * sink: 4 */

Source from the content-addressed store, hash-verified

842 * sink: 4
843 */
844static inline int
845graph_init_tree(void)
846{
847 uint8_t edge_map[][4][4] = {
848 {
849 {100, 0, 0, 0},
850 {0, 0, 0, 0},
851 {0, 0, 0, 0},
852 {0, 0, 0, 0}
853 },
854 {
855 {50, 0, 0, 0},
856 {50, 0, 0, 0},
857 {0, 0, 0, 0},
858 {0, 0, 0, 0}
859 },
860 {
861 {33, 33, 0, 0},
862 {34, 34, 0, 0},
863 {33, 33, 0, 0},
864 {0, 0, 0, 0}
865 },
866 {
867 {25, 25, 25, 0},
868 {25, 25, 25, 0},
869 {25, 25, 25, 0},
870 {25, 25, 25, 0}
871 }
872 };
873 uint8_t src_map[][4] = { {100, 0, 0, 0} };
874 uint8_t snk_map[][4] = {
875 {100, 0, 0, 0},
876 {0, 100, 0, 0},
877 {0, 0, 100, 0},
878 {0, 0, 0, 100}
879 };
880
881 return graph_init("graph_full_split", SOURCES(src_map), SINKS(snk_map),
882 STAGES(edge_map), NODES_PER_STAGE(edge_map), src_map,
883 snk_map, edge_map, 0);
884}
885
886/* Graph Topology
887 * nodes per stage: 4

Callers

nothing calls this directly

Calls 1

graph_initFunction · 0.70

Tested by

no test coverage detected