nvml: use the current PCI link speedNot the max supported by the device, since it may be in a slower/narrower slot.Just like we do in the PCI backend.Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
nvml: fix the PCI link speed for PCI Gen4+The code was never updated Gen>3.We ignore slight encoding changes in last PCIe revisions,but we'll factorize with the common PCI code soon anyway.Thanks to Akram Sbaih for the report.Closes #653Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
pci+nvml: factorize PCI link speed computationSo that we don't forget to update NVML when adding new PCIrevisions to the duplicated PCI code.Also the new NVML code doesn't handle encoding changesin last PCIe revisions.Refs #653Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
rename.h: update with hwloc__pci_link_speed()Forgotten in cc260153fc2da93828e02d9b67efbce17d7d4621Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>