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

Function test_bbdev_count

dpdk/app/test-bbdev/test_bbdev.c:632–648  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

630}
631
632static int
633test_bbdev_count(void)
634{
635 uint8_t num_devs, num_valid_devs = 0;
636
637 for (num_devs = 0; num_devs < RTE_BBDEV_MAX_DEVS; num_devs++) {
638 if (rte_bbdev_is_valid(num_devs))
639 num_valid_devs++;
640 }
641
642 num_devs = rte_bbdev_count();
643 TEST_ASSERT(num_valid_devs == num_devs,
644 "Failed test for rte_bbdev_is_valid: "
645 "invalid num_devs %u ", num_devs);
646
647 return TEST_SUCCESS;
648}
649
650static int
651test_bbdev_stats(void)

Callers

nothing calls this directly

Calls 2

rte_bbdev_is_validFunction · 0.85
rte_bbdev_countFunction · 0.85

Tested by

no test coverage detected