Lines Matching refs:ret

33 	int ret = 0;  in test_latency_init()  local
38 ret = rte_latencystats_init(1, NULL); in test_latency_init()
39 TEST_ASSERT(ret >= 0, "Test Failed: rte_latencystats_init failed"); in test_latency_init()
47 int ret = 0; in test_latency_update() local
49 ret = rte_latencystats_update(); in test_latency_update()
50 TEST_ASSERT(ret >= 0, "Test Failed: rte_latencystats_update failed"); in test_latency_update()
58 int ret = 0; in test_latency_uninit() local
60 ret = rte_latencystats_uninit(); in test_latency_uninit()
61 TEST_ASSERT(ret >= 0, "Test Failed: rte_latencystats_uninit failed"); in test_latency_uninit()
63 ret = rte_metrics_deinit(); in test_latency_uninit()
64 TEST_ASSERT(ret >= 0, "Test Failed: rte_metrics_deinit failed"); in test_latency_uninit()
72 int ret = 0, i = 0; in test_latencystats_get_names() local
82 ret = rte_latencystats_get_names(names, size); in test_latencystats_get_names()
89 TEST_ASSERT((ret == NUM_STATS), "Test Failed to get metrics names"); in test_latencystats_get_names()
92 ret = rte_latencystats_get_names(NULL, size); in test_latencystats_get_names()
93 TEST_ASSERT((ret == NUM_STATS), "Test Failed to get the metrics count," in test_latencystats_get_names()
94 "Actual: %d Expected: %d", ret, NUM_STATS); in test_latencystats_get_names()
98 ret = rte_latencystats_get_names(names, size); in test_latencystats_get_names()
99 TEST_ASSERT((ret == NUM_STATS), "Test Failed to get the metrics count," in test_latencystats_get_names()
100 "Actual: %d Expected: %d", ret, NUM_STATS); in test_latencystats_get_names()
108 int ret = 0, i = 0; in test_latencystats_get() local
118 ret = rte_latencystats_get(values, size); in test_latencystats_get()
119 TEST_ASSERT((ret == NUM_STATS), "Test Failed to get latency metrics" in test_latencystats_get()
123 ret = rte_latencystats_get(NULL, size); in test_latencystats_get()
124 TEST_ASSERT((ret == NUM_STATS), "Test Failed to get the stats count," in test_latencystats_get()
125 "Actual: %d Expected: %d", ret, NUM_STATS); in test_latencystats_get()
129 ret = rte_latencystats_get(values, size); in test_latencystats_get()
130 TEST_ASSERT((ret == NUM_STATS), "Test Failed to get the stats count," in test_latencystats_get()
131 "Actual: %d Expected: %d", ret, NUM_STATS); in test_latencystats_get()
151 int ret; in test_latency_packet_forward() local
156 ret = test_get_mbuf_from_pool(&mp, pbuf, poolname); in test_latency_packet_forward()
157 if (ret < 0) { in test_latency_packet_forward()
161 ret = test_packet_forward(pbuf, portid, QUEUE_ID); in test_latency_packet_forward()
162 if (ret < 0) in test_latency_packet_forward()