[ofa-general] Re: A question about rdma_get_cm_event

Sean Hefty mshefty at ichips.intel.com
Thu Sep 20 10:16:12 PDT 2007


> When one calls to rdma_get_cm_event, he gets a structure of the 
> rdma_cm_event.
> 
> In this structure there are 2 attributes which i want to discuss about:
> * private_data
> * private_data_len
> 
> It seems that when one side send to the other private data, the private 
> data is correct
> (i mean that the attribute private data points to a memory buffer with 
> the expected data)
> but the private_data_len has a fixed size (depend on the ucma function 
> which was called).
> 
> 1) Is this is the expected behavior?

Yes - there's no way for the receiving side of an IB CM message to know 
how many bytes of private data are valid in the REQ, REP, etc.

> 2) can you please add entry to the man pages of this function to clarify 
> this expected
>     content of those attributes?

I will update the man pages.  Thanks.

- Sean



More information about the general mailing list