From 2d28ccb5fdfcf215cb369e46b82c5f2e9d46b687 Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Tue, 10 Jan 2017 12:05:31 -0800 Subject: [PATCH] usnic: add verbose output of queue lengths Show the actual RX/TX and CQ length returned by libfabric in verbose output. Signed-off-by: Jeff Squyres --- opal/mca/btl/usnic/btl_usnic_module.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/opal/mca/btl/usnic/btl_usnic_module.c b/opal/mca/btl/usnic/btl_usnic_module.c index 388a7cbb8f..c76ad6d2ac 100644 --- a/opal/mca/btl/usnic/btl_usnic_module.c +++ b/opal/mca/btl/usnic/btl_usnic_module.c @@ -1831,6 +1831,15 @@ static int init_one_channel(opal_btl_usnic_module_t *module, assert(channel->info->ep_attr->msg_prefix_size == (uint32_t) mca_btl_usnic_component.transport_header_len); + opal_output_verbose(15, USNIC_OUT, + "btl:usnic:init_one_channel:%s: channel %s, rx queue size=%" PRIsize_t ", tx queue size=%" PRIsize_t ", cq size=%" PRIsize_t ", send credits=%d", + module->linux_device_name, + (index == USNIC_PRIORITY_CHANNEL) ? "priority" : "data", + channel->info->rx_attr->size, + channel->info->tx_attr->size, + cq_attr.size, + channel->credits); + /* * Initialize pool of receive segments. Round MTU up to cache * line size so that each segment is guaranteed to start on a