Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
host stack: update stale copyright
[vpp.git]
/
src
/
svm
/
svm_fifo_segment.c
diff --git
a/src/svm/svm_fifo_segment.c
b/src/svm/svm_fifo_segment.c
index
fcf6b66
..
e377160
100644
(file)
--- a/
src/svm/svm_fifo_segment.c
+++ b/
src/svm/svm_fifo_segment.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (c) 2016 Cisco and/or its affiliates.
+ * Copyright (c) 2016
-2019
Cisco and/or its affiliates.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
@@
-370,10
+370,6
@@
svm_fifo_segment_alloc_fifo (svm_fifo_segment_private_t * fs,
f = fsh->free_fifos[freelist_index];
if (PREDICT_FALSE (!f))
{
f = fsh->free_fifos[freelist_index];
if (PREDICT_FALSE (!f))
{
- /* Preallocated and no fifo left. Don't even try */
- if (fsh->flags & FIFO_SEGMENT_F_IS_PREALLOCATED)
- goto done;
-
oldheap = ssvm_push_heap (sh);
allocate_new_fifo_chunk (fsh, data_size_in_bytes,
FIFO_SEGMENT_ALLOC_CHUNK_SIZE);
oldheap = ssvm_push_heap (sh);
allocate_new_fifo_chunk (fsh, data_size_in_bytes,
FIFO_SEGMENT_ALLOC_CHUNK_SIZE);