IB/mthca: Optimize large messages on Sinai HCAs
authorEli Cohen <eli@mellanox.co.il>
Thu, 2 Mar 2006 20:40:46 +0000 (12:40 -0800)
committerRoland Dreier <rolandd@cisco.com>
Mon, 20 Mar 2006 18:08:22 +0000 (10:08 -0800)
commit651eaac92894f8b6761c51b6637ea9cacea7fba2
tree8be06461ef870b7d130ebce39f55fe93af6ac542
parent27d56300647f6e76847bc2407d7abc782fe87495
IB/mthca: Optimize large messages on Sinai HCAs

Sinai (one-port PCI Express) HCAs get improved throughput for messages
bigger than 80 KB in DDR mode if memory keys are formatted in a
specific way.  The enhancement only works if the memory key table is
smaller than 2^24 entries.  For larger tables, the enhancement is off
and a warning is printed (to avoid silent performance loss).

Signed-off-by: Eli Cohen <eli@mellanox.co.il>
Signed-off-by: Michael Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_cmd.c
drivers/infiniband/hw/mthca/mthca_dev.h
drivers/infiniband/hw/mthca/mthca_main.c
drivers/infiniband/hw/mthca/mthca_mr.c
drivers/infiniband/hw/mthca/mthca_profile.c