* [PATCH ibacm] acm.c: Handle client reregister local event
@ 2013-08-02 12:00 Hal Rosenstock
[not found] ` <51FB9F65.4040804-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Hal Rosenstock @ 2013-08-02 12:00 UTC (permalink / raw)
To: Hefty, Sean
Cc: linux-rdma (linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org)
When client reregister is requested, ACM should rejoin/recreate
ACM multicast groups.
Signed-off-by: Hal Rosenstock <hal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
---
src/acm.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/acm.c b/src/acm.c
index 0da20f8..81aeeb4 100644
--- a/src/acm.c
+++ b/src/acm.c
@@ -3282,6 +3282,13 @@ static void CDECL_FUNC acm_event_handler(void *context)
if (dev->port[i].state == IBV_PORT_ACTIVE)
acm_port_down(&dev->port[i]);
break;
+ case IBV_EVENT_CLIENT_REREGISTER:
+ if (dev->port[i].state == IBV_PORT_ACTIVE) {
+ acm_port_join(&dev->port[i]);
+ acm_log(1, "%s %d has reregistered\n",
+ dev->verbs->device->name, i);
+ }
+ break;
default:
break;
}
--
1.7.8.2
--
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 related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-08-05 17:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-02 12:00 [PATCH ibacm] acm.c: Handle client reregister local event Hal Rosenstock
[not found] ` <51FB9F65.4040804-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2013-08-05 17:39 ` Hefty, Sean
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox