diff options
author | Florin Coras <fcoras@cisco.com> | 2019-12-11 14:27:53 -0800 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2019-12-12 17:38:30 +0000 |
commit | ef4f3e7fea359f651c548182a7597abc066ca372 (patch) | |
tree | bf66226604821074452caaac343868784d261d55 /src/svm/fifo_segment.h | |
parent | 38277e407148dca4ca79784a2e8c29d486425829 (diff) |
session svm: support for segments larger than 4GB
Type: feature
Change-Id: I7d3017bbb369261d74f51807a226f2c12f45291c
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/svm/fifo_segment.h')
-rw-r--r-- | src/svm/fifo_segment.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/svm/fifo_segment.h b/src/svm/fifo_segment.h index ff36f45c4f2..d363c6058a7 100644 --- a/src/svm/fifo_segment.h +++ b/src/svm/fifo_segment.h @@ -42,7 +42,7 @@ typedef struct fifo_segment_slice_ svm_fifo_t *fifos; /**< Linked list of active RX fifos */ svm_fifo_t *free_fifos; /**< Freelists by fifo size */ svm_fifo_chunk_t **free_chunks; /**< Freelists by chunk size */ - u32 n_fl_chunk_bytes; /**< Chunk bytes on freelist */ + uword n_fl_chunk_bytes; /**< Chunk bytes on freelist */ } fifo_segment_slice_t; typedef struct @@ -66,7 +66,7 @@ typedef struct typedef struct { fifo_segment_t *segments; /**< pool of fifo segments */ - u64 next_baseva; /**< Where to put the next one */ + uword next_baseva; /**< Where to put the next one */ u32 timeout_in_seconds; /**< Time to wait during attach */ } fifo_segment_main_t; @@ -186,7 +186,7 @@ int fifo_segment_collect_fifo_chunks (fifo_segment_t * fs, svm_fifo_t * f); * @param fs fifo segment * @return free bytes estimate */ -u32 fifo_segment_free_bytes (fifo_segment_t * fs); +uword fifo_segment_free_bytes (fifo_segment_t * fs); /** * Update fifo segment free bytes estimate |