From: Pavan Nikhilesh Date: Fri, 29 Dec 2017 07:58:55 +0000 (+0530) Subject: vfio: make groups max configurable X-Git-Tag: spdx-start~257 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=c3f168579343213d7f1e059521db13a58ff93284;p=dpdk.git vfio: make groups max configurable Make max vfio groups compile-time configurable so that platforms can choose vfio group limit. Signed-off-by: Pavan Nikhilesh Acked-by: Anatoly Burakov --- diff --git a/config/common_base b/config/common_base index 90508a855e..1323a5c9c9 100644 --- a/config/common_base +++ b/config/common_base @@ -103,6 +103,7 @@ CONFIG_RTE_EAL_ALLOW_INV_SOCKET_ID=n CONFIG_RTE_EAL_ALWAYS_PANIC_ON_ERROR=n CONFIG_RTE_EAL_IGB_UIO=n CONFIG_RTE_EAL_VFIO=n +CONFIG_RTE_MAX_VFIO_GROUPS=64 CONFIG_RTE_MALLOC_DEBUG=n CONFIG_RTE_EAL_NUMA_AWARE_HUGEPAGES=n diff --git a/lib/librte_eal/linuxapp/eal/eal_vfio.h b/lib/librte_eal/linuxapp/eal/eal_vfio.h index 359589ed3e..80595773ec 100644 --- a/lib/librte_eal/linuxapp/eal/eal_vfio.h +++ b/lib/librte_eal/linuxapp/eal/eal_vfio.h @@ -85,7 +85,7 @@ struct vfio_iommu_spapr_tce_info { #define RTE_VFIO_NOIOMMU VFIO_NOIOMMU_IOMMU #endif -#define VFIO_MAX_GROUPS 64 +#define VFIO_MAX_GROUPS RTE_MAX_VFIO_GROUPS /* * Function prototypes for VFIO multiprocess sync functions