Skip to contentSkip to conversation

RDMA CM: private_data_len

DISCUSSION Yann Droneaud 2 participants 3 messages Mar 25, 2011 – Mar 28, 2011 2 messages not in the archive InfiniBand

lore
Share & tools
lore
#0 lore raw

Hi,

On a client, rdma_connect() returns -1 and set errno EINVAL if struct rdma_conn_param->private_data_len is set to something higher than 56 bytes.

But on a server, using rdma_accept() with struct rdma_conn_param->private_data_len is set to 64 (for example) didn't return any error.

What is the maximum data size that can be exchanged between peers at connection time, and where to find its definition (at compile time or at runtime) ?

Regards.

Signature · 8 lines
Yann Droneaud
OPTEYA


--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw
In reply to a message not in the archive
Quoted 10 lines · Yann Droneaud

On a client, rdma_connect() returns -1 and set errno EINVAL if struct rdma_conn_param->private_data_len is set to something higher than 56 bytes.

But on a server, using rdma_accept() with struct rdma_conn_param->private_data_len is set to 64 (for example) didn't return any error.

What is the maximum data size that can be exchanged between peers at connection time, and where to find its definition (at compile time or at runtime) ?

yep, this isn't clear from the librdmacm man pages see the patch that follows. BTW - Sean, looking on the code of the library and the kernel's ucma.c / cma.c - I failed to find where this is enforced, a pointer will be cool.

Or.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw
In reply to a message not in the archive
Quoted 9 lines · Or Gerlitz
Quoted 8 lines · Yann Droneaud

On a client, rdma_connect() returns -1 and set errno EINVAL if struct rdma_conn_param->private_data_len is set to something higher than 56 bytes.

But on a server, using rdma_accept() with struct rdma_conn_param->private_data_len is set to 64 (for example) didn't return any error.

Quoted 6 lines
Quoted 3 lines

What is the maximum data size that can be exchanged between peers at connection time, and where to find its definition (at compile time or at runtime) ?

yep, this isn't clear from the librdmacm man pages see the patch that follows.

Oh yes, it's clear now.
Thanks for the patch and the link to IB specs.

Regards.

Signature · 8 lines
Yann Droneaud
OPTEYA


--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html