bugfix related to SGs whose first/last element are not start/end page aligned

Signed-off-by: Or Gerlitz <[EMAIL PROTECTED]>

Index: iser_verbs.c
===================================================================
--- iser_verbs.c        (revision 5414)
+++ iser_verbs.c        (working copy)
@@ -152,7 +152,9 @@ static int iser_create_ib_conn_res(struc
        p_iser_adaptor = p_iser_conn->p_adaptor;

        params.page_shift        = PAGE_SHIFT;
-       params.max_pages_per_fmr = ISCSI_ISER_SG_TABLESIZE;
+       /* when the first/last SG element are not start/end *
+        * page aligned, the map whould be of N+1 pages     */
+       params.max_pages_per_fmr = ISCSI_ISER_SG_TABLESIZE + 1;
        params.pool_size         = ISCSI_ISER_XMIT_CMDS_MAX;
        params.dirty_watermark   = 32;
        params.cache             = 0;


_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to