On Tue, Jan 30, 2024 at 7:42 PM Xuan Zhuo <xuanzhuo@xxxxxxxxxxxxxxxxx> wrote: > > To make the code readable, introduce vring_need_unmap_buffer() to > replace do_unmap. > > use_dma_api premapped -> vring_need_unmap_buffer() > 1. false false false > 2. true false true > 3. true true false > > Signed-off-by: Xuan Zhuo <xuanzhuo@xxxxxxxxxxxxxxxxx> Acked-by: Jason Wang <jasowang@xxxxxxxxxx> Thanks