From: Hal Rosenstock <hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
To: "Hefty, Sean" <sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: "linux-rdma
(linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org)"
<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: [PATCH ibacm] acm.c: Handle client reregister local event
Date: Fri, 02 Aug 2013 08:00:37 -0400 [thread overview]
Message-ID: <51FB9F65.4040804@dev.mellanox.co.il> (raw)
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
next reply other threads:[~2013-08-02 12:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-02 12:00 Hal Rosenstock [this message]
[not found] ` <51FB9F65.4040804-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2013-08-05 17:39 ` [PATCH ibacm] acm.c: Handle client reregister local event 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=51FB9F65.4040804@dev.mellanox.co.il \
--to=hal-ldsdmyg8hgv8yrgs2mwiifqbs+8scbdb@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=sean.hefty-ral2JQCrhuEAvxtiuMwx3w@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