Use the correct location of the SRIOV capability when enabling ARI.
authorjhb <jhb@FreeBSD.org>
Tue, 3 May 2016 19:37:25 +0000 (19:37 +0000)
committerjhb <jhb@FreeBSD.org>
Tue, 3 May 2016 19:37:25 +0000 (19:37 +0000)
commit804dbb21fcfa6e9565452f746b24e4f9f5fa84ec
tree9f759bbc9702855c6913b63910f49350179cfa75
parent00a878d06ed0d3bdfbf6339ef29f6cc94fd47ced
Use the correct location of the SRIOV capability when enabling ARI.

While here, check if ARI was enabled by re-reading the config register
after writing it and return an error if the write fails.

Reviewed by: rstone, vangyzen
sys/dev/pci/pci_iov.c