X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Fdisk-image-builder%2Fnested%2Fimage-patches%2F06-dpdk-support;h=fb166ef2cf6f73c39d7a42e42556e3f780730ac8;hp=99ac0e14e3d19c4a7dce17ba6ef8b4a21c8f9298;hb=272b02a7e3faf6ee9c677942ca67a2d600673c29;hpb=3e62e29b594f36e80f397a02bc4eaa88ff71ab0d 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 &