]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4cd439828ad653745e4725291f7d1684063e2621
treed03f73e33c1ea5cfc9befbd34dd39a244a0da3d7
parent35ee716eaef60bbd3a538455600a2c3f80dd9d2e
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