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

prov/verbs: detect string format of wildcard address #4386

Merged
merged 1 commit into from
Sep 6, 2018

Conversation

arn314
Copy link

@arn314 arn314 commented Sep 5, 2018

When an app passes a wildcard address in string format as node argument to
fi_getinfo, we should return a passive fi_info.

When an app passes a wildcard address in string format as node argument to
fi_getinfo, we should return a passive fi_info.

Signed-off-by: Arun C Ilango <arun.ilango@intel.com>
@shefty shefty mentioned this pull request Sep 5, 2018
Copy link
Member

@shefty shefty left a comment

Choose a reason for hiding this comment

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

minor change requested

src/common.c Outdated
@@ -595,11 +598,42 @@ int ofi_addr_cmp(const struct fi_provider *prov, const struct sockaddr *sa1,
}
}

int ofi_is_only_src_port_set(const char *node, const char *service,
uint64_t flags, const struct fi_info *hints)
static int ofi_is_any_addr_port(void *addr)
Copy link
Member

Choose a reason for hiding this comment

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

This function assumes that addr is a struct sockaddr *, instead of void *.

Copy link
Author

Choose a reason for hiding this comment

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

Thanks. Fixed the function signature.

@arn314 arn314 merged commit 490039d into ofiwg:master Sep 6, 2018
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants