From 0bc78d80363efc22d07171473933d1b0016440e4 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Sat, 9 Jan 2021 14:34:01 -0800 Subject: session svm: fix fifo migration Allocate and attach a new pair of private fifos in the right private slice when a session is cloned. This ensures that private fifos are not shared between workers. Type: fix Signed-off-by: Florin Coras Change-Id: Ib700d18104d2ca79aa8a07434cdcdcab0bef13a5 --- src/svm/fifo_segment.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/svm/fifo_segment.h') diff --git a/src/svm/fifo_segment.h b/src/svm/fifo_segment.h index 8266690d4ed..268b48b39f6 100644 --- a/src/svm/fifo_segment.h +++ b/src/svm/fifo_segment.h @@ -139,8 +139,8 @@ svm_fifo_t *fifo_segment_alloc_fifo_w_offset (fifo_segment_t *fs, */ void fifo_segment_free_fifo (fifo_segment_t * fs, svm_fifo_t * f); -void fifo_segment_detach_fifo (fifo_segment_t * fs, svm_fifo_t * f); -void fifo_segment_attach_fifo (fifo_segment_t * fs, svm_fifo_t * f, +void fifo_segment_detach_fifo (fifo_segment_t *fs, svm_fifo_t **f); +void fifo_segment_attach_fifo (fifo_segment_t *fs, svm_fifo_t **f, u32 slice_index); uword fifo_segment_fifo_offset (svm_fifo_t *f); -- cgit 1.2.3-korg