]> git.baikalelectronics.ru Git - kernel.git/commit
vdpa/mlx5: Use the correct dma device when registering memory
authorEli Cohen <elic@nvidia.com>
Thu, 8 Apr 2021 09:10:44 +0000 (12:10 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 9 Apr 2021 16:08:27 +0000 (12:08 -0400)
commit10faac6fa6de3e714f96ec7be5d16005b3192af7
tree52dd86562d0d0ef63dede16bca43af92237d2098
parent999631c5fd62cd43ae538df063dd48ca6d4fb5f1
vdpa/mlx5: Use the correct dma device when registering memory

In cases where the vdpa instance uses a SF (sub function), the DMA
device is the parent device. Use a function to retrieve the correct DMA
device.

Fixes: 754de2d709c7 ("net/mlx5: SF, Add auxiliary device driver")
Signed-off-by: Eli Cohen <elic@nvidia.com>
Reviewed-by: Parav Pandit <parav@nvidia.com>
Link: https://lore.kernel.org/r/20210408091047.4269-3-elic@nvidia.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
drivers/vdpa/mlx5/core/mr.c