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
net/netvsc: control use of external mbuf on Rx
[dpdk.git]
/
examples
/
link_status_interrupt
/
main.c
diff --git
a/examples/link_status_interrupt/main.c
b/examples/link_status_interrupt/main.c
index
e20a7e2
..
f1653b4
100644
(file)
--- a/
examples/link_status_interrupt/main.c
+++ b/
examples/link_status_interrupt/main.c
@@
-255,8
+255,8
@@
lsi_main_loop(void)
/* if timer has reached its timeout */
if (unlikely(timer_tsc >= (uint64_t) timer_period)) {
/* if timer has reached its timeout */
if (unlikely(timer_tsc >= (uint64_t) timer_period)) {
- /* do this only on ma
ster
core */
- if (lcore_id == rte_get_ma
ster
_lcore()) {
+ /* do this only on ma
in
core */
+ if (lcore_id == rte_get_ma
in
_lcore()) {
print_stats();
/* reset the timer */
timer_tsc = 0;
print_stats();
/* reset the timer */
timer_tsc = 0;
@@
-725,8
+725,8
@@
main(int argc, char **argv)
check_all_ports_link_status(nb_ports, lsi_enabled_port_mask);
/* launch per-lcore init on every lcore */
check_all_ports_link_status(nb_ports, lsi_enabled_port_mask);
/* launch per-lcore init on every lcore */
- rte_eal_mp_remote_launch(lsi_launch_one_lcore, NULL, CALL_MA
STER
);
- RTE_LCORE_FOREACH_
SLAVE
(lcore_id) {
+ rte_eal_mp_remote_launch(lsi_launch_one_lcore, NULL, CALL_MA
IN
);
+ RTE_LCORE_FOREACH_
WORKER
(lcore_id) {
if (rte_eal_wait_lcore(lcore_id) < 0)
return -1;
}
if (rte_eal_wait_lcore(lcore_id) < 0)
return -1;
}