]> git.droids-corp.org - dpdk.git/commit
dma/hisilicon: fix index returned when no DMA completed
authorChengwen Feng <fengchengwen@huawei.com>
Fri, 27 May 2022 03:40:52 +0000 (11:40 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 7 Jun 2022 10:35:38 +0000 (12:35 +0200)
commit2301dee9709fe07f79f92a032bf510a206397cc4
tree67d2ebd9667e8efc4a2acf4d8d7c34f795a3cd7b
parentbebbf0721943ad2c6632026c4235e48d5f37b88f
dma/hisilicon: fix index returned when no DMA completed

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

Fixes: 2db4f0b82360 ("dma/hisilicon: add data path")
Cc: stable@dpdk.org
Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
drivers/dma/hisilicon/hisi_dmadev.c