From: Moni Shoua Date: Tue, 12 Jul 2011 11:23:15 +0000 (+0000) Subject: RDMA/cma: Don't allow IPoIB port space for IBoE X-Git-Tag: v3.1-rc1~314^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2efdd6a038b2d72e74deb8d4725db1663135268c;p=pandora-kernel.git 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 Acked-by: Sean Hefty Signed-off-by: Roland Dreier --- Reading git-diff-tree failed