Commit 761d90ed authored by Or Gerlitz's avatar Or Gerlitz Committed by Roland Dreier

IB/core: Add GID change event

Add IB GID change event type.  This is needed for IBoE when the HW
driver updates the GID (e.g when new VLANs are added/deleted) table
and the change should be reflected to the IB core cache.
Signed-off-by: default avatarEli Cohen <eli@mellanox.co.il>
Signed-off-by: default avatarOr Gerlitz <ogerlitz@mellanox.co.il>
Signed-off-by: default avatarRoland Dreier <roland@purestorage.com>
parent 620917de
...@@ -302,7 +302,8 @@ static void ib_cache_event(struct ib_event_handler *handler, ...@@ -302,7 +302,8 @@ static void ib_cache_event(struct ib_event_handler *handler,
event->event == IB_EVENT_LID_CHANGE || event->event == IB_EVENT_LID_CHANGE ||
event->event == IB_EVENT_PKEY_CHANGE || event->event == IB_EVENT_PKEY_CHANGE ||
event->event == IB_EVENT_SM_CHANGE || event->event == IB_EVENT_SM_CHANGE ||
event->event == IB_EVENT_CLIENT_REREGISTER) { event->event == IB_EVENT_CLIENT_REREGISTER ||
event->event == IB_EVENT_GID_CHANGE) {
work = kmalloc(sizeof *work, GFP_ATOMIC); work = kmalloc(sizeof *work, GFP_ATOMIC);
if (work) { if (work) {
INIT_WORK(&work->work, ib_cache_task); INIT_WORK(&work->work, ib_cache_task);
......
...@@ -350,7 +350,8 @@ enum ib_event_type { ...@@ -350,7 +350,8 @@ enum ib_event_type {
IB_EVENT_SRQ_ERR, IB_EVENT_SRQ_ERR,
IB_EVENT_SRQ_LIMIT_REACHED, IB_EVENT_SRQ_LIMIT_REACHED,
IB_EVENT_QP_LAST_WQE_REACHED, IB_EVENT_QP_LAST_WQE_REACHED,
IB_EVENT_CLIENT_REREGISTER IB_EVENT_CLIENT_REREGISTER,
IB_EVENT_GID_CHANGE,
}; };
struct ib_event { struct ib_event {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment