IB/mthca: Fix reserved MTTs calculation on mem-free HCAs
authorMichael S. Tsirkin <mst@mellanox.co.il>
Sat, 10 Feb 2007 21:17:26 +0000 (23:17 +0200)
committerRoland Dreier <rolandd@cisco.com>
Tue, 13 Feb 2007 00:16:29 +0000 (16:16 -0800)
commitc7d204e8fdf02f88d91707213f473805bcfb977b
tree9bef52255b0192fc44da59658a2e94dfadaff3d7
parentb038ced7b3705bf0ac9b30e118af0f56ab48b847
IB/mthca: Fix reserved MTTs calculation on mem-free HCAs

The reserved_mtts field has different meaning in Tavor and Arbel, so
we are wasting mtt entries on memfree. Fix the Arbel case to match
Tavor semantics.

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