[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>
Showing
- drivers/infiniband/hw/mthca/mthca_allocator.c 116 additions, 0 deletionsdrivers/infiniband/hw/mthca/mthca_allocator.c
- drivers/infiniband/hw/mthca/mthca_cq.c 6 additions, 112 deletionsdrivers/infiniband/hw/mthca/mthca_cq.c
- drivers/infiniband/hw/mthca/mthca_dev.h 5 additions, 0 deletionsdrivers/infiniband/hw/mthca/mthca_dev.h
- drivers/infiniband/hw/mthca/mthca_provider.h 7 additions, 8 deletionsdrivers/infiniband/hw/mthca/mthca_provider.h
- drivers/infiniband/hw/mthca/mthca_qp.c 7 additions, 104 deletionsdrivers/infiniband/hw/mthca/mthca_qp.c
Loading
Please register or sign in to comment