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.


_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to