On 13:30 Tue 13 Apr , Ira Weiny wrote:
>
> 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 */
> }
> ...
I didn't think about "context"-like, more as about few mandatory
(explicit) parameters + optional config.
Sasha
--
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