diff options
author | Mohsin Kazmi <sykazmi@cisco.com> | 2022-07-18 11:21:05 +0000 |
---|---|---|
committer | Beno�t Ganne <bganne@cisco.com> | 2022-07-25 14:03:48 +0000 |
commit | 8636a320413c12d1747c695ac594ca643ac539ba (patch) | |
tree | 9c0ba086b2f92827a0a32585f3b52a839e574796 /extras/libmemif/src | |
parent | c8cd079a0004b75892a08c7cac9a48b39e24e580 (diff) |
libmemif: fix chain buffer support
Type: fix
This patch fixes chain buffer support as transmit side
missing to set the flag to the descriptor in case of
chain buffers.
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Change-Id: I73ff11be69a388f14fea39a19272d8eb76148fba
Diffstat (limited to 'extras/libmemif/src')
-rw-r--r-- | extras/libmemif/src/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/extras/libmemif/src/main.c b/extras/libmemif/src/main.c index 21b39947260..2a4cd817a65 100644 --- a/extras/libmemif/src/main.c +++ b/extras/libmemif/src/main.c @@ -1751,6 +1751,8 @@ memif_tx_burst (memif_conn_handle_t conn, uint16_t qid, } d = &ring->desc[b0->desc_index & mask]; d->length = b0->len; + d->flags = + ((b0->flags & MEMIF_BUFFER_FLAG_NEXT) == 1) ? MEMIF_DESC_FLAG_NEXT : 0; if (!c->args.is_master) { // reset headroom |