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
examples/l2fwd-crypto: fix option parsing
[dpdk.git]
/
test
/
test
/
test_eventdev.c
diff --git
a/test/test/test_eventdev.c
b/test/test/test_eventdev.c
index
0f1deb6
..
3f26770
100644
(file)
--- a/
test/test/test_eventdev.c
+++ b/
test/test/test_eventdev.c
@@
-36,7
+36,7
@@
#include <rte_malloc.h>
#include <rte_memcpy.h>
#include <rte_eventdev.h>
#include <rte_malloc.h>
#include <rte_memcpy.h>
#include <rte_eventdev.h>
-#include <rte_
crypto
dev.h>
+#include <rte_dev.h>
#include "test.h"
#include "test.h"
@@
-51,7
+51,7
@@
testsuite_setup(void)
if (!count) {
printf("Failed to find a valid event device,"
" testing with event_skeleton device\n");
if (!count) {
printf("Failed to find a valid event device,"
" testing with event_skeleton device\n");
- return rte_
eal_
vdev_init("event_skeleton", NULL);
+ return rte_vdev_init("event_skeleton", NULL);
}
return TEST_SUCCESS;
}
}
return TEST_SUCCESS;
}
@@
-138,13
+138,6
@@
test_ethdev_config_run(struct rte_event_dev_config *dev_conf,
return rte_event_dev_configure(TEST_DEV_ID, dev_conf);
}
return rte_event_dev_configure(TEST_DEV_ID, dev_conf);
}
-static void
-min_dequeue_limit(struct rte_event_dev_config *dev_conf,
- struct rte_event_dev_info *info)
-{
- dev_conf->dequeue_timeout_ns = info->min_dequeue_timeout_ns - 1;
-}
-
static void
max_dequeue_limit(struct rte_event_dev_config *dev_conf,
struct rte_event_dev_info *info)
static void
max_dequeue_limit(struct rte_event_dev_config *dev_conf,
struct rte_event_dev_info *info)
@@
-210,9
+203,6
@@
test_eventdev_configure(void)
TEST_ASSERT_SUCCESS(ret, "Failed to get event dev info");
/* Check limits */
TEST_ASSERT_SUCCESS(ret, "Failed to get event dev info");
/* Check limits */
- TEST_ASSERT_EQUAL(-EINVAL,
- test_ethdev_config_run(&dev_conf, &info, min_dequeue_limit),
- "Config negative test failed");
TEST_ASSERT_EQUAL(-EINVAL,
test_ethdev_config_run(&dev_conf, &info, max_dequeue_limit),
"Config negative test failed");
TEST_ASSERT_EQUAL(-EINVAL,
test_ethdev_config_run(&dev_conf, &info, max_dequeue_limit),
"Config negative test failed");
@@
-519,9
+509,10
@@
test_eventdev_timeout_ticks(void)
uint64_t timeout_ticks;
ret = rte_event_dequeue_timeout_ticks(TEST_DEV_ID, 100, &timeout_ticks);
uint64_t timeout_ticks;
ret = rte_event_dequeue_timeout_ticks(TEST_DEV_ID, 100, &timeout_ticks);
- TEST_ASSERT_SUCCESS(ret, "Fail to get timeout_ticks");
+ if (ret != -ENOTSUP)
+ TEST_ASSERT_SUCCESS(ret, "Fail to get timeout_ticks");
- return
TEST_SUCCESS
;
+ return
ret
;
}
}