diff mbox series

[V1] tests/rxtx_offload: match the feature of CVL

Message ID 20210414103422.22388-1-BoX.C.Chen@intel.com (mailing list archive)
State Rejected
Headers show
Series [V1] tests/rxtx_offload: match the feature of CVL | expand

Commit Message

Chen, BoX C April 14, 2021, 10:34 a.m. UTC
CVL only check the received pkt, no need to verify the queue.

Signed-off-by: Bo Chen <BoX.C.Chen@intel.com>
---
 tests/TestSuite_rxtx_offload.py | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Chen, BoX C April 14, 2021, 2:34 a.m. UTC | #1
> -----Original Message-----
> From: Bo Chen <BoX.C.Chen@intel.com>
> Sent: April 14, 2021 18:34
> To: dts@dpdk.org
> Cc: Chen, BoX C <box.c.chen@intel.com>
> Subject: [dts][PATCH V1] tests/rxtx_offload: match the feature of CVL

Tested-by: Bo Chen <BoX.C.Chen@intel.com>
diff mbox series

Patch

diff --git a/tests/TestSuite_rxtx_offload.py b/tests/TestSuite_rxtx_offload.py
index 0e70526f..647ba59a 100644
--- a/tests/TestSuite_rxtx_offload.py
+++ b/tests/TestSuite_rxtx_offload.py
@@ -314,6 +314,12 @@  class TestRxTx_Offload(TestCase):
             scanner = re.compile(result_scanner, re.DOTALL)
             m = scanner.search(outstring)
             queue_id = m.group(1)
+
+            # When rx_offload if configured, cvl will reset the relevant function.
+            # So we only check the received pkt, not the queue.
+            if 'columbiaville' in self.nic:
+                self.verify("Queue" in outstring, "the offload setting doesn't take effect.")
+                return
             self.verify(int(expect_queue) == int(queue_id), "the offload setting doesn't take effect.")
 
     def start_tcpdump(self, rxItf):