git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24f8b2d
)
app/testpmd: log reason of port start failure
author
Andrew Rybchenko
<andrew.rybchenko@oktetlabs.ru>
Thu, 11 Mar 2021 10:48:35 +0000
(13:48 +0300)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Fri, 12 Mar 2021 14:14:56 +0000
(15:14 +0100)
Provide a bit more diagnostics information when port start fails.
Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Acked-by: Xiaoyun Li <xiaoyun.li@intel.com>
app/test-pmd/testpmd.c
patch
|
blob
|
history
diff --git
a/app/test-pmd/testpmd.c
b/app/test-pmd/testpmd.c
index
98c3248
..
96d2e0f
100644
(file)
--- a/
app/test-pmd/testpmd.c
+++ b/
app/test-pmd/testpmd.c
@@
-2626,8
+2626,10
@@
start_port(portid_t pid)
cnt_pi++;
/* start port */
- if (rte_eth_dev_start(pi) < 0) {
- printf("Fail to start port %d\n", pi);
+ diag = rte_eth_dev_start(pi);
+ if (diag < 0) {
+ printf("Fail to start port %d: %s\n", pi,
+ rte_strerror(-diag));
/* Fail to setup rx queue, return */
if (rte_atomic16_cmpset(&(port->port_status),