From fb2a872c8e10f811a86865b863057b60ecb7c993 Mon Sep 17 00:00:00 2001 From: Thananon Patinyasakdikul Date: Thu, 25 May 2017 15:32:07 -0700 Subject: [PATCH] prov/usnic: report the counter number Signed-off-by: Thananon Patinyasakdikul --- prov/usnic/src/usdf_dgram.h | 1 + prov/usnic/src/usdf_ep_dgram.c | 3 ++- prov/usnic/src/usdf_ep_msg.c | 1 + prov/usnic/src/usdf_ep_rdm.c | 3 ++- prov/usnic/src/usdf_msg.h | 2 ++ prov/usnic/src/usdf_rdm.h | 2 ++ 6 files changed, 10 insertions(+), 2 deletions(-) diff --git a/prov/usnic/src/usdf_dgram.h b/prov/usnic/src/usdf_dgram.h index a82e2de14ef..61987457b26 100644 --- a/prov/usnic/src/usdf_dgram.h +++ b/prov/usnic/src/usdf_dgram.h @@ -51,6 +51,7 @@ #define USDF_DGRAM_SUPP_RECVMSG_FLAGS (FI_COMPLETION) #define USDF_DGRAM_IOV_LIMIT (USDF_DGRAM_DFLT_SGE) #define USDF_DGRAM_RMA_IOV_LIMIT 0 +#define USDF_DGRAM_CNTR_CNT 0 int usdf_dgram_fill_rx_attr(struct fi_info *hints, diff --git a/prov/usnic/src/usdf_ep_dgram.c b/prov/usnic/src/usdf_ep_dgram.c index 991e0767697..178ac65b05d 100644 --- a/prov/usnic/src/usdf_ep_dgram.c +++ b/prov/usnic/src/usdf_ep_dgram.c @@ -417,7 +417,8 @@ static const struct fi_domain_attr dgram_dflt_domain_attr = { .control_progress = FI_PROGRESS_AUTO, .data_progress = FI_PROGRESS_MANUAL, .resource_mgmt = FI_RM_DISABLED, - .mr_mode = OFI_MR_BASIC_MAP | FI_MR_LOCAL + .mr_mode = OFI_MR_BASIC_MAP | FI_MR_LOCAL, + .cntr_cnt = USDF_DGRAM_CNTR_CNT }; /******************************************************************************* diff --git a/prov/usnic/src/usdf_ep_msg.c b/prov/usnic/src/usdf_ep_msg.c index 063be876081..fffeaa80baf 100644 --- a/prov/usnic/src/usdf_ep_msg.c +++ b/prov/usnic/src/usdf_ep_msg.c @@ -117,6 +117,7 @@ static const struct fi_domain_attr msg_dflt_domain_attr = { .data_progress = FI_PROGRESS_MANUAL, .resource_mgmt = FI_RM_DISABLED, .mr_mode = OFI_MR_BASIC_MAP | FI_MR_LOCAL, + .cntr_cnt = USDF_MSG_CNTR_CNT }; /******************************************************************************* diff --git a/prov/usnic/src/usdf_ep_rdm.c b/prov/usnic/src/usdf_ep_rdm.c index 3182f1b4a4e..b97fa1abe74 100644 --- a/prov/usnic/src/usdf_ep_rdm.c +++ b/prov/usnic/src/usdf_ep_rdm.c @@ -119,7 +119,8 @@ static const struct fi_domain_attr rdm_dflt_domain_attr = { .control_progress = FI_PROGRESS_AUTO, .data_progress = FI_PROGRESS_MANUAL, .resource_mgmt = FI_RM_DISABLED, - .mr_mode = OFI_MR_BASIC_MAP | FI_MR_LOCAL + .mr_mode = OFI_MR_BASIC_MAP | FI_MR_LOCAL, + .cntr_cnt = USDF_RDM_CNTR_CNT }; /******************************************************************************* diff --git a/prov/usnic/src/usdf_msg.h b/prov/usnic/src/usdf_msg.h index 3e9fb1f8e84..3105daf5786 100644 --- a/prov/usnic/src/usdf_msg.h +++ b/prov/usnic/src/usdf_msg.h @@ -56,6 +56,8 @@ #define USDF_MSG_IOV_LIMIT (USDF_MSG_DFLT_SGE) #define USDF_MSG_RMA_IOV_LIMIT 0 +#define USDF_MSG_CNTR_CNT 0 + #define USDF_MSG_MAX_MSG UINT_MAX #define USDF_MSG_MAX_INJECT_SIZE 64 diff --git a/prov/usnic/src/usdf_rdm.h b/prov/usnic/src/usdf_rdm.h index 55db1b3ea06..373a3b853db 100644 --- a/prov/usnic/src/usdf_rdm.h +++ b/prov/usnic/src/usdf_rdm.h @@ -56,6 +56,8 @@ #define USDF_RDM_IOV_LIMIT (USDF_RDM_DFLT_SGE) #define USDF_RDM_RMA_IOV_LIMIT 0 +#define USDF_RDM_CNTR_CNT 0 + #define USDF_RDM_MSG_ORDER (FI_ORDER_NONE) #define USDF_RDM_COMP_ORDER (FI_ORDER_NONE)