[HW] add support for defing max_inline_data size upon QP creation
authorleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 20 May 2008 10:17:00 +0000 (10:17 +0000)
committerleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 20 May 2008 10:17:00 +0000 (10:17 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1196 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

hw/mlx4/user/hca/verbs.c
hw/mthca/user/mlnx_ual_qp.c
inc/iba/ib_types.h

index 2ee0e80..0e6bedf 100644 (file)
@@ -718,7 +718,7 @@ mlx4_pre_create_qp (
        attr.cap.max_recv_wr            = p_create_attr->rq_depth;
        attr.cap.max_send_sge           = p_create_attr->sq_sge;
        attr.cap.max_recv_sge           = p_create_attr->rq_sge;
-       attr.cap.max_inline_data        = 0;                    /* absent in IBAL */
+       attr.cap.max_inline_data        = p_create_attr->sq_max_inline;         /* absent in IBAL */
        attr.qp_type                            = __to_qp_type(p_create_attr->qp_type);
        attr.sq_sig_all                         = p_create_attr->sq_signaled;
 
index d72c649..d914910 100644 (file)
@@ -120,7 +120,7 @@ __pre_create_qp (
        attr.cap.max_recv_wr            = p_create_attr->rq_depth;\r
        attr.cap.max_send_sge           = p_create_attr->sq_sge;\r
        attr.cap.max_recv_sge           = p_create_attr->rq_sge;\r
-       attr.cap.max_inline_data        = 0;                    /* absent in IBAL */\r
+       attr.cap.max_inline_data        = p_create_attr->sq_max_inline;\r
        attr.qp_type                                                    = p_create_attr->qp_type;\r
        attr.sq_sig_all                                         = p_create_attr->sq_signaled;\r
        \r
@@ -370,3 +370,4 @@ mlnx_get_qp_interface (
 }\r
 \r
 \r
+\r
index 6a6392e..a07ce86 100644 (file)
@@ -9787,6 +9787,7 @@ typedef struct _ib_qp_create
 {\r
        ib_qp_type_t                    qp_type;\r
 \r
+       uint32_t                                sq_max_inline;\r
        uint32_t                                sq_depth;\r
        uint32_t                                rq_depth;\r
        uint32_t                                sq_sge;\r
@@ -9804,6 +9805,10 @@ TO_LONG_PTR(     ib_srq_handle_t ,                       h_srq) ;
 *      type\r
 *              Specifies the type of queue pair to create.\r
 *\r
+*      sq_max_inline\r
+*              Maximum payload that can be inlined directly in a WQE, eliminating\r
+*              protection checks and additional DMA operations.\r
+*\r
 *      sq_depth\r
 *              Indicates the requested maximum number of work requests that may be\r
 *              outstanding on the queue pair's send queue.  This value must be less\r