[v3] eal: increase max number of interrupt vectors

Message ID 20190331145452.4144-1-pbhagavatula@marvell.com
State Accepted, archived
Delegated to: Thomas Monjalon
Headers show
Series
  • [v3] eal: increase max number of interrupt vectors
Related show

Checks

Context Check Description
ci/Intel-compilation success Compilation OK
ci/mellanox-Performance-Testing fail Performance Testing issues
ci/intel-Performance-Testing success Performance Testing PASS
ci/checkpatch success coding style OK

Commit Message

Pavan Nikhilesh Bhagavatula March 31, 2019, 2:55 p.m.
From: Pavan Nikhilesh <pbhagavatula@marvell.com>

MSI-X permits a device to allocate up to 2048 interrupts as per PCIe
spec.
Increase the max number of vectors to a reasonable value of 512.

Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
---
 v3 Changes:
 - Instead of making it a configurable option set max vectors to a reasonable
 value of 512.

 v2 Changes:
 - Add defaults for meson build. (Jerin Jacob)

 lib/librte_eal/common/include/rte_eal_interrupts.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
2.21.0

Comments

Thomas Monjalon April 2, 2019, 12:32 p.m. | #1
31/03/2019 16:55, Pavan Nikhilesh Bhagavatula:
> From: Pavan Nikhilesh <pbhagavatula@marvell.com>
> 
> MSI-X permits a device to allocate up to 2048 interrupts as per PCIe
> spec.
> Increase the max number of vectors to a reasonable value of 512.
> 
> Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>

Applied, thanks

Patch

diff --git a/lib/librte_eal/common/include/rte_eal_interrupts.h b/lib/librte_eal/common/include/rte_eal_interrupts.h
index 9d302f412..b370c0d26 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      512
 #define RTE_INTR_VEC_ZERO_OFFSET      0
 #define RTE_INTR_VEC_RXTX_OFFSET      1