[dts] [PATCH V1] tests/userspace_ethtool:port_mtu suit columbiaville_100g
Zeng, XiaoxiaoX
xiaoxiaox.zeng at intel.com
Mon Feb 17 10:30:15 CET 2020
Tested_by: Zeng,xiaoxiao<xiaoxiaox.zeng at intel.com>
Best regards,
Zeng,xiaoxiao
> -----Original Message-----
> From: Zeng, XiaoxiaoX
> Sent: Monday, February 17, 2020 5:23 PM
> To: dts at dpdk.org
> Cc: Zeng, XiaoxiaoX <xiaoxiaox.zeng at intel.com>
> Subject: [dts][PATCH V1] tests/userspace_ethtool:port_mtu suit
> columbiaville_100g
>
> *.columbiaville_100g need set offset=8.
>
> Signed-off-by: Zeng Xiaoxiao <xiaoxiaox.zeng at intel.com>
> ---
> tests/TestSuite_userspace_ethtool.py | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/tests/TestSuite_userspace_ethtool.py
> b/tests/TestSuite_userspace_ethtool.py
> index 8f87ac2..08d1514 100644
> --- a/tests/TestSuite_userspace_ethtool.py
> +++ b/tests/TestSuite_userspace_ethtool.py
> @@ -578,7 +578,7 @@ class TestUserspaceEthtool(TestCase,
> IxiaPacketGenerator):
> mtu_threshold = 2026
> offset = 4
> # RTE_ETHER_HDR_LEN + RTE_ETHER_CRC_LEN + ICE_VLAN_TAG_SIZE *
> 2
> - if self.nic in ["columbiaville_25g"]:
> + if self.nic in ["columbiaville_25g","columbiaville_100g"]:
> offset = 8
> for index in range(len(self.ports)):
> port = self.ports[index]
> @@ -589,7 +589,7 @@ class TestUserspaceEthtool(TestCase,
> IxiaPacketGenerator):
> self.tester.send_expect("ifconfig %s mtu 9000" % (intf), "# ")
> for mtu in mtus:
> # cvl should stop port before set mtu
> - if self.nic in ["columbiaville_25g"]:
> + if self.nic in ["columbiaville_25g","columbiaville_100g"]:
> self.dut.send_expect("stop %s" % index, "EthApp>")
>
> # The mtu threshold is 2022,When it is greater than 2022, the
> open/stop port is required.
> @@ -601,7 +601,7 @@ class TestUserspaceEthtool(TestCase,
> IxiaPacketGenerator):
> self.dut.send_expect("open %s" % index, "EthApp>")
> self.dut.send_expect("mtu %d %d" % (index, mtu), "EthApp>")
>
> - if self.nic in ["columbiaville_25g"]:
> + if self.nic in ["columbiaville_25g","columbiaville_100g"]:
> self.dut.send_expect("open %s" % index, "EthApp>")
>
> time.sleep(5)
> --
> 1.8.3.1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestUserspaceEthtool.log
Type: application/octet-stream
Size: 33388 bytes
Desc: TestUserspaceEthtool.log
URL: <http://mails.dpdk.org/archives/dts/attachments/20200217/15dc463f/attachment.obj>
More information about the dts
mailing list