forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-09 958e46acc8e900e8569dd467c1af9b8d2d019394
kernel/drivers/infiniband/hw/bnxt_re/qplib_sp.h
....@@ -65,8 +65,6 @@
6565 u32 max_mw;
6666 u32 max_raw_ethy_qp;
6767 u32 max_ah;
68
- u32 max_fmr;
69
- u32 max_map_per_fmr;
7068 u32 max_srq;
7169 u32 max_srq_wqes;
7270 u32 max_srq_sges;
....@@ -83,6 +81,11 @@
8381
8482 struct bnxt_qplib_gid {
8583 u8 data[16];
84
+};
85
+
86
+struct bnxt_qplib_gid_info {
87
+ struct bnxt_qplib_gid gid;
88
+ u16 vlan_id;
8689 };
8790
8891 struct bnxt_qplib_ah {
....@@ -206,13 +209,23 @@
206209 /* res_tx_pci_err is 64 b */
207210 u64 res_rx_pci_err;
208211 /* res_rx_pci_err is 64 b */
212
+ u64 res_oos_drop_count;
213
+ /* res_oos_drop_count */
214
+ u64 active_qp_count_p0;
215
+ /* port 0 active qps */
216
+ u64 active_qp_count_p1;
217
+ /* port 1 active qps */
218
+ u64 active_qp_count_p2;
219
+ /* port 2 active qps */
220
+ u64 active_qp_count_p3;
221
+ /* port 3 active qps */
209222 };
210223
211224 int bnxt_qplib_get_sgid(struct bnxt_qplib_res *res,
212225 struct bnxt_qplib_sgid_tbl *sgid_tbl, int index,
213226 struct bnxt_qplib_gid *gid);
214227 int bnxt_qplib_del_sgid(struct bnxt_qplib_sgid_tbl *sgid_tbl,
215
- struct bnxt_qplib_gid *gid, bool update);
228
+ struct bnxt_qplib_gid *gid, u16 vlan_id, bool update);
216229 int bnxt_qplib_add_sgid(struct bnxt_qplib_sgid_tbl *sgid_tbl,
217230 struct bnxt_qplib_gid *gid, u8 *mac, u16 vlan_id,
218231 bool update, u32 *index);
....@@ -232,8 +245,10 @@
232245 int bnxt_qplib_set_func_resources(struct bnxt_qplib_res *res,
233246 struct bnxt_qplib_rcfw *rcfw,
234247 struct bnxt_qplib_ctx *ctx);
235
-int bnxt_qplib_create_ah(struct bnxt_qplib_res *res, struct bnxt_qplib_ah *ah);
236
-int bnxt_qplib_destroy_ah(struct bnxt_qplib_res *res, struct bnxt_qplib_ah *ah);
248
+int bnxt_qplib_create_ah(struct bnxt_qplib_res *res, struct bnxt_qplib_ah *ah,
249
+ bool block);
250
+void bnxt_qplib_destroy_ah(struct bnxt_qplib_res *res, struct bnxt_qplib_ah *ah,
251
+ bool block);
237252 int bnxt_qplib_alloc_mrw(struct bnxt_qplib_res *res,
238253 struct bnxt_qplib_mrw *mrw);
239254 int bnxt_qplib_dereg_mrw(struct bnxt_qplib_res *res, struct bnxt_qplib_mrw *mrw,