IB/mlx5: Avoid async events on invalid port number
authorEli Cohen <eli@mellanox.com>
Wed, 11 Sep 2013 13:35:27 +0000 (16:35 +0300)
committerRoland Dreier <roland@purestorage.com>
Thu, 10 Oct 2013 16:23:57 +0000 (09:23 -0700)
commita0c84c326f720c3e3ebb9c49cbce916c05a57297
tree281d30d84c533fd81e5b0fb7446b008ab38893ba
parent203099fd731c8d74da3b00c895cfd68c6cf1ff73
IB/mlx5: Avoid async events on invalid port number

On a single ported Connect-IB, its possible for the firmware to issue
events on the non-existing 2nd port.  Make sure to ignore events
generated for such ports.

Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/mlx5/main.c