Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

RDMA/bnxt_re: Add helper data structures

Adding few helper data structure which are useful to initialize hardware
send wqe in variable wqe mode.

Adding a qp flag in HSI to indicate variable wqe is enabled for this qp.

Link: https://lore.kernel.org/r/1594822619-4098-5-git-send-email-devesh.sharma@broadcom.com
Signed-off-by: Devesh Sharma <devesh.sharma@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>

authored by

Devesh Sharma and committed by
Jason Gunthorpe
54ace984 5ac5396a

+46
+45
drivers/infiniband/hw/bnxt_re/qplib_fp.h
··· 39 39 #ifndef __BNXT_QPLIB_FP_H__ 40 40 #define __BNXT_QPLIB_FP_H__ 41 41 42 + /* Few helper structures temporarily defined here 43 + * should get rid of these when roce_hsi.h is updated 44 + * in original code base 45 + */ 46 + struct sq_ud_ext_hdr { 47 + __le32 dst_qp; 48 + __le32 avid; 49 + __le64 rsvd; 50 + }; 51 + 52 + struct sq_raw_ext_hdr { 53 + __le32 cfa_meta; 54 + __le32 rsvd0; 55 + __le64 rsvd1; 56 + }; 57 + 58 + struct sq_rdma_ext_hdr { 59 + __le64 remote_va; 60 + __le32 remote_key; 61 + __le32 rsvd; 62 + }; 63 + 64 + struct sq_atomic_ext_hdr { 65 + __le64 swap_data; 66 + __le64 cmp_data; 67 + }; 68 + 69 + struct sq_fr_pmr_ext_hdr { 70 + __le64 pblptr; 71 + __le64 va; 72 + }; 73 + 74 + struct sq_bind_ext_hdr { 75 + __le64 va; 76 + __le32 length_lo; 77 + __le32 length_hi; 78 + }; 79 + 80 + struct rq_ext_hdr { 81 + __le64 rsvd1; 82 + __le64 rsvd2; 83 + }; 84 + 85 + /* Helper structures end */ 86 + 42 87 struct bnxt_qplib_srq { 43 88 struct bnxt_qplib_pd *pd; 44 89 struct bnxt_qplib_dpi *dpi;
+1
drivers/infiniband/hw/bnxt_re/roce_hsi.h
··· 1126 1126 #define CMDQ_CREATE_QP_QP_FLAGS_FORCE_COMPLETION 0x2UL 1127 1127 #define CMDQ_CREATE_QP_QP_FLAGS_RESERVED_LKEY_ENABLE 0x4UL 1128 1128 #define CMDQ_CREATE_QP_QP_FLAGS_FR_PMR_ENABLED 0x8UL 1129 + #define CMDQ_CREATE_QP_QP_FLAGS_VARIABLE_SIZED_WQE_ENABLED 0x10UL 1129 1130 u8 type; 1130 1131 #define CMDQ_CREATE_QP_TYPE_RC 0x2UL 1131 1132 #define CMDQ_CREATE_QP_TYPE_UD 0x4UL