[dpdk-dev] [PATCH v2] vhost: remove async dma map status

Maxime Coquelin maxime.coquelin at redhat.com
Fri Oct 29 11:36:17 CEST 2021


On 10/27/21 12:00, Xuan Ding wrote:
> Async dma map status flag was added to prevent the unnecessary unmap
> when DMA devices bound to kernel driver. This brings maintenance cost
> for a lot of code. This patch removes the dma map status by using
> rte_errno instead.
> 
> This patch relies on the following patch to fix a partial
> unmap check in vfio unmapping API.
> [1] https://www.mail-archive.com/dev@dpdk.org/msg226464.html
> 
> Cc: anatoly.burakov at intel.com
> 
> Signed-off-by: Xuan Ding <xuan.ding at intel.com>
> ---
> v2:
> * Fix a typo in commit log.
> ---
>   lib/vhost/vhost.h      |  3 --
>   lib/vhost/vhost_user.c | 70 ++++++++----------------------------------
>   2 files changed, 13 insertions(+), 60 deletions(-)
> 

Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>

Thanks,
Maxime



More information about the dev mailing list