From: Damjan Marion Date: Fri, 25 Oct 2019 12:55:53 +0000 (+0200) Subject: dpdk: replace deprecated VFIO API invocation X-Git-Tag: v20.05-rc0~510 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=67a6dcbc4490582abd0b1fc2a6cac822520b6a3c;p=vpp.git dpdk: replace deprecated VFIO API invocation Type: refactor Change-Id: I1712729b3f5d4ab659f51a2d3bf798db16b50820 Signed-off-by: Damjan Marion --- diff --git a/src/plugins/dpdk/buffer.c b/src/plugins/dpdk/buffer.c index d7a79161386..d691f9d205c 100644 --- a/src/plugins/dpdk/buffer.c +++ b/src/plugins/dpdk/buffer.c @@ -150,7 +150,8 @@ dpdk_buffer_pool_init (vlib_main_t * vm, vlib_buffer_pool_t * bp) pointer_to_uword (va) : pm->page_table[i]; if (do_vfio_map && - rte_vfio_dma_map (pointer_to_uword (va), pa, page_sz)) + rte_vfio_container_dma_map (RTE_VFIO_DEFAULT_CONTAINER_FD, + pointer_to_uword (va), pa, page_sz)) do_vfio_map = 0; struct rte_mempool_memhdr *memhdr;