[V1] tests/metering_and_policing: add 'packet_mode' parameter.

Message ID 20210421160303.8248-1-longfengx.liang@intel.com (mailing list archive)
State Accepted
Headers
Series [V1] tests/metering_and_policing: add 'packet_mode' parameter. |

Commit Message

Longfeng Liang April 21, 2021, 4:03 p.m. UTC
  app/testpmd add meter profile packet mode option in DPDK,DPDK commit:c5a3860f36902e1701817b0961bf99a5c96ede3a,so DTS need update packet mode param,too.

Signed-off-by: Longfeng Liang <longfengx.liang@intel.com>
---
 tests/TestSuite_metering_and_policing.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Tu, Lijuan May 7, 2021, 7:29 a.m. UTC | #1
> app/testpmd add meter profile packet mode option in DPDK,DPDK
> commit:c5a3860f36902e1701817b0961bf99a5c96ede3a,so DTS need update
> packet mode param,too.
> 
> Signed-off-by: Longfeng Liang <longfengx.liang@intel.com>

applied
  

Patch

diff --git a/tests/TestSuite_metering_and_policing.py b/tests/TestSuite_metering_and_policing.py
index db15d5db..7f52f33f 100644
--- a/tests/TestSuite_metering_and_policing.py
+++ b/tests/TestSuite_metering_and_policing.py
@@ -168,7 +168,7 @@  class TestMeteringAndPolicing(TestCase):
         """
         cir = 3125000000
         pir = 3125000000
-        self.dut.send_expect("add port meter profile trtcm_rfc2698 %d %d %d %d %d %d"
+        self.dut.send_expect("add port meter profile trtcm_rfc2698 %d %d %d %d %d %d 0"
                              % (self.port_id, profile_id, cir, pir, cbs, pbs), "testpmd>")
 
     def create_port_meter(self, mtr_id, profile_id, gyrd_action):