svm: fix max fifo size 55/29155/2
authorFlorin Coras <fcoras@cisco.com>
Tue, 29 Sep 2020 17:27:07 +0000 (10:27 -0700)
committerDave Barach <openvpp@barachs.net>
Tue, 29 Sep 2020 20:13:29 +0000 (20:13 +0000)
Type: fix

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I52ac28ed6d420f03852a425b5a16a7eb8e94b628

src/svm/fifo_segment.h

index ee5c24d..d3ce59c 100644 (file)
@@ -29,7 +29,7 @@ typedef enum
 
 #define FIFO_SEGMENT_MIN_LOG2_FIFO_SIZE 12     /**< 4kB min fifo size */
 #define FIFO_SEGMENT_MIN_FIFO_SIZE 4096                /**< 4kB min fifo size */
-#define FIFO_SEGMENT_MAX_FIFO_SIZE (2 << 30)   /**< 2GB max fifo size */
+#define FIFO_SEGMENT_MAX_FIFO_SIZE (2ULL << 30)        /**< 2GB max fifo size */
 #define FIFO_SEGMENT_ALLOC_BATCH_SIZE 32       /* Allocation quantum */
 
 typedef enum fifo_segment_flags_