[openib-general] RFC: cma: need rdma_unbind

Tom Tucker tom at opengridcomputing.com
Mon Apr 24 12:32:45 PDT 2006


On Mon, 2006-04-24 at 11:15 -0700, Sean Hefty wrote:
> Michael S. Tsirkin wrote:
> > Sean, it seems that a rdma_unbind API is necessary for SDP SO_REUSEADDR support.
> > This should only remove association between the port and the id, without
> > affecting the CM state.
> > 
> > Reason: when SO_REUSEADDR is set, the port becomes usable immediately
> > after close call, but the QP must not be closed immediately -
> > rather its closed after graceful close or after timeout.
> > 
> > Thus I can not destroy the id, but the association with
> > port needs to be cancelled.
> 
> I'm in the process of adding rdma_set_option and rdma_get_option calls.  If 
> SO_REUSEADDR support were added through these calls, can we come up with a 
> solution that doesn't require adding an rdma_unbind call?

There is no need for an unbind call -- the sockets code, for example,
doesn't work this way. Instead, it looks at a 'reuse' flag and decides
whether to allow a subsequent bind or use-port request based on the
value.

...from inet_csk_get_port...

tb_found:
        if (!hlist_empty(&tb->owners)) {
                if (sk->sk_reuse > 1)
                        goto success;

> 
> - Sean
> _______________________________________________
> openib-general mailing list
> openib-general at openib.org
> http://openib.org/mailman/listinfo/openib-general
> 
> To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general




More information about the general mailing list