From: Govindarajan Date: Fri, 11 Mar 2022 18:43:59 +0000 (+0000) Subject: crypto: Enabling IOMMU DMA translation table update for QAT card X-Git-Tag: v22.10-rc0~281 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F34%2F35634%2F2;p=vpp.git crypto: Enabling IOMMU DMA translation table update for QAT card With DPDK plugin, VPP does the DMA page map in IOMMU, only when DPDK supported ethernet devices are present. As a result, Mellanox NIC and QAT combo doesn't work. As part of this fix, DPDK supported crypto device check is added to do the DMA page map. Type: fix Signed-off-by: mgovind Change-Id: I02de4588c5b021e0c9c62612137f28ed8784bea6 --- diff --git a/src/plugins/dpdk/buffer.c b/src/plugins/dpdk/buffer.c index 97184519428..e4d9e72bc6a 100644 --- a/src/plugins/dpdk/buffer.c +++ b/src/plugins/dpdk/buffer.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include @@ -135,7 +136,7 @@ dpdk_buffer_pool_init (vlib_main_t * vm, vlib_buffer_pool_t * bp) } /* map DMA pages if at least one physical device exists */ - if (rte_eth_dev_count_avail ()) + if (rte_eth_dev_count_avail () || rte_cryptodev_count ()) { uword i; size_t page_sz;