common/mlx5: fix physical port name pattern recognition
authorViacheslav Ovsiienko <viacheslavo@mellanox.com>
Wed, 8 Jul 2020 20:52:16 +0000 (20:52 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Sat, 11 Jul 2020 04:18:53 +0000 (06:18 +0200)
commit3590881b37736cfe26e2cb7dcd37c93b1532a0de
tree8d2cf056f1d3d00f15960588b78394ca78d59ad5
parent28c9a7d7b48edfc55db915bdcad7cff4450b60da
common/mlx5: fix physical port name pattern recognition

This patch makes the Infiniband device physical port name
recognition more strict. Currently mlx5 PMD might recognize
the names like "pf0sf0" erroneously as "pf0" and the wrong
device type (host PF representor) is reported.

The names like "pf0sf0" belong to PCI subfunctions which
is currently not supported by mlx5 PMD and this false
recognition must be eliminated.

Fixes: 420bbdae89f2 ("net/mlx5: fix host physical function representor naming")
Cc: stable@dpdk.org
Signed-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
drivers/common/mlx5/linux/mlx5_common_os.c