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

Function test_dma

dpdk/app/test/test_dmadev.c:1083–1102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1081}
1082
1083static int
1084test_dma(void)
1085{
1086 int i;
1087
1088 parse_dma_env_var();
1089
1090 /* basic sanity on dmadev infrastructure */
1091 if (test_apis() < 0)
1092 ERR_RETURN("Error performing API tests\n");
1093
1094 if (rte_dma_count_avail() == 0)
1095 return TEST_SKIPPED;
1096
1097 RTE_DMA_FOREACH_DEV(i)
1098 if (test_dmadev_instance(i) < 0)
1099 ERR_RETURN("Error, test failure for device %d\n", i);
1100
1101 return 0;
1102}
1103
1104REGISTER_DRIVER_TEST(dmadev_autotest, test_dma);

Callers

nothing calls this directly

Calls 3

parse_dma_env_varFunction · 0.85
test_apisFunction · 0.85
rte_dma_count_availFunction · 0.85

Tested by

no test coverage detected