X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest%2Ftest_interrupts.c;h=233b14a70b20efd4f663475f66b89f191ce60e60;hb=25d5c40f252fb77ed78a7baa5d6e54912ad83941;hp=d8c2d8124a4850da7c77cdddc4075e64c614c6fa;hpb=742bde12f3bd008c2f06d744330436d8b1a56720;p=dpdk.git diff --git a/app/test/test_interrupts.c b/app/test/test_interrupts.c index d8c2d8124a..233b14a70b 100644 --- a/app/test/test_interrupts.c +++ b/app/test/test_interrupts.c @@ -370,9 +370,13 @@ test_interrupt_full_path_check(enum test_interrupt_handle_type intr_type) rte_delay_ms(TEST_INTERRUPT_CHECK_INTERVAL); rte_delay_ms(TEST_INTERRUPT_CHECK_INTERVAL); - if (rte_intr_callback_unregister(&test_intr_handle, - test_interrupt_callback, &test_intr_handle) < 0) - return -1; + while ((count = + rte_intr_callback_unregister(&test_intr_handle, + test_interrupt_callback, + &test_intr_handle)) < 0) { + if (count != -EAGAIN) + return -1; + } if (flag == 0) { printf("callback has not been called\n");