From: Yann Droneaud <ydroneaud-RlY5vtjFyJ3QT0dZR+AlfA@public.gmane.org>
To: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: rdma_get_cm_event() vs ibv_async_event()
Date: Tue, 29 Mar 2011 11:37:41 +0200 [thread overview]
Message-ID: <1301391461.2192.41.camel@deela.quest-ce.net> (raw)
In-Reply-To: <1301059658.2192.23.camel-H/AUWmsJYVeqvyCYKW+Xr6xOck334EZe@public.gmane.org>
[This question was already asked on ewg-ZwoEplunGu1OwGhvXhtEPSCwEArCW2h5@public.gmane.org]
Hi,
I'm using RDMA CM to manage connections above Infiniband.
On the server side, RDMA CM event are monitored using an event channel
created by rdma_create_event_channel(), polled using file descriptor
rdma_event_channel->fd and later processed by rdma_get_cm_event() on
event.
After a connection is established, IB async events are polled using the
file descriptor found in the associated connection id returned by RDMA
CM layer: ibv_context->async_fd and proceed using ibv_get_async_event().
But the only event I caught and handle is IBV_EVENT_COMM_EST because it
happen sometimes under high load. In this case, rdma_notify() is used to
send the event back to RDMA CM layer. But sometimes, rdma_notify()
returns -1 and errno is set to EISCONN : Transport endpoint is already
connected. (It happens mostly when I'm running my test program under
strace).
I'm suspecting there's some kind of race between RDMA event channel and
IB async event processing.
So here's my question: should I monitor async events using
ibv_get_async_event() or is it fully managed by the RDMA CM layer ?
Regards.
--
Yann Droneaud
OPTEYA
--
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
next parent reply other threads:[~2011-03-29 9:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1301052615.2192.15.camel@deela.quest-ce.net>
[not found] ` <1301059658.2192.23.camel@deela.quest-ce.net>
[not found] ` <1301059658.2192.23.camel-H/AUWmsJYVeqvyCYKW+Xr6xOck334EZe@public.gmane.org>
2011-03-29 9:37 ` Yann Droneaud [this message]
[not found] ` <1301391461.2192.41.camel-H/AUWmsJYVeqvyCYKW+Xr6xOck334EZe@public.gmane.org>
2011-03-29 10:14 ` rdma_get_cm_event() vs ibv_async_event() Or Gerlitz
[not found] ` <4D91B107.2040007-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2011-03-29 10:33 ` Yann Droneaud
[not found] ` <1301394815.2193.2.camel-H/AUWmsJYVeqvyCYKW+Xr6xOck334EZe@public.gmane.org>
2011-03-29 10:45 ` Or Gerlitz
[not found] ` <4D91B85C.1080106-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2011-03-29 14:51 ` Hefty, Sean
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1301391461.2192.41.camel@deela.quest-ce.net \
--to=ydroneaud-rly5vtjfyj3qt0dzr+alfa@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox