]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
[MTHCA] fixed error code. [mlnx: 3250]
authorleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sun, 28 Sep 2008 14:23:42 +0000 (14:23 +0000)
committerleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sun, 28 Sep 2008 14:23:42 +0000 (14:23 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1@1624 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

trunk/hw/mthca/user/mlnx_uvp_qp.c

index 43d28e61c2cc98ed1f53b81b94bbb9f4a9ff2601..270c7787af2e2998e9c3e63eb9f3d7b853f1c137 100644 (file)
@@ -316,7 +316,7 @@ int mthca_tavor_post_send(struct ibv_qp *ibqp, struct _ib_send_wr *wr,
                                        s += sge->length;\r
 \r
                                        if (s > (uint32_t)qp->max_inline_data) {\r
-                                               ret = -1;\r
+                                               ret = -E2BIG;\r
                                                if (bad_wr)\r
                                                        *bad_wr = wr;\r
                                                goto out;\r