[ewg] [PATCH 02/15] uDAPL v2.0 common: ep_create should allow max_request_iov attribute setting of zero
Davis, Arlin R
arlin.r.davis at intel.com
Mon Apr 23 13:00:47 PDT 2012
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 at intel.com>
---
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
More information about the ewg
mailing list