qib_qp.c 15 KB

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