[openib-general] Re: [PATCH] [CMA] support for SDP + standard protocol

Or Gerlitz ogerlitz at voltaire.com
Wed Dec 14 01:56:22 PST 2005


Ranjit Pandit wrote:

 > Looks like the CMA does create a new cm_id on every connect request.
 > cma_req_handler() calls cma_new_id() and passes the new id to the
 > connect request callback.

Indeed, to see how it is used you can follow on the passive side flow in
gen2/utils/src/linux-kernel/infiniband/util/cmatose. Having both the cma 
ids of the listener and the new connection at hand within the connection 
request callback, is easy: you add the listener id as a field in the 
context struct which you associate with it, so you get it as the 
callback second param.





More information about the general mailing list