OSDN Git Service

i40iw: Correct Q1/XF object count equation
authorShiraz Saleem <shiraz.saleem@intel.com>
Fri, 22 Dec 2017 15:46:56 +0000 (09:46 -0600)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 22 Dec 2017 20:38:05 +0000 (13:38 -0700)
commitfe99afd1febd74e0ef1fed7e3283f09effe1f4f0
tree25d2b243fcb1138f6aa1768e929fa6b1409809de
parent8758768ad8aa9fc0d56417315dec65b610fc3a21
i40iw: Correct Q1/XF object count equation

Lower Inbound RDMA Read Queue (Q1) object count by a factor of 2
as it is incorrectly doubled. Also, round up Q1 and Transmit FIFO (XF)
object count to power of 2 to satisfy hardware requirement.

Fixes: 86dbcd0f12e9 ("i40iw: add file to handle cqp calls")
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/i40iw/i40iw_ctrl.c