git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
app/test: shorten execution time
[dpdk.git]
/
app
/
test
/
test_interrupts.c
diff --git
a/app/test/test_interrupts.c
b/app/test/test_interrupts.c
index
61fdc56
..
df6d261
100644
(file)
--- a/
app/test/test_interrupts.c
+++ b/
app/test/test_interrupts.c
@@
-41,7
+41,7
@@
#include "test.h"
#include "test.h"
-#define TEST_INTERRUPT_CHECK_INTERVAL 100
0
/* ms */
+#define TEST_INTERRUPT_CHECK_INTERVAL 100 /* ms */
/* predefined interrupt handle types */
enum test_interrupt_handle_type {
/* predefined interrupt handle types */
enum test_interrupt_handle_type {
@@
-157,7
+157,7
@@
test_interrupt_handle_compare(struct rte_intr_handle *intr_handle_l,
}
#else
}
#else
-/* to be implemented for b
aremetal
later */
+/* to be implemented for b
sd
later */
static inline int
test_interrupt_handle_sanity_check(struct rte_intr_handle *intr_handle)
{
static inline int
test_interrupt_handle_sanity_check(struct rte_intr_handle *intr_handle)
{
@@
-372,7
+372,7
@@
test_interrupt_full_path_check(enum test_interrupt_handle_type intr_type)
if (test_interrupt_trigger_interrupt() < 0)
return -1;
if (test_interrupt_trigger_interrupt() < 0)
return -1;
- /* check flag
in 3 seconds
*/
+ /* check flag */
for (count = 0; flag == 0 && count < 3; count++)
rte_delay_ms(TEST_INTERRUPT_CHECK_INTERVAL);
for (count = 0; flag == 0 && count < 3; count++)
rte_delay_ms(TEST_INTERRUPT_CHECK_INTERVAL);