[PATCH] common/mlx5: fix the sysfs port name translation
Stephen Hemminger
stephen at networkplumber.org
Thu Nov 10 17:21:54 CET 2022
On Thu, 10 Nov 2022 17:57:26 +0200
Bing Zhao <bingz at nvidia.com> wrote:
> With some OFED or upstream kernel of mlx5, the port name fetched from
> "/sys/class/net/[DEV]/phys_port_name" may have a tailing "\n" as the
> EOL. The sscanf() will return the scanned items number with this EOL.
Why not fix the DPDK driver to strip off the new line when the port
name is read? The code in mlx5_os.c should do it there.
More information about the dev
mailing list