[dts] [PATCH V1] tests/metering_and_policing: adapt to cvl platform

sunqin qinx.sun at intel.com
Tue Mar 16 18:06:28 CET 2021


This suite will be added to regression test on cvl platform, in order to adapt 
to cvl cards, forwarding mode needs to be set as mac.

Signed-off-by: sunqin <qinx.sun at intel.com>
---
 tests/TestSuite_metering_and_policing.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/TestSuite_metering_and_policing.py b/tests/TestSuite_metering_and_policing.py
index 4dec3198..db15d5db 100644
--- a/tests/TestSuite_metering_and_policing.py
+++ b/tests/TestSuite_metering_and_policing.py
@@ -159,6 +159,8 @@ class TestMeteringAndPolicing(TestCase):
         self.pmd_out.start_testpmd(Corelist, "--rxq=%d --txq=%d --portmask=%s --disable-rss"
                                    % (self.port_id, self.port_id, portmask),
                                    eal_param="-s %s --vdev 'net_softnic0,firmware=%s'" % (Servicecorelist, filename))
+        if self.nic in ["columbiaville_25g","columbiaville_100g"]:
+            self.dut.send_expect('set fwd mac','testpmd>')
 
     def add_port_meter_profile(self, profile_id, cbs=400, pbs=500):
         """
-- 
2.17.1



More information about the dts mailing list