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
tile: fix build
[dpdk.git]
/
app
/
test
/
test_pmd_perf.c
diff --git
a/app/test/test_pmd_perf.c
b/app/test/test_pmd_perf.c
index
48e16c9
..
e055aa0
100644
(file)
--- a/
app/test/test_pmd_perf.c
+++ b/
app/test/test_pmd_perf.c
@@
-192,7
+192,7
@@
check_all_ports_link_status(uint8_t port_num, uint32_t port_mask)
continue;
}
/* clear all_ports_up flag if any link down */
continue;
}
/* clear all_ports_up flag if any link down */
- if (link.link_status ==
0
) {
+ if (link.link_status ==
ETH_LINK_DOWN
) {
all_ports_up = 0;
break;
}
all_ports_up = 0;
break;
}
@@
-709,9
+709,6
@@
test_pmd_perf(void)
return -1;
}
return -1;
}
- if (nb_ports > RTE_MAX_ETHPORTS)
- nb_ports = RTE_MAX_ETHPORTS;
-
nb_lcores = rte_lcore_count();
memset(lcore_conf, 0, sizeof(lcore_conf));
nb_lcores = rte_lcore_count();
memset(lcore_conf, 0, sizeof(lcore_conf));
@@
-913,8
+910,4
@@
test_set_rxtx_sc(cmdline_fixed_string_t type)
return -1;
}
return -1;
}
-static struct test_command pmd_perf_cmd = {
- .command = "pmd_perf_autotest",
- .callback = test_pmd_perf,
-};
-REGISTER_TEST_COMMAND(pmd_perf_cmd);
+REGISTER_TEST_COMMAND(pmd_perf_autotest, test_pmd_perf);