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

committed by
Damjan Marion

parent
41e64e76d2
commit
b946b209b9
@ -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;
|
||||
|
Reference in New Issue
Block a user