[dts] [PATCH V2] tests/TestSuite_qinq_filter:insmod igb_uio create vf and add no_vec_eal_params

Zhang, XiX xix.zhang at intel.com
Tue Nov 3 03:20:29 CET 2020


Hi lihong
> > +        self.dut.setup_modules(self.target,'igb_uio',None)
self.dut.setup_modules  Just to load  igb_uio , TestSuite_qinq_filter.py  Contains and used self.dut.generate_sriov_vfs_by_port  methods

    def config_vfs(self, port_id, vfs):
        """
        if vfs is 0, call destroy_sriov_vfs_by_port in dut for destory vf.
        if vfs > 0, call generate_sriov_vfs_by_port generate vf and bind igb_uio to vf
        """
        if vfs:
            self.dut.generate_sriov_vfs_by_port(port_id, vfs, 'igb_uio')
            for port in self.dut.ports_info[port_id]['vfs_port']:
                port.bind_driver('igb_uio')
        else:
            self.dut.destroy_sriov_vfs_by_port(port_id)




> -----Original Message-----
> From: Ma, LihongX
> Sent: Thursday, October 29, 2020 4:05 PM
> To: Zhang, XiX <xix.zhang at intel.com>; dts at dpdk.org
> Cc: Zhang, XiX <xix.zhang at intel.com>
> Subject: RE: [dts] [PATCH V2] tests/TestSuite_qinq_filter:insmod igb_uio create
> vf and add no_vec_eal_params
> 
> 
> > -----Original Message-----
> > From: dts <dts-bounces at dpdk.org> On Behalf Of xizhan4x
> > Sent: Tuesday, October 27, 2020 3:40 PM
> > To: dts at dpdk.org
> > Cc: Zhang, XiX <xix.zhang at intel.com>
> > Subject: [dts] [PATCH V2] tests/TestSuite_qinq_filter:insmod igb_uio
> > create vf and add no_vec_eal_params
>

 
> If it is needed setup module of igb_uio, it is better add to the place where need
> it.
> Eg: before self.dut.generate_sriov_vfs_by_port(port_id, vfs, 'igb_uio')
> 
> Regards,
> Ma,lihong



More information about the dts mailing list