DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev]  [PATCH 1/2] eal: make max vfio groups configurable
@ 2017-12-29  7:58 Pavan Nikhilesh
  2017-12-29  7:58 ` [dpdk-dev] [PATCH 2/2] config: select maximum vfio groups on ThunderX Pavan Nikhilesh
  2018-01-12 17:24 ` [dpdk-dev] [PATCH 1/2] eal: make max vfio groups configurable Burakov, Anatoly
  0 siblings, 2 replies; 4+ messages in thread
From: Pavan Nikhilesh @ 2017-12-29  7:58 UTC (permalink / raw)
  To: anatoly.burakov, thomas, jerin.jacob; +Cc: dev, Pavan Nikhilesh

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(-)

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
-- 
2.14.1

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [dpdk-dev] [PATCH 2/2] config: select maximum vfio groups on ThunderX
  2017-12-29  7:58 [dpdk-dev] [PATCH 1/2] eal: make max vfio groups configurable Pavan Nikhilesh
@ 2017-12-29  7:58 ` Pavan Nikhilesh
  2018-01-12 17:24 ` [dpdk-dev] [PATCH 1/2] eal: make max vfio groups configurable Burakov, Anatoly
  1 sibling, 0 replies; 4+ messages in thread
From: Pavan Nikhilesh @ 2017-12-29  7:58 UTC (permalink / raw)
  To: anatoly.burakov, thomas, jerin.jacob; +Cc: dev, Pavan Nikhilesh

Increase the max vfio groups to 128.

Signed-off-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>
---
 config/defconfig_arm64-thunderx-linuxapp-gcc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/config/defconfig_arm64-thunderx-linuxapp-gcc b/config/defconfig_arm64-thunderx-linuxapp-gcc
index 45038b119..d502b7822 100644
--- a/config/defconfig_arm64-thunderx-linuxapp-gcc
+++ b/config/defconfig_arm64-thunderx-linuxapp-gcc
@@ -36,6 +36,7 @@ CONFIG_RTE_MACHINE="thunderx"
 CONFIG_RTE_CACHE_LINE_SIZE=128
 CONFIG_RTE_MAX_NUMA_NODES=2
 CONFIG_RTE_MAX_LCORE=96
+CONFIG_RTE_MAX_VFIO_GROUPS=128
 
 #
 # Compile PMD for octeontx sso event device
-- 
2.14.1

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] [PATCH 1/2] eal: make max vfio groups configurable
  2017-12-29  7:58 [dpdk-dev] [PATCH 1/2] eal: make max vfio groups configurable Pavan Nikhilesh
  2017-12-29  7:58 ` [dpdk-dev] [PATCH 2/2] config: select maximum vfio groups on ThunderX Pavan Nikhilesh
@ 2018-01-12 17:24 ` Burakov, Anatoly
  2018-01-16 23:49   ` Thomas Monjalon
  1 sibling, 1 reply; 4+ messages in thread
From: Burakov, Anatoly @ 2018-01-12 17:24 UTC (permalink / raw)
  To: Pavan Nikhilesh, thomas, jerin.jacob; +Cc: dev

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>

-- 
Thanks,
Anatoly

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] [PATCH 1/2] eal: make max vfio groups configurable
  2018-01-12 17:24 ` [dpdk-dev] [PATCH 1/2] eal: make max vfio groups configurable Burakov, Anatoly
@ 2018-01-16 23:49   ` Thomas Monjalon
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Monjalon @ 2018-01-16 23:49 UTC (permalink / raw)
  To: Pavan Nikhilesh; +Cc: dev, Burakov, Anatoly, jerin.jacob

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-01-16 23:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-29  7:58 [dpdk-dev] [PATCH 1/2] eal: make max vfio groups configurable Pavan Nikhilesh
2017-12-29  7:58 ` [dpdk-dev] [PATCH 2/2] config: select maximum vfio groups on ThunderX Pavan Nikhilesh
2018-01-12 17:24 ` [dpdk-dev] [PATCH 1/2] eal: make max vfio groups configurable Burakov, Anatoly
2018-01-16 23:49   ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).