Skip to content

Commit

Permalink
IB/mlx5: Skip handling unknown events
Browse files Browse the repository at this point in the history
Do not dispatch unknown mlx5 core events on mlx5_ib_event.

Signed-off-by: Saeed Mahameed <[email protected]>
Signed-off-by: Eugenia Emantayev <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
  • Loading branch information
Saeed Mahameed authored and rleon committed Oct 30, 2016
1 parent a909d3e commit bdc3792
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/infiniband/hw/mlx5/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2358,6 +2358,8 @@ static void mlx5_ib_event(struct mlx5_core_dev *dev, void *context,
ibev.event = IB_EVENT_CLIENT_REREGISTER;
port = (u8)param;
break;
default:
return;
}

ibev.device = &ibdev->ib_dev;
Expand Down

0 comments on commit bdc3792

Please sign in to comment.