[dts] [PATCH 20/26] tests: queue_start_stop - taking into account cavium NICs
Angela Czubak
aczubak at caviumnetworks.com
Thu Apr 6 19:51:26 CEST 2017
Testpmd must be run with hardware VLAN filter disabled as thunder
driver does not support this feature - --disable-hw-vlan-filter is
appended if NIC is Cavium device.
Signed-off-by: Angela Czubak <aczubak at caviumnetworks.com>
---
tests/TestSuite_queue_start_stop.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tests/TestSuite_queue_start_stop.py b/tests/TestSuite_queue_start_stop.py
index d1df66b..a83d174 100644
--- a/tests/TestSuite_queue_start_stop.py
+++ b/tests/TestSuite_queue_start_stop.py
@@ -130,7 +130,10 @@ class TestQueueStartStop(TestCase):
"""
#dpdk start
try:
- self.dut.send_expect("./app/test-pmd/testpmd -c 0xf -n 4 -- -i --portmask=0x1 --port-topology=loop", "testpmd>", 120)
+ cmd = "./app/test-pmd/testpmd -c 0xf -n 4 -- -i --portmask=0x1 --port-topology=loop"
+ if "cavium" in self.dut.nic_type:
+ cmd += " --disable-hw-vlan-filter"
+ self.dut.send_expect(cmd, "testpmd>", 120)
self.dut.send_expect("set fwd mac", "testpmd>")
self.dut.send_expect("start", "testpmd>")
self.check_forwarding([0, 0], self.nic)
--
2.7.4
More information about the dts
mailing list