libmemif: reset memif buffer flags
Reset memif_buffer_t flags in memif_buffer_alloc and memif_rx_burst Type: fix Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com> Change-Id: If62ba510fad783afb9f7f58411562b6989fa1573
This commit is contained in:
Jakub Grajciar
committed by
Beno�t Ganne
parent
e46ea1d0c5
commit
8caf9ece87
@ -1563,6 +1563,7 @@ memif_buffer_alloc (memif_conn_handle_t conn, uint16_t qid,
|
||||
|
||||
b0->desc_index = mq->next_buf;
|
||||
ring->desc[mq->next_buf & mask].flags = 0;
|
||||
b0->flags = 0;
|
||||
|
||||
/* slave can produce buffer with original length */
|
||||
dst_left = (c->args.is_master) ? ring->desc[mq->next_buf & mask].length :
|
||||
@ -1841,6 +1842,7 @@ memif_rx_burst (memif_conn_handle_t conn, uint16_t qid,
|
||||
b0->desc_index = cur_slot;
|
||||
b0->data = memif_get_buffer (c, ring, cur_slot & mask);
|
||||
b0->len = ring->desc[cur_slot & mask].length;
|
||||
b0->flags = 0;
|
||||
/* slave resets buffer length */
|
||||
if (c->args.is_master == 0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user