]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Change logic for dispatching IB events for port state
authorMoni Shoua <monis@mellanox.com>
Tue, 30 May 2017 06:56:05 +0000 (09:56 +0300)
committerDoug Ledford <dledford@redhat.com>
Mon, 24 Jul 2017 14:29:18 +0000 (10:29 -0400)
commitc28d2f42fe8016452cd6246b8a53aa1c756173d8
tree2078f9fac6593c3cd61931f409d37f80f9d0cc7b
parent394e1802a494dc4d0e2328b4126ee3a0133119e7
IB/mlx5: Change logic for dispatching IB events for port state

The old logic ignored link state. This led to missing IB events like
when link goes down on the switch while admin state is up or to redundant
events like when admin state goes up while link is down.
To fix that, probe the port state on NETDEV events and compare to last
known state to decide if IB events needs to be dispatched.

FIxes: 9acacdcb932c ("IB/mlx5: Port events in RoCE now rely on netdev events")
Signed-off-by: Moni Shoua <monis@mellanox.com>
Reviewed-by: Noa Osherovich <noaos@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h