[ofa-general] [PATCH RFC] rds: add iwarp support

Jon Mason jon at opengridcomputing.com
Mon Jul 7 14:13:21 PDT 2008


On Mon, Jul 07, 2008 at 04:10:09PM -0500, Steve Wise wrote:
> Sean Hefty wrote:
>>> Maybe there's a better way?
>>>     
>>
>> I would look at using rdma_resolve_ip, or using rdma_resolve_addr as is.
>>
>> The rdma_cm_id ensures that there's a reference on the ib_device for the pointer
>> that's returned.  The proposed interface returns a pointer without any way to
>> verify that it's still valid, or know when it is no longer usable.
>>
>>   
> The rds module already _has_ cm_id's bound to these devices. So they  
> won't "go away" without rds getting an event. The service in question  
> was just a quick way to map an ip address to its associated struct  
> ib_device. Perhaps this just needs to be a function inside the rds  
> module as opposed to something exported from the cma proper...

Unfortunately, this cannot be rds only.  All the data structs are local
to cma.c.  

The question is, if given only a u32 ipaddr, is there a way to turn this
into a struct ib_device *?

Thanks,
Jon

>
> Steve.
> _______________________________________________
> general mailing list
> general at lists.openfabrics.org
> http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general
>
> To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general



More information about the general mailing list