[dts] [PATCH V1] tests/cvl_limit_value_test: adapt to cvl island platform
Tu, Lijuan
lijuan.tu at intel.com
Tue Mar 2 06:02:41 CET 2021
> + def is_cvl_island(self, port_id=0):
> + """
> + Judge whether it is a CVL Island card according to the value of fd_fltr_guar
> + """
> + pf_pci = self.dut.ports_info[port_id]['pci']
> + self.dut.send_expect('usertools/dpdk-devbind.py --force --bind=vfio-pci
> {}'.format(pf_pci), '#')
> + out = PmdOutput(self.dut).start_testpmd('default', eal_param='-a %s --log-
> level=ice,7' % pf_pci)
> + self.dut.kill_all()
> + self.logger.info(f'outinfo:{out}')
> + res = re.search(r"fd_fltr_guar\s+=\s+(\d+)", out)
> + self.verify(res, "'fd_fltr_guar' not found'")
> + if int(res.group(1)) == 2048:
> + return True
> + return False
It's really a bad approach.
More information about the dts
mailing list