Skip to content

Commit e47adc3

Browse files
committed
usnic: ensure to set the iov_limit to 1
The usNIC BTL does not use more than 1 iov, so be sure to set it to 1 so that we don't allocate cq/rq/sq entries based on a default (i.e., >1) number of iovs per entry. Signed-off-by: Jeff Squyres <[email protected]> (cherry picked from commit 7bd2de9)
1 parent 24b5b83 commit e47adc3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

opal/mca/btl/usnic/btl_usnic_module.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1542,6 +1542,8 @@ 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;
15451547

15461548
/* specific ports requested? */
15471549
sin = hint->src_addr;

0 commit comments

Comments
 (0)