diff options
author | Devesh Sharma <devesh.sharma@broadcom.com> | 2020-07-15 10:16:54 -0400 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2020-07-20 16:32:49 -0300 |
commit | 1da968e0ef1f640e54ca9c86970b8093c1729753 (patch) | |
tree | 0bd7a1f688a5ca229d4f0b5686748ac5bdb6a4a8 /drivers/infiniband/hw/bnxt_re/qplib_fp.h | |
parent | RDMA/qedr: Remove the query_pkey callback (diff) | |
download | linux-1da968e0ef1f640e54ca9c86970b8093c1729753.tar.gz linux-1da968e0ef1f640e54ca9c86970b8093c1729753.tar.bz2 linux-1da968e0ef1f640e54ca9c86970b8093c1729753.zip |
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>
Diffstat (limited to 'drivers/infiniband/hw/bnxt_re/qplib_fp.h')
-rw-r--r-- | drivers/infiniband/hw/bnxt_re/qplib_fp.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/bnxt_re/qplib_fp.h b/drivers/infiniband/hw/bnxt_re/qplib_fp.h index 568ca390322c..6146f7dc368c 100644 --- a/drivers/infiniband/hw/bnxt_re/qplib_fp.h +++ b/drivers/infiniband/hw/bnxt_re/qplib_fp.h @@ -224,9 +224,10 @@ struct bnxt_qplib_qp { u32 id; u8 type; u8 sig_type; - u32 modify_flags; + u8 wqe_mode; u8 state; u8 cur_qp_state; + u64 modify_flags; u32 max_inline_data; u32 mtu; u8 path_mtu; |