RE: [PATCH v3] net/mlx5: fix the sysfs port name translation

2023-03-28 Thread Raslan Darawsheh
Hi, > -Original Message- > From: Bing Zhao > Sent: Thursday, March 23, 2023 12:54 PM > To: Slava Ovsiienko ; Matan Azrad > ; step...@networkplumber.org > Cc: dev@dpdk.org; Raslan Darawsheh ; > sta...@dpdk.org > Subject: [PATCH v3] net/mlx5: fix the sysfs port name translation > > With so

RE: [PATCH v3] net/mlx5: fix the sysfs port name translation

2023-03-27 Thread Matan Azrad
From: Bing Zhao > 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. > > In such case, the "equal to" condition is considered as fals