aboutsummaryrefslogtreecommitdiffstats
path: root/extras/libmemif
diff options
context:
space:
mode:
authorJakub Grajciar <jgrajcia@cisco.com>2019-07-24 14:49:04 +0200
committerDamjan Marion <dmarion@me.com>2019-07-25 08:55:17 +0000
commitcbd179cd39ffedbfd0a43a51bde998f09cefe669 (patch)
tree460df3ecc1ce09731c70dd8756eb84da450df0c3 /extras/libmemif
parentf995c7122ba0d024b17bc3232e8edd18d5e25088 (diff)
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 <jgrajcia@cisco.com>
Diffstat (limited to 'extras/libmemif')
-rw-r--r--extras/libmemif/src/main.c1
1 files changed, 1 insertions, 0 deletions
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;