eal: add synchronous interrupt unregister
authorRenata Saiakhova <renata.saiakhova@ekinops.com>
Tue, 6 Apr 2021 14:46:14 +0000 (16:46 +0200)
committerDavid Marchand <david.marchand@redhat.com>
Wed, 7 Apr 2021 09:16:11 +0000 (11:16 +0200)
commit2e761ce184d18dfd2d11eaf8c0b1f4841f6051f4
tree9eab5285472c717647c89deb0a7902dfa6a9f98c
parentedf20bd8a55192616e4a0f26c346b55ddbac1d81
eal: add synchronous interrupt unregister

Avoid race with unregister interrupt handler if interrupt
source has some active callbacks at the moment, use wrapper
around rte_intr_callback_unregister() to check for -EAGAIN
return value and to loop until rte_intr_callback_unregister()
succeeds.

Signed-off-by: Renata Saiakhova <renata.saiakhova@ekinops.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Harman Kalra <hkalra@marvell.com>
drivers/bus/pci/linux/pci_vfio.c
lib/librte_eal/freebsd/eal_interrupts.c
lib/librte_eal/include/rte_interrupts.h
lib/librte_eal/linux/eal_interrupts.c
lib/librte_eal/rte_eal_exports.def
lib/librte_eal/version.map
lib/librte_eal/windows/eal_interrupts.c