[dts] [PATCH V1 1/1] [next]dts/pktgen: add support pci address mapping sytle
Mo, YufengX
yufengx.mo at intel.com
Mon Sep 23 08:57:33 CEST 2019
Tested by Mo, YufengX <yufengx.mo at intel.com>
> -----Original Message-----
> From: Mo, YufengX
> Sent: Monday, September 23, 2019 2:52 PM
> To: dts at dpdk.org; Chen, Zhaoyan <zhaoyan.chen at intel.com>; Tu, Lijuan <lijuan.tu at intel.com>
> Cc: Mo, YufengX <yufengx.mo at intel.com>
> Subject: [dts][PATCH V1 1/1] [next]dts/pktgen: add support pci address mapping sytle
>
>
> make pktgen trex port mapping to be compatible with pci address mapping sytle.
>
> Signed-off-by: yufengmx <yufengx.mo at intel.com>
> ---
> framework/dut.py | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/framework/dut.py b/framework/dut.py
> index fc4a2e6..c2ed0f1 100644
> --- a/framework/dut.py
> +++ b/framework/dut.py
> @@ -986,7 +986,8 @@ class Dut(Crb):
> if peer is not None:
> for remotePort in range(len(self.tester.ports_info)):
> if self.tester.ports_info[remotePort]['type'].lower() == 'trex':
> - if self.tester.ports_info[remotePort]['intf'].lower() == peer.lower():
> + if self.tester.ports_info[remotePort]['intf'].lower() == peer.lower() or \
> + self.tester.ports_info[remotePort]['pci'].lower() == peer.lower():
> hits[remotePort] = True
> self.ports_map[dutPort] = remotePort
> break
> --
> 2.21.0
More information about the dts
mailing list