From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C94B0A034F; Sat, 9 Oct 2021 08:15:00 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A3F6740040; Sat, 9 Oct 2021 08:15:00 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 5B39A4003C for ; Sat, 9 Oct 2021 08:14:59 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10131"; a="250008833" X-IronPort-AV: E=Sophos;i="5.85,360,1624345200"; d="scan'208";a="250008833" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Oct 2021 23:14:56 -0700 X-IronPort-AV: E=Sophos;i="5.85,360,1624345200"; d="scan'208";a="489747760" Received: from unknown (HELO localhost.localdomain) ([10.240.183.103]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Oct 2021 23:14:54 -0700 From: Zhimin Huang To: dts@dpdk.org Cc: Zhimin Huang Date: Sat, 9 Oct 2021 22:42:05 +0800 Message-Id: <20211009144205.25338-1-zhiminx.huang@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1] tests/cvl_fdir:fix testplan and testcase not synchronization issue X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" fixed testplan confusing description and sync testcase code with plan. the last pkt need received by port 1 and not affect by rule in port 0. Signed-off-by: Zhimin Huang --- test_plans/cvl_fdir_test_plan.rst | 4 ++-- tests/TestSuite_cvl_fdir.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test_plans/cvl_fdir_test_plan.rst b/test_plans/cvl_fdir_test_plan.rst index 24586016..1d8421e1 100644 --- a/test_plans/cvl_fdir_test_plan.rst +++ b/test_plans/cvl_fdir_test_plan.rst @@ -4011,8 +4011,8 @@ Subcase 3: two ports multi patterns count query packet 1 to queue 1 of port 1, packet 2 to queue 6-7 of port 1, packet 3 to queue 6-7 of port 1, packet 4 to queue 2 of port 1, packet 5 dropped of port 1, packet 6 to dropped of port 0, packet 7 to queue 1 of port 0. - packet 8 received by port 1. - all the received packets have specified FDIR matched ID. + the received packets have specified FDIR matched ID. + packet 8 received by port 1 and not have matched ID. 3. query count:: diff --git a/tests/TestSuite_cvl_fdir.py b/tests/TestSuite_cvl_fdir.py index 18836756..90acafd7 100644 --- a/tests/TestSuite_cvl_fdir.py +++ b/tests/TestSuite_cvl_fdir.py @@ -3273,7 +3273,7 @@ class TestCVLFdir(TestCase): out7 = self.send_pkts_getouput(pkts[6], port_id=0, count=10) rfc.check_mark(out7, pkt_num=10, check_param={"port_id": 0, "queue": 1, "mark_id": 1}) out8 = self.send_pkts_getouput(pkts[7], port_id=1, count=10) - rfc.check_mark(out8, pkt_num=10, check_param={"port_id": 1, "mark_id": 0}) + rfc.check_mark(out8, pkt_num=10, check_param={"port_id": 1}) self.query_count(1, 20, 1, 0) self.query_count(1, 20, 1, 1) self.query_count(1, 10, 1, 2) -- 2.17.1