IB/mlx4: Generate GID change events in IBoE code
authorOr Gerlitz <ogerlitz@mellanox.com>
Wed, 15 Jun 2011 14:40:29 +0000 (14:40 +0000)
committerRoland Dreier <roland@purestorage.com>
Tue, 19 Jul 2011 04:04:31 +0000 (21:04 -0700)
IBoE doesn't use LIDs.  Use the GID change event to update the IB core
cache for addition/deletion of GIDs.

Signed-off-by: Eli Cohen <eli@mellanox.co.il>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.co.il>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/mlx4/main.c

index fbe1973f77b0d2a7d3dbb11bf26fa53a69ad5eb9..621c409433e2220f1898fbbe51d48458ffa5230e 100644 (file)
@@ -816,7 +816,7 @@ static void update_gids_task(struct work_struct *work)
                memcpy(gw->dev->iboe.gid_table[gw->port - 1], gw->gids, sizeof gw->gids);
                event.device = &gw->dev->ib_dev;
                event.element.port_num = gw->port;
-               event.event    = IB_EVENT_LID_CHANGE;
+               event.event    = IB_EVENT_GID_CHANGE;
                ib_dispatch_event(&event);
        }