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: check code of promiscuous mode switch
[dpdk.git]
/
app
/
test-eventdev
/
test_pipeline_common.c
diff --git
a/app/test-eventdev/test_pipeline_common.c
b/app/test-eventdev/test_pipeline_common.c
index
ef8ae28
..
6166516
100644
(file)
--- a/
app/test-eventdev/test_pipeline_common.c
+++ b/
app/test-eventdev/test_pipeline_common.c
@@
-233,7
+233,12
@@
pipeline_ethdev_setup(struct evt_test *test, struct evt_options *opt)
return -EINVAL;
}
- rte_eth_promiscuous_enable(i);
+ ret = rte_eth_promiscuous_enable(i);
+ if (ret != 0) {
+ evt_err("Failed to enable promiscuous mode for eth port [%d]: %s",
+ i, rte_strerror(-ret));
+ return ret;
+ }
}
return 0;