[dts] [PATCH V1] tests/qos_api:set all port to DCB mode

Zhang, YanX A yanx.a.zhang at intel.com
Thu Oct 10 07:45:17 CEST 2019


Tested-by:  Zhang, YanX A <yanx.a.zhang at intel.com>

-----Original Message-----
From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of chen,bo
Sent: Thursday, October 10, 2019 10:39 AM
To: dts at dpdk.org
Cc: Chen, BoX C <box.c.chen at intel.com>
Subject: [dts] [PATCH V1] tests/qos_api:set all port to DCB mode

start testpmd need set all port to DCB mode

Signed-off-by: chen,bo <box.c.chen at intel.com>
---
 tests/TestSuite_qos_api.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/TestSuite_qos_api.py b/tests/TestSuite_qos_api.py index c25890b..c25d263 100644
--- a/tests/TestSuite_qos_api.py
+++ b/tests/TestSuite_qos_api.py
@@ -114,8 +114,8 @@ class TestQosApi(TestCase):
         set DCB
         """
         self.dut.send_expect('port stop all', 'testpmd> ')
-        self.dut.send_expect('port config 0 dcb vt off %s pfc off' % n, 'testpmd> ')
-        self.dut.send_expect('port config 1 dcb vt off %s pfc off' % n, 'testpmd> ')
+        for i in range(len(self.dut.ports_info)):
+            self.dut.send_expect('port config %s dcb vt off %s pfc off' 
+ % (i, n), 'testpmd> ')
         self.dut.send_expect('port start all', 'testpmd> ')
 
     def scapy_send_packet_verify(self, n):
--
2.17.2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestQosApi.log
Type: application/octet-stream
Size: 54852 bytes
Desc: TestQosApi.log
URL: <http://mails.dpdk.org/archives/dts/attachments/20191010/874d76fa/attachment.obj>


More information about the dts mailing list