]> git.droids-corp.org - dpdk.git/commit
dma/skeleton: fix index returned when no memcpy completed
authorChengwen Feng <fengchengwen@huawei.com>
Wed, 8 Jun 2022 08:50:05 +0000 (16:50 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 15 Jun 2022 14:15:07 +0000 (16:15 +0200)
commit618a40a0c97f4e80b05d2dce4d63eecc6210a242
tree36547a1ea0117c0de8314a9a2ed076b07521d3ed
parent5fc2eece8d4530988e5681fdc8a35e14d69b2a6f
dma/skeleton: fix index returned when no memcpy completed

If no memcopy request is completed, the ring_idx of the last completed
operation need returned by last_idx parameter. This patch fixes it.

Fixes: 05d5fc66a269 ("dma/skeleton: introduce skeleton driver")
Cc: stable@dpdk.org
Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
drivers/dma/skeleton/skeleton_dmadev.c
drivers/dma/skeleton/skeleton_dmadev.h