[dts] [PATCH V1] tests/sriov_kvm:add twinpond supported

Tu, Lijuan lijuan.tu at intel.com
Fri Apr 24 08:41:18 CEST 2020


Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of Xie Wei
> Sent: Friday, April 24, 2020 1:34 PM
> To: dts at dpdk.org
> Cc: Xie, WeiX <weix.xie at intel.com>
> Subject: [dts] [PATCH V1] tests/sriov_kvm:add twinpond supported
> 
> add NIC supported
> 
> Signed-off-by: Xie Wei <weix.xie at intel.com>
> ---
>  tests/TestSuite_sriov_kvm.py | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/TestSuite_sriov_kvm.py b/tests/TestSuite_sriov_kvm.py
> index 453bdeb..fec83cf 100644
> --- a/tests/TestSuite_sriov_kvm.py
> +++ b/tests/TestSuite_sriov_kvm.py
> @@ -817,7 +817,7 @@ class TestSriovKvm(TestCase):
>          self.set_port_pool_mirror(port_id_0, '0x1 dst-pool 1 on')
>          self.set_port_downlink_mirror(port_id_0, 'dst-pool 1 on')
> 
> -        if self.nic.startswith('niantic') or self.nic.startswith('sage'):
> +        if self.nic.startswith('niantic') or self.nic.startswith('sage') or
> self.nic.startswith('twinpond'):
>              self.set_port_uplink_mirror(port_id_0, 'dst-pool 1 on')
> 
>              # get vm port stats
> @@ -865,7 +865,7 @@ class TestSriovKvm(TestCase):
>          vm1_ret_stats = self.calculate_stats(vm1_start_stats, vm1_end_stats)
> 
>          try:
> -            if self.nic.startswith('niantic') or self.nic.startswith('sage'):
> +            if self.nic.startswith('niantic') or self.nic.startswith('sage') or
> self.nic.startswith('twinpond'):
>                  self.verify(vm0_ret_stats['RX-packets'] == packet_num and
> vm1_ret_stats['RX-packets'] == packet_num,
>                              "vlan mirror failed between VM0 and VM1")
>              else:
> --
> 2.17.2



More information about the dts mailing list