Skip to content

Commit c018337

Browse files
committed
v4.1.x: common/ofi: added address format check to fix provider selection
bugfix: provider selection would not differentiate between ipv4 and ipv6 addresses which would cause some nodes to be unable to communicate between each other. Adding a check for address format to provider selection to ensure that all nodes use the same address format. Signed-off-by: Nikola Dancejic <[email protected]> (cherry picked from commit 7e46371)
1 parent 57044aa commit c018337

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

opal/mca/common/ofi/common_ofi.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@ check_provider_attr(struct fi_info *provider_info,
172172
!check_rx_attr(provider_info->rx_attr, provider->rx_attr) &&
173173
!check_ep_attr(provider_info->ep_attr, provider->ep_attr) &&
174174
!(provider_info->caps & ~(provider->caps)) &&
175-
!(provider_info->mode & ~(provider->mode))) {
175+
!(provider_info->mode & ~(provider->mode)) &&
176+
provider_info->addr_format == provider->addr_format) {
176177
return 0;
177178
} else {
178179
return OPAL_ERROR;

0 commit comments

Comments
 (0)