]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
[IBAL] fix bug in RMPP total_seg calculation ( in case there is not data we still...
authorsleybo <sleybo@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 26 Dec 2006 11:33:54 +0000 (11:33 +0000)
committersleybo <sleybo@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 26 Dec 2006 11:33:54 +0000 (11:33 +0000)
-typo in comment

git-svn-id: svn://openib.tc.cornell.edu/gen1@568 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

trunk/core/al/al_mad.c
trunk/core/al/kernel/al_mr.c

index 842da45ede9937939a399532a33a4193da7ee645..bd8d473e459fe06602e77f1c9931ab3855a0a197 100644 (file)
@@ -1510,6 +1510,8 @@ __init_send_mad(
                        h_send->total_seg = ( (p_mad_element->size - MAD_RMPP_HDR_SIZE) +\r
                                (MAD_RMPP_DATA_SIZE - 1) ) / MAD_RMPP_DATA_SIZE;\r
                }\r
+               /*for cases that there is no data we still need 1 seg */\r
+               h_send->total_seg = h_send->total_seg?h_send->total_seg:1;\r
        }\r
 \r
        /* See if we need to create the address vector for the user. \r
index 16120ecf96ff49939ef113067fa4a3732160110a..8be79efd75a525f74a8076f7adb901af4d699f3a 100644 (file)
@@ -177,7 +177,7 @@ mlnx_create_fmr(
                return IB_INVALID_PARAMETER;\r
        }\r
 \r
-       /* Get a MR tracking structure. */\r
+       /* Get a FMR tracking structure. */\r
        h_fmr = alloc_mlnx_fmr();\r
        if( !h_fmr )\r
        {\r