[openib-general] [PATCH] ipoib mcast restart

Eli cohen eli at dev.mellanox.co.il
Mon Sep 18 23:31:14 PDT 2006


Make sure after after ipoib_ib_dev_flush is executed,
ipoib_mcast_restart_task is executed also to join all the
mcast groups maintained by the kernel for the device.

Signed-off-by: Eli Cohen <eli at mellanox.co.il>
Signed-off-by: Michael S. Tsirkin <mst at mellanox.co.il>

Index: openib-1.1/drivers/infiniband/ulp/ipoib/ipoib_ib.c
===================================================================
--- openib-1.1.orig/drivers/infiniband/ulp/ipoib/ipoib_ib.c	2006-09-14
17:20:06.000000000 +0300
+++ openib-1.1/drivers/infiniband/ulp/ipoib/ipoib_ib.c	2006-09-17
15:51:52.000000000 +0300
@@ -619,8 +619,10 @@
 	 * The device could have been brought down between the start and when
 	 * we get here, don't bring it back up if it's not configured up
 	 */
-	if (test_bit(IPOIB_FLAG_ADMIN_UP, &priv->flags))
+	if (test_bit(IPOIB_FLAG_ADMIN_UP, &priv->flags)) {
 		ipoib_ib_dev_up(dev);
+		ipoib_mcast_restart_task(dev);
+	}
 
 	mutex_lock(&priv->vlan_mutex);
 






More information about the general mailing list