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

Function reset_dma

dpdk/examples/vhost/main.c:1886–1902  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1884}
1885
1886static void
1887reset_dma(void)
1888{
1889 int i;
1890
1891 for (i = 0; i < RTE_MAX_VHOST_DEVICE; i++) {
1892 int j;
1893
1894 for (j = 0; j < RTE_MAX_QUEUES_PER_PORT * 2; j++) {
1895 dma_bind[i].dmas[j].dev_id = INVALID_DMA_ID;
1896 dma_bind[i].dmas[j].async_enabled = false;
1897 }
1898 }
1899
1900 for (i = 0; i < RTE_DMADEV_DEFAULT_MAX; i++)
1901 dmas_id[i] = INVALID_DMA_ID;
1902}
1903
1904/*
1905 * Main function, does initialisation and calls the per-lcore functions.

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected