[PATCH 2/8] ethdev: make telemetry parameter parsing thread-safe

fengchengwen fengchengwen at huawei.com
Mon Jun 8 03:26:37 CEST 2026


Acked-by: Chengwen Feng <fengchengwen at huawei.com>

On 6/6/2026 4:50 AM, Stephen Hemminger wrote:
> The ethdev telemetry handlers run in a per-connection thread.
> Two of the parameter parsers used strtok(), which keeps its state in a
> process-global static shared across threads.
> Use strtok_r() with a local save pointer.
> 
> Also pass an unsigned char to isdigit(),
> which is undefined for characters with high-bit set.
> 
> Fixes: 9e7533aeb80a ("ethdev: add telemetry command for TM level capabilities")
> Fixes: f38f62650f7b ("ethdev: add Rx queue telemetry query")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>



More information about the dev mailing list