[nd] Don't use inline for RDMA reads. (mlnx 5666)
[mirror/winof/.git] / ulp / nd / user / NdEndpoint.cpp
index b204320..9d322d3 100644 (file)
@@ -686,10 +686,10 @@ HRESULT CEndpoint::Rdma(
     wr.p_next = NULL;\r
     wr.wr_id = (ULONG_PTR)pResult;\r
     wr.wr_type = Type;\r
-    if ( pResult->BytesTransferred <= m_MaxInlineSize )\r
-           wr.send_opt = IB_SEND_OPT_INLINE; \r
-       else\r
-           wr.send_opt = 0;\r
+    if ( (pResult->BytesTransferred <= m_MaxInlineSize) && Type != WR_RDMA_READ)\r
+        wr.send_opt = IB_SEND_OPT_INLINE; \r
+    else\r
+        wr.send_opt = 0;\r
     if( !(Flags & ND_OP_FLAG_SILENT_SUCCESS) )\r
         wr.send_opt |= IB_SEND_OPT_SIGNALED;\r
     if( Flags & ND_OP_FLAG_READ_FENCE )\r