[dpdk-dev,1/2] eal: make max vfio groups configurable

Message ID 20171229075856.26024-1-pbhagavatula@caviumnetworks.com (mailing list archive)
State Accepted, archived
Delegated to: Thomas Monjalon
Headers

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK

Commit Message

Pavan Nikhilesh Dec. 29, 2017, 7:58 a.m. UTC
  Make max vfio groups compile-time configurable so that platforms can
choose vfio group limit.

Signed-off-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>
---
 config/common_base                     | 1 +
 lib/librte_eal/linuxapp/eal/eal_vfio.h | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
  

Comments

Burakov, Anatoly Jan. 12, 2018, 5:24 p.m. UTC | #1
On 29-Dec-17 7:58 AM, Pavan Nikhilesh wrote:
> Make max vfio groups compile-time configurable so that platforms can
> choose vfio group limit.
> 
> Signed-off-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>
> ---

Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
  
Thomas Monjalon Jan. 16, 2018, 11:49 p.m. UTC | #2
12/01/2018 18:24, Burakov, Anatoly:
> On 29-Dec-17 7:58 AM, Pavan Nikhilesh wrote:
> > Make max vfio groups compile-time configurable so that platforms can
> > choose vfio group limit.
> > 
> > Signed-off-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>
> 
> Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>

Series applied, thanks
  

Patch

diff --git a/config/common_base b/config/common_base
index e74febef4..b6a655e98 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 ba7892b72..b6a3587a4 100644
--- a/lib/librte_eal/linuxapp/eal/eal_vfio.h
+++ b/lib/librte_eal/linuxapp/eal/eal_vfio.h
@@ -114,7 +114,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