When client reregister is requested, ACM should rejoin/recreate
ACM multicast groups.
Signed-off-by: Hal Rosenstock <hal@mellanox.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
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 + 1);
+ }
+ break;
default:
break;
}