[dts] [PATCH V1] tests/rte_flow_common modify iavf_fdir queue verify method

sunqin qinx.sun at intel.com
Wed Nov 11 12:37:54 CET 2020


create a fdir rule, send mismatch packet, sometimes queue id may hit the defaule value set in the rule, 

so can not just compared the queue value to judgle the case failed.

Now,use 'verify_iavf_fdir_directed_by_rss' to check queue is correctly or not after mark id is verifed.


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

diff --git a/tests/rte_flow_common.py b/tests/rte_flow_common.py
index 43c0eab..e0a378f 100644
--- a/tests/rte_flow_common.py
+++ b/tests/rte_flow_common.py
@@ -454,7 +454,7 @@ def check_iavf_fdir_queue(out, pkt_num, check_param, stats=True):
                 raise Exception("wrong queue value, expect int or list")
         else:
             if isinstance(queue, int):
-                verify(not any(q == queue for q in res_queue), "fail: queue id should not matched, expect queue %s, got %s" % (queue, res_queue))
+                verify_iavf_fdir_directed_by_rss(out, rxq=CVL_TXQ_RXQ_NUMBER, stats=True)
                 print((GREEN("pass: queue id %s not matched" % res_queue)))
             elif isinstance(queue, list):
                 verify_iavf_fdir_directed_by_rss(out, rxq=CVL_TXQ_RXQ_NUMBER, stats=True)
-- 
2.17.1



More information about the dts mailing list