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>
This commit is contained in:

committed by
Damjan Marion

parent
f995c7122b
commit
cbd179cd39
@ -1711,6 +1711,7 @@ memif_buffer_enq_tx (memif_conn_handle_t conn, uint16_t qid,
|
|||||||
ring->desc[slot & mask].offset =
|
ring->desc[slot & mask].offset =
|
||||||
(uint32_t) (b0->data -
|
(uint32_t) (b0->data -
|
||||||
c->regions[ring->desc[slot & mask].region].addr);
|
c->regions[ring->desc[slot & mask].region].addr);
|
||||||
|
ring->desc[slot & mask].flags &= ~MEMIF_DESC_FLAG_NEXT;
|
||||||
ring->desc[slot & mask].flags |=
|
ring->desc[slot & mask].flags |=
|
||||||
(b0->flags & MEMIF_BUFFER_FLAG_NEXT) ? MEMIF_DESC_FLAG_NEXT : 0;
|
(b0->flags & MEMIF_BUFFER_FLAG_NEXT) ? MEMIF_DESC_FLAG_NEXT : 0;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user