NA OFI: use message header (reqhdr) for SEP
Now PSM2 SEP cannot work with FI_SOURCE/FI_SOURCE_ERR, so works in
reqhdr mode. For PSM2 regular EPs, do not need to piggyback the reqhdr.
@@ -342,19 +342,19 @@ na_ofi_class_unlock(na_class_t *na_class)
}
static NA_INLINE na_bool_t
-na_ofi_with_reqhdr(const na_class_t *na_class)
+na_ofi_with_sep(const na_class_t *na_class)
{
- struct na_ofi_domain *domain = NA_OFI_PRIVATE_DATA(na_class)->nop_domain;
+ struct na_ofi_endpoint *ep = NA_OFI_PRIVATE_DATA(na_class)->nop_endpoint;
- return NA_TRUE || domain->nod_prov_type != NA_OFI_PROV_PSM2;
+ return ep->noe_sep;
}
static NA_INLINE na_bool_t
-na_ofi_with_sep(const na_class_t *na_class)
+na_ofi_with_reqhdr(const na_class_t *na_class)
{
- struct na_ofi_endpoint *ep = NA_OFI_PRIVATE_DATA(na_class)->nop_endpoint;
+ struct na_ofi_domain *domain = NA_OFI_PRIVATE_DATA(na_class)->nop_domain;
- return ep->noe_sep;
+ return na_ofi_with_sep(na_class) || domain->nod_prov_type != NA_OFI_PROV_PSM2;
}
/**
