[PATCH] IB/mthca: Factor out common queue alloc code
commit87b816706bb2b79fbaff8e0b8e279e783273383e
authorRoland Dreier <roland@eddore.topspincom.com>
Thu, 18 Aug 2005 20:39:31 +0000 (18 13:39 -0700)
committerRoland Dreier <rolandd@cisco.com>
Sat, 27 Aug 2005 03:37:37 +0000 (26 20:37 -0700)
tree94e9a87fd5cbf1f069cba4e8a766ef718d18e5e4
parentf520ba5aa48e2891c3fb3e364eeaaab4212c7c45
[PATCH] IB/mthca: Factor out common queue alloc code

Clean up the allocation of memory for queues by factoring out the
common code into mthca_buf_alloc() and mthca_buf_free().  Now CQs and
QPs share the same queue allocation code, which we'll also use for SRQs.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_allocator.c
drivers/infiniband/hw/mthca/mthca_cq.c
drivers/infiniband/hw/mthca/mthca_dev.h
drivers/infiniband/hw/mthca/mthca_provider.h
drivers/infiniband/hw/mthca/mthca_qp.c