]> git.baikalelectronics.ru Git - kernel.git/commit
IB/hfi1: Use accessor to determine ring size
authorKaike Wan <kaike.wan@intel.com>
Mon, 28 Aug 2017 18:23:39 +0000 (11:23 -0700)
committerDoug Ledford <dledford@redhat.com>
Mon, 28 Aug 2017 23:12:28 +0000 (19:12 -0400)
commit4b9796b0a6fbb6e4678002b3f09392192502fd14
tree6f98f4ef7e3840ea2efd6bd49920f4715fbca7fd
parent6167a5b4b5f97d9fc09a99842bd3aa149654ffcf
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>
drivers/infiniband/hw/hfi1/qp.c