Skip to content

Commit 652c919

Browse files
committed
usnic: more iov_limit fixes
Follow on to 7bd2de9: move setting the iov_limit to 1 earlier in the startup sequence. Signed-off-by: Jeff Squyres <[email protected]> (cherry picked from commit 1d5e08f)
1 parent e47adc3 commit 652c919

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

opal/mca/btl/usnic/btl_usnic_component.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -691,6 +691,8 @@ static mca_btl_base_module_t** usnic_component_init(int* num_btl_modules,
691691
struct fi_info hints = {0};
692692
struct fi_ep_attr ep_attr = {0};
693693
struct fi_fabric_attr fabric_attr = {0};
694+
struct fi_rx_attr rx_attr = {0};
695+
struct fi_tx_attr tx_attr = {0};
694696

695697
/* We only want providers named "usnic" that are of type EP_DGRAM */
696698
fabric_attr.prov_name = "usnic";
@@ -701,6 +703,11 @@ static mca_btl_base_module_t** usnic_component_init(int* num_btl_modules,
701703
hints.addr_format = FI_SOCKADDR;
702704
hints.ep_attr = &ep_attr;
703705
hints.fabric_attr = &fabric_attr;
706+
hints.tx_attr = &tx_attr;
707+
hints.rx_attr = &rx_attr;
708+
709+
tx_attr.iov_limit = 1;
710+
rx_attr.iov_limit = 1;
704711

705712
ret = fi_getinfo(libfabric_api, NULL, 0, 0, &hints, &info_list);
706713
if (0 != ret) {

opal/mca/btl/usnic/btl_usnic_module.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1542,8 +1542,6 @@ static int create_ep(opal_btl_usnic_module_t* module,
15421542

15431543
hint->rx_attr->size = channel->chan_rd_num;
15441544
hint->tx_attr->size = channel->chan_sd_num;
1545-
hint->tx_attr->iov_limit = 1;
1546-
hint->rx_attr->iov_limit = 1;
15471545

15481546
/* specific ports requested? */
15491547
sin = hint->src_addr;

0 commit comments

Comments
 (0)