diff options
| author | Stephen Hemminger <[email protected]> | 2020-10-15 15:57:19 -0700 |
|---|---|---|
| committer | Thomas Monjalon <[email protected]> | 2020-10-20 13:17:08 +0200 |
| commit | cb056611a8ed9ab9024f3b91bf26e97255194514 (patch) | |
| tree | 698990e118ea15c3e10b66c18d7b4fe8c30eb03b /examples/timer | |
| parent | 03031925811e0341618957521a1542fa9eb2e497 (diff) | |
eal: rename lcore master and slave
Replace master lcore with main lcore and
replace slave lcore with worker lcore.
Keep the old functions and macros but mark them as deprecated
for this release.
The "--master-lcore" command line option is also deprecated
and any usage will print a warning and use "--main-lcore"
as replacement.
Signed-off-by: Stephen Hemminger <[email protected]>
Acked-by: Anatoly Burakov <[email protected]>
Diffstat (limited to 'examples/timer')
| -rw-r--r-- | examples/timer/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/timer/main.c b/examples/timer/main.c index 0259022f10..5a57e48290 100644 --- a/examples/timer/main.c +++ b/examples/timer/main.c @@ -100,7 +100,7 @@ main(int argc, char **argv) rte_timer_init(&timer0); rte_timer_init(&timer1); - /* load timer0, every second, on master lcore, reloaded automatically */ + /* load timer0, every second, on main lcore, reloaded automatically */ hz = rte_get_timer_hz(); lcore_id = rte_lcore_id(); rte_timer_reset(&timer0, hz, PERIODICAL, lcore_id, timer0_cb, NULL); @@ -109,12 +109,12 @@ main(int argc, char **argv) lcore_id = rte_get_next_lcore(lcore_id, 0, 1); rte_timer_reset(&timer1, hz/3, SINGLE, lcore_id, timer1_cb, NULL); - /* call lcore_mainloop() on every slave lcore */ - RTE_LCORE_FOREACH_SLAVE(lcore_id) { + /* call lcore_mainloop() on every worker lcore */ + RTE_LCORE_FOREACH_WORKER(lcore_id) { rte_eal_remote_launch(lcore_mainloop, NULL, lcore_id); } - /* call it on master lcore too */ + /* call it on main lcore too */ (void) lcore_mainloop(NULL); return 0; |
