On Mon, Oct 14, 2019 at 10:52 AM <asoma...@amd.com> wrote: > > From: Amaranath Somalapuram <asoma...@amd.com>
git commit subject not found. Make sure to run the following before submitting the patch ./devtools/check-git-log.sh ./devtools/checkpatches.sh > > Signed-off-by: Amaranath Somalapuram <asoma...@amd.com> > --- > drivers/crypto/ccp/ccp_crypto.c | 244 ++++++++++++++++++++++++------- > drivers/crypto/ccp/ccp_dev.c | 56 ++----- > drivers/crypto/ccp/ccp_dev.h | 2 +- > drivers/crypto/ccp/ccp_pci.c | 1 + > goto fail; > + if(iommu_mode == 2) > + pci->kdrv = RTE_KDRV_VFIO; > + else if(iommu_mode == 0) > + pci->kdrv = RTE_KDRV_IGB_UIO; > + else if (iommu_mode == 1) > + pci->kdrv = RTE_KDRV_UIO_GENERIC; The crypto driver should not have iommu mode-specific handling. I am not sure about the problem statement. If the problem is, iommu support for PCI based vdev device then move the solution to common layer so that everyone can use it. If not, please share the problem statement.