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
ethdev: add represented port action to flow API
[dpdk.git]
/
app
/
test
/
test_kni.c
diff --git
a/app/test/test_kni.c
b/app/test/test_kni.c
index
3470005
..
9673355
100644
(file)
--- a/
app/test/test_kni.c
+++ b/
app/test/test_kni.c
@@
-563,7
+563,11
@@
test_kni(void)
closedir(dir);
/* Initialize KNI subsystem */
closedir(dir);
/* Initialize KNI subsystem */
- rte_kni_init(KNI_TEST_MAX_PORTS);
+ ret = rte_kni_init(KNI_TEST_MAX_PORTS);
+ if (ret < 0) {
+ printf("fail to initialize KNI subsystem\n");
+ return -1;
+ }
if (test_kni_allocate_lcores() < 0) {
printf("No enough lcores for kni processing\n");
if (test_kni_allocate_lcores() < 0) {
printf("No enough lcores for kni processing\n");