[openib-general] Usermode cm_id definition

Sean Hefty mshefty at ichips.intel.com
Fri Oct 13 09:29:22 PDT 2006


Tom Tucker wrote:
> The only "correct" way would be to declare a sockaddr structure * to a
> struct socket_storage allocated buffer and waste 4 bytes in the rdma_cm_id
> structure.
> 
> Anyway, it's buggin' me...Maybe I'm being anal...
> 
> Thoughts?

We could change the definition to something similar in the kernel:

struct sockaddr	src_addr;
u8		src_pad[sizeof(struct sockaddr_storage) -
			sizeof(struct sockaddr)];

I'm guessing this sort of change wouldn't require any changes to any of the clients.

- Sean




More information about the general mailing list