From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavan Nikhilesh Bhagavatula Subject: [PATCH v2] eal: make max interrupt vectors configurable Date: Tue, 26 Mar 2019 13:21:19 +0000 Message-ID: <20190326132054.19176-1-pbhagavatula@marvell.com> References: <20190326125327.5264-1-pbhagavatula@marvell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Cc: "dev@dpdk.org" , Pavan Nikhilesh Bhagavatula To: Jerin Jacob Kollanukkaran , "thomas@monjalon.net" Return-path: Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id B962A4F94 for ; Tue, 26 Mar 2019 14:21:37 +0100 (CET) In-Reply-To: <20190326125327.5264-1-pbhagavatula@marvell.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Pavan Nikhilesh Make max interrupt vectors configurable so that platforms can choose interrupt vector limit. Signed-off-by: Pavan Nikhilesh --- v2 Changes: - Add defaults for meson build. (Jerin Jacob) config/common_base | 1 + config/meson.build | 1 + lib/librte_eal/common/include/rte_eal_interrupts.h | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config/common_base b/config/common_base index 0b09a9348..e84f8a233 100644 --- a/config/common_base +++ b/config/common_base @@ -68,6 +68,7 @@ CONFIG_RTE_MAX_LCORE=3D128 CONFIG_RTE_MAX_NUMA_NODES=3D8 CONFIG_RTE_MAX_HEAPS=3D32 CONFIG_RTE_MAX_MEMSEG_LISTS=3D64 +CONFIG_RTE_MAX_INTERRUPT_VECTORS=3D32 # each memseg list will be limited to either RTE_MAX_MEMSEG_PER_LIST pages # or RTE_MAX_MEM_MB_PER_LIST megabytes worth of memory, whichever is small= er CONFIG_RTE_MAX_MEMSEG_PER_LIST=3D8192 diff --git a/config/meson.build b/config/meson.build index 0419607d3..68bb74e20 100644 --- a/config/meson.build +++ b/config/meson.build @@ -112,6 +112,7 @@ dpdk_conf.set('RTE_EAL_ALLOW_INV_SOCKET_ID', get_option= ('allow_invalid_socket_id dpdk_conf.set('RTE_MAX_VFIO_GROUPS', 64) dpdk_conf.set('RTE_DRIVER_MEMPOOL_BUCKET_SIZE_KB', 64) dpdk_conf.set('RTE_LIBRTE_DPAA2_USE_PHYS_IOVA', true) +dpdk_conf.set('RTE_MAX_INTERRUPT_VECTORS', 32) compile_time_cpuflags =3D [] diff --git a/lib/librte_eal/common/include/rte_eal_interrupts.h b/lib/librt= e_eal/common/include/rte_eal_interrupts.h index 9d302f412..19e44019f 100644 --- a/lib/librte_eal/common/include/rte_eal_interrupts.h +++ b/lib/librte_eal/common/include/rte_eal_interrupts.h @@ -17,7 +17,7 @@ #ifndef _RTE_EAL_INTERRUPTS_H_ #define _RTE_EAL_INTERRUPTS_H_ -#define RTE_MAX_RXTX_INTR_VEC_ID 32 +#define RTE_MAX_RXTX_INTR_VEC_ID RTE_MAX_INTERRUPT_VECTORS #define RTE_INTR_VEC_ZERO_OFFSET 0 #define RTE_INTR_VEC_RXTX_OFFSET 1 - 2.20.1