net/i40e: fix port close in FreeBSD
authorChenxu Di <chenxux.di@intel.com>
Wed, 11 Dec 2019 09:06:03 +0000 (09:06 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 17 Jan 2020 18:45:23 +0000 (19:45 +0100)
commit1fa41f4518f9f30465a0ed32640e7dbce00b3f4f
tree42ebfb4b801a53d7b3c429b8a31d1e1e57decc72
parente71ffcc1008eeb67d585174dfb10066e9e3df2f7
net/i40e: 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: ac89d46096d5 ("net/i40e: release port upon close")
Cc: stable@dpdk.org
Signed-off-by: Chenxu Di <chenxux.di@intel.com>
Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/net/i40e/i40e_ethdev.c