]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita142ac93ca8b94e6c3b65938edf6e34552c9d1b8
treeab05fea59013380ee2c3ef98ef7d5dd6efd7849f
parentedcc64e2802cfc40979c69dfb89b0e39f89896cb
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: ea5fb63177d6 ("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