提交 6451c712 编写于 作者: O Or Gerlitz 提交者: Roland Dreier

IB/mlx4: Generate GID change events in IBoE code

IBoE doesn't use LIDs.  Use the GID change event to update the IB core
cache for addition/deletion of GIDs.
Signed-off-by: NEli Cohen <eli@mellanox.co.il>
Signed-off-by: NOr Gerlitz <ogerlitz@mellanox.co.il>
Signed-off-by: NRoland Dreier <roland@purestorage.com>
上级 761d90ed
...@@ -816,7 +816,7 @@ static void update_gids_task(struct work_struct *work) ...@@ -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); memcpy(gw->dev->iboe.gid_table[gw->port - 1], gw->gids, sizeof gw->gids);
event.device = &gw->dev->ib_dev; event.device = &gw->dev->ib_dev;
event.element.port_num = gw->port; event.element.port_num = gw->port;
event.event = IB_EVENT_LID_CHANGE; event.event = IB_EVENT_GID_CHANGE;
ib_dispatch_event(&event); ib_dispatch_event(&event);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册