summaryrefslogtreecommitdiffstats
path: root/build-root
diff options
context:
space:
mode:
authorRadu Nicolau <radu.nicolau@intel.com>2017-02-23 14:28:49 +0000
committerDave Barach <openvpp@barachs.net>2017-02-24 12:16:38 +0000
commit02767e9f2eaf7ccfc4079f83d467ad2d3faee203 (patch)
tree315b73cfe770d24c353731d1da98fd3d69e6da00 /build-root
parentbcc6aa4c13efef5684f80f59b4ef568ffeef2d9d (diff)
Fixed QAT device binding and device unbinding when vpp package is removed
Change-Id: I35ad6a42093cad0945df1df09a39c63c4560dce6 Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
Diffstat (limited to 'build-root')
-rw-r--r--build-root/deb/debian/vpp.postrm2
-rw-r--r--build-root/rpm/vpp.spec2
2 files changed, 2 insertions, 2 deletions
diff --git a/build-root/deb/debian/vpp.postrm b/build-root/deb/debian/vpp.postrm
index ac16a459..24b4842f 100644
--- a/build-root/deb/debian/vpp.postrm
+++ b/build-root/deb/debian/vpp.postrm
@@ -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
diff --git a/build-root/rpm/vpp.spec b/build-root/rpm/vpp.spec
index 95196e9b..7bc18ca4 100644
--- a/build-root/rpm/vpp.spec
+++ b/build-root/rpm/vpp.spec
@@ -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