[dts][PATCH V1] test/rxtx_offload:add RSS_HASH display

Lewei Yang leweix.yang at intel.com
Fri Nov 12 17:49:59 CET 2021


According to dpdk commit 655eae01f993("app/testpmd: fix RSS hash offload display"),
RSS_HASH is displayed by default

Signed-off-by: Lewei Yang <leweix.yang at intel.com>
---
 tests/TestSuite_rxtx_offload.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/TestSuite_rxtx_offload.py b/tests/TestSuite_rxtx_offload.py
index 14fd40ac..59d3b821 100644
--- a/tests/TestSuite_rxtx_offload.py
+++ b/tests/TestSuite_rxtx_offload.py
@@ -165,7 +165,10 @@ class TestRxTx_Offload(TestCase):
         scanner = re.compile(result_scanner, re.DOTALL)
         m = scanner.search(outstring)
         if offload == "NULL":
-            self.verify(m == None, "The offload failed to be disabled.")
+            if rxtx == "rx":
+                self.verify(m.group(1).strip() == 'RSS_HASH', "The offload failed to be disabled.")
+            elif rxtx == "tx":
+                self.verify(m == None, "The offload failed to be disabled.")
         else:
             exp_offload = m.group(1).split()
             self.verify(exp_offload != None, "There is no offload configured.")
-- 
2.33.1



More information about the dts mailing list