aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/memif/private.h
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2018-07-11 12:24:19 +0200
committerDamjan Marion <dmarion@me.com>2018-07-11 13:23:03 +0000
commit20728d40d91b89fe9f9d8d8c3f4ec16d51412c8b (patch)
tree10ef911c370376d627dc43775de47b4dee48f056 /src/plugins/memif/private.h
parent9a02c54e4f3c53cbaceee4cbb30835113f0641ce (diff)
memif: fix max number of rings
Change-Id: Ie7621a38a44e7c692e23e58c43d27d8d2aab43e6 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/memif/private.h')
-rw-r--r--src/plugins/memif/private.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/memif/private.h b/src/plugins/memif/private.h
index c7fec67f9e4..82056a1ecfb 100644
--- a/src/plugins/memif/private.h
+++ b/src/plugins/memif/private.h
@@ -24,9 +24,9 @@
#define MEMIF_DEFAULT_TX_QUEUES 1
#define MEMIF_DEFAULT_BUFFER_SIZE 2048
-#define MEMIF_MAX_M2S_RING (vec_len (vlib_mains) - 1)
-#define MEMIF_MAX_S2M_RING (vec_len (vlib_mains) - 1)
-#define MEMIF_MAX_REGION 255
+#define MEMIF_MAX_M2S_RING (vec_len (vlib_mains))
+#define MEMIF_MAX_S2M_RING 256
+#define MEMIF_MAX_REGION 256
#define MEMIF_MAX_LOG2_RING_SIZE 14