diff options
author | Eli Cohen <eli@mellanox.co.il> | 2006-09-22 18:22:56 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-09-22 18:22:56 -0400 |
commit | 5ccd025553d73e523212ee0860b7f4a75e886bfa (patch) | |
tree | 31a6fe6745b16b47cab4e34760e6c8a1ab70108b /drivers/infiniband/ulp | |
parent | d0df6d6d4539241179a1ef5394787825bf05bbce (diff) |
IPoIB: Rejoin all multicast groups after a port event
When ipoib_ib_dev_flush() is called because of a port event, the
driver needs to rejoin all multicast groups, since the flush will call
ipoib_mcast_dev_flush() (via ipoib_ib_dev_down()). Otherwise no
(non-broadcast) multicast groups will be rejoined until the networking
core calls ->set_multicast_list again, and so multicast reception will
be broken for potentially a long time.
Signed-off-by: Eli Cohen <eli@mellanox.co.il>
Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/ulp')
-rw-r--r-- | drivers/infiniband/ulp/ipoib/ipoib_ib.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_ib.c b/drivers/infiniband/ulp/ipoib/ipoib_ib.c index 722177ea069b..240befdf90dc 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib_ib.c +++ b/drivers/infiniband/ulp/ipoib/ipoib_ib.c | |||
@@ -631,8 +631,10 @@ void ipoib_ib_dev_flush(void *_dev) | |||
631 | * The device could have been brought down between the start and when | 631 | * The device could have been brought down between the start and when |
632 | * we get here, don't bring it back up if it's not configured up | 632 | * we get here, don't bring it back up if it's not configured up |
633 | */ | 633 | */ |
634 | if (test_bit(IPOIB_FLAG_ADMIN_UP, &priv->flags)) | 634 | if (test_bit(IPOIB_FLAG_ADMIN_UP, &priv->flags)) { |
635 | ipoib_ib_dev_up(dev); | 635 | ipoib_ib_dev_up(dev); |
636 | ipoib_mcast_restart_task(dev); | ||
637 | } | ||
636 | 638 | ||
637 | mutex_lock(&priv->vlan_mutex); | 639 | mutex_lock(&priv->vlan_mutex); |
638 | 640 | ||