memif: fix the maxmimum number of txqs 94/35694/2
authorMohsin Kazmi <sykazmi@cisco.com>
Thu, 17 Mar 2022 12:59:44 +0000 (12:59 +0000)
committerDamjan Marion <dmarion@me.com>
Tue, 22 Mar 2022 14:12:37 +0000 (14:12 +0000)
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

src/plugins/memif/private.h

index 0e4ca4a..5e4606e 100644 (file)
@@ -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