IB/ehca: Remove unnecessary memory operations for userspace queue pairs
authorStefan Roscher <ossrosch@linux.vnet.ibm.com>
Wed, 13 May 2009 23:52:43 +0000 (16:52 -0700)
committerRoland Dreier <rolandd@cisco.com>
Wed, 13 May 2009 23:52:43 +0000 (16:52 -0700)
commit1988d1fa1a9d642c5714a6afc9775fba0627f3ed
tree9eeca20f2831d8ebe32795838c1190f1ecc01017
parentc94f156f63c835ffc02b686f9d4238b106f31a5d
IB/ehca: Remove unnecessary memory operations for userspace queue pairs

The queue map for flush completion circumvention is only used for
kernel space queue pairs.  This patch skips the allocation of the
queue maps in case the QP is created for userspace.  In addition, this
patch does not iomap the galpas for kernel usage if the queue pair is
only used in userspace.  These changes will improve the performance of
creation of userspace queue pairs.

Signed-off-by: Stefan Roscher <stefan.roscher@de.ibm.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ehca/ehca_qp.c
drivers/infiniband/hw/ehca/hcp_if.c
drivers/infiniband/hw/ehca/hcp_if.h
drivers/infiniband/hw/ehca/hcp_phyp.c
drivers/infiniband/hw/ehca/hcp_phyp.h