public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* RDMA version of select for multiplexing rdma connections?
@ 2010-10-22 21:07 Adit Ranadive
       [not found] ` <AANLkTikPStczJpRo9va7Q=rj0C+gwwq0X0kOUKDBKN34-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Adit Ranadive @ 2010-10-22 21:07 UTC (permalink / raw)
  To: linux-rdma-u79uwXL29TY76Z2rM5mHXA

Hello,

I have been building a server client type of application based on top
of RDMA/Verbs user libraries.
The issue that Im running into is how to multiplex between multiple
clients connecting to the server using rdma_listen & rdma_connect
functions.
Looking at he man pages the rdma_listen call supports having a backlog
of connections but doesnt say how to multiplex between that backlog
of connections.

One approach obviously is to create multiple sockets and allow clients
to connect to that but that does not really seem a good solution to
tell clients
which socket to connect to.

Is there a rdma version of the sockets select function which allows us
to multiplex between different sockets for the rdma connection
manager?


Thanks,
Adit
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: RDMA version of select for multiplexing rdma connections?
       [not found] ` <AANLkTikPStczJpRo9va7Q=rj0C+gwwq0X0kOUKDBKN34-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2010-10-22 22:06   ` Jason Gunthorpe
       [not found]     ` <20101022220644.GC15514-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Jason Gunthorpe @ 2010-10-22 22:06 UTC (permalink / raw)
  To: Adit Ranadive; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA

On Fri, Oct 22, 2010 at 05:07:23PM -0400, Adit Ranadive wrote:

> I have been building a server client type of application based on top
> of RDMA/Verbs user libraries.

You can use select/poll/etc on CQ's after the connection has been
accepted, see ibv_create_comp_channel.

If you want to do non-blocking accept .. I'm not sure that is possible
with RDMA CM. Create a thread to block in rmda_accept and pass
the accepted connection back to your main thread using an eventfd/pipe
construct to wake your select loop?

Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: RDMA version of select for multiplexing rdma connections?
       [not found]     ` <20101022220644.GC15514-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
@ 2010-10-23  5:28       ` Hefty, Sean
  0 siblings, 0 replies; 3+ messages in thread
From: Hefty, Sean @ 2010-10-23  5:28 UTC (permalink / raw)
  To: Jason Gunthorpe, Adit Ranadive
  Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

> If you want to do non-blocking accept .. I'm not sure that is possible
> with RDMA CM. 

non-blocking 'accept' functionality can be achieved by using get_event and select/poll on the associated fd. 
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-10-23  5:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-22 21:07 RDMA version of select for multiplexing rdma connections? Adit Ranadive
     [not found] ` <AANLkTikPStczJpRo9va7Q=rj0C+gwwq0X0kOUKDBKN34-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-10-22 22:06   ` Jason Gunthorpe
     [not found]     ` <20101022220644.GC15514-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2010-10-23  5:28       ` Hefty, Sean

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox