net/mlx5: fix device removal handler for multiport
authorViacheslav Ovsiienko <viacheslavo@mellanox.com>
Sun, 12 May 2019 08:32:29 +0000 (08:32 +0000)
committerShahaf Shuler <shahafs@mellanox.com>
Sun, 12 May 2019 11:45:57 +0000 (13:45 +0200)
commit40d9f906f4e2b6028bd61d68d32956c6a809be03
tree532fcd40671b4c101c7e24712dbc83d759b66eea
parent7e192bdb0c55745a81e7f5e0eaf2b7a911aeadd4
net/mlx5: fix device removal handler for multiport

IBV_EVENT_DEVICE_FATAL event is generated by the driver once for
the entire multiport Infiniband device, not for each existing ports.
The port index is zero and it causes dropping the device removal
event. We should invoke the removal event processing routine
for each port we have installed handler for.

Fixes: 028b2a28c3cb ("net/mlx5: update event handler for multiport IB devices")

Signed-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
Acked-by: Shahaf Shuler <shahafs@mellanox.com>
drivers/net/mlx5/mlx5_ethdev.c