Skip to content

Commit 44a4784

Browse files
sivapt12tmonjalo
authored andcommitted
examples/l3fwd-power: fix telemetry command registration
Telemetry command registration fails if the command name contains characters other than alphanumeric, underscore (_), and forward slash (/). The l3fwd-power example previously used "/l3fwd-power/stats" as telemetry command, which includes a hyphen (-) and causes registration failure. This patch fixes the issue by replacing the hyphen with an underscore, changing the command to "/l3fwd_power/stats" Fixes: a35919a ("examples/l3fwd-power: use new telemetry") Cc: [email protected] Signed-off-by: Sivaprasad Tummala <[email protected]> Acked-by: Bruce Richardson <[email protected]>
1 parent 9a8382b commit 44a4784

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/l3fwd-power/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2910,7 +2910,7 @@ main(int argc, char **argv)
29102910
rte_spinlock_init(&stats[lcore_id].telemetry_lock);
29112911
}
29122912
rte_timer_init(&telemetry_timer);
2913-
rte_telemetry_register_cmd("/l3fwd-power/stats",
2913+
rte_telemetry_register_cmd("/l3fwd_power/stats",
29142914
handle_app_stats,
29152915
"Returns global power stats. Parameters: None");
29162916
rte_eal_mp_remote_launch(main_telemetry_loop, NULL,

0 commit comments

Comments
 (0)