On Sat, 26 Oct 2024 18:14:41 +0800
Jie Hai <[email protected]> wrote:
> Multiple threads calling the same function may cause condition
> race issues, which often leads to abnormal behavior and can cause
> more serious vulnerabilities such as abnormal termination, denial
> of service, and compromised data integrity.
>
> The strtok() is non-reentrant, it is better to replace it with a
> reentrant version.
>
> Fixes: f38f62650f7b ("ethdev: add Rx queue telemetry query")
> Fixes: 9e7533aeb80a ("ethdev: add telemetry command for TM level
> capabilities")
> Cc: [email protected]
>
> Signed-off-by: Jie Hai <[email protected]>
> Acked-by: Chengwen Feng <[email protected]>
> Reviewed-by: Andrew Rybchenko <[email protected]>
> Acked-by: Morten Brørup <[email protected]>
Only called from RTE_INIT() so naturally single threaded.
No need for this one in stable.