]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commitd13a15d544ce51c0d83744ccb638c954e645feea
tree52dd86562d0d0ef63dede16bca43af92237d2098
parentd084d996aaf53c0cc583dc75a4fc2a67fe485846
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: 1958fc2f0712 ("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