]> err.no Git - linux-2.6/commit
IB/fmr: Use device's max_map_map_per_fmr attribute in FMR pool.
authorOr Gerlitz <ogerlitz@voltaire.com>
Sun, 18 Jun 2006 03:37:37 +0000 (20:37 -0700)
committerRoland Dreier <rolandd@cisco.com>
Sun, 18 Jun 2006 03:37:37 +0000 (20:37 -0700)
commit6c8c1aa25d213a288df381f431ce5b6a155146ec
tree379670131076d3ca0af68f9e91f6f038e86e0e96
parentd4cb0784fd1ea99ef3d20526811bd5608146fe60
IB/fmr: Use device's max_map_map_per_fmr attribute in FMR pool.

When creating a FMR pool, query the IB device and use the returned
max_map_map_per_fmr attribute as for the max number of FMR remaps. If
the device does not suport querying this attribute, use the original
IB_FMR_MAX_REMAPS (32) default.

Signed-off-by: Or Gerlitz <ogerlitz@voltaire.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/fmr_pool.c