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

Bruce Richardson bruce.richardson at intel.com
Thu Nov 5 15:25:15 CET 2026


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: stable at dpdk.org
> 
> Signed-off-by: Chengwen Feng <fengchengwen at huawei.com>
> ---
>  lib/ethdev/rte_ethdev_telemetry.c | 6 ++----
>  1 file changed, 2 insertions(+), 4 deletions(-)
> 
Acked-by: Bruce Richardson <bruce.richardson at intel.com>


More information about the dev mailing list