Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reachable documentation change #7167

Merged
merged 2 commits into from
Jan 27, 2020
Merged

Conversation

wckzhang
Copy link
Contributor

We are changing the documentation and promised behavior of the reachability framework and changing the netlinks component to match.

See more details in #7134

@@ -75,6 +75,8 @@ typedef int (*opal_reachable_base_module_fini_fn_t)(void);
* interfaces, but only a (comparable) reachability between any pair
* of local/remote interfaces.
*
* This function will show an identical local and remote interface as
* reachable through loopback.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit pick: it will show it as reachable -- I don't think the "reachable" framework indicates / implies which interface the traffic will actually go through, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's true, I'll change it to just say "as reachable".

@wckzhang
Copy link
Contributor Author

@markalle Can you confirm that this patch combined with my previous one fixes your issue? Thanks.

@@ -112,6 +112,15 @@ static int get_weights(opal_if_t *local_if, opal_if_t *remote_if)
remote_ip = (uint32_t)((struct sockaddr_in *)&(remote_if->if_addr))->sin_addr.s_addr;
outgoing_interface = local_if->if_kernel_index;

/* If the ips are identical, assume reachable through loopback */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a bit more of a comment here? Say that we're doing something artificial because historical reasons. Someone in 2 years is going to wonder why this comment is here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated the comment.

Due to the way netlinks detects reachability, it will not show an
interface as reachable to itself, even if it can pass through a loopback
interface. To maintain similar behavior with netmasks, we display an
interface as reachable to itself.

Signed-off-by: William Zhang <wilzhang@amazon.com>
We have decided to show interfaces that are identical to itself as
reachable. This is consistent with the previous netmask logic when
determining reachability.

Signed-off-by: William Zhang <wilzhang@amazon.com>
@bwbarrett bwbarrett merged commit d768d82 into open-mpi:master Jan 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants