usertools: read PCI device name as UTF-8
authorChristos Ricudis <ricudis@niometrics.com>
Mon, 13 Apr 2020 16:18:04 +0000 (00:18 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 24 May 2020 17:09:13 +0000 (19:09 +0200)
commit08ab6cd318c6e4533a136d579b43644ed1f090df
tree1c11f9287d3f93c37d5eb4310e227f74c1146f8b
parentdede694cd58f6ee9c53f1e7d8d5960835bdc8fff
usertools: read PCI device name as UTF-8

Fixes the case where a PCI device string identifier
contains non-ASCII UTF-8

A particular example is Mellanox Connext-X 5 EN MT27800:

28:00.0 Ethernet controller: Mellanox Technologies
MT27800 Family [ConnectX-5]

Subsystem: Mellanox Technologies ConnectX®-5 EN network
interface card, 100GbE single-port QSFP28, PCIe3.0 x16,
tall bracket; MCX515A-CCAT

Signed-off-by: Christos Ricudis <ricudis@niometrics.com>
Acked-by: Andrew Rybchenko <arybchenko@solarflare.com>
usertools/dpdk-devbind.py