As 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 <[email protected]>
Signed-off-by: Or Gerlitz <[email protected]>
---
 drivers/infiniband/hw/mlx4/main.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: b/drivers/infiniband/hw/mlx4/main.c
===================================================================
--- a/drivers/infiniband/hw/mlx4/main.c
+++ b/drivers/infiniband/hw/mlx4/main.c
@@ -816,7 +816,7 @@ static void update_gids_task(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);
        }


--
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

Reply via email to