IB/mlx5: Port events in RoCE now rely on netdev events
authorAviv Heller <avivh@mellanox.com>
Sun, 18 Sep 2016 17:48:00 +0000 (20:48 +0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 7 Oct 2016 20:54:20 +0000 (16:54 -0400)
commit5ec8c83e3ad3ea4ea78798edcd4ad61e0041a174
tree4e6699d3b8b6ff840638526a097ac58bead20ce0
parent350d0e4c7e4b03ed5646ac39ba4aac98bb3d9c56
IB/mlx5: Port events in RoCE now rely on netdev events

Since ib_query_port() in RoCE returns the state of its netdev as the port
state, it makes sense to propagate the port up/down events to ib_core
when the netdev port state changes, instead of relying on traditional
core events.

This also keeps both the event and ib_query_port() synchronized.

Signed-off-by: Aviv Heller <avivh@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c