From patchwork Wed Sep 2 08:52:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng, Yuan" X-Patchwork-Id: 76277 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6EAFAA04B5; Wed, 2 Sep 2020 03:47:44 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2ED594C99; Wed, 2 Sep 2020 03:47:44 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id B9411DE0 for ; Wed, 2 Sep 2020 03:47:42 +0200 (CEST) IronPort-SDR: zx7Q7SVwYcEH2LwP+RaVgUhIUNfc2c9/TseGdf4V9tgVxz7IbEVrN4ROsRrdZP5B/JWLyOZFUo nSFTksPl7WtQ== X-IronPort-AV: E=McAfee;i="6000,8403,9731"; a="175349569" X-IronPort-AV: E=Sophos;i="5.76,381,1592895600"; d="scan'208";a="175349569" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Sep 2020 18:47:41 -0700 IronPort-SDR: Jweh5wkijDpzToR13axaykF1UH6QAalwo4RZvfcZiilMNP8dwhPlOBwKQ/GbdLLrRja5XL8UmU i+nqkG1ZZ4Pw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,381,1592895600"; d="scan'208";a="341234969" Received: from npg_dpdk_nic_yuanpeng_tester62.sh.intel.com ([10.67.119.61]) by orsmga007.jf.intel.com with ESMTP; 01 Sep 2020 18:47:39 -0700 From: Peng Yuan To: dts@dpdk.org Cc: Peng Yuan Date: Wed, 2 Sep 2020 08:52:28 +0000 Message-Id: <1599036748-32869-1-git-send-email-yuan.peng@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dts] [PATCH] change 128 profiles case due to dpdk code update X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 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" iavf_fdir test plan and script update due to DPDK code update: if there is not corresponding rule existing, the profile will be deleted. Signed-off-by: Peng Yuan Tested-by: Yu, PingX diff --git a/test_plans/iavf_fdir_test_plan.rst b/test_plans/iavf_fdir_test_plan.rst index 82e2c2d2..feec2bb5 100644 --- a/test_plans/iavf_fdir_test_plan.rst +++ b/test_plans/iavf_fdir_test_plan.rst @@ -3972,7 +3972,7 @@ Subcase 5: 128 profiles ./testpmd -c 0xf -n 6 --file-prefix=vf -- -i --rxq=4 --txq=4 -2. create 10 rules with different patterns on each port:: +2. create 8 rules with different patterns on each port:: flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is 192.168.0.21 / udp src is 22 dst is 23 / end actions queue index 1 / mark / end flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is 192.168.0.21 / tcp src is 22 dst is 23 / end actions queue index 1 / mark / end @@ -3995,7 +3995,7 @@ Subcase 5: 128 profiles 3. list the rules on port 0-12:: - testpmd> flow list 10 + testpmd> flow list 12 ID Group Prio Attr Rule 0 0 0 i-- ETH IPV4 UDP => QUEUE MARK 1 0 0 i-- ETH IPV4 TCP => QUEUE MARK @@ -4020,7 +4020,7 @@ Subcase 5: 128 profiles 4. send matched packets to vf 12, the packets are redirected to the expected queue. -5. flush rules on port 12:: +5. flush rules on vf port 12:: flow flush 12 @@ -4032,13 +4032,10 @@ Subcase 5: 128 profiles 6. create rule on port 13 again:: testpmd> flow create 13 ingress pattern eth type is 0x8863 / end actions queue index 1 / mark id 1 / end - eth - iavf_execute_vf_cmd(): No response or return failure (-5) for cmd 47 - iavf_fdir_add(): fail to execute command OP_ADD_FDIR_FILTER - iavf_flow_create(): Failed to create flow - port_flow_complain(): Caught PMD error type 2 (flow rule (handle)): Add filter rule failed.: Operation not permitted - still failed. + the rule can be created successfully. + send the matched packet port 13, + the packets are redirected to the expected queue. Test case: Stress test ====================== diff --git a/tests/TestSuite_iavf_fdir.py b/tests/TestSuite_iavf_fdir.py index 553d4bf0..eaea13fc 100644 --- a/tests/TestSuite_iavf_fdir.py +++ b/tests/TestSuite_iavf_fdir.py @@ -3357,16 +3357,21 @@ class TestIAVFFdir(TestCase): rule = "flow create {} ingress pattern eth type is 0x8863 / end actions queue index 1 / mark id 1 / end".format(nex_cnt) self.create_fdir_rule(rule, check_stats=False) - pkt = 'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21")/UDP(sport=22, dport=23)/ Raw("x" * 80)' - out = self.send_pkts_getouput(pkts=pkt) + pkt1 = 'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21")/UDP(sport=22, dport=23)/ Raw("x" * 80)' + out = self.send_pkts_getouput(pkts=pkt1) rfc.check_iavf_fdir_mark(out, pkt_num=1, check_param={"port_id": nex_cnt, "mark_id": 0, "queue": 1}, stats=True) + pkt2 = 'Ether(dst="00:11:22:33:44:55", type=0x8863)/IP()/Raw("x" * 80)' + out = self.send_pkts_getouput(pkts=pkt2) + rfc.check_iavf_fdir_mark(out, pkt_num=1, check_param={"port_id": nex_cnt, "mark_id": 1, "queue": 1}, stats=False) self.dut.send_expect("flow flush {}".format(nex_cnt), "testpmd> ") self.check_fdir_rule(port_id=(nex_cnt), stats=False) - out = self.send_pkts_getouput(pkts=pkt) + out = self.send_pkts_getouput(pkts=pkt1) rfc.check_iavf_fdir_mark(out, pkt_num=1, check_param={"port_id": nex_cnt, "mark_id": 0, "queue": 1}, stats=False) - self.create_fdir_rule(rule, check_stats=False) + self.create_fdir_rule(rule, check_stats=True) + out = self.send_pkts_getouput(pkts=pkt2) + rfc.check_iavf_fdir_mark(out, pkt_num=1, check_param={"port_id": nex_cnt, "mark_id": 1, "queue": 1}, stats=True) def test_stress_port_stop_start(self): """