When creating an EP without a request EVD (cq) the max_request_iov
and max_request_sge will be 0. Allow this combination when checking
attribute settings for ARG6.

Signed-off-by: Arlin Davis <[email protected]>
---
 dapl/common/dapl_ep_create.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dapl/common/dapl_ep_create.c b/dapl/common/dapl_ep_create.c
index e154b8d..c7dedde 100644
--- a/dapl/common/dapl_ep_create.c
+++ b/dapl/common/dapl_ep_create.c
@@ -171,7 +171,8 @@ dapl_ep_create(IN DAT_IA_HANDLE ia_handle,
                                           && ep_attr->max_request_dtos == 0)
                                       || (recv_evd_handle != DAT_HANDLE_NULL
                                           && ep_attr->max_recv_iov == 0)
-                                      || ep_attr->max_request_iov == 0
+                                      || (request_evd_handle == DAT_HANDLE_NULL
+                                          && ep_attr->max_request_iov != 0)
                                       || (DAT_SUCCESS !=
                                           dapl_ep_check_recv_completion_flags
                                           (ep_attr->recv_completion_flags)))) {
-- 
1.7.3



_______________________________________________
ofw mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw

Reply via email to