[dts] [PATCH 2/2] framework/virt_dut: ensure igb_uio installed

Liu, Yong yong.liu at intel.com
Thu Mar 8 10:38:52 CET 2018


Hi Joyce,
I have submitted one patch set for VM inside kernel module 
configuration, it will be more common solution.
You can refer to http://dpdk.org/ml/archives/dts/2018-March/003752.html.

Thanks,
Marvin


On 03/06/2018 03:47 PM, Joyce Kong wrote:
> Ensure igb_uio driver is installed if driver='igb_uio'
>
> Signed-off-by: Joyce Kong <joyce.kong at arm.com>
> ---
>   framework/virt_dut.py | 3 +++
>   1 file changed, 3 insertions(+)
>
> diff --git a/framework/virt_dut.py b/framework/virt_dut.py
> index 62688dc..91620ef 100644
> --- a/framework/virt_dut.py
> +++ b/framework/virt_dut.py
> @@ -153,6 +153,9 @@ class VirtDut(DPDKdut):
>           self.setup_modules(target)
>   
>           if bind_dev:
> +            self.send_expect('(lsmod | grep uio) | modprobe uio', '#')
> +            self.send_expect('(lsmod | grep igb_uio)
> +                             | insmod ./%s/kmod/igb_uio.ko' % target,'#')
>               self.bind_interfaces_linux('igb_uio')
>   
>       def prerequisites(self, pkgName, patch, autodetect_topo):



More information about the dts mailing list