RE: [PATCH 2/2] rdma/cm: allow user to specify IP to DGID mapping

Sean Hefty
2009-10-20T20:48:34Z

>Private data:
>- AF_IB/PS_TCP - the kernel munges the private data to be compatible
> with AF_INET/PS_TCP, but otherwise is the same.
>- AF_IB/PS_IB - the kernel doesn't touch the private data.

I was thinking AF_IB/* - kernel doesn't touch the private data, as it lacks the
necessary information.

>What about the service_mask feature of IB CM?

not sure - Is it needed in user space?

>How are the IP source and dest IPs going to be picked in for PS_TCP
>mode?
>
>I guess user space does that and passes it through to the kernel?

It could pass the private data when calling rdma_connect.

>I think it would be fine to EINVAL on AF_IB/PS_TCP listen().

I'm good with that, but want to give this some thought.

>Oh I see, well, a 'bind' api into the IB CM should take care of that?

I think so.

- Sean