Quoting r. Sean Hefty <[EMAIL PROTECTED]>: > Subject: Re: [RFC] [PATCH 1/3] RDMA CM: addrdma_get/set_optioncalls to > get/set path records > > Michael S. Tsirkin wrote: > >>Sockets provides setsockopt/getsockopt calls, and there is an attempt > >>here to > >>emulate sockets. > > > >Maybe we should create a socket instead of a char device in ucma? > >Then we get bind/listen/connect/accept for free. > > This sounds worth considering. I'm not sure what it would take to do it > without looking into it more though.
The simplest way to do this is by calling inet_register_protosw. And you fill struct proto_ops in include/linux/net.h Things like qp state or port space can be passed around by getsockopt/setsockopt. -- MST _______________________________________________ openib-general mailing list [email protected] http://openib.org/mailman/listinfo/openib-general To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
