Skip to contentSkip to conversation

acm.c: Handle client reregister local event

PATCH Applied Hal Rosenstock 2 participants 2 messages Aug 2, 2013 – Aug 5, 2013 1 message not in the archive InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 acm.c: Handle client reregister local event

When client reregister is requested, ACM should rejoin/recreate ACM multicast groups.

---
 src/acm.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
src/acm.c +7 -0
index 0da20f8..81aeeb4 100644
@@ -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;
 		}
Signature · 6 lines
1.7.8.2

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 51FB9F65.4040804-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org

Applied
#2 lore raw

src/acm.c static void CDECL_FUNC acm_event_handler(void *context) · line 3289

Quoted 5 lines
src/acm.c +5 -0
+		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);

applied, but changed 'i' to 'i + 1' to display the correct port number

thanks
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html