qib_qp.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637
  1. /*
  2. * Copyright (c) 2012, 2013 Intel Corporation. All rights reserved.
  3. * Copyright (c) 2006 - 2012 QLogic Corporation. * All rights reserved.
  4. * Copyright (c) 2005, 2006 PathScale, Inc. All rights reserved.
  5. *
  6. * This software is available to you under a choice of one of two
  7. * licenses. You may choose to be licensed under the terms of the GNU
  8. * General Public License (GPL) Version 2, available from the file
  9. * COPYING in the main directory of this source tree, or the
  10. * OpenIB.org BSD license below:
  11. *
  12. * Redistribution and use in source and binary forms, with or
  13. * without modification, are permitted provided that the following
  14. * conditions are met:
  15. *
  16. * - Redistributions of source code must retain the above
  17. * copyright notice, this list of conditions and the following
  18. * disclaimer.
  19. *
  20. * - Redistributions in binary form must reproduce the above
  21. * copyright notice, this list of conditions and the following
  22. * disclaimer in the documentation and/or other materials
  23. * provided with the distribution.
  24. *
  25. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  26. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  27. * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  28. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
  29. * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
  30. * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  31. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  32. * SOFTWARE.
  33. */
  34. #include <linux/err.h>
  35. #include <linux/vmalloc.h>
  36. #include <rdma/rdma_vt.h>
  37. #ifdef CONFIG_DEBUG_FS
  38. #include <linux/seq_file.h>
  39. #endif
  40. #include "qib.h"
  41. /*
  42. * mask field which was present in now deleted qib_qpn_table
  43. * is not present in rvt_qpn_table. Defining the same field
  44. * as qpt_mask here instead of adding the mask field to
  45. * rvt_qpn_table.
  46. */
  47. u16 qpt_mask;
  48. static inline unsigned mk_qpn(struct rvt_qpn_table *qpt,
  49. struct rvt_qpn_map *map, unsigned off)
  50. {
  51. return (map - qpt->map) * RVT_BITS_PER_PAGE + off;
  52. }
  53. static inline unsigned find_next_offset(struct rvt_qpn_table *qpt,
  54. struct rvt_qpn_map *map, unsigned off,
  55. unsigned n)
  56. {
  57. if (qpt_mask) {
  58. off++;
  59. if (((off & qpt_mask) >> 1) >= n)
  60. off = (off | qpt_mask) + 2;
  61. } else {
  62. off = find_next_zero_bit(map->page, RVT_BITS_PER_PAGE, off);
  63. }
  64. return off;
  65. }
  66. /*
  67. * Convert the AETH credit code into the number of credits.
  68. */
  69. static u32 credit_table[31] = {
  70. 0, /* 0 */
  71. 1, /* 1 */
  72. 2, /* 2 */
  73. 3, /* 3 */
  74. 4, /* 4 */
  75. 6, /* 5 */
  76. 8, /* 6 */
  77. 12, /* 7 */
  78. 16, /* 8 */
  79. 24, /* 9 */
  80. 32, /* A */
  81. 48, /* B */
  82. 64, /* C */
  83. 96, /* D */
  84. 128, /* E */
  85. 192, /* F */
  86. 256, /* 10 */
  87. 384, /* 11 */
  88. 512, /* 12 */
  89. 768, /* 13 */
  90. 1024, /* 14 */
  91. 1536, /* 15 */
  92. 2048, /* 16 */
  93. 3072, /* 17 */
  94. 4096, /* 18 */
  95. 6144, /* 19 */
  96. 8192, /* 1A */
  97. 12288, /* 1B */
  98. 16384, /* 1C */
  99. 24576, /* 1D */
  100. 32768 /* 1E */
  101. };
  102. const struct rvt_operation_params qib_post_parms[RVT_OPERATION_MAX] = {
  103. [IB_WR_RDMA_WRITE] = {
  104. .length = sizeof(struct ib_rdma_wr),
  105. .qpt_support = BIT(IB_QPT_UC) | BIT(IB_QPT_RC),
  106. },
  107. [IB_WR_RDMA_READ] = {
  108. .length = sizeof(struct ib_rdma_wr),
  109. .qpt_support = BIT(IB_QPT_RC),
  110. .flags = RVT_OPERATION_ATOMIC,
  111. },
  112. [IB_WR_ATOMIC_CMP_AND_SWP] = {
  113. .length = sizeof(struct ib_atomic_wr),
  114. .qpt_support = BIT(IB_QPT_RC),
  115. .flags = RVT_OPERATION_ATOMIC | RVT_OPERATION_ATOMIC_SGE,
  116. },
  117. [IB_WR_ATOMIC_FETCH_AND_ADD] = {
  118. .length = sizeof(struct ib_atomic_wr),
  119. .qpt_support = BIT(IB_QPT_RC),
  120. .flags = RVT_OPERATION_ATOMIC | RVT_OPERATION_ATOMIC_SGE,
  121. },
  122. [IB_WR_RDMA_WRITE_WITH_IMM] = {
  123. .length = sizeof(struct ib_rdma_wr),
  124. .qpt_support = BIT(IB_QPT_UC) | BIT(IB_QPT_RC),
  125. },
  126. [IB_WR_SEND] = {
  127. .length = sizeof(struct ib_send_wr),
  128. .qpt_support = BIT(IB_QPT_UD) | BIT(IB_QPT_SMI) | BIT(IB_QPT_GSI) |
  129. BIT(IB_QPT_UC) | BIT(IB_QPT_RC),
  130. },
  131. [IB_WR_SEND_WITH_IMM] = {
  132. .length = sizeof(struct ib_send_wr),
  133. .qpt_support = BIT(IB_QPT_UD) | BIT(IB_QPT_SMI) | BIT(IB_QPT_GSI) |
  134. BIT(IB_QPT_UC) | BIT(IB_QPT_RC),
  135. },
  136. };
  137. static void get_map_page(struct rvt_qpn_table *qpt, struct rvt_qpn_map *map,
  138. gfp_t gfp)
  139. {
  140. unsigned long page = get_zeroed_page(gfp);
  141. /*
  142. * Free the page if someone raced with us installing it.
  143. */
  144. spin_lock(&qpt->lock);
  145. if (map->page)
  146. free_page(page);
  147. else
  148. map->page = (void *)page;
  149. spin_unlock(&qpt->lock);
  150. }
  151. /*
  152. * Allocate the next available QPN or
  153. * zero/one for QP type IB_QPT_SMI/IB_QPT_GSI.
  154. */
  155. int qib_alloc_qpn(struct rvt_dev_info *rdi, struct rvt_qpn_table *qpt,
  156. enum ib_qp_type type, u8 port, gfp_t gfp)
  157. {
  158. u32 i, offset, max_scan, qpn;
  159. struct rvt_qpn_map *map;
  160. u32 ret;
  161. struct qib_ibdev *verbs_dev = container_of(rdi, struct qib_ibdev, rdi);
  162. struct qib_devdata *dd = container_of(verbs_dev, struct qib_devdata,
  163. verbs_dev);
  164. if (type == IB_QPT_SMI || type == IB_QPT_GSI) {
  165. unsigned n;
  166. ret = type == IB_QPT_GSI;
  167. n = 1 << (ret + 2 * (port - 1));
  168. spin_lock(&qpt->lock);
  169. if (qpt->flags & n)
  170. ret = -EINVAL;
  171. else
  172. qpt->flags |= n;
  173. spin_unlock(&qpt->lock);
  174. goto bail;
  175. }
  176. qpn = qpt->last + 2;
  177. if (qpn >= RVT_QPN_MAX)
  178. qpn = 2;
  179. if (qpt_mask && ((qpn & qpt_mask) >> 1) >= dd->n_krcv_queues)
  180. qpn = (qpn | qpt_mask) + 2;
  181. offset = qpn & RVT_BITS_PER_PAGE_MASK;
  182. map = &qpt->map[qpn / RVT_BITS_PER_PAGE];
  183. max_scan = qpt->nmaps - !offset;
  184. for (i = 0;;) {
  185. if (unlikely(!map->page)) {
  186. get_map_page(qpt, map, gfp);
  187. if (unlikely(!map->page))
  188. break;
  189. }
  190. do {
  191. if (!test_and_set_bit(offset, map->page)) {
  192. qpt->last = qpn;
  193. ret = qpn;
  194. goto bail;
  195. }
  196. offset = find_next_offset(qpt, map, offset,
  197. dd->n_krcv_queues);
  198. qpn = mk_qpn(qpt, map, offset);
  199. /*
  200. * This test differs from alloc_pidmap().
  201. * If find_next_offset() does find a zero
  202. * bit, we don't need to check for QPN
  203. * wrapping around past our starting QPN.
  204. * We just need to be sure we don't loop
  205. * forever.
  206. */
  207. } while (offset < RVT_BITS_PER_PAGE && qpn < RVT_QPN_MAX);
  208. /*
  209. * In order to keep the number of pages allocated to a
  210. * minimum, we scan the all existing pages before increasing
  211. * the size of the bitmap table.
  212. */
  213. if (++i > max_scan) {
  214. if (qpt->nmaps == RVT_QPNMAP_ENTRIES)
  215. break;
  216. map = &qpt->map[qpt->nmaps++];
  217. offset = 0;
  218. } else if (map < &qpt->map[qpt->nmaps]) {
  219. ++map;
  220. offset = 0;
  221. } else {
  222. map = &qpt->map[0];
  223. offset = 2;
  224. }
  225. qpn = mk_qpn(qpt, map, offset);
  226. }
  227. ret = -ENOMEM;
  228. bail:
  229. return ret;
  230. }
  231. /**
  232. * qib_free_all_qps - check for QPs still in use
  233. */
  234. unsigned qib_free_all_qps(struct rvt_dev_info *rdi)
  235. {
  236. struct qib_ibdev *verbs_dev = container_of(rdi, struct qib_ibdev, rdi);
  237. struct qib_devdata *dd = container_of(verbs_dev, struct qib_devdata,
  238. verbs_dev);
  239. unsigned n, qp_inuse = 0;
  240. for (n = 0; n < dd->num_pports; n++) {
  241. struct qib_ibport *ibp = &dd->pport[n].ibport_data;
  242. rcu_read_lock();
  243. if (rcu_dereference(ibp->rvp.qp[0]))
  244. qp_inuse++;
  245. if (rcu_dereference(ibp->rvp.qp[1]))
  246. qp_inuse++;
  247. rcu_read_unlock();
  248. }
  249. return qp_inuse;
  250. }
  251. void qib_notify_qp_reset(struct rvt_qp *qp)
  252. {
  253. struct qib_qp_priv *priv = qp->priv;
  254. atomic_set(&priv->s_dma_busy, 0);
  255. }
  256. void qib_notify_error_qp(struct rvt_qp *qp)
  257. {
  258. struct qib_qp_priv *priv = qp->priv;
  259. struct qib_ibdev *dev = to_idev(qp->ibqp.device);
  260. spin_lock(&dev->rdi.pending_lock);
  261. if (!list_empty(&priv->iowait) && !(qp->s_flags & RVT_S_BUSY)) {
  262. qp->s_flags &= ~RVT_S_ANY_WAIT_IO;
  263. list_del_init(&priv->iowait);
  264. }
  265. spin_unlock(&dev->rdi.pending_lock);
  266. if (!(qp->s_flags & RVT_S_BUSY)) {
  267. qp->s_hdrwords = 0;
  268. if (qp->s_rdma_mr) {
  269. rvt_put_mr(qp->s_rdma_mr);
  270. qp->s_rdma_mr = NULL;
  271. }
  272. if (priv->s_tx) {
  273. qib_put_txreq(priv->s_tx);
  274. priv->s_tx = NULL;
  275. }
  276. }
  277. }
  278. static int mtu_to_enum(u32 mtu)
  279. {
  280. int enum_mtu;
  281. switch (mtu) {
  282. case 4096:
  283. enum_mtu = IB_MTU_4096;
  284. break;
  285. case 2048:
  286. enum_mtu = IB_MTU_2048;
  287. break;
  288. case 1024:
  289. enum_mtu = IB_MTU_1024;
  290. break;
  291. case 512:
  292. enum_mtu = IB_MTU_512;
  293. break;
  294. case 256:
  295. enum_mtu = IB_MTU_256;
  296. break;
  297. default:
  298. enum_mtu = IB_MTU_2048;
  299. }
  300. return enum_mtu;
  301. }
  302. int qib_get_pmtu_from_attr(struct rvt_dev_info *rdi, struct rvt_qp *qp,
  303. struct ib_qp_attr *attr)
  304. {
  305. int mtu, pmtu, pidx = qp->port_num - 1;
  306. struct qib_ibdev *verbs_dev = container_of(rdi, struct qib_ibdev, rdi);
  307. struct qib_devdata *dd = container_of(verbs_dev, struct qib_devdata,
  308. verbs_dev);
  309. mtu = ib_mtu_enum_to_int(attr->path_mtu);
  310. if (mtu == -1)
  311. return -EINVAL;
  312. if (mtu > dd->pport[pidx].ibmtu)
  313. pmtu = mtu_to_enum(dd->pport[pidx].ibmtu);
  314. else
  315. pmtu = attr->path_mtu;
  316. return pmtu;
  317. }
  318. int qib_mtu_to_path_mtu(u32 mtu)
  319. {
  320. return mtu_to_enum(mtu);
  321. }
  322. u32 qib_mtu_from_qp(struct rvt_dev_info *rdi, struct rvt_qp *qp, u32 pmtu)
  323. {
  324. return ib_mtu_enum_to_int(pmtu);
  325. }
  326. /**
  327. * qib_compute_aeth - compute the AETH (syndrome + MSN)
  328. * @qp: the queue pair to compute the AETH for
  329. *
  330. * Returns the AETH.
  331. */
  332. __be32 qib_compute_aeth(struct rvt_qp *qp)
  333. {
  334. u32 aeth = qp->r_msn & QIB_MSN_MASK;
  335. if (qp->ibqp.srq) {
  336. /*
  337. * Shared receive queues don't generate credits.
  338. * Set the credit field to the invalid value.
  339. */
  340. aeth |= QIB_AETH_CREDIT_INVAL << QIB_AETH_CREDIT_SHIFT;
  341. } else {
  342. u32 min, max, x;
  343. u32 credits;
  344. struct rvt_rwq *wq = qp->r_rq.wq;
  345. u32 head;
  346. u32 tail;
  347. /* sanity check pointers before trusting them */
  348. head = wq->head;
  349. if (head >= qp->r_rq.size)
  350. head = 0;
  351. tail = wq->tail;
  352. if (tail >= qp->r_rq.size)
  353. tail = 0;
  354. /*
  355. * Compute the number of credits available (RWQEs).
  356. * XXX Not holding the r_rq.lock here so there is a small
  357. * chance that the pair of reads are not atomic.
  358. */
  359. credits = head - tail;
  360. if ((int)credits < 0)
  361. credits += qp->r_rq.size;
  362. /*
  363. * Binary search the credit table to find the code to
  364. * use.
  365. */
  366. min = 0;
  367. max = 31;
  368. for (;;) {
  369. x = (min + max) / 2;
  370. if (credit_table[x] == credits)
  371. break;
  372. if (credit_table[x] > credits)
  373. max = x;
  374. else if (min == x)
  375. break;
  376. else
  377. min = x;
  378. }
  379. aeth |= x << QIB_AETH_CREDIT_SHIFT;
  380. }
  381. return cpu_to_be32(aeth);
  382. }
  383. void *qib_qp_priv_alloc(struct rvt_dev_info *rdi, struct rvt_qp *qp, gfp_t gfp)
  384. {
  385. struct qib_qp_priv *priv;
  386. priv = kzalloc(sizeof(*priv), gfp);
  387. if (!priv)
  388. return ERR_PTR(-ENOMEM);
  389. priv->owner = qp;
  390. priv->s_hdr = kzalloc(sizeof(*priv->s_hdr), gfp);
  391. if (!priv->s_hdr) {
  392. kfree(priv);
  393. return ERR_PTR(-ENOMEM);
  394. }
  395. init_waitqueue_head(&priv->wait_dma);
  396. INIT_WORK(&priv->s_work, _qib_do_send);
  397. INIT_LIST_HEAD(&priv->iowait);
  398. return priv;
  399. }
  400. void qib_qp_priv_free(struct rvt_dev_info *rdi, struct rvt_qp *qp)
  401. {
  402. struct qib_qp_priv *priv = qp->priv;
  403. kfree(priv->s_hdr);
  404. kfree(priv);
  405. }
  406. void qib_stop_send_queue(struct rvt_qp *qp)
  407. {
  408. struct qib_qp_priv *priv = qp->priv;
  409. cancel_work_sync(&priv->s_work);
  410. del_timer_sync(&qp->s_timer);
  411. }
  412. void qib_quiesce_qp(struct rvt_qp *qp)
  413. {
  414. struct qib_qp_priv *priv = qp->priv;
  415. wait_event(priv->wait_dma, !atomic_read(&priv->s_dma_busy));
  416. if (priv->s_tx) {
  417. qib_put_txreq(priv->s_tx);
  418. priv->s_tx = NULL;
  419. }
  420. }
  421. void qib_flush_qp_waiters(struct rvt_qp *qp)
  422. {
  423. struct qib_qp_priv *priv = qp->priv;
  424. struct qib_ibdev *dev = to_idev(qp->ibqp.device);
  425. spin_lock(&dev->rdi.pending_lock);
  426. if (!list_empty(&priv->iowait))
  427. list_del_init(&priv->iowait);
  428. spin_unlock(&dev->rdi.pending_lock);
  429. }
  430. /**
  431. * qib_get_credit - flush the send work queue of a QP
  432. * @qp: the qp who's send work queue to flush
  433. * @aeth: the Acknowledge Extended Transport Header
  434. *
  435. * The QP s_lock should be held.
  436. */
  437. void qib_get_credit(struct rvt_qp *qp, u32 aeth)
  438. {
  439. u32 credit = (aeth >> QIB_AETH_CREDIT_SHIFT) & QIB_AETH_CREDIT_MASK;
  440. /*
  441. * If the credit is invalid, we can send
  442. * as many packets as we like. Otherwise, we have to
  443. * honor the credit field.
  444. */
  445. if (credit == QIB_AETH_CREDIT_INVAL) {
  446. if (!(qp->s_flags & RVT_S_UNLIMITED_CREDIT)) {
  447. qp->s_flags |= RVT_S_UNLIMITED_CREDIT;
  448. if (qp->s_flags & RVT_S_WAIT_SSN_CREDIT) {
  449. qp->s_flags &= ~RVT_S_WAIT_SSN_CREDIT;
  450. qib_schedule_send(qp);
  451. }
  452. }
  453. } else if (!(qp->s_flags & RVT_S_UNLIMITED_CREDIT)) {
  454. /* Compute new LSN (i.e., MSN + credit) */
  455. credit = (aeth + credit_table[credit]) & QIB_MSN_MASK;
  456. if (qib_cmp24(credit, qp->s_lsn) > 0) {
  457. qp->s_lsn = credit;
  458. if (qp->s_flags & RVT_S_WAIT_SSN_CREDIT) {
  459. qp->s_flags &= ~RVT_S_WAIT_SSN_CREDIT;
  460. qib_schedule_send(qp);
  461. }
  462. }
  463. }
  464. }
  465. /**
  466. * qib_check_send_wqe - validate wr/wqe
  467. * @qp - The qp
  468. * @wqe - The built wqe
  469. *
  470. * validate wr/wqe. This is called
  471. * prior to inserting the wqe into
  472. * the ring but after the wqe has been
  473. * setup.
  474. *
  475. * Returns 1 to force direct progress, 0 otherwise, -EINVAL on failure
  476. */
  477. int qib_check_send_wqe(struct rvt_qp *qp,
  478. struct rvt_swqe *wqe)
  479. {
  480. struct rvt_ah *ah;
  481. int ret = 0;
  482. switch (qp->ibqp.qp_type) {
  483. case IB_QPT_RC:
  484. case IB_QPT_UC:
  485. if (wqe->length > 0x80000000U)
  486. return -EINVAL;
  487. break;
  488. case IB_QPT_SMI:
  489. case IB_QPT_GSI:
  490. case IB_QPT_UD:
  491. ah = ibah_to_rvtah(wqe->ud_wr.ah);
  492. if (wqe->length > (1 << ah->log_pmtu))
  493. return -EINVAL;
  494. /* progress hint */
  495. ret = 1;
  496. break;
  497. default:
  498. break;
  499. }
  500. return ret;
  501. }
  502. #ifdef CONFIG_DEBUG_FS
  503. struct qib_qp_iter {
  504. struct qib_ibdev *dev;
  505. struct rvt_qp *qp;
  506. int n;
  507. };
  508. struct qib_qp_iter *qib_qp_iter_init(struct qib_ibdev *dev)
  509. {
  510. struct qib_qp_iter *iter;
  511. iter = kzalloc(sizeof(*iter), GFP_KERNEL);
  512. if (!iter)
  513. return NULL;
  514. iter->dev = dev;
  515. return iter;
  516. }
  517. int qib_qp_iter_next(struct qib_qp_iter *iter)
  518. {
  519. struct qib_ibdev *dev = iter->dev;
  520. int n = iter->n;
  521. int ret = 1;
  522. struct rvt_qp *pqp = iter->qp;
  523. struct rvt_qp *qp;
  524. for (; n < dev->rdi.qp_dev->qp_table_size; n++) {
  525. if (pqp)
  526. qp = rcu_dereference(pqp->next);
  527. else
  528. qp = rcu_dereference(dev->rdi.qp_dev->qp_table[n]);
  529. pqp = qp;
  530. if (qp) {
  531. iter->qp = qp;
  532. iter->n = n;
  533. return 0;
  534. }
  535. }
  536. return ret;
  537. }
  538. static const char * const qp_type_str[] = {
  539. "SMI", "GSI", "RC", "UC", "UD",
  540. };
  541. void qib_qp_iter_print(struct seq_file *s, struct qib_qp_iter *iter)
  542. {
  543. struct rvt_swqe *wqe;
  544. struct rvt_qp *qp = iter->qp;
  545. struct qib_qp_priv *priv = qp->priv;
  546. wqe = rvt_get_swqe_ptr(qp, qp->s_last);
  547. seq_printf(s,
  548. "N %d QP%u %s %u %u %u f=%x %u %u %u %u %u PSN %x %x %x %x %x (%u %u %u %u %u %u) QP%u LID %x\n",
  549. iter->n,
  550. qp->ibqp.qp_num,
  551. qp_type_str[qp->ibqp.qp_type],
  552. qp->state,
  553. wqe->wr.opcode,
  554. qp->s_hdrwords,
  555. qp->s_flags,
  556. atomic_read(&priv->s_dma_busy),
  557. !list_empty(&priv->iowait),
  558. qp->timeout,
  559. wqe->ssn,
  560. qp->s_lsn,
  561. qp->s_last_psn,
  562. qp->s_psn, qp->s_next_psn,
  563. qp->s_sending_psn, qp->s_sending_hpsn,
  564. qp->s_last, qp->s_acked, qp->s_cur,
  565. qp->s_tail, qp->s_head, qp->s_size,
  566. qp->remote_qpn,
  567. qp->remote_ah_attr.dlid);
  568. }
  569. #endif