linux/drivers/infiniband
Parav Pandit cfafed12f4 RDMA/cma: Fix rdma_cm path querying for RoCE
[ Upstream commit 89838118a5 ]

The 'if' logic in ucma_query_path was broken with OPA was introduced
and started to treat RoCE paths as as OPA paths. Invert the logic
of the 'if' so only OPA paths are treated as OPA paths.

Otherwise the path records returned to rdma_cma users are mangled
when in RoCE mode.

Fixes: 5752075144 ("IB/SA: Add OPA path record type")
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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2018-04-12 12:32:20 +02:00
..
core RDMA/cma: Fix rdma_cm path querying for RoCE 2018-04-12 12:32:20 +02:00
hw i40iw: Validate correct IRD/ORD connection parameters 2018-04-12 12:32:11 +02:00
sw IB/rdmavt: Allocate CQ memory on the correct node 2018-04-12 12:32:15 +02:00
ulp iser-target: avoid reinitializing rdma contexts for isert commands 2018-03-24 11:01:25 +01:00
Kconfig IB/core: Expose ioctl interface through experimental Kconfig 2017-08-31 08:35:14 -04:00
Makefile IB/rdmavt: Create module framework and handle driver registration 2016-03-10 20:37:04 -05:00