diff options
author | Kaike Wan | 2017-08-28 20:23:39 +0200 |
---|---|---|
committer | Doug Ledford | 2017-08-29 01:12:28 +0200 |
commit | 4b9796b0a6fbb6e4678002b3f09392192502fd14 (patch) | |
tree | 6f98f4ef7e3840ea2efd6bd49920f4715fbca7fd /drivers/infiniband/hw | |
parent | IB/qib: Stricter bounds checking for copy to buffer (diff) | |
download | kernel-qcow2-linux-4b9796b0a6fbb6e4678002b3f09392192502fd14.tar.gz kernel-qcow2-linux-4b9796b0a6fbb6e4678002b3f09392192502fd14.tar.xz kernel-qcow2-linux-4b9796b0a6fbb6e4678002b3f09392192502fd14.zip |
IB/hfi1: Use accessor to determine ring size
The qp_stats print will soon be moving to rdmavt, so use the proper
accessor to get the ring size rather than a driver supplied constant.
Fixes: Commit ff8d836efe06 ("IB/hfi1: Add receiving queue info to qp_stats")
Reviewed-by: Kaike Wan <kaike.wan@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r-- | drivers/infiniband/hw/hfi1/qp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/hfi1/qp.c b/drivers/infiniband/hw/hfi1/qp.c index b87889d4e9e4..6daa39630dd5 100644 --- a/drivers/infiniband/hw/hfi1/qp.c +++ b/drivers/infiniband/hw/hfi1/qp.c @@ -659,7 +659,7 @@ void qp_iter_print(struct seq_file *s, struct qp_iter *iter) qp->s_avail, /* ack_queue ring pointers, size */ qp->s_tail_ack_queue, qp->r_head_ack_queue, - HFI1_MAX_RDMA_ATOMIC, + rvt_max_atomic(&to_idev(qp->ibqp.device)->rdi), /* remote QP info */ qp->remote_qpn, rdma_ah_get_dlid(&qp->remote_ah_attr), |