-
Notifications
You must be signed in to change notification settings - Fork 900
Reachable documentation change #7167
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
Conversation
a15c954
to
25c0438
Compare
opal/mca/reachable/reachable.h
Outdated
@@ -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. |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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".
25c0438
to
f1b22fe
Compare
@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 */ |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 <[email protected]>
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 <[email protected]>
f1b22fe
to
a471f87
Compare
We are changing the documentation and promised behavior of the reachability framework and changing the netlinks component to match.
See more details in #7134