summaryrefslogtreecommitdiffstats
path: root/src/svm/fifo_types.h
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2021-02-25 09:57:04 -0800
committerDave Barach <openvpp@barachs.net>2021-02-26 15:51:00 +0000
commit9c499e3a686a2421102e3b86a3924382885e2280 (patch)
tree804634141d47448900884224f89fe6afee3c8c48 /src/svm/fifo_types.h
parent5599fc2dae024bcf150fa4b3b4584e19419f8079 (diff)
svm: fix shared hdr migration
Avoid changing the header on attach as it may be in use. Instead, as for chunks, allocate header to be collected on detach. Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Ib316ecb5d61ae161032869b6f6a1863f1105a1d9
Diffstat (limited to 'src/svm/fifo_types.h')
-rw-r--r--src/svm/fifo_types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/svm/fifo_types.h b/src/svm/fifo_types.h
index a1b57748e09..670fd2aff1a 100644
--- a/src/svm/fifo_types.h
+++ b/src/svm/fifo_types.h
@@ -110,6 +110,7 @@ typedef struct _svm_fifo
struct _svm_fifo *prev; /**< prev in active chain */
svm_fifo_chunk_t *chunks_at_attach; /**< chunks to be accounted at detach */
+ svm_fifo_shared_t *hdr_at_attach; /**< hdr to be freed at detach */
#if SVM_FIFO_TRACE
svm_fifo_trace_elem_t *trace;