From patchwork Wed Dec 7 07:34:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: hailinx X-Patchwork-Id: 120523 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 86D1BA00C3; Wed, 7 Dec 2022 08:38:01 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7CD10410FB; Wed, 7 Dec 2022 08:38:01 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 8BE2F410D7 for ; Wed, 7 Dec 2022 08:38:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1670398680; x=1701934680; h=from:to:cc:subject:date:message-id; bh=wr8KE49wSa4h+5S+296i1nqThJ+HQ/SKJI4NI7vAO20=; b=Hc69mAkEHi8RBKoffROS3kl5SNXfgV6HziSQT/lS55jNlslOaoVopn7c WqhoNXBULAJ1ImTWmec/jyurN0KTgJV+WBSnsLzq45TK1v39ht3K5uP/X bHld9X+O/KT7nD+7o6N1F95t04WK1GcA8QcCRu1NxHIcjLT/ezJ7tNHet VZRQLrtgPH0eF0RvKhUAtaIt3kXLEIkiDVh0SvtSYYzLsZWSGbxItDyey kpRbfDD9gtWPl3SLOBAa5BDw+S84OyuXfugPt8q6T03Mdv8+y4s2y4Op9 BVVP02knzW/HKdMJWksO30hLA5URXH47MTW9X1ZYyLR4guOKQ71M9JbIr A==; X-IronPort-AV: E=McAfee;i="6500,9779,10553"; a="304453148" X-IronPort-AV: E=Sophos;i="5.96,223,1665471600"; d="scan'208";a="304453148" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Dec 2022 23:37:59 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10553"; a="646510138" X-IronPort-AV: E=Sophos;i="5.96,223,1665471600"; d="scan'208";a="646510138" Received: from unknown (HELO localhost.localdomain) ([10.239.252.63]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Dec 2022 23:37:58 -0800 From: hailinx xu To: dts@dpdk.org, zhiminx.huang@intel.com Cc: hailinx xu Subject: [dts][PATCH v1] tests/ice_advanced_rss:fix packets location error Date: Wed, 7 Dec 2022 15:34:16 +0800 Message-Id: <20221207073416.1756-1-hailinx.xu@intel.com> X-Mailer: git-send-email 2.17.1 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 fix packets location error Signed-off-by: hailinx xu Tested-by: Hongbo Li < hongbox.li@intel.com> Acked-by: Lijuan Tu --- tests/TestSuite_ice_advanced_rss.py | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/tests/TestSuite_ice_advanced_rss.py b/tests/TestSuite_ice_advanced_rss.py index e18e42f6..d40e5dbf 100644 --- a/tests/TestSuite_ice_advanced_rss.py +++ b/tests/TestSuite_ice_advanced_rss.py @@ -3230,6 +3230,10 @@ mac_ipv6_udp_ipv6 = { "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/UDP(sport=22,dport=23)/("X"*480)', "action": "check_hash_different", }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/UDP(sport=32,dport=33)/("X"*480)', + "action": "check_hash_same", + }, { "send_packet": mac_ipv6_udp_toeplitz_basic_pkt["ipv6-next-proto-udp"], "action": "save_hash", @@ -3242,10 +3246,6 @@ mac_ipv6_udp_ipv6 = { "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/IPv6ExtHdrDestOpt(nh=17)/UDP(sport=22,dport=23)/("X"*480)', "action": "check_hash_different", }, - { - "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/UDP(sport=32,dport=33)/("X"*480)', - "action": "check_hash_same", - }, ], "post-test": [ { @@ -3965,6 +3965,10 @@ mac_ipv6_tcp_ipv6 = { "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/TCP(sport=22,dport=23)/("X"*480)', "action": "check_hash_different", }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/TCP(sport=32,dport=33)/("X"*480)', + "action": "check_hash_same", + }, { "send_packet": eval( str(mac_ipv6_tcp_toeplitz_basic_pkt["ipv6-next-proto-tcp"]).replace( @@ -3981,10 +3985,6 @@ mac_ipv6_tcp_ipv6 = { "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/IPv6ExtHdrSegmentRouting(nh=6)/TCP(sport=22,dport=23)/("X"*480)', "action": "check_hash_different", }, - { - "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/TCP(sport=32,dport=33)/("X"*480)', - "action": "check_hash_same", - }, ], "post-test": [ { @@ -4648,6 +4648,10 @@ mac_ipv6_sctp_ipv6 = { "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/SCTP(sport=22,dport=23)/("X"*480)', "action": "check_hash_different", }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/SCTP(sport=32,dport=33)/("X"*480)', + "action": "check_hash_same", + }, { "send_packet": eval( str(mac_ipv6_sctp_toeplitz_basic_pkt["ipv6-next-proto-sctp"]).replace( @@ -4664,10 +4668,6 @@ mac_ipv6_sctp_ipv6 = { "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/IPv6ExtHdrHopByHop()/IPv6ExtHdrRouting(nh=132)/SCTP(sport=22,dport=23)/("X"*480)', "action": "check_hash_different", }, - { - "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/SCTP(sport=32,dport=33)/("X"*480)', - "action": "check_hash_same", - }, ], "post-test": [ { @@ -5846,6 +5846,7 @@ class AdvancedRSSTest(TestCase): self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv6) def test_mac_ipv6_udp(self): + self.switch_testpmd(symmetric=False) self.pmd_output.execute_cmd("rx_vxlan_port add 4789 0") self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv6_udp)