From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9B199A0528; Fri, 17 Jul 2020 09:52:27 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 407DF1BF3C; Fri, 17 Jul 2020 09:52:27 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id B6ECC1BEDF for ; Fri, 17 Jul 2020 09:52:23 +0200 (CEST) IronPort-SDR: /X1o5QJCadYKfZKnv38ti47ZM1iB+LZD7wze0lLR3vHcOaFGKPObPHThcy/lsDZ2dSqJa5guWK wrapZGCzE5HQ== X-IronPort-AV: E=McAfee;i="6000,8403,9684"; a="167685271" X-IronPort-AV: E=Sophos;i="5.75,362,1589266800"; d="scan'208";a="167685271" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jul 2020 00:52:21 -0700 IronPort-SDR: 1qYIE2d/ot0ly9OHae2PVV+qqjJJ3KCL9lWP/Qvqt4ybZeTY03zX7M1ncuCZNccmonHX6zz7Gj 5g4cTqWMsmVA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,362,1589266800"; d="scan'208";a="300491353" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.240.182.150]) by orsmga002.jf.intel.com with ESMTP; 17 Jul 2020 00:52:19 -0700 From: xizhan4x To: dts@dpdk.org Cc: xizhan4x Date: Fri, 17 Jul 2020 15:53:16 +0800 Message-Id: <1594972396-17189-1-git-send-email-xix.zhang@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH V1] tests/TestSuite_rss_to_rte_flow:Create ivp6 TCP flow rules, but send IPv4 TCP packets, modify to send IPv6 TCP packets and Add multiple package test methods 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" Create ivp6 TCP flow rules, but send IPv4 TCP packets, modify to send IPv6 TCP packets and Add multiple package test methods Signed-off-by: xizhan4x --- tests/TestSuite_rss_to_rte_flow.py | 80 ++++++++++++++++---------------------- 1 file changed, 33 insertions(+), 47 deletions(-) diff --git a/tests/TestSuite_rss_to_rte_flow.py b/tests/TestSuite_rss_to_rte_flow.py index 21ba8dc..55d5a3a 100644 --- a/tests/TestSuite_rss_to_rte_flow.py +++ b/tests/TestSuite_rss_to_rte_flow.py @@ -622,73 +622,59 @@ class TestRSS_to_Rteflow(TestCase): self.dut.send_expect("set verbose 1", "testpmd> ", 120) self.dut.send_expect("start", "testpmd> ", 120) time.sleep(2) - rss_queue = ["0"] - pkts = [self.pkt1, self.pkt2, self.pkt3, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt8, self.pkt9, self.pkt10, self.pkt11] - self.send_and_check(pkts, rss_queue, port_id=0) + ptype_list1 = ["ipv4-other", "ipv4-frag", "ipv4-udp","ipv4-tcp", "ipv4-sctp", "ipv6-other", "ipv6-frag", "ipv6-udp", "ipv6-tcp", "ipv6-sctp", "l2-payload"] + self.send_check_100_packet_queue(ptype_list1, "0", port_id=0) + self.send_check_100_packet_queue(ptype_list1, "0", port_id=1) # enable ipv4-udp and ipv6-tcp RSS function type self.dut.send_expect( "flow create 0 ingress pattern eth / ipv4 / udp / end actions rss types ipv4-udp end queues end / end", "created") self.dut.send_expect( "flow create 0 ingress pattern eth / ipv6 / tcp / end actions rss types ipv6-tcp end queues end / end", "created") - rss_queue = ["0", "1", "2", "3", "4", "5", "6", "7"] - pkts = [self.pkt2, self.pkt3] - self.send_and_check(pkts, rss_queue, port_id=0) - rss_queue = ["0"] - pkts = [self.pkt1, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt8, self.pkt9, self.pkt10] - self.send_and_check(pkts, rss_queue, port_id=0) - rss_queue = ["0"] - pkts = [self.pkt1, self.pkt2, self.pkt3, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt8, self.pkt9, self.pkt10] - self.send_and_check(pkts, rss_queue, port_id=1) + + ptype_list1 = ["ipv4-udp", "ipv6-tcp"] + self.send_check_100_packet_queue(ptype_list1, "all", port_id=0) + ptype_list2 = ["ipv4-other", "ipv4-frag", "ipv4-tcp", "ipv4-sctp", "ipv6-other", "ipv6-frag", "ipv6-udp", "ipv6-sctp", "l2-payload"] + self.send_check_100_packet_queue(ptype_list2, "0", port_id=0) + ptype_list3 = ["ipv4-other", "ipv4-frag", "ipv4-udp","ipv4-tcp", "ipv4-sctp", "ipv6-other", "ipv6-frag", "ipv6-udp", "ipv6-tcp", "ipv6-sctp", "l2-payload"] + self.send_check_100_packet_queue(ptype_list3, "0", port_id=1) # set queue 1, 4, 7 into RSS queue rule self.dut.send_expect( "flow create 0 ingress pattern end actions rss types end queues 1 4 7 end / end", "created") - rss_queue = ["1", "4", "7"] - pkts = [self.pkt2, self.pkt3] - self.send_and_check(pkts, rss_queue, port_id=0) - rss_queue = ["0"] - pkts = [self.pkt1, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt8, self.pkt9, self.pkt10] - self.send_and_check(pkts, rss_queue, port_id=0) - rss_queue = ["0"] - pkts = [self.pkt1, self.pkt2, self.pkt3, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt8, self.pkt9, self.pkt10] - self.send_and_check(pkts, rss_queue, port_id=1) + ptype_list1 = ["ipv4-udp", "ipv6-tcp"] + self.send_check_100_packet_queue(ptype_list1, ["1","4","7"], port_id=0) + ptype_list2 = ["ipv4-other", "ipv4-frag", "ipv4-tcp", "ipv4-sctp", "ipv6-other", "ipv6-frag", "ipv6-udp", "ipv6-sctp", "l2-payload"] + self.send_check_100_packet_queue(ptype_list2, "0", port_id=0) + ptype_list3 = ["ipv4-other", "ipv4-frag", "ipv4-udp","ipv4-tcp", "ipv4-sctp", "ipv6-other", "ipv6-frag", "ipv6-udp", "ipv6-tcp", "ipv6-sctp", "l2-payload"] + self.send_check_100_packet_queue(ptype_list3, "0", port_id=1) # enable ipv4-udp and ipv6-other RSS function type on port 1 self.dut.send_expect( "flow create 1 ingress pattern eth / ipv4 / udp / end actions rss types ipv4-udp end queues end / end", "created") self.dut.send_expect( "flow create 1 ingress pattern eth / ipv6 / end actions rss types ipv6-other end queues end / end", "created") - rss_queue = ["1", "4", "7"] - pkts = [self.pkt2, self.pkt3] - self.send_and_check(pkts, rss_queue, port_id=0) - rss_queue = ["0"] - pkts = [self.pkt1, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt8, self.pkt9, self.pkt10] - self.send_and_check(pkts, rss_queue, port_id=0) - - rss_queue = ["0", "1", "2", "3", "4", "5", "6", "7"] - pkts = [self.pkt2, self.pkt8] - self.send_and_check(pkts, rss_queue, port_id=1) - rss_queue = ["0"] - pkts = [self.pkt1, self.pkt3, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt9, self.pkt10] - self.send_and_check(pkts, rss_queue, port_id=1) + ptype_list1 = ["ipv4-udp", "ipv6-tcp"] + self.send_check_100_packet_queue(ptype_list1, ["1","4","7"], port_id=0) + ptype_list2 = ["ipv4-other", "ipv4-frag", "ipv4-tcp", "ipv4-sctp", "ipv6-other", "ipv6-frag", "ipv6-udp", "ipv6-sctp", "l2-payload"] + self.send_check_100_packet_queue(ptype_list2, "0", port_id=0) + ptype_list3 = ["ipv4-udp", "ipv6-other"] + self.send_check_100_packet_queue(ptype_list3, "all", port_id=1) + ptype_list4 = ["ipv4-other", "ipv4-frag", "ipv4-tcp", "ipv4-sctp", "ipv6-frag", "ipv6-udp", "ipv6-tcp", "ipv6-sctp", "l2-payload"] + self.send_check_100_packet_queue(ptype_list4, "0", port_id=1) self.dut.send_expect("flow flush 0", "testpmd> ") - rss_queue = ["0"] - pkts = [self.pkt1, self.pkt2, self.pkt3, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt8, self.pkt9, self.pkt10] - self.send_and_check(pkts, rss_queue, port_id=0) - rss_queue = ["0", "1", "2", "3", "4", "5", "6", "7"] - pkts = [self.pkt2, self.pkt8] - self.send_and_check(pkts, rss_queue, port_id=1) - rss_queue = ["0"] - pkts = [self.pkt1, self.pkt3, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt9, self.pkt10] - self.send_and_check(pkts, rss_queue, port_id=1) + ptype_list1 = ["ipv4-other", "ipv4-frag", "ipv4-udp", "ipv4-tcp", "ipv4-sctp", "ipv6-other", "ipv6-frag", "ipv6-udp", "ipv6-tcp", "ipv6-sctp", "l2-payload"] + self.send_check_100_packet_queue(ptype_list1, "0", port_id=0) + ptype_list2 = ["ipv4-udp", "ipv6-other"] + self.send_check_100_packet_queue(ptype_list2, "all", port_id=1) + ptype_list3 = ["ipv4-other", "ipv4-frag", "ipv4-tcp", "ipv4-sctp", "ipv6-frag", "ipv6-udp", "ipv6-tcp", "ipv6-sctp", "l2-payload"] + self.send_check_100_packet_queue(ptype_list3, "0", port_id=1) self.dut.send_expect("flow flush 1", "testpmd> ") - rss_queue = ["0"] - pkts = [self.pkt1, self.pkt2, self.pkt3, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt8, self.pkt9, self.pkt10] - self.send_and_check(pkts, rss_queue, port_id=0) - self.send_and_check(pkts, rss_queue, port_id=1) + ptype_list1 = ["ipv4-other", "ipv4-frag", "ipv4-udp", "ipv4-tcp", "ipv4-sctp", "ipv6-other", "ipv6-frag", "ipv6-udp", "ipv6-tcp", "ipv6-sctp", "l2-payload"] + self.send_check_100_packet_queue(ptype_list1, "0", port_id=0) + self.send_check_100_packet_queue(ptype_list1, "0", port_id=1) def test_flow_director_rss_rule_combination(self): """ -- 1.8.3.1