Re: [PATCH 2/5] vdpa/mlx5: Use the correct dma device when registering memory

2021-04-08 Thread Jason Wang
在 2021/4/8 下午5:10, Eli Cohen 写道: 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 Reviewed-by: Parav Pan

[PATCH 2/5] vdpa/mlx5: Use the correct dma device when registering memory

2021-04-08 Thread Eli Cohen
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 Reviewed-by: Parav Pandit --- drivers/vdpa/mlx5/core/mr.c