* [dts] [PATCH V2] fix userspace failed case
@ 2017-08-25 1:32 xu,huilong
2017-08-25 11:25 ` Liu, Yong
0 siblings, 1 reply; 2+ messages in thread
From: xu,huilong @ 2017-08-25 1:32 UTC (permalink / raw)
To: dts; +Cc: xu,huilong
update list:
1. update userspace example path for setup app
2. add sleep time for app update link status with fortville nic in port config case
3. dpdk userspace tools dump eeprom file size different kernel ethtools dump, so only compare same size bytes
Signed-off-by: xu,huilong <huilongx.xu@intel.com>
---
tests/TestSuite_userspace_ethtool.py | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/tests/TestSuite_userspace_ethtool.py b/tests/TestSuite_userspace_ethtool.py
index 937a9e5..bf3f8e6 100644
--- a/tests/TestSuite_userspace_ethtool.py
+++ b/tests/TestSuite_userspace_ethtool.py
@@ -61,7 +61,7 @@ class TestUserspaceEthtool(TestCase, IxiaPacketGenerator):
self.verify("Error" not in out, "compilation error 1")
self.verify("No such file" not in out, "compilation error 2")
- path = "./examples/ethtool/ethtool-app/ethtool-app/%s/ethtool" % self.target
+ path = "./examples/ethtool/ethtool-app/%s/ethtool" % self.target
self.cmd = "%s -c f -n %d" % (path, self.dut.get_memory_channels())
# pause frame basic configuration
@@ -370,7 +370,10 @@ class TestUserspaceEthtool(TestCase, IxiaPacketGenerator):
self.dut.send_expect("ethtool --eeprom-dump %s raw on > %s" % (intf, ethtool_eeprom), "# ")
# wait for file ready
time.sleep(2)
- portinfo['ethtool_eeprom'] = ethtool_eeprom
+ # dpdk userspcae tools dump eeprom file size different with kernel ethtool dump
+ dpdk_eeprom_size = int(self.dut.send_expect('stat -c %%s %s' % portinfo['eeprom_file'], '# '))
+ self.dut.send_expect('dd if=%s of=%s bs=%d count=1' % (ethtool_eeprom, "ethtool_eeprom_%d_cat.bin" % index, dpdk_eeprom_size), "#")
+ portinfo['ethtool_eeprom'] = "ethtool_eeprom_%d_cat.bin" % index
# bind to original driver
portinfo['net_dev'].bind_driver(portinfo['ori_driver'])
@@ -499,8 +502,11 @@ class TestUserspaceEthtool(TestCase, IxiaPacketGenerator):
for index in range(len(self.ports)):
port = self.ports[index]
ori_rx_pkts, _ = self.strip_portstats(index)
+ # add sleep time for update link status with fortville nic
+ time.sleep(10)
# stop port
self.dut.send_expect("stop %d" % index, "EthApp>")
+ time.sleep(10)
# check packet not forwarded when port is stop
pkt = Packet()
tester_port = self.tester.get_local_port(port)
--
1.9.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dts] [PATCH V2] fix userspace failed case
2017-08-25 1:32 [dts] [PATCH V2] fix userspace failed case xu,huilong
@ 2017-08-25 11:25 ` Liu, Yong
0 siblings, 0 replies; 2+ messages in thread
From: Liu, Yong @ 2017-08-25 11:25 UTC (permalink / raw)
To: xu,huilong, dts
Thanks huilong, applied.
On 08/25/2017 09:32 AM, xu,huilong wrote:
> update list:
> 1. update userspace example path for setup app
> 2. add sleep time for app update link status with fortville nic in port config case
> 3. dpdk userspace tools dump eeprom file size different kernel ethtools dump, so only compare same size bytes
>
> Signed-off-by: xu,huilong<huilongx.xu@intel.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-08-25 2:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-25 1:32 [dts] [PATCH V2] fix userspace failed case xu,huilong
2017-08-25 11:25 ` Liu, Yong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).