IB/mthca: Always fill MTTs from CPU
authorMichael S. Tsirkin <mst@mellanox.co.il>
Sat, 10 Feb 2007 21:14:25 +0000 (23:14 +0200)
committerRoland Dreier <rolandd@cisco.com>
Tue, 13 Feb 2007 00:16:29 +0000 (16:16 -0800)
commitb2875d4c39759a732203db32f245cc6d8bbdd7cf
treeeba8311c0242da3298796d33e86a990aa2a7637f
parentc20e20ab0f3af9a44842ea11287c9ecd034a5d33
IB/mthca: Always fill MTTs from CPU

Speed up memory registration by filling in MTTs directly when the CPU
can write directly to the whole table (all mem-free cards, and to
Tavor mode on 64-bit systems with the patch I posted earlier).  This
reduces the number of FW commands needed to register an MR by at least
a factor of 2 and speeds up memory registration significantly.

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_dev.h
drivers/infiniband/hw/mthca/mthca_mr.c
drivers/infiniband/hw/mthca/mthca_provider.c