]> git.openfabrics.org - ~ardavis/dapl.git/commitdiff
common: ep_create should allow max_request_iov attribute setting of zero
authorArlin Davis <arlin.r.davis@intel.com>
Wed, 25 Jan 2012 19:50:21 +0000 (11:50 -0800)
committerArlin Davis <arlin.r.davis@intel.com>
Wed, 25 Jan 2012 19:50:21 +0000 (11:50 -0800)
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 <arlin.r.davis@intel.com>
dapl/common/dapl_ep_create.c

index e154b8de54f7377d33f8e12c93113775cdf725e7..c7dedde6912da96b68f31e94e0a41200307052f0 100644 (file)
@@ -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)))) {