[openib-general] [PATCH] initial CM module

Sean Hefty mshefty at ichips.intel.com
Thu Dec 16 14:41:56 PST 2004


frank zago wrote:

> 
>>> With the interface you propose it takes maybe 200 lines of code to 
>>> establish a simple connection, while with a callback it can be down 
>>> to 30 lines. It should be as easy as possible for an application or a 
>>> driver to establish a connection. I shouldn't have to rewrite a CM 
>>> state machine every time I need a connection.
>>
>>
>>
>> This API does use a callback model based on events.  You register for 
>> a callback by calling ib_create_cm_id.
>>
>> - Sean
>>
>>
> I was under the impression that with your proposal, an application would 
> have to send REQ/REP/RTU/... mads. Is that the case?

The MADs are allocated and formated by the CM.  The function names are 
descriptive of the action taken by the CM, but the user does not 
actually deal with MADs.  I'm open to changing the name, but I would 
prefer it reflect what the CM is doing.

The CM also manages the connection state and will fail any call done 
while in the wrong state.  (This should be similar to the Topspin code.)

- Sean



More information about the general mailing list