Fixed QAT device binding and device unbinding when vpp package is removed

Change-Id: I35ad6a42093cad0945df1df09a39c63c4560dce6
Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
This commit is contained in:
Radu Nicolau
2017-02-23 14:28:49 +00:00
committed by Dave Barach
parent bcc6aa4c13
commit 02767e9f2e
3 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ pci_dirs=`find /sys/bus/pci/drivers -type d -name igb_uio -o -name uio_pci_gener
for d in $pci_dirs; do
for f in ${d}/*; do
[ -e "${f}/config" ] || continue
echo 1 > ${f}/remove
echo ${f##*/} > ${d}/unbind
basename `dirname ${f}` | xargs echo -n "Removing driver"; echo " for PCI ID" `basename ${f}`
removed=y
done

View File

@ -244,7 +244,7 @@ pci_dirs=`find /sys/bus/pci/drivers -type d -name igb_uio -o -name uio_pci_gener
for d in $pci_dirs; do
for f in ${d}/*; do
[ -e "${f}/config" ] || continue
echo 1 > ${f}/remove
echo ${f##*/} > ${d}/unbind
basename `dirname ${f}` | xargs echo -n "Removing driver"; echo " for PCI ID" `basename ${f}`
removed=y
done

View File

@ -858,7 +858,7 @@ dpdk_bind_devices_to_uio (dpdk_config_main_t * conf)
vec_reset_length (pci_addr);
pci_addr = format (pci_addr, "%U%c", format_vlib_pci_addr, &d->bus_address, 0);
if (d->device_class != PCI_CLASS_NETWORK_ETHERNET)
if (d->device_class != PCI_CLASS_NETWORK_ETHERNET && d->device_class != PCI_CLASS_PROCESSOR_CO)
continue;
if (num_whitelisted)