[V1] tests/metering_and_policing: adapt to cvl platform

Message ID 20210316170628.15665-1-qinx.sun@intel.com (mailing list archive)
State Accepted
Headers
Series [V1] tests/metering_and_policing: adapt to cvl platform |

Commit Message

Sun, QinX March 16, 2021, 5:06 p.m. UTC
  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@intel.com>
---
 tests/TestSuite_metering_and_policing.py | 2 ++
 1 file changed, 2 insertions(+)
  

Comments

Sun, QinX March 18, 2021, 1:42 a.m. UTC | #1
> -----Original Message-----
> From: Sun, QinX <qinx.sun@intel.com>
> Sent: Wednesday, March 17, 2021 1:06 AM
> To: dts@dpdk.org
> Cc: Sun, QinX <qinx.sun@intel.com>
> Subject: [dts] [PATCH V1] tests/metering_and_policing: adapt to cvl platform

Tested-by: Sun Qin <qinx.sun@intel.com>
  
Tu, Lijuan March 18, 2021, 7:39 a.m. UTC | #2
> 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@intel.com>

Applied
  

Patch

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):
         """