net/mlx5: fix deadlock of link status alarm
authorYongseok Koh <yskoh@mellanox.com>
Wed, 10 Jan 2018 17:46:49 +0000 (09:46 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
commit6817ad38718451849b672b0584176c14a8b55b88
treecdb368c95adea0e6dbafa6f4090869ab1826957e
parentdd18b06a32833543c6951b6206ac39896eaac154
net/mlx5: fix deadlock of link status alarm

If mlx5_dev_link_status_handler() is executed while canceling the alarm,
deadlock can happen because rte_eal_alarm_cancel() waits for all callbackes
to finish execution and both calls are protected by priv->lock.

Fixes: 198a3c339a8f ("mlx5: handle link status interrupts")
Cc: stable@dpdk.org
Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_ethdev.c