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)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 1 Apr 2014 23:58:44 +0000 (00:58 +0100)
commit17c9dc712c75ac71d18a222d3d5b2f9dad5867b4
tree7abe3edc3200b9aaee0a0a811ff6a59bacdb7ceb
parentc4047a30fc81715ae56e97f983fd684360fa216c
IB/qib: Fix QP check when looping back to/from QP1

commit 6e0ea9e6cbcead7fa8c76e3e3b9de4a50c5131c5 upstream.

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.

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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/infiniband/hw/qib/qib_ud.c