[PATCH] IB/mthca: Handle context tables smaller than our chunk size
authorRoland Dreier <roland@eddore.topspincom.com>
Fri, 19 Aug 2005 17:36:11 +0000 (10:36 -0700)
committerRoland Dreier <rolandd@cisco.com>
Sat, 27 Aug 2005 03:37:37 +0000 (20:37 -0700)
When creating a table in context memory where the table is smaller
than our chunk size, we don't want to allocate and map a full chunk.
Instead, allocate just enough memory to cover the table.

This can be pretty simple because all tables are a power-of-2 size, so
either the table is a multiple of the chunk size, or it's smaller than
one chunk.

Signed-off-by: Roland Dreier <rolandd@cisco.com>

No differences found