[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/trunk@1624 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

hw/mthca/user/mlnx_uvp_qp.c

index 43d28e6..270c778 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