On Tue, 13 Apr 2010 16:25:31 +0300
Sasha Khapyorsky <sas...@voltaire.com> wrote:

> On 13:46 Tue 13 Apr     , Sasha Khapyorsky wrote:
> > 
> > However see some comments and questions below.
> 
> Another thought. What about API like:
> 
>       ibnd_discover_fabric(cosnt char *ca_name, unsigned port_num,
>                            struct ibnd_config *cfg);
> 
> So libibnetdisc will be responsible for opening and closing its own port
> and in this way will be fully reenterable?

If we are going to do something like this why not more like a context?

Something like this?

ibqueryerrors.c
        query_errors_ibmad_port = mad_rpc_open_port(ibd_ca, ibd_ca_port, 
mgmt_classes, 4);

        {
                ibnd_context_t ctx;
                ctx.ca_name = ibd_ca;
                ctx.ca_port = ibd_ca_port;
                ctx.portid = portid;
                ctx.hops = hops;
                fabric = ibnd_discover_fabric(&ctx);  /* opens it's own 
ibmad_port */
        }
...

Ira

> 
> Sasha


-- 
Ira Weiny
Math Programmer/Computer Scientist
Lawrence Livermore National Lab
925-423-8008
wei...@llnl.gov
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to