]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf6ea3faef0220692f1f5edbb5188ace3208a2a48
tree281d30d84c533fd81e5b0fb7446b008ab38893ba
parent7d6e7503b07fb880a2b19e8dec3f9de805d3e1a2
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