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
test/security: check userdata get
[dpdk.git]
/
app
/
test
/
test_kni.c
diff --git
a/app/test/test_kni.c
b/app/test/test_kni.c
index
2c33374
..
e47ab36
100644
(file)
--- a/
app/test/test_kni.c
+++ b/
app/test/test_kni.c
@@
-601,7
+601,12
@@
test_kni(void)
printf("fail to start port %d\n", port_id);
return -1;
}
printf("fail to start port %d\n", port_id);
return -1;
}
- rte_eth_promiscuous_enable(port_id);
+ ret = rte_eth_promiscuous_enable(port_id);
+ if (ret != 0) {
+ printf("fail to enable promiscuous mode for port %d: %s\n",
+ port_id, rte_strerror(-ret));
+ return -1;
+ }
/* basic test of kni processing */
fd = fopen(KNI_MODULE_PARAM_LO, "r");
/* basic test of kni processing */
fd = fopen(KNI_MODULE_PARAM_LO, "r");