[openib-general] Re: [PATCH] RDMA CM: assign port numbers when binding a cm_id to an address
Sean Hefty
mshefty at ichips.intel.com
Mon Apr 24 13:58:33 PDT 2006
Tom Tucker wrote:
> I think you do, and I think the types are AF_INET and AF_INET6. Right
> now, although the interfaces are sockaddr's they become sockaddr_in by
> the time you get to rdma_translate_ip. If we want to support IPv6 going
> forward then I think you'll want to separate support at the top and
> potentially have rdma_cm_id ops filled in the cm_id based on the address
> family specified when the rdma_cm_id was created.
I realize that the code assume IPv4 in several places, but that should be a
temporary limitation. I just haven't had time to add in IPv6 support yet.
My original plan was that the sockaddr's should eventually be cast to the
correct structure based on the sa_family type. But I don't think that this will
be sufficient to handle all cases. Adding a pointer to set of functions, or
adding a set of function pointers to the rdma_cm_id may be the correct solution
when IPv6 is fully supported.
- Sean
More information about the general
mailing list