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 B10A6A0518; Fri, 24 Jul 2020 04:26:01 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9E5971D641; Fri, 24 Jul 2020 04:26:01 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 0C4EA1D641 for ; Fri, 24 Jul 2020 04:25:59 +0200 (CEST) IronPort-SDR: 7XbB2ecMKL9EADC3jWAjaqqokgy+bqMJifej1DKS7VRzmy+S1XFuUs6JvxgB2wY8BwVE9RvNac qGCeAqlAihlw== X-IronPort-AV: E=McAfee;i="6000,8403,9691"; a="130212085" X-IronPort-AV: E=Sophos;i="5.75,389,1589266800"; d="scan'208";a="130212085" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jul 2020 19:25:59 -0700 IronPort-SDR: zesceADoP7hrRF8KUnmFDjRhVk4S8VxR/uGLU72aZQy4phjrfp0rH95lQWGn9MvBgbl7X/wfN8 WzXlTCm2SrQw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,389,1589266800"; d="scan'208";a="488583263" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga006.fm.intel.com with ESMTP; 23 Jul 2020 19:25:59 -0700 Received: from fmsmsx609.amr.corp.intel.com (10.18.126.89) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 23 Jul 2020 19:25:59 -0700 Received: from fmsmsx609.amr.corp.intel.com (10.18.126.89) by fmsmsx609.amr.corp.intel.com (10.18.126.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 23 Jul 2020 19:25:58 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by fmsmsx609.amr.corp.intel.com (10.18.126.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Thu, 23 Jul 2020 19:25:57 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.22]) by shsmsx102.ccr.corp.intel.com ([169.254.2.43]) with mapi id 14.03.0439.000; Fri, 24 Jul 2020 10:25:54 +0800 From: "Tu, Lijuan" To: "Zhang, XiX" , "dts@dpdk.org" CC: "Zhang, XiX" Thread-Topic: [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 Thread-Index: AQHWXA9DO31N9V44BEG3n9FlzSMdHKkWC1sQ Date: Fri, 24 Jul 2020 02:25:54 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC83FA7@SHSMSX101.ccr.corp.intel.com> References: <1594972396-17189-1-git-send-email-xix.zhang@intel.com> In-Reply-To: <1594972396-17189-1-git-send-email-xix.zhang@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [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" Applied, thanks > -----Original Message----- > From: dts On Behalf Of xizhan4x > Sent: 2020=1B$BG/=1B(B7=1B$B7n=1B(B17=1B$BF|=1B(B 15:53 > To: dts@dpdk.org > Cc: Zhang, XiX > 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 >=20 > Create ivp6 TCP flow rules, but send IPv4 TCP packets, modify to send IPv= 6 TCP > packets and Add multiple package test methods >=20 > Signed-off-by: xizhan4x > --- > tests/TestSuite_rss_to_rte_flow.py | 80 ++++++++++++++++----------------= ------ > 1 file changed, 33 insertions(+), 47 deletions(-) >=20 > 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 =3D ["0"] > - pkts =3D [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=3D0) > + ptype_list1 =3D ["ipv4-other", "ipv4-frag", "ipv4-udp","ipv4-tcp= ", "ipv4-sctp", > "ipv6-other", "ipv6-frag", "ipv6-udp", "ipv6-tcp", "ipv6-sctp", "l2-paylo= ad"] > + self.send_check_100_packet_queue(ptype_list1, "0", port_id=3D0) > + self.send_check_100_packet_queue(ptype_list1, "0", port_id=3D1) >=20 > # enable ipv4-udp and ipv6-tcp RSS function type > self.dut.send_expect( > "flow create 0 ingress pattern eth / ipv4 / udp / end action= s rss types > ipv4-udp end queues end / end", "created") > self.dut.send_expect( > "flow create 0 ingress pattern eth / ipv6 / tcp / end action= s rss types ipv6- > tcp end queues end / end", "created") > - rss_queue =3D ["0", "1", "2", "3", "4", "5", "6", "7"] > - pkts =3D [self.pkt2, self.pkt3] > - self.send_and_check(pkts, rss_queue, port_id=3D0) > - rss_queue =3D ["0"] > - pkts =3D [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=3D0) > - rss_queue =3D ["0"] > - pkts =3D [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=3D1) > + > + ptype_list1 =3D ["ipv4-udp", "ipv6-tcp"] > + self.send_check_100_packet_queue(ptype_list1, "all", port_id=3D0= ) > + ptype_list2 =3D ["ipv4-other", "ipv4-frag", "ipv4-tcp", "ipv4-sc= tp", "ipv6- > other", "ipv6-frag", "ipv6-udp", "ipv6-sctp", "l2-payload"] > + self.send_check_100_packet_queue(ptype_list2, "0", port_id=3D0) > + ptype_list3 =3D ["ipv4-other", "ipv4-frag", "ipv4-udp","ipv4-tcp= ", "ipv4-sctp", > "ipv6-other", "ipv6-frag", "ipv6-udp", "ipv6-tcp", "ipv6-sctp", "l2-paylo= ad"] > + self.send_check_100_packet_queue(ptype_list3, "0", port_id=3D1) >=20 > # set queue 1, 4, 7 into RSS queue rule > self.dut.send_expect( > "flow create 0 ingress pattern end actions rss types end que= ues 1 4 7 end > / end", "created") > - rss_queue =3D ["1", "4", "7"] > - pkts =3D [self.pkt2, self.pkt3] > - self.send_and_check(pkts, rss_queue, port_id=3D0) > - rss_queue =3D ["0"] > - pkts =3D [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=3D0) > - rss_queue =3D ["0"] > - pkts =3D [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=3D1) > + ptype_list1 =3D ["ipv4-udp", "ipv6-tcp"] > + self.send_check_100_packet_queue(ptype_list1, ["1","4","7"], por= t_id=3D0) > + ptype_list2 =3D ["ipv4-other", "ipv4-frag", "ipv4-tcp", "ipv4-sc= tp", "ipv6- > other", "ipv6-frag", "ipv6-udp", "ipv6-sctp", "l2-payload"] > + self.send_check_100_packet_queue(ptype_list2, "0", port_id=3D0) > + ptype_list3 =3D ["ipv4-other", "ipv4-frag", "ipv4-udp","ipv4-tcp= ", "ipv4-sctp", > "ipv6-other", "ipv6-frag", "ipv6-udp", "ipv6-tcp", "ipv6-sctp", "l2-paylo= ad"] > + self.send_check_100_packet_queue(ptype_list3, "0", port_id=3D1) >=20 > # 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 action= s 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 =3D ["1", "4", "7"] > - pkts =3D [self.pkt2, self.pkt3] > - self.send_and_check(pkts, rss_queue, port_id=3D0) > - rss_queue =3D ["0"] > - pkts =3D [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=3D0) > - > - rss_queue =3D ["0", "1", "2", "3", "4", "5", "6", "7"] > - pkts =3D [self.pkt2, self.pkt8] > - self.send_and_check(pkts, rss_queue, port_id=3D1) > - rss_queue =3D ["0"] > - pkts =3D [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=3D1) > + ptype_list1 =3D ["ipv4-udp", "ipv6-tcp"] > + self.send_check_100_packet_queue(ptype_list1, ["1","4","7"], por= t_id=3D0) > + ptype_list2 =3D ["ipv4-other", "ipv4-frag", "ipv4-tcp", "ipv4-sc= tp", "ipv6- > other", "ipv6-frag", "ipv6-udp", "ipv6-sctp", "l2-payload"] > + self.send_check_100_packet_queue(ptype_list2, "0", port_id=3D0) > + ptype_list3 =3D ["ipv4-udp", "ipv6-other"] > + self.send_check_100_packet_queue(ptype_list3, "all", port_id=3D1= ) > + ptype_list4 =3D ["ipv4-other", "ipv4-frag", "ipv4-tcp", "ipv4-sc= tp", "ipv6-frag", > "ipv6-udp", "ipv6-tcp", "ipv6-sctp", "l2-payload"] > + self.send_check_100_packet_queue(ptype_list4, "0", port_id=3D1) >=20 > self.dut.send_expect("flow flush 0", "testpmd> ") > - rss_queue =3D ["0"] > - pkts =3D [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=3D0) > - rss_queue =3D ["0", "1", "2", "3", "4", "5", "6", "7"] > - pkts =3D [self.pkt2, self.pkt8] > - self.send_and_check(pkts, rss_queue, port_id=3D1) > - rss_queue =3D ["0"] > - pkts =3D [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=3D1) > + ptype_list1 =3D ["ipv4-other", "ipv4-frag", "ipv4-udp", "ipv4-tc= p", "ipv4-sctp", > "ipv6-other", "ipv6-frag", "ipv6-udp", "ipv6-tcp", "ipv6-sctp", "l2-paylo= ad"] > + self.send_check_100_packet_queue(ptype_list1, "0", port_id=3D0) > + ptype_list2 =3D ["ipv4-udp", "ipv6-other"] > + self.send_check_100_packet_queue(ptype_list2, "all", port_id=3D1= ) > + ptype_list3 =3D ["ipv4-other", "ipv4-frag", "ipv4-tcp", "ipv4-sc= tp", "ipv6-frag", > "ipv6-udp", "ipv6-tcp", "ipv6-sctp", "l2-payload"] > + self.send_check_100_packet_queue(ptype_list3, "0", port_id=3D1) >=20 > self.dut.send_expect("flow flush 1", "testpmd> ") > - rss_queue =3D ["0"] > - pkts =3D [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=3D0) > - self.send_and_check(pkts, rss_queue, port_id=3D1) > + ptype_list1 =3D ["ipv4-other", "ipv4-frag", "ipv4-udp", "ipv4-tc= p", "ipv4-sctp", > "ipv6-other", "ipv6-frag", "ipv6-udp", "ipv6-tcp", "ipv6-sctp", "l2-paylo= ad"] > + self.send_check_100_packet_queue(ptype_list1, "0", port_id=3D0) > + self.send_check_100_packet_queue(ptype_list1, "0", port_id=3D1) >=20 > def test_flow_director_rss_rule_combination(self): > """ > -- > 1.8.3.1