aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2019-10-25 14:55:53 +0200
committerFlorin Coras <florin.coras@gmail.com>2019-10-29 20:06:01 +0000
commit67a6dcbc4490582abd0b1fc2a6cac822520b6a3c (patch)
treeb30773c6105d763cca0c87f190609b4034ac1acf
parentee7437669c542a9497f1c3a5dde7af19b7244e35 (diff)
dpdk: replace deprecated VFIO API invocation
Type: refactor Change-Id: I1712729b3f5d4ab659f51a2d3bf798db16b50820 Signed-off-by: Damjan Marion <damarion@cisco.com>
-rw-r--r--src/plugins/dpdk/buffer.c3
1 files changed, 2 insertions, 1 deletions
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;