> Is the following code skeleton is legal:

no, but I'm not sure I'm following the skeleton correctly.
 
> rdma_getaddrinfo(NULL, port, &hints, &res);
> rdma_freeaddrinfo(res);
> rdma_listen(listen_id, 0);

I'm assuming that you called rdma_create_id( ... &listen_id ...) somewhere.

> rdma_create_id(NULL, &id, NULL, RDMA_PS_UDP);

You don't want this call.

> rdma_accept(id, NULL) , when a QP wasn't created.

rdma_accept() requires that the listen operate asynchronously, so somewhere you 
need a call to rdma_get_cm_event().  A connect request event will return a 
newly created id.  rdma_accept should be called on the id returned in struct 
rdma_cm_event.
 
- Sean

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to