diff options
author | Saeed Mahameed | 2018-11-26 23:39:01 +0100 |
---|---|---|
committer | Saeed Mahameed | 2018-11-30 01:40:31 +0100 |
commit | 02039fb659b366011f55b15890136754f3d82e2d (patch) | |
tree | f7fe11274ea4b88f4637aea82688260a3477ce7b /drivers/net/ethernet/mellanox/mlx5/core/events.c | |
parent | IB/mlx5: Use the new mlx5 core notifier API (diff) | |
download | kernel-qcow2-linux-02039fb659b366011f55b15890136754f3d82e2d.tar.gz kernel-qcow2-linux-02039fb659b366011f55b15890136754f3d82e2d.tar.xz kernel-qcow2-linux-02039fb659b366011f55b15890136754f3d82e2d.zip |
net/mlx5: Remove unused events callback and logic
The mlx5_interface->event callback is not used by mlx5e/mlx5_ib anymore.
We totally remove the delayed events logic work around, since with
the dynamic notifier registration API it is not needed anymore, mlx5_ib
can register its notifier and start receiving events exactly at the moment
it is ready to handle them.
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/events.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/events.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/events.c b/drivers/net/ethernet/mellanox/mlx5/core/events.c index adab66eb726c..ab66f5d65a04 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/events.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/events.c @@ -178,8 +178,8 @@ static int port_change(struct notifier_block *nb, port, eqe->sub_type); } - if (dev->event && dev_event_dispatch) - dev->event(dev, dev_event, dev_event_data); + if (dev_event_dispatch) + mlx5_notifier_call_chain(events, dev_event, (void *)dev_event_data); return NOTIFY_OK; } @@ -207,8 +207,8 @@ static int general_event(struct notifier_block *nb, unsigned long type, void *da eqe->sub_type); } - if (dev->event && dev_event_dispatch) - dev->event(dev, dev_event, dev_event_data); + if (dev_event_dispatch) + mlx5_notifier_call_chain(events, dev_event, (void *)dev_event_data); return NOTIFY_OK; } |