On Fri, Oct 30, 2026 at 11:41:57AM +0800, Chengwen Feng wrote:
> When the "hide_zero" parameter is parsed successfully in the ethdev
> telemetry regs command, the else branch unconditionally resets
> hide_zero back to false, discarding the parsed value. As a result the
> hide_zero option is silently ignored.
> 
> Remove the unnecessary reset so the parsed hide_zero value is retained
> and passed to eth_dev_get_port_regs().
> 
> Fixes: ba4d57bd849d ("ethdev: support hide zero in registers telemetry")
> Cc: [email protected]
> 
> Signed-off-by: Chengwen Feng <[email protected]>
> ---
>  lib/ethdev/rte_ethdev_telemetry.c | 6 ++----
>  1 file changed, 2 insertions(+), 4 deletions(-)
> 
Acked-by: Bruce Richardson <[email protected]>

Reply via email to