aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/session
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2021-08-10 16:56:34 -0700
committerDave Barach <openvpp@barachs.net>2021-08-11 14:41:32 +0000
commitafbb33aaf254ebfe6ebf2477b1a4859cec40e34b (patch)
tree7f8e82585c7e64f3b8058aa6b5720db3dfcf65e4 /src/vnet/session
parenta70b015ceeee158eac0d9b33d12c596e1af409b3 (diff)
svm: make more fifo segment header fields private
Type: improvement Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Idab0f455b52a38efd2cf3781497d8cc7f57bfa42
Diffstat (limited to 'src/vnet/session')
-rw-r--r--src/vnet/session/segment_manager.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vnet/session/segment_manager.c b/src/vnet/session/segment_manager.c
index c7a06d8b636..e04f626eab2 100644
--- a/src/vnet/session/segment_manager.c
+++ b/src/vnet/session/segment_manager.c
@@ -158,11 +158,11 @@ segment_manager_add_segment_inline (segment_manager_t *sm, uword segment_size,
/*
* Set watermarks in segment
*/
- fs->h->high_watermark = sm->high_watermark;
- fs->h->low_watermark = sm->low_watermark;
+ fs->high_watermark = sm->high_watermark;
+ fs->low_watermark = sm->low_watermark;
+ fs->flags = flags;
+ fs->flags &= ~FIFO_SEGMENT_F_MEM_LIMIT;
fs->h->pct_first_alloc = props->pct_first_alloc;
- fs->h->flags = flags;
- fs->h->flags &= ~FIFO_SEGMENT_F_MEM_LIMIT;
if (notify_app)
{