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

DAOS-15800 client: create cart context on specific interface #14804

Merged
merged 6 commits into from
Aug 30, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
address review feedback
Features: test_pil4dfs_vs_dfs
Required-githooks: true

Signed-off-by: Mohamad Chaarawi <mohamad.chaarawi@intel.com>
  • Loading branch information
mchaarawi committed Aug 23, 2024
commit 108ab3b0ebace6d69def76c9c89b100ddf3ec340
16 changes: 10 additions & 6 deletions src/mgmt/cli_mgmt.c
Original file line number Diff line number Diff line change
@@ -644,15 +644,17 @@ dc_mgmt_net_cfg(const char *name, crt_init_options_t *crt_info)

d_getenv_bool("D_DYNAMIC_CTX", &d_dynamic_ctx_g);
if (d_dynamic_ctx_g) {
int i, cnt = 0;
int i;
daos_size_t size = 0;

for (i = 0; i < resp->n_numa_fabric_interfaces; i++)
cnt += resp_g->numa_fabric_interfaces[i]->n_ifaces + 1;
size += resp_g->numa_fabric_interfaces[i]->n_ifaces *
(DAOS_SYS_INFO_STRING_MAX + 1);

D_ALLOC(crt_info->cio_interface, DAOS_SYS_INFO_STRING_MAX * cnt);
D_ALLOC(crt_info->cio_interface, size);
if (crt_info->cio_interface == NULL)
D_GOTO(cleanup, rc = -DER_NOMEM);
D_ALLOC(crt_info->cio_domain, DAOS_SYS_INFO_STRING_MAX * cnt);
D_ALLOC(crt_info->cio_domain, size);
if (crt_info->cio_domain == NULL)
D_GOTO(cleanup, rc = -DER_NOMEM);

@@ -665,8 +667,10 @@ dc_mgmt_net_cfg(const char *name, crt_init_options_t *crt_info)
strcat(crt_info->cio_interface, ",");
frostedcmos marked this conversation as resolved.
Show resolved Hide resolved
strcat(crt_info->cio_domain, ",");
}
strcat(crt_info->cio_interface, numa_ifaces->ifaces[j]->interface);
strcat(crt_info->cio_domain, numa_ifaces->ifaces[j]->domain);
strncat(crt_info->cio_interface, numa_ifaces->ifaces[j]->interface,
DAOS_SYS_INFO_STRING_MAX);
strncat(crt_info->cio_domain, numa_ifaces->ifaces[j]->domain,
DAOS_SYS_INFO_STRING_MAX);
}
/*
* If we have multiple interfaces per numa node, we want to randomize the
Loading