[PATCH 6.5 149/241] net/mlx5: E-switch, register event handler before arming the event