Skip to content

Commit 03898fe

Browse files
authored
Merge pull request #10964 from gleon99/increase-tls-info-buf
UCP/WIREUP: Increase tls_info buffer in ucp_wireup_select_transport
2 parents 5b366f4 + b531085 commit 03898fe

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/ucp/wireup/select.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424
#define UCP_WIREUP_RMA_BW_TEST_MSG_SIZE 262144
2525
#define UCP_WIREUP_MAX_FLAGS_STRING_SIZE 50
2626
#define UCP_WIREUP_PATH_INDEX_UNDEFINED UINT_MAX
27+
#define UCP_WIREUP_UCT_INFO_SIZE 256
28+
29+
/* 6 for the string format constant length */
30+
#define UCP_WIREUP_TLS_INFO_SIZE (UCP_WIREUP_UCT_INFO_SIZE + \
31+
UCT_TL_NAME_MAX + UCT_DEVICE_NAME_MAX + 6)
2732

2833
#define UCP_WIREUP_CHECK_AMO_FLAGS(_ae, _criteria, _context, _addr_index, _op, _size) \
2934
if (!ucs_test_all_flags((_ae)->iface_attr.atomic.atomic##_size._op##_flags, \
@@ -410,8 +415,8 @@ static UCS_F_NOINLINE ucs_status_t ucp_wireup_select_transport(
410415
ucp_rsc_index_t rsc_index;
411416
ucp_rsc_index_t dev_index;
412417
ucp_lane_index_t lane;
413-
char tls_info[256];
414-
char uct_info[256];
418+
char tls_info[UCP_WIREUP_TLS_INFO_SIZE];
419+
char uct_info[UCP_WIREUP_UCT_INFO_SIZE];
415420
char *p, *endp;
416421
uct_iface_attr_t *iface_attr;
417422
uct_md_attr_v2_t *md_attr;

0 commit comments

Comments
 (0)