[ofa-general] hotplug event handle question
Vladimir Sokolovsky
vlad at mellanox.co.il
Wed Apr 25 07:55:15 PDT 2007
Hi Sean,
I have a question about hotplug event:
I want to handle RDMA_CM_EVENT_DEVICE_REMOVAL event in RDS. When I got
this event, I call to rdma_disconnect function in order to modify the QP
to the error state but I got -EINVAL because of the following code in
cma.c:
if (!cma_comp(id_priv, CMA_CONNECT) &&
!cma_comp(id_priv, CMA_DISCONNECT))
return -EINVAL;
while the state is CMA_DEVICE_REMOVAL.
Should I move the QP to the error state in RDS or cma should handle this
state too.
Thanks,
--
Vladimir Sokolovsky <vlad at mellanox.co.il>
Mellanox Technologies Ltd.
More information about the general
mailing list