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

Function test_refcnt_main

dpdk/app/test/test_mbuf.c:1071–1088  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1069}
1070
1071static int
1072test_refcnt_main(struct rte_mempool *refcnt_pool,
1073 struct rte_ring *refcnt_mbuf_ring)
1074{
1075 unsigned i, lcore;
1076
1077 lcore = rte_lcore_id();
1078 printf("%s started at lcore %u\n", __func__, lcore);
1079
1080 for (i = 0; i != REFCNT_MAX_ITER; i++)
1081 test_refcnt_iter(lcore, i, refcnt_pool, refcnt_mbuf_ring);
1082
1083 refcnt_stop_workers = 1;
1084 rte_wmb();
1085
1086 printf("%s finished at lcore %u\n", __func__, lcore);
1087 return 0;
1088}
1089
1090#endif
1091

Callers 1

test_refcnt_mbufFunction · 0.85

Calls 3

rte_lcore_idFunction · 0.85
test_refcnt_iterFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected