svm: fix shared hdr migration 48/31448/3
authorFlorin Coras <fcoras@cisco.com>
Thu, 25 Feb 2021 17:57:04 +0000 (09:57 -0800)
committerDave Barach <openvpp@barachs.net>
Fri, 26 Feb 2021 15:51:00 +0000 (15:51 +0000)
commit9c499e3a686a2421102e3b86a3924382885e2280
tree804634141d47448900884224f89fe6afee3c8c48
parent5599fc2dae024bcf150fa4b3b4584e19419f8079
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
src/svm/fifo_segment.c
src/svm/fifo_types.h