RDMA/mlx5: Fix type assignment for ICM DM
authorMaor Gottlieb <maorg@nvidia.com>
Sun, 18 Apr 2021 13:49:40 +0000 (16:49 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 20 Apr 2021 12:42:38 +0000 (09:42 -0300)
commit982b7c140ecd0a5607df24706252f2d34377a959
treee603418629b11bf362c52e4fe736e141d059fb86
parentdedbc2d35863f692295aff96ac9e34bf30a68707
RDMA/mlx5: Fix type assignment for ICM DM

We should hold the UAPI DM type in the base struct and not the internal
mlx5 type.

Fixes: 251b9d788750 ("RDMA/mlx5: Re-organize the DM code")
Link: https://lore.kernel.org/r/58dedbd5c132660f808e59166d434e2eaa6ecf7a.1618753425.git.leonro@nvidia.com
Signed-off-by: Maor Gottlieb <maorg@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/dm.c