aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2022-03-17 12:59:44 +0000
committerDamjan Marion <dmarion@me.com>2022-03-22 14:12:37 +0000
commitb495e34b00a55c61fa91064beeae9096f314b64f (patch)
tree9ad6cc6c0f874a4383d33f80c4936bdab4ba9d39 /src
parent15732f5d05f46498457b98ae3e187870210e69c4 (diff)
memif: fix the maxmimum number of txqs
Type: fix With multi-txq in VPP, user should be able to create more txqs than vpp threads. MEMIF_MAX_M2S_RING should be defined to 256 instead of number of vpp threads. Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com> Change-Id: I337c3a5ea691470815653ff2dbfa862bb324b240
Diffstat (limited to 'src')
-rw-r--r--src/plugins/memif/private.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/memif/private.h b/src/plugins/memif/private.h
index 0e4ca4af9d0..5e4606ebe5b 100644
--- a/src/plugins/memif/private.h
+++ b/src/plugins/memif/private.h
@@ -24,7 +24,7 @@
#define MEMIF_DEFAULT_TX_QUEUES 1
#define MEMIF_DEFAULT_BUFFER_SIZE 2048
-#define MEMIF_MAX_M2S_RING (vlib_get_n_threads ())
+#define MEMIF_MAX_M2S_RING 256
#define MEMIF_MAX_S2M_RING 256
#define MEMIF_MAX_REGION 256
#define MEMIF_MAX_LOG2_RING_SIZE 14