From cbd179cd39ffedbfd0a43a51bde998f09cefe669 Mon Sep 17 00:00:00 2001 From: Jakub Grajciar Date: Wed, 24 Jul 2019 14:49:04 +0200 Subject: [PATCH] libmemif: fix chained buffer flag fixes issue: MEMIF_DESC_FLAG_NEXT persisted when enqueueing stored buffers Type: fix Change-Id: I9e973ed6e0339612fe1dd3e3bd80ed7c05093791 Signed-off-by: Jakub Grajciar --- extras/libmemif/src/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/extras/libmemif/src/main.c b/extras/libmemif/src/main.c index f3d8f9a55ef..5f92f029a8a 100644 --- a/extras/libmemif/src/main.c +++ b/extras/libmemif/src/main.c @@ -1711,6 +1711,7 @@ memif_buffer_enq_tx (memif_conn_handle_t conn, uint16_t qid, ring->desc[slot & mask].offset = (uint32_t) (b0->data - c->regions[ring->desc[slot & mask].region].addr); + ring->desc[slot & mask].flags &= ~MEMIF_DESC_FLAG_NEXT; ring->desc[slot & mask].flags |= (b0->flags & MEMIF_BUFFER_FLAG_NEXT) ? MEMIF_DESC_FLAG_NEXT : 0; -- 2.16.6