bus/pci: fix hardware IDs parsing on Windows
authorTal Shnaiderman <talshn@mellanox.com>
Sun, 23 Aug 2020 13:06:04 +0000 (16:06 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 11 Sep 2020 00:01:38 +0000 (02:01 +0200)
commit2dceae68f94ccad219ec24ef7c6bbbc13c14a9a3
tree58966508b1d8b62da8bc26f35514d9d113e6001b
parent790defbdb64f12426bdade6436315955c5d78713
bus/pci: fix hardware IDs parsing on Windows

Swap subsystem vendor id and subsystem device id.
Parse the SPDRP_HARDWAREID string with correct type values.

Fixes: b762221ac24 ("bus/pci: support Windows with bifurcated drivers")
Cc: stable@dpdk.org
Signed-off-by: Tal Shnaiderman <talshn@mellanox.com>
Acked-by: Narcisa Vasile <navasile@linux.microsoft.com>
drivers/bus/pci/windows/pci.c