aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/disk-image-builder/nested/image-patches/06-dpdk-support
diff options
context:
space:
mode:
Diffstat (limited to 'resources/tools/disk-image-builder/nested/image-patches/06-dpdk-support')
-rwxr-xr-xresources/tools/disk-image-builder/nested/image-patches/06-dpdk-support5
1 files changed, 5 insertions, 0 deletions
diff --git a/resources/tools/disk-image-builder/nested/image-patches/06-dpdk-support b/resources/tools/disk-image-builder/nested/image-patches/06-dpdk-support
index 99ac0e14e3..fb166ef2cf 100755
--- a/resources/tools/disk-image-builder/nested/image-patches/06-dpdk-support
+++ b/resources/tools/disk-image-builder/nested/image-patches/06-dpdk-support
@@ -50,6 +50,11 @@ do
echo $dev > /sys/bus/pci/drivers/${TARGET_DRIVER}/bind
done
+for i in $(ls /proc/irq/ | grep [0-9])
+do
+ echo 1 > /proc/irq/$i/smp_affinity
+done
+
# Start testpmd in the background. This looks a bit convoluted; we need to redirect stdin
# (and keep stdin active) or else testpmd will quit.
tail -f /dev/null | nohup testpmd $@ > ${TESTPMD_LOG} 2>&1 &