eal: add pending interrupt callback unregister
authorJakub Grajciar <jgrajcia@cisco.com>
Fri, 22 Mar 2019 11:52:36 +0000 (12:52 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 27 Mar 2019 17:53:47 +0000 (18:53 +0100)
commit0c7ce182a7600871a45e16ff8b3a1350be5d93ae
treec78abca7ed1c45301bc022436eac520a011ac422
parentc0d9052afbc711d85350c6e1252affda66e2f88b
eal: add pending interrupt callback unregister

use case: if callback is used to receive message form socket,
and the message received is disconnect/error, this callback needs
to be unregistered, but cannot because it is still active.

With this patch it is possible to mark the callback to be
unregistered once the interrupt process is done with this
interrupt source.

Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
lib/librte_eal/common/include/rte_interrupts.h
lib/librte_eal/freebsd/eal/eal_interrupts.c
lib/librte_eal/linux/eal/eal_interrupts.c
lib/librte_eal/rte_eal_version.map