mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-25 07:51:28 +00:00
ib_srpt: Document known max_sge limitations
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3628 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -2008,6 +2008,17 @@ static int srpt_create_ch_ib(struct srpt_rdma_ch *ch)
|
||||
qp_init->sq_sig_type = IB_SIGNAL_REQ_WR;
|
||||
qp_init->qp_type = IB_QPT_RC;
|
||||
qp_init->cap.max_send_wr = srpt_sq_size;
|
||||
/*
|
||||
* A quote from the OFED 1.5.3.1 release notes
|
||||
* (docs/release_notes/mthca_release_notes.txt), section "Known Issues":
|
||||
* In mem-free devices, RC QPs can be created with a maximum of
|
||||
* (max_sge - 1) entries only; UD QPs can be created with a maximum of
|
||||
* (max_sge - 3) entries.
|
||||
* A quote from the OFED 1.2.5 release notes
|
||||
* (docs/mthca_release_notes.txt), section "Known Issues":
|
||||
* In mem-free devices, RC QPs can be created with a maximum of
|
||||
* (max_sge - 3) entries only.
|
||||
*/
|
||||
ch->max_sge = sdev->dev_attr.max_sge - 3;
|
||||
BUG_ON(ch->max_sge < 1);
|
||||
qp_init->cap.max_send_sge = ch->max_sge;
|
||||
|
||||
Reference in New Issue
Block a user