hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/drivers/infiniband/hw/qib/qib_verbs.h
....@@ -1,5 +1,5 @@
11 /*
2
- * Copyright (c) 2012 - 2017 Intel Corporation. All rights reserved.
2
+ * Copyright (c) 2012 - 2018 Intel Corporation. All rights reserved.
33 * Copyright (c) 2006 - 2012 QLogic Corporation. All rights reserved.
44 * Copyright (c) 2005, 2006 PathScale, Inc. All rights reserved.
55 *
....@@ -46,7 +46,7 @@
4646 #include <rdma/ib_pack.h>
4747 #include <rdma/ib_user_verbs.h>
4848 #include <rdma/ib_hdrs.h>
49
-#include <rdma/rdma_vt.h>
49
+#include <rdma/rdmavt_qp.h>
5050 #include <rdma/rdmavt_cq.h>
5151
5252 struct qib_ctxtdata;
....@@ -177,7 +177,6 @@
177177 struct timer_list mem_timer;
178178 struct qib_pio_header *pio_hdrs;
179179 dma_addr_t pio_hdrs_phys;
180
- u32 qp_rnd; /* random bytes for hash */
181180
182181 u32 n_piowait;
183182 u32 n_txwait;
....@@ -223,8 +222,8 @@
223222 !(qp->s_flags & RVT_S_ANY_WAIT_SEND));
224223 }
225224
226
-void _qib_schedule_send(struct rvt_qp *qp);
227
-void qib_schedule_send(struct rvt_qp *qp);
225
+bool _qib_schedule_send(struct rvt_qp *qp);
226
+bool qib_schedule_send(struct rvt_qp *qp);
228227
229228 static inline int qib_pkey_ok(u16 pkey1, u16 pkey2)
230229 {
....@@ -245,9 +244,8 @@
245244 void qib_node_desc_chg(struct qib_ibport *ibp);
246245 int qib_process_mad(struct ib_device *ibdev, int mad_flags, u8 port_num,
247246 const struct ib_wc *in_wc, const struct ib_grh *in_grh,
248
- const struct ib_mad_hdr *in, size_t in_mad_size,
249
- struct ib_mad_hdr *out, size_t *out_mad_size,
250
- u16 *out_mad_pkey_index);
247
+ const struct ib_mad *in, struct ib_mad *out,
248
+ size_t *out_mad_size, u16 *out_mad_pkey_index);
251249 void qib_notify_create_mad_agent(struct rvt_dev_info *rdi, int port_idx);
252250 void qib_notify_free_mad_agent(struct rvt_dev_info *rdi, int port_idx);
253251
....@@ -292,9 +290,6 @@
292290 int qib_verbs_send(struct rvt_qp *qp, struct ib_header *hdr,
293291 u32 hdrwords, struct rvt_sge_state *ss, u32 len);
294292
295
-void qib_copy_sge(struct rvt_sge_state *ss, void *data, u32 length,
296
- int release);
297
-
298293 void qib_uc_rcv(struct qib_ibport *ibp, struct ib_header *hdr,
299294 int has_grh, void *data, u32 tlen, struct rvt_qp *qp);
300295
....@@ -303,7 +298,8 @@
303298
304299 int qib_check_ah(struct ib_device *ibdev, struct rdma_ah_attr *ah_attr);
305300
306
-int qib_check_send_wqe(struct rvt_qp *qp, struct rvt_swqe *wqe);
301
+int qib_check_send_wqe(struct rvt_qp *qp, struct rvt_swqe *wqe,
302
+ bool *call_send);
307303
308304 struct ib_ah *qib_create_qp0_ah(struct qib_ibport *ibp, u16 dlid);
309305
....@@ -332,9 +328,6 @@
332328 void _qib_do_send(struct work_struct *work);
333329
334330 void qib_do_send(struct rvt_qp *qp);
335
-
336
-void qib_send_complete(struct rvt_qp *qp, struct rvt_swqe *wqe,
337
- enum ib_wc_status status);
338331
339332 void qib_send_rc_ack(struct rvt_qp *qp);
340333