net/mlx5: Allow forwarding event type general event as is
authorSaeed Mahameed <saeedm@mellanox.com>
Mon, 26 Nov 2018 22:39:03 +0000 (14:39 -0800)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 30 Nov 2018 00:40:31 +0000 (16:40 -0800)
FW general event is used by mlx5_ib for RQ delay drop timeout event
handling, in this patch we allow to forward FW general event type to mlx5
notifiers chain so mlx5_ib can handle it and to deprecate the software
version of it.

Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/events.c

index ab66f5d65a0484b61b35ae265ca3672bfd443085..735a9b038a73d1fbfba121a93f448c83d6535f06 100644 (file)
@@ -36,6 +36,7 @@ static struct mlx5_nb events_nbs_ref[] = {
 
        /* Events to be forwarded (as is) to mlx5 core interfaces (mlx5e/mlx5_ib) */
        {.nb.notifier_call = forward_event,   .event_type = MLX5_EVENT_TYPE_PORT_CHANGE },
+       {.nb.notifier_call = forward_event,   .event_type = MLX5_EVENT_TYPE_GENERAL_EVENT },
 };
 
 struct mlx5_events {