[PATCH] ethdev/telemetry: fix hide_zero parameter being reset

Stephen Hemminger stephen at networkplumber.org
Mon Nov 9 23:01:16 CET 2026


On Fri, 30 Oct 2026 11:41:57 +0800
Chengwen Feng <fengchengwen at huawei.com> 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: stable at dpdk.org
> 
> Signed-off-by: Chengwen Feng <fengchengwen at huawei.com>
> ---

Applied to next-net.
Note: this all gets a lot cleaner if/when the kvargs helpers get merged
https://patchwork.dpdk.org/project/dpdk/patch/20260930224340.58580-3-stephen@networkplumber.org/


More information about the dev mailing list