IB/qib: Fix QP check when looping back to/from QP1
authorIra Weiny <ira.weiny@intel.com>
Wed, 18 Dec 2013 16:41:37 +0000 (08:41 -0800)
committerRoland Dreier <roland@purestorage.com>
Thu, 23 Jan 2014 07:16:47 +0000 (23:16 -0800)
commit6e0ea9e6cbcead7fa8c76e3e3b9de4a50c5131c5
treef2f264e46d106a132de85286b17177d62cb2c9ac
parent7e22e91102c6b9df7c4ae2168910e19d2bb14cd6
IB/qib: Fix QP check when looping back to/from QP1

The GSI QP type is compatible with and should be allowed to send data
to/from any UD QP.  This was found when testing ibacm on the same node
as an SA.

Cc: <stable@vger.kernel.org>
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/qib/qib_ud.c