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
examples/l3fwd: support config file for LPM/FIB
[dpdk.git]
/
examples
/
l3fwd-power
/
main.c
diff --git
a/examples/l3fwd-power/main.c
b/examples/l3fwd-power/main.c
index
6988a0e
..
20e5b59
100644
(file)
--- a/
examples/l3fwd-power/main.c
+++ b/
examples/l3fwd-power/main.c
@@
-433,7
+433,7
@@
signal_exit_now(int sigtype)
}
}
-/* Freqency scale down timer callback */
+/* Freq
u
ency scale down timer callback */
static void
power_timer_cb(__rte_unused struct rte_timer *tim,
__rte_unused void *arg)
static void
power_timer_cb(__rte_unused struct rte_timer *tim,
__rte_unused void *arg)
@@
-2358,7
+2358,7
@@
update_telemetry(__rte_unused struct rte_timer *tim,
ret = rte_metrics_update_values(RTE_METRICS_GLOBAL, telstats_index,
values, RTE_DIM(values));
if (ret < 0)
ret = rte_metrics_update_values(RTE_METRICS_GLOBAL, telstats_index,
values, RTE_DIM(values));
if (ret < 0)
- RTE_LOG(WARNING, POWER, "failed to update metr
ci
s\n");
+ RTE_LOG(WARNING, POWER, "failed to update metr
ic
s\n");
}
static int
}
static int
@@
-2540,9
+2540,6
@@
main(int argc, char **argv)
uint16_t portid;
const char *ptr_strings[NUM_TELSTATS];
uint16_t portid;
const char *ptr_strings[NUM_TELSTATS];
- /* catch SIGINT and restore cpufreq governor to ondemand */
- signal(SIGINT, signal_exit_now);
-
/* init EAL */
ret = rte_eal_init(argc, argv);
if (ret < 0)
/* init EAL */
ret = rte_eal_init(argc, argv);
if (ret < 0)
@@
-2550,6
+2547,9
@@
main(int argc, char **argv)
argc -= ret;
argv += ret;
argc -= ret;
argv += ret;
+ /* catch SIGINT and restore cpufreq governor to ondemand */
+ signal(SIGINT, signal_exit_now);
+
/* init RTE timer library to be used late */
rte_timer_subsystem_init();
/* init RTE timer library to be used late */
rte_timer_subsystem_init();