net/mlx4: fix removal detection of stopped port
authorMoti Haimovsky <motih@mellanox.com>
Mon, 29 Jan 2018 08:34:37 +0000 (10:34 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 30 Jan 2018 09:20:35 +0000 (10:20 +0100)
commitfc1b5ec522ee92f303cb74e683a5efe477cf9b56
tree74e0d365880e9047872d11532b37661112c0d7a9
parentf8ec9e2fff26b11e3c1bd7d1391521ca98c3300d
net/mlx4: fix removal detection of stopped port

In failsafe device start can be called for ports/devices that
had been plugged out.
The mlx4 PMD detects device removal by listening to the device RMV
events, when the mlx4 port is being stopped, the PMD no longer
listens to these events causing the PMD to stop detecting device
removals.
This patch fixes this issue by moving installation of the interrupt
handler to device configuration, and toggle only the Rx-queue
interrupts on start/stop.

Fixes: a6e8b01c3c26 ("net/mlx4: compact interrupt functions")
Cc: stable@dpdk.org
Signed-off-by: Moti Haimovsky <motih@mellanox.com>
Acked-by: Shahaf Shuler <shahafs@mellanox.com>
drivers/net/mlx4/mlx4.c
drivers/net/mlx4/mlx4.h
drivers/net/mlx4/mlx4_intr.c