Viacheslav Ovsiienko 5897ac1393 net/mlx5: fix event handler uninstall
When device is being closed and tries to unregister interrupt callback,
there is a chance the handler is still active (called in context of
eal_intr_thread_main thread). If so the rte_intr_callback_unregister
returns -EAGAIN and keeps the handler registered, causing crash when
underlaying resourse is gone away.

This race condition may happen if event handling in application takes
a long time. We should check the return code of unregistering routine
and try again to unregister the handler. The diagnostic messages are
shown once a second, while trying to unregister.

Fixes: 028b2a28c3cb ("net/mlx5: update event handler for multiport IB devices")
Cc: stable@dpdk.org

Signed-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
Acked-by: Yongseok Koh <yskoh@mellanox.com>
2019-06-06 20:21:20 +09:00
..
2019-05-03 18:45:23 +02:00
2019-05-03 18:45:23 +02:00
2019-06-06 20:21:20 +09:00
2019-06-06 20:21:20 +09:00
2019-05-24 13:34:45 +02:00
2019-03-01 18:17:35 +01:00
2019-06-06 20:21:20 +09:00
2018-11-14 00:35:53 +01:00
2019-06-06 20:21:20 +09:00
2019-06-06 20:21:20 +09:00