RDMA/bnxt_re: introduce wqe mode to select execution path
authorDevesh Sharma <devesh.sharma@broadcom.com>
Wed, 15 Jul 2020 14:16:54 +0000 (10:16 -0400)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 20 Jul 2020 19:32:49 +0000 (16:32 -0300)
commit1da968e0ef1f640e54ca9c86970b8093c1729753
tree0bd7a1f688a5ca229d4f0b5686748ac5bdb6a4a8
parentca4beeee9895f14df22940d804aab4534c23f03f
RDMA/bnxt_re: introduce wqe mode to select execution path

The bnxt_re driver need to decide on how much SQ and RQ memory should to
be allocated and which wqe posting/polling algorithm to use.

Making changes to set the wqe-mode to a default value during device
registration sequence. The wqe-mode is passed to the lower layer driver as
well. Going forward in the lower layer driver wqe-mode will be used to
decide execution path. Initializing the wqe-mode to static wqe type for
now.

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