[openib-general] [PATCH] initial CM module

Sean Hefty sean.hefty at intel.com
Mon Dec 20 06:42:40 PST 2004


In gen1 TS cm there was a function :
ib_cm_service_assign()
that return a free service_id .
and then you could call ib_cm_listen with this service_id.

In Dapl implementation we use this when we want to listen on a not pre
assign service_id
(Dat verb: Dat_Psp_Create_any )

I think gen2 cm should include something similear :

There can be 2 ways to implement it :
1) to add new function as it was in gen1


2) change the ib_cm_listen to understand that the reqeust comes without
service_id
   and then it will assign a service_id and only then will do the listen
   this can be dane in many ways like :if the service_id == 0 (like sockets
bind)
  
Do others feel that this functionality is needed?  This seems problematic in
that the CM could allocate a service ID that is used/required by an
application that has not yet started when this call is made.  (I don't
recall if service IDs have a reserved/non-reserved values similar to
sockets, but I don't think that they do.)  If this functionality is needed,
my initial preference is the second method mentioned.
- Sean




More information about the general mailing list