Skip to content

Commit 74ff15b

Browse files
authored
Merge pull request #3390 from jsquyres/pr/v2.1.x/usnic-fix-iov-len
v2.1.x: usnic: ensure to set the iov_limit to 1
2 parents 3a0171d + 3c5b86d commit 74ff15b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

opal/mca/btl/usnic/btl_usnic_component.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,8 @@ static mca_btl_base_module_t** usnic_component_init(int* num_btl_modules,
704704
struct fi_info hints = {0};
705705
struct fi_ep_attr ep_attr = {0};
706706
struct fi_fabric_attr fabric_attr = {0};
707+
struct fi_rx_attr rx_attr = {0};
708+
struct fi_tx_attr tx_attr = {0};
707709

708710
/* We only want providers named "usnic" that are of type EP_DGRAM */
709711
fabric_attr.prov_name = "usnic";
@@ -714,6 +716,11 @@ static mca_btl_base_module_t** usnic_component_init(int* num_btl_modules,
714716
hints.addr_format = FI_SOCKADDR;
715717
hints.ep_attr = &ep_attr;
716718
hints.fabric_attr = &fabric_attr;
719+
hints.tx_attr = &tx_attr;
720+
hints.rx_attr = &rx_attr;
721+
722+
tx_attr.iov_limit = 1;
723+
rx_attr.iov_limit = 1;
717724

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

0 commit comments

Comments
 (0)