summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2021-06-22 15:46:33 +0200
committerDamjan Marion <dmarion@me.com>2021-06-30 18:59:12 +0000
commitb946b209b9c4d75af5b49b6187ecb70bd658728e (patch)
tree0a06bc97eef676b90383223a183e6ad972b11c94
parent41e64e76d26b839a820424d9882b51c31f9108d6 (diff)
memif: fix tx desc length for chained buffers in copy mode
When enqueuing chained buffer, we must update the descriptor length for each fragment descriptor in addition to the last. Type: fix Change-Id: I9bc95fe557a049eeea4abd41c695153632d52a52 Signed-off-by: Benoît Ganne <bganne@cisco.com>
-rw-r--r--src/plugins/memif/device.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/memif/device.c b/src/plugins/memif/device.c
index 8e902feac08..fce4ab22004 100644
--- a/src/plugins/memif/device.c
+++ b/src/plugins/memif/device.c
@@ -177,6 +177,7 @@ retry:
{
slot++;
free_slots--;
+ d0->length = dst_off;
d0->flags = MEMIF_DESC_FLAG_NEXT;
d0 = &ring->desc[slot & mask];
dst_off = 0;