net/ixgbe: fix port close in FreeBSD
authorChenxu Di <chenxux.di@intel.com>
Fri, 1 Nov 2019 02:26:44 +0000 (02:26 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Nov 2019 22:15:04 +0000 (23:15 +0100)
commita342d2772c3c6adffabd4e087065df177b8e06e6
treeb836e9e790fcc083b47aacd8180bc3d022e30349
parentb96fb2f0d22b55a8168006912c4af335ada0e943
net/ixgbe: fix port close in FreeBSD

FreeBSD OS doesn't support igb_uio interrupt, so it will fail when
unregister the interrupt callback in port close. We can fix the issue by
passing -ENOENT when check the return value of unregister interrupt
callback function.

Fixes: f2f4990eff94 ("net/ixgbe: release port upon close")

Signed-off-by: Chenxu Di <chenxux.di@intel.com>
Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/net/ixgbe/ixgbe_ethdev.c