net/ixgbe: fix unexpected link handler
authorYunjian Wang <wangyunjian@huawei.com>
Wed, 8 May 2019 12:51:38 +0000 (20:51 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 May 2019 16:40:06 +0000 (18:40 +0200)
commit03bb633aa86232df29a0692b2727cff3e4e1b685
tree722af555a477bc3e607e83c8c03f3f4faa9f78b6
parentc352338e44b24bc1aa3a1a1b165ac3f4baeef37e
net/ixgbe: fix unexpected link handler

The nic's interrupt source has some active handler, which maybe call
ixgbe_dev_link_update() to set link handler. We should cancel the
link handler before remove dev to prevent executing the link handler.
It triggers segfault.

Fixes: 0408f47ba4d6 ("net/ixgbe: fix busy polling while fiber link update")
Cc: stable@dpdk.org
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Acked-by: Wei Zhao <wei.zhao1@intel.com>
drivers/net/ixgbe/ixgbe_ethdev.c