]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/cma: Don't allow IPoIB port space for IBoE
authorMoni Shoua <monis@mellanox.co.il>
Tue, 12 Jul 2011 11:23:15 +0000 (11:23 +0000)
committerRoland Dreier <roland@purestorage.com>
Mon, 18 Jul 2011 23:50:25 +0000 (16:50 -0700)
commit1d657017c41691777fd81472104f5322b5df4a15
tree9c03373f1cca98e6538f57c7da8984fba57d99ca
parenta976536a09b5bb17c01c815cc0cceed6d9d09426
RDMA/cma: Don't allow IPoIB port space for IBoE

This patch fixes a kernel crash in cma_set_qkey().

When the link layer is Ethernet, it is wrong to use IPoIB port space
since no IPoIB interface is available.  Specifically, setting the
Q_Key when port space is RDMA_PS_IPOIB requires MGID calculation and
an SA query, which doesn't make sense over Ethernet.

Signed-off-by: Moni Shoua <monis@mellanox.co.il>
Acked-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/core/cma.c