[openib-general] Re: [RFC] [PATCH 1/3] RDMA CM: addrdma_get/set_optioncalls to get/set path records

Michael S. Tsirkin mst at mellanox.co.il
Wed Apr 26 12:25:25 PDT 2006


Quoting r. Sean Hefty <mshefty at ichips.intel.com>:
> 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



More information about the general mailing list