IB/rdamvt: Fix rdmavt s_ack_queue sizing
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Tue, 24 May 2016 19:50:40 +0000 (12:50 -0700)
committerDoug Ledford <dledford@redhat.com>
Thu, 26 May 2016 16:21:10 +0000 (12:21 -0400)
commit8b103e9cdee5f381bc20a8a9f9bb5be11de8e68f
treed03f73e33c1ea5cfc9befbd34dd39a244a0da3d7
parent4c0b653335bbdfe62a5f4483c98cb5d581432917
IB/rdamvt: Fix rdmavt s_ack_queue sizing

rdmavt allows the driver to specify the size of the ack queue, but
only uses it for the modify QP limit testing for setting the atomic
limit value.

The driver dependent size is now used to size the s_ack_queue ring
dynamicially.

Since the driver knows its size, the driver will use its define
for any ring size dependent code.

Reviewed-by: Mitko Haralanov <mitko.haralanov@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/sw/rdmavt/qp.c
include/rdma/rdma_vt.h
include/rdma/rdmavt_qp.h