scripts/setup: update PCI device ID defines for virtio-scsi

The previous defines have been
removed by patch 80b44ea.

Fixes: 80b44ea ("rte_virtio: remove unused PCI ID #defines")

Change-Id: I0e90e7f91a5e91efca3e5562b94cb1f6a36e7428
Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/382935
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Dariusz Stojaczyk 2017-10-18 11:51:07 +02:00 committed by Daniel Verkamp
parent 4768b198da
commit f03d9c574c

View File

@ -118,7 +118,7 @@ function configure_linux {
# virtio-scsi # virtio-scsi
TMP=`mktemp` TMP=`mktemp`
#collect all the device_id info of virtio-scsi devices. #collect all the device_id info of virtio-scsi devices.
grep "VIRTIO_PCI_DEVICEID_SCSI" $rootdir/lib/bdev/virtio/rte_virtio/virtio_pci.h \ grep "PCI_DEVICE_ID_VIRTIO_SCSI" $rootdir/include/spdk/pci_ids.h \
| awk -F"x" '{print $2}' > $TMP | awk -F"x" '{print $2}' > $TMP
for dev_id in `cat $TMP`; do for dev_id in `cat $TMP`; do
@ -206,7 +206,7 @@ function reset_linux {
# virtio-scsi # virtio-scsi
TMP=`mktemp` TMP=`mktemp`
#collect all the device_id info of virtio-scsi devices. #collect all the device_id info of virtio-scsi devices.
grep "VIRTIO_PCI_DEVICEID_SCSI" $rootdir/lib/bdev/virtio/rte_virtio/virtio_pci.h \ grep "PCI_DEVICE_ID_VIRTIO_SCSI" $rootdir/include/spdk/pci_ids.h \
| awk -F"x" '{print $2}' > $TMP | awk -F"x" '{print $2}' > $TMP
# TODO: check if virtio-pci is loaded first and just unbind if it is not loaded # TODO: check if virtio-pci is loaded first and just unbind if it is not loaded
@ -260,7 +260,7 @@ function status_linux {
echo "virtio" echo "virtio"
#collect all the device_id info of virtio-scsi devices. #collect all the device_id info of virtio-scsi devices.
TMP=`grep "VIRTIO_PCI_DEVICEID_SCSI" $rootdir/lib/bdev/virtio/rte_virtio/virtio_pci.h \ TMP=`grep "PCI_DEVICE_ID_VIRTIO_SCSI" $rootdir/include/spdk/pci_ids.h \
| awk -F"x" '{print $2}'` | awk -F"x" '{print $2}'`
echo -e "BDF\t\tNuma Node\tDriver Name" echo -e "BDF\t\tNuma Node\tDriver Name"
for dev_id in $TMP; do for dev_id in $TMP; do