RDMA/cma: Fix rdma_cm raw IB path setting for RoCE
authorParav Pandit <parav@mellanox.com>
Mon, 8 Jan 2018 15:04:47 +0000 (17:04 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 11 Jan 2018 05:00:33 +0000 (22:00 -0700)
commit8d20a1f0ecd5ff66ebf23829688c2a8d7133704e
treeab05fea59013380ee2c3ef98ef7d5dd6efd7849f
parentfe75889f27940c7a1c0e9c4c81464e0a8e936aa2
RDMA/cma: Fix rdma_cm raw IB path setting for RoCE

rdma_set_ib_path() missed setting path record fields for RoCE
transport when RoCE support was added.

This results in setting incorrect ndev, destination mac address,
incorrect GID type etc errors when user space attempts to set a raw
IB path using the roce IB path compatibility mapping from userspace.

Fixes: 3c86aa70bf67 ("RDMA/cm: Add RDMA CM support for IBoE devices")
Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/cma.c