RDMA/bnxt_re: Reduce device page size detection code
authorDevesh Sharma <devesh.sharma@broadcom.com>
Thu, 2 Apr 2020 18:12:12 +0000 (14:12 -0400)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 14 Apr 2020 19:39:34 +0000 (16:39 -0300)
commit99bf84e24eb83d1612598cee1807732bd194c23c
tree8a64890d06dd2ab06cb27e5c6b09be4c92e22db0
parent4f953089111d45d0e654080a1f2edec39f197c93
RDMA/bnxt_re: Reduce device page size detection code

Getting rid of the repeated code in the driver when deciding on the page
size of the hardware ring memory. A new common function would translate
the ring page size into device specific page size.

Link: https://lore.kernel.org/r/1585851136-2316-2-git-send-email-devesh.sharma@broadcom.com
Signed-off-by: Devesh Sharma <devesh.sharma@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/bnxt_re/qplib_fp.c
drivers/infiniband/hw/bnxt_re/qplib_rcfw.c
drivers/infiniband/hw/bnxt_re/qplib_res.h