Commit 3401857e authored by Parav Pandit's avatar Parav Pandit Committed by Jason Gunthorpe

IB/core: Generate GID change event regardless of RoCE GID table property

Due to following reasons, GID table event is generated regardless of GID
table property.

1. GID table cache is maintained at ib core layer regardless of link layer.
2. GID change event has no relation with IB link layer.
3. GID change event also doesn't depend on whether HCA supports GID table
or not.

Fixes: f3906bd3 ("IB/core: Refactor GID cache's ib_dispatch_event")
Signed-off-by: default avatarParav Pandit <parav@mellanox.com>
Signed-off-by: default avatarLeon Romanovsky <leonro@mellanox.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent 97c45c2c
...@@ -116,7 +116,6 @@ struct ib_gid_table { ...@@ -116,7 +116,6 @@ struct ib_gid_table {
static void dispatch_gid_change_event(struct ib_device *ib_dev, u8 port) static void dispatch_gid_change_event(struct ib_device *ib_dev, u8 port)
{ {
if (rdma_cap_roce_gid_table(ib_dev, port)) {
struct ib_event event; struct ib_event event;
event.device = ib_dev; event.device = ib_dev;
...@@ -124,7 +123,6 @@ static void dispatch_gid_change_event(struct ib_device *ib_dev, u8 port) ...@@ -124,7 +123,6 @@ static void dispatch_gid_change_event(struct ib_device *ib_dev, u8 port)
event.event = IB_EVENT_GID_CHANGE; event.event = IB_EVENT_GID_CHANGE;
ib_dispatch_event(&event); ib_dispatch_event(&event);
}
} }
static const char * const gid_type_str[] = { static const char * const gid_type_str[] = {
......
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