From patchwork Wed May 25 11:19:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 111797 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 60BEAA0550; Wed, 25 May 2022 13:19:43 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 55E554067B; Wed, 25 May 2022 13:19:43 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 07F43400EF for ; Wed, 25 May 2022 13:19:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653477581; x=1685013581; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=GmWXKPwlspwQ/gguoSXvEpwcj5HGilI89ra0Gc9Bp1o=; b=Y4506Fd82BDbo/Bbv/fXf52NWy8GmsYyrJn/rzfW2PFTtCEVME1ic+m8 VbT4CtxecxHdjSiwIMCgIz9uWUb3Xr7so4iEvAYYr4jtmCNZuf6rHf3dc nDaqAMXR8cXxxyQA4vFCwtdW+g1vfCuqvYNoNReKakbx1pDuHwujN9A+n GJN9orOwax1ZLgGhWuhBtbCYahFGYoK3411ckvXSDQIxoVe94vkqa0NyC p10Q0/gnqnQEgcOpypZ8Z7lyiEuFGeNJIsUtH2l83ZMJCMPp3p0IH46Mg yXAeo6zUHre7I7g/q9tIIA/HRg3Zb1qkw557UrmFGC4BcuzaNgcsaydQD Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10357"; a="253661053" X-IronPort-AV: E=Sophos;i="5.91,250,1647327600"; d="scan'208";a="253661053" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 May 2022 04:19:39 -0700 X-IronPort-AV: E=Sophos;i="5.91,250,1647327600"; d="scan'208";a="548972236" Received: from unknown (HELO daily-regression-131.intel.com) ([10.239.251.131]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 May 2022 04:19:38 -0700 From: Jiale Song To: dts@dpdk.org Cc: Jiale Song Subject: [dts] [PATCH V2 1/8] tests/ice_advanced_iavf_rss: remove ip fragment packets Date: Wed, 25 May 2022 19:19:27 +0800 Message-Id: <20220525111934.106784-1-songx.jiale@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 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 modify the script to adapt to the change of dpdk function. remove ip fragment packets, dpdk no longer supports ip fragment default RSS. According to dpdk commit f8d541da518 ("net/iavf: remove support for IP fragment default RSS"). Signed-off-by: Jiale Song --- .../ice_advanced_iavf_rss_test_plan.rst | 108 -------- tests/TestSuite_ice_advanced_iavf_rss.py | 236 ------------------ 2 files changed, 344 deletions(-) diff --git a/test_plans/ice_advanced_iavf_rss_test_plan.rst b/test_plans/ice_advanced_iavf_rss_test_plan.rst index fa02ddd6..7ac66f5a 100644 --- a/test_plans/ice_advanced_iavf_rss_test_plan.rst +++ b/test_plans/ice_advanced_iavf_rss_test_plan.rst @@ -402,10 +402,6 @@ ipv4-nonfrag packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.0.2")/("X"*480)],iface="enp134s0f0") -ipv4-frag packets:: - - sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.0.2",frag=6)/("X"*480)],iface="enp134s0f0") - ipv4-icmp packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.0.2")/ICMP()/("X"*480)],iface="enp134s0f0") @@ -425,10 +421,6 @@ ipv4-nonfrag packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E1")/IP(dst="192.168.0.1", src="192.168.0.2")/("X"*480)],iface="enp134s0f0") -ipv4-frag packets:: - - sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E1")/IP(dst="192.168.0.1", src="192.168.0.2",frag=6)/("X"*480)],iface="enp134s0f0") - ipv4-icmp packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E1")/IP(dst="192.168.0.1", src="192.168.0.2")/ICMP()/("X"*480)],iface="enp134s0f0") @@ -442,10 +434,6 @@ ipv4-nonfrag packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E0")/IP(dst="192.168.0.3", src="192.168.0.5")/("X"*480)],iface="enp134s0f0") -ipv4-frag packets:: - - sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E0")/IP(dst="192.168.0.3", src="192.168.0.5",frag=7)/("X"*480)],iface="enp134s0f0") - ipv4-icmp packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E0")/IP(dst="192.168.0.3", src="192.168.0.5")/ICMP()/("X"*480)],iface="enp134s0f0") @@ -467,10 +455,6 @@ ipv4-nonfrag packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E1")/IP(dst="192.168.0.3", src="192.168.0.5")/("X"*480)],iface="enp134s0f0") -ipv4-frag packets:: - - sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E1")/IP(dst="192.168.0.3", src="192.168.0.5",frag=7)/("X"*480)],iface="enp134s0f0") - ipv4-icmp packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E1")/IP(dst="192.168.0.3", src="192.168.0.5")/ICMP()/("X"*480)],iface="enp134s0f0") @@ -490,10 +474,6 @@ ipv4-nonfrag packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E1")/IP(dst="192.168.0.1", src="192.168.0.2")/("X"*480)],iface="enp134s0f0") -ipv4-frag packets:: - - sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E1")/IP(dst="192.168.0.1", src="192.168.0.2",frag=6)/("X"*480)],iface="enp134s0f0") - ipv4-icmp packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E1")/IP(dst="192.168.0.1", src="192.168.0.2")/ICMP()/("X"*480)],iface="enp134s0f0") @@ -507,10 +487,6 @@ ipv4-nonfrag packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E0")/IP(dst="192.168.0.3", src="192.168.0.5")/("X"*480)],iface="enp134s0f0") -ipv4-frag packets:: - - sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E0")/IP(dst="192.168.0.3", src="192.168.0.5",frag=7)/("X"*480)],iface="enp134s0f0") - ipv4-icmp packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E0")/IP(dst="192.168.0.3", src="192.168.0.5")/ICMP()/("X"*480)],iface="enp134s0f0") @@ -530,10 +506,6 @@ ipv4-nonfrag packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.1.2")/("X"*480)],iface="enp134s0f0") -ipv4-frag packets:: - - sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.1.2",frag=6)/("X"*480)],iface="enp134s0f0") - ipv4-icmp packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.1.2")/ICMP()/("X"*480)],iface="enp134s0f0") @@ -547,10 +519,6 @@ ipv4-nonfrag packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E1")/IP(dst="192.168.1.1", src="192.168.0.2")/("X"*480)],iface="enp134s0f0") -ipv4-frag packets:: - - sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E1")/IP(dst="192.168.1.1", src="192.168.0.2",frag=6)/("X"*480)],iface="enp134s0f0") - ipv4-icmp packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E1")/IP(dst="192.168.1.1", src="192.168.0.2")/ICMP()/("X"*480)],iface="enp134s0f0") @@ -570,10 +538,6 @@ ipv4-nonfrag packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E0")/IP(dst="192.168.1.1", src="192.168.0.2")/("X"*480)],iface="enp134s0f0") -ipv4-frag packets:: - - sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E0")/IP(dst="192.168.1.1", src="192.168.0.2",frag=6)/("X"*480)],iface="enp134s0f0") - ipv4-icmp packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E0")/IP(dst="192.168.1.1", src="192.168.0.2")/ICMP()/("X"*480)],iface="enp134s0f0") @@ -587,10 +551,6 @@ ipv4-nonfrag packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E1")/IP(dst="192.168.0.1", src="192.168.1.2")/("X"*480)],iface="enp134s0f0") -ipv4-frag packets:: - - sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E1")/IP(dst="192.168.0.1", src="192.168.1.2",frag=6)/("X"*480)],iface="enp134s0f0") - ipv4-icmp packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E1")/IP(dst="192.168.0.1", src="192.168.1.2")/ICMP()/("X"*480)],iface="enp134s0f0") @@ -611,11 +571,6 @@ ipv4-nonfrag packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E0")/IP(dst="192.168.1.1", src="192.168.0.2")/("X"*480)],iface="enp134s0f0") sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.1.2")/("X"*480)],iface="enp134s0f0") -ipv4-frag packets:: - - sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E0")/IP(dst="192.168.1.1", src="192.168.0.2",frag=6)/("X"*480)],iface="enp134s0f0") - sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.1.2",frag=6)/("X"*480)],iface="enp134s0f0") - ipv4-icmp packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E0")/IP(dst="192.168.1.1", src="192.168.0.2")/ICMP()/("X"*480)],iface="enp134s0f0") @@ -631,10 +586,6 @@ ipv4-nonfrag packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E1")/IP(dst="192.168.0.1", src="192.168.0.2")/("X"*480)],iface="enp134s0f0") -ipv4-frag packets:: - - sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E1")/IP(dst="192.168.0.1", src="192.168.0.2",frag=6)/("X"*480)],iface="enp134s0f0") - ipv4-icmp packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E1")/IP(dst="192.168.0.1", src="192.168.0.2")/ICMP()/("X"*480)],iface="enp134s0f0") @@ -978,10 +929,6 @@ ipv6-nonfrag packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/("X"*480)],iface="enp134s0f0") -ipv6-frag packets:: - - sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrFragment()/("X"*480)],iface="enp134s0f0") - ipv6-icmp packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/ICMP()/("X"*480)],iface="enp134s0f0") @@ -1001,10 +948,6 @@ ipv6-nonfrag packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E1")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/("X"*480)],iface="enp134s0f0") -ipv6-frag packets:: - - sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E1")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrFragment()/("X"*480)],iface="enp134s0f0") - ipv6-icmp packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E1")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/ICMP()/("X"*480)],iface="enp134s0f0") @@ -1018,10 +961,6 @@ ipv6-nonfrag packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/("X"*480)],iface="enp134s0f0") -ipv6-frag packets:: - - sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/IPv6ExtHdrFragment()/("X"*480)],iface="enp134s0f0") - ipv6-icmp packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/ICMP()/("X"*480)],iface="enp134s0f0") @@ -1043,10 +982,6 @@ ipv6-nonfrag packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E1")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/("X"*480)],iface="enp134s0f0") -ipv6-frag packets:: - - sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E1")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2027")/IPv6ExtHdrFragment()/("X"*480)],iface="enp134s0f0") - ipv6-icmp packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E1")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2027")/ICMP()/("X"*480)],iface="enp134s0f0") @@ -1066,10 +1001,6 @@ ipv6-nonfrag packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E1")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/("X"*480)],iface="enp134s0f0") -ipv6-frag packets:: - - sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E1")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrFragment()/("X"*480)],iface="enp134s0f0") - ipv6-icmp packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E1")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/ICMP()/("X"*480)],iface="enp134s0f0") @@ -1083,10 +1014,6 @@ ipv6-nonfrag packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/("X"*480)],iface="enp134s0f0") -ipv6-frag packets:: - - sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/IPv6ExtHdrFragment()/("X"*480)],iface="enp134s0f0") - ipv6-icmp packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/ICMP()/("X"*480)],iface="enp134s0f0") @@ -1106,10 +1033,6 @@ ipv6-nonfrag packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/("X"*480)],iface="enp134s0f0") -ipv6-frag packets:: - - sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrFragment()/("X"*480)],iface="enp134s0f0") - ipv6-icmp packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/ICMP()/("X"*480)],iface="enp134s0f0") @@ -1123,10 +1046,6 @@ ipv6-nonfrag packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E1")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/("X"*480)],iface="enp134s0f0") -ipv6-frag packets:: - - sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E1")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/IPv6ExtHdrFragment()/("X"*480)],iface="enp134s0f0") - ipv6-icmp packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E1")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/ICMP()/("X"*480)],iface="enp134s0f0") @@ -1146,10 +1065,6 @@ ipv6-nonfrag packets:: sendp([Ether(dst="00:11:22:33:44:55", src="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")/("X"*480)],iface="enp134s0f0") -ipv6-frag packets:: - - sendp([Ether(dst="00:11:22:33:44:55", src="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")/IPv6ExtHdrFragment()/("X"*480)],iface="enp134s0f0") - ipv6-icmp packets:: sendp([Ether(dst="00:11:22:33:44:55", src="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")/ICMP()/("X"*480)],iface="enp134s0f0") @@ -1163,10 +1078,6 @@ ipv6-nonfrag packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E1")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/("X"*480)],iface="enp134s0f0") -ipv6-frag packets:: - - sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E1")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrFragment()/("X"*480)],iface="enp134s0f0") - ipv6-icmp packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E1")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/ICMP()/("X"*480)],iface="enp134s0f0") @@ -1187,11 +1098,6 @@ ipv6-nonfrag packets:: sendp([Ether(dst="00:11:22:33:44:55", src="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")/("X"*480)],iface="enp134s0f0") sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/("X"*480)],iface="enp134s0f0") -ipv6-frag packets:: - - sendp([Ether(dst="00:11:22:33:44:55", src="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")/IPv6ExtHdrFragment()/("X"*480)],iface="enp134s0f0") - sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrFragment()/("X"*480)],iface="enp134s0f0") - ipv6-icmp packets:: sendp([Ether(dst="00:11:22:33:44:55", src="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")/ICMP()/("X"*480)],iface="enp134s0f0") @@ -1207,10 +1113,6 @@ ipv6-nonfrag packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E1")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/("X"*480)],iface="enp134s0f0") -ipv6-frag packets:: - - sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E1")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrFragment()/("X"*480)],iface="enp134s0f0") - ipv6-icmp packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E1")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/ICMP()/("X"*480)],iface="enp134s0f0") @@ -2379,11 +2281,6 @@ ipv4-nonfrag packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.0.2")/("X"*480)],iface="enp134s0f0") sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E0")/IP(dst="192.168.0.2", src="192.168.0.1")/("X"*480)],iface="enp134s0f0") -ipv4-frag packets:: - - sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.0.2",frag=6)/("X"*480)],iface="enp134s0f0") - sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E0")/IP(dst="192.168.0.2", src="192.168.0.1",frag=6)/("X"*480)],iface="enp134s0f0") - ipv4-icmp packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.0.2")/ICMP()/("X"*480)],iface="enp134s0f0") @@ -2476,11 +2373,6 @@ ipv6-nonfrag packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/("X"*480)],iface="enp134s0f0") sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E0")/IPv6(dst="ABAB:910B:6666:3457:8295:3333:1800:2929",src="CDCD:910A:2222:5498:8475:1111:3900:2020")/("X"*480)],iface="enp134s0f0") -ipv6-frag packets:: - - sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrFragment()/("X"*480)],iface="enp134s0f0") - sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E0")/IPv6(dst="ABAB:910B:6666:3457:8295:3333:1800:2929",src="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrFragment()/("X"*480)],iface="enp134s0f0") - ipv6-icmp packets:: sendp([Ether(dst="00:11:22:33:44:55", src="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/ICMP()/("X"*480)],iface="enp134s0f0") diff --git a/tests/TestSuite_ice_advanced_iavf_rss.py b/tests/TestSuite_ice_advanced_iavf_rss.py index d9479e50..b91ce9a6 100644 --- a/tests/TestSuite_ice_advanced_iavf_rss.py +++ b/tests/TestSuite_ice_advanced_iavf_rss.py @@ -47,10 +47,6 @@ mac_ipv4_toeplitz_basic_pkt = { 'Ether(dst="%s", src="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.0.2")/("X"*480)' % vf0_mac, ], - "ipv4-frag": [ - 'Ether(dst="%s", src="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.0.2", frag=6)/("X"*480)' - % vf0_mac, - ], "ipv4-icmp": [ 'Ether(dst="%s", src="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.0.2")/ICMP()/("X"*480)' % vf0_mac, @@ -99,10 +95,6 @@ mac_ipv6_toeplitz_basic_pkt = { 'Ether(dst="%s", src="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/("X"*480)' % vf0_mac, ], - "ipv6-frag": [ - 'Ether(dst="%s", src="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrFragment()/("X"*480)' - % vf0_mac, - ], "ipv6-icmp": [ 'Ether(dst="%s", src="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/ICMP()/("X"*480)' % vf0_mac, @@ -166,20 +158,6 @@ mac_ipv4_l2_src = { % vf0_mac, "action": {"check_hash_same": "ipv4-nonfrag"}, }, - { - "send_packet": mac_ipv4_toeplitz_basic_pkt["ipv4-frag"], - "action": {"save_hash": "ipv4-frag"}, - }, - { - "send_packet": 'Ether(dst="%s", src="68:05:CA:BB:26:E1")/IP(dst="192.168.0.1", src="192.168.0.2", frag=6)/("X"*480)' - % vf0_mac, - "action": {"check_hash_different": "ipv4-frag"}, - }, - { - "send_packet": 'Ether(dst="%s", src="68:05:CA:BB:26:E0")/IP(dst="192.168.0.3", src="192.168.0.5",frag=7)/("X"*480)' - % vf0_mac, - "action": {"check_hash_same": "ipv4-frag"}, - }, { "send_packet": mac_ipv4_toeplitz_basic_pkt["ipv4-icmp"], "action": {"save_hash": "ipv4-icmp"}, @@ -225,15 +203,6 @@ mac_ipv4_l2_dst = { % vf0_mac, "action": {"check_hash_same": "ipv4-nonfrag"}, }, - { - "send_packet": mac_ipv4_toeplitz_basic_pkt["ipv4-frag"], - "action": {"save_hash": "ipv4-frag"}, - }, - { - "send_packet": 'Ether(dst="%s", src="68:05:CA:BB:26:E1")/IP(dst="192.168.0.3", src="192.168.0.5",frag=7)/("X"*480)' - % vf0_mac, - "action": {"check_hash_same": "ipv4-frag"}, - }, { "send_packet": mac_ipv4_toeplitz_basic_pkt["ipv4-icmp"], "action": {"save_hash": "ipv4-icmp"}, @@ -274,20 +243,6 @@ mac_ipv4_l2src_l2dst = { % vf0_mac, "action": {"check_hash_same": "ipv4-nonfrag"}, }, - { - "send_packet": mac_ipv4_toeplitz_basic_pkt["ipv4-frag"], - "action": {"save_hash": "ipv4-frag"}, - }, - { - "send_packet": 'Ether(dst="%s", src="68:05:CA:BB:26:E1")/IP(dst="192.168.0.1", src="192.168.0.2",frag=6)/("X"*480)' - % vf0_mac, - "action": {"check_hash_different": "ipv4-frag"}, - }, - { - "send_packet": 'Ether(dst="%s", src="68:05:CA:BB:26:E0")/IP(dst="192.168.0.3", src="192.168.0.5",frag=7)/("X"*480)' - % vf0_mac, - "action": {"check_hash_same": "ipv4-frag"}, - }, { "send_packet": mac_ipv4_toeplitz_basic_pkt["ipv4-icmp"], "action": {"save_hash": "ipv4-icmp"}, @@ -338,20 +293,6 @@ mac_ipv4_l3_src = { % vf0_mac, "action": {"check_hash_same": "ipv4-nonfrag"}, }, - { - "send_packet": mac_ipv4_toeplitz_basic_pkt["ipv4-frag"], - "action": {"save_hash": "ipv4-frag"}, - }, - { - "send_packet": 'Ether(dst="%s", src="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.1.2",frag=6)/("X"*480)' - % vf0_mac, - "action": {"check_hash_different": "ipv4-frag"}, - }, - { - "send_packet": 'Ether(dst="%s", src="68:05:CA:BB:26:E1")/IP(dst="192.168.1.1", src="192.168.0.2",frag=6)/("X"*480)' - % vf0_mac, - "action": {"check_hash_same": "ipv4-frag"}, - }, { "send_packet": mac_ipv4_toeplitz_basic_pkt["ipv4-icmp"], "action": {"save_hash": "ipv4-icmp"}, @@ -414,20 +355,6 @@ mac_ipv4_l3_dst = { % vf0_mac, "action": {"check_hash_same": "ipv4-nonfrag"}, }, - { - "send_packet": mac_ipv4_toeplitz_basic_pkt["ipv4-frag"], - "action": {"save_hash": "ipv4-frag"}, - }, - { - "send_packet": 'Ether(dst="%s", src="68:05:CA:BB:26:E0")/IP(dst="192.168.1.1", src="192.168.0.2",frag=6)/("X"*480)' - % vf0_mac, - "action": {"check_hash_different": "ipv4-frag"}, - }, - { - "send_packet": 'Ether(dst="%s", src="68:05:CA:BB:26:E1")/IP(dst="192.168.0.1", src="192.168.1.2",frag=6)/("X"*480)' - % vf0_mac, - "action": {"check_hash_same": "ipv4-frag"}, - }, { "send_packet": mac_ipv4_toeplitz_basic_pkt["ipv4-icmp"], "action": {"save_hash": "ipv4-icmp"}, @@ -495,25 +422,6 @@ mac_ipv4_all = { % vf0_mac, "action": {"check_hash_same": "ipv4-nonfrag"}, }, - { - "send_packet": mac_ipv4_toeplitz_basic_pkt["ipv4-frag"], - "action": {"save_hash": "ipv4-frag"}, - }, - { - "send_packet": 'Ether(dst="%s", src="68:05:CA:BB:26:E0")/IP(dst="192.168.1.1", src="192.168.0.2",frag=6)/("X"*480)' - % vf0_mac, - "action": {"check_hash_different": "ipv4-frag"}, - }, - { - "send_packet": 'Ether(dst="%s", src="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.1.2",frag=6)/("X"*480)' - % vf0_mac, - "action": {"check_hash_different": "ipv4-frag"}, - }, - { - "send_packet": 'Ether(dst="%s", src="68:05:CA:BB:26:E1")/IP(dst="192.168.0.1", src="192.168.0.2",frag=6)/("X"*480)' - % vf0_mac, - "action": {"check_hash_same": "ipv4-frag"}, - }, { "send_packet": mac_ipv4_toeplitz_basic_pkt["ipv4-icmp"], "action": {"save_hash": "ipv4-icmp"}, @@ -1993,20 +1901,6 @@ mac_ipv6_l2_src = { % vf0_mac, "action": {"check_hash_same": "ipv6-nonfrag"}, }, - { - "send_packet": mac_ipv6_toeplitz_basic_pkt["ipv6-frag"], - "action": {"save_hash": "ipv6-frag"}, - }, - { - "send_packet": 'Ether(dst="%s", src="68:05:CA:BB:26:E1")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrFragment()/("X"*480)' - % vf0_mac, - "action": {"check_hash_different": "ipv6-frag"}, - }, - { - "send_packet": 'Ether(dst="%s", src="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/IPv6ExtHdrFragment()/("X"*480)' - % vf0_mac, - "action": {"check_hash_same": "ipv6-frag"}, - }, { "send_packet": mac_ipv6_toeplitz_basic_pkt["ipv6-icmp"], "action": {"save_hash": "ipv6-icmp"}, @@ -2052,15 +1946,6 @@ mac_ipv6_l2_dst = { % vf0_mac, "action": {"check_hash_same": "ipv6-nonfrag"}, }, - { - "send_packet": mac_ipv6_toeplitz_basic_pkt["ipv6-frag"], - "action": {"save_hash": "ipv6-frag"}, - }, - { - "send_packet": 'Ether(dst="%s", src="68:05:CA:BB:26:E1")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2027")/IPv6ExtHdrFragment()/("X"*480)' - % vf0_mac, - "action": {"check_hash_same": "ipv6-frag"}, - }, { "send_packet": mac_ipv6_toeplitz_basic_pkt["ipv6-icmp"], "action": {"save_hash": "ipv6-icmp"}, @@ -2101,20 +1986,6 @@ mac_ipv6_l2src_l2dst = { % vf0_mac, "action": {"check_hash_same": "ipv6-nonfrag"}, }, - { - "send_packet": mac_ipv6_toeplitz_basic_pkt["ipv6-frag"], - "action": {"save_hash": "ipv6-frag"}, - }, - { - "send_packet": 'Ether(dst="%s", src="68:05:CA:BB:26:E1")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrFragment()/("X"*480)' - % vf0_mac, - "action": {"check_hash_different": "ipv6-frag"}, - }, - { - "send_packet": 'Ether(dst="%s", src="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/IPv6ExtHdrFragment()/("X"*480)' - % vf0_mac, - "action": {"check_hash_same": "ipv6-frag"}, - }, { "send_packet": mac_ipv6_toeplitz_basic_pkt["ipv6-icmp"], "action": {"save_hash": "ipv6-icmp"}, @@ -2165,20 +2036,6 @@ mac_ipv6_l3_src = { % vf0_mac, "action": {"check_hash_same": "ipv6-nonfrag"}, }, - { - "send_packet": mac_ipv6_toeplitz_basic_pkt["ipv6-frag"], - "action": {"save_hash": "ipv6-frag"}, - }, - { - "send_packet": 'Ether(dst="%s", src="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrFragment()/("X"*480)' - % vf0_mac, - "action": {"check_hash_different": "ipv6-frag"}, - }, - { - "send_packet": 'Ether(dst="%s", src="68:05:CA:BB:26:E1")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/IPv6ExtHdrFragment()/("X"*480)' - % vf0_mac, - "action": {"check_hash_same": "ipv6-frag"}, - }, { "send_packet": mac_ipv6_toeplitz_basic_pkt["ipv6-icmp"], "action": {"save_hash": "ipv6-icmp"}, @@ -2241,20 +2098,6 @@ mac_ipv6_l3_dst = { % vf0_mac, "action": {"check_hash_same": "ipv6-nonfrag"}, }, - { - "send_packet": mac_ipv6_toeplitz_basic_pkt["ipv6-frag"], - "action": {"save_hash": "ipv6-frag"}, - }, - { - "send_packet": 'Ether(dst="%s", src="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")/IPv6ExtHdrFragment()/("X"*480)' - % vf0_mac, - "action": {"check_hash_different": "ipv6-frag"}, - }, - { - "send_packet": 'Ether(dst="%s", src="68:05:CA:BB:26:E1")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrFragment()/("X"*480)' - % vf0_mac, - "action": {"check_hash_same": "ipv6-frag"}, - }, { "send_packet": mac_ipv6_toeplitz_basic_pkt["ipv6-icmp"], "action": {"save_hash": "ipv6-icmp"}, @@ -2322,25 +2165,6 @@ mac_ipv6_all = { % vf0_mac, "action": {"check_hash_same": "ipv6-nonfrag"}, }, - { - "send_packet": mac_ipv6_toeplitz_basic_pkt["ipv6-frag"], - "action": {"save_hash": "ipv6-frag"}, - }, - { - "send_packet": 'Ether(dst="%s", src="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")/IPv6ExtHdrFragment()/("X"*480)' - % vf0_mac, - "action": {"check_hash_different": "ipv6-frag"}, - }, - { - "send_packet": 'Ether(dst="%s", src="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrFragment()/("X"*480)' - % vf0_mac, - "action": {"check_hash_different": "ipv6-frag"}, - }, - { - "send_packet": 'Ether(dst="%s", src="68:05:CA:BB:26:E1")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrFragment()/("X"*480)' - % vf0_mac, - "action": {"check_hash_same": "ipv6-frag"}, - }, { "send_packet": mac_ipv6_toeplitz_basic_pkt["ipv6-icmp"], "action": {"save_hash": "ipv6-icmp"}, @@ -3748,16 +3572,6 @@ mac_ipv4_symmetric = { % vf0_mac, "action": {"check_hash_different": "ipv4-nonfrag-pre"}, }, - { - "send_packet": 'Ether(dst="%s", src="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.0.2",frag=6)/("X"*480)' - % vf0_mac, - "action": {"save_hash": "ipv4-frag-pre"}, - }, - { - "send_packet": 'Ether(dst="%s", src="68:05:CA:BB:26:E0")/IP(dst="192.168.0.2", src="192.168.0.1",frag=6)/("X"*480)' - % vf0_mac, - "action": {"check_hash_different": "ipv4-frag-pre"}, - }, { "send_packet": 'Ether(dst="%s", src="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.0.2")/ICMP()/("X"*480)' % vf0_mac, @@ -3798,16 +3612,6 @@ mac_ipv4_symmetric = { % vf0_mac, "action": {"check_hash_same": "ipv4-nonfrag"}, }, - { - "send_packet": 'Ether(dst="%s", src="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.0.2",frag=6)/("X"*480)' - % vf0_mac, - "action": {"save_hash": "ipv4-frag"}, - }, - { - "send_packet": 'Ether(dst="%s", src="68:05:CA:BB:26:E0")/IP(dst="192.168.0.2", src="192.168.0.1",frag=6)/("X"*480)' - % vf0_mac, - "action": {"check_hash_same": "ipv4-frag"}, - }, { "send_packet": 'Ether(dst="%s", src="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.0.2")/ICMP()/("X"*480)' % vf0_mac, @@ -3858,16 +3662,6 @@ mac_ipv4_symmetric = { % vf0_mac, "action": {"check_hash_different": "ipv4-nonfrag-post"}, }, - { - "send_packet": 'Ether(dst="%s", src="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.0.2",frag=6)/("X"*480)' - % vf0_mac, - "action": {"save_hash": "ipv4-frag-post"}, - }, - { - "send_packet": 'Ether(dst="%s", src="68:05:CA:BB:26:E0")/IP(dst="192.168.0.2", src="192.168.0.1",frag=6)/("X"*480)' - % vf0_mac, - "action": {"check_hash_different": "ipv4-frag-post"}, - }, { "send_packet": 'Ether(dst="%s", src="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.0.2")/ICMP()/("X"*480)' % vf0_mac, @@ -4320,16 +4114,6 @@ mac_ipv6_symmetric = { % vf0_mac, "action": {"check_hash_different": "ipv6-nonfrag-pre"}, }, - { - "send_packet": 'Ether(dst="%s", src="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrFragment()/("X"*480)' - % vf0_mac, - "action": {"save_hash": "ipv6-frag-pre"}, - }, - { - "send_packet": 'Ether(dst="%s", src="68:05:CA:BB:26:E0")/IPv6(dst="ABAB:910B:6666:3457:8295:3333:1800:2929",src="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrFragment()/("X"*480)' - % vf0_mac, - "action": {"check_hash_different": "ipv6-frag-pre"}, - }, { "send_packet": 'Ether(dst="%s", src="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/ICMP()/("X"*480)' % vf0_mac, @@ -4370,16 +4154,6 @@ mac_ipv6_symmetric = { % vf0_mac, "action": {"check_hash_same": "ipv6-nonfrag"}, }, - { - "send_packet": 'Ether(dst="%s", src="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrFragment()/("X"*480)' - % vf0_mac, - "action": {"save_hash": "ipv6-frag"}, - }, - { - "send_packet": 'Ether(dst="%s", src="68:05:CA:BB:26:E0")/IPv6(dst="ABAB:910B:6666:3457:8295:3333:1800:2929",src="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrFragment()/("X"*480)' - % vf0_mac, - "action": {"check_hash_same": "ipv6-frag"}, - }, { "send_packet": 'Ether(dst="%s", src="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/ICMP()/("X"*480)' % vf0_mac, @@ -4430,16 +4204,6 @@ mac_ipv6_symmetric = { % vf0_mac, "action": {"check_hash_different": "ipv6-nonfrag-post"}, }, - { - "send_packet": 'Ether(dst="%s", src="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrFragment()/("X"*480)' - % vf0_mac, - "action": {"save_hash": "ipv6-frag-post"}, - }, - { - "send_packet": 'Ether(dst="%s", src="68:05:CA:BB:26:E0")/IPv6(dst="ABAB:910B:6666:3457:8295:3333:1800:2929",src="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrFragment()/("X"*480)' - % vf0_mac, - "action": {"check_hash_different": "ipv6-frag-post"}, - }, { "send_packet": 'Ether(dst="%s", src="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/ICMP()/("X"*480)' % vf0_mac, From patchwork Wed May 25 11:19:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 111798 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 910B6A0551; Wed, 25 May 2022 13:19:44 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8A406427EC; Wed, 25 May 2022 13:19:44 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 6D75C400EF for ; Wed, 25 May 2022 13:19:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653477582; x=1685013582; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=u4LZI7WxszsajLbfj/w/TF7sqmd2fn/Hol5NPa3fjLU=; b=U1nx0uxl+E/uw4kiExIyUn3QV77uY0zDWVXOWYVUfYRuW7jYqwxWWT1E GU2FfovJy/CDbomkRDp0HX3DRuT0ta1wZtBQv9DzYPr/4rANBCBtxmwnL YLTR7C7WmQgmNT6HnqAY54MegoS+5lDsgfyk6i+S2SvN2JNyx8A6KX6wC xc3s9iaslfMayBoQUNoc7M9eSoZTV1p3KJ/7EturrymwTHkKJTFa4ckMa et9q/el/1Q/LTU8mh48TwPUZhDJFNMVMz0ggmP3WcPxJofx+dKirGJPUt 0DLT8cVpLS+fZamiednL6pSk8H0+BYGW+Fw51b2XPQ3mZZtpHvYpPWg/j w==; X-IronPort-AV: E=McAfee;i="6400,9594,10357"; a="253661059" X-IronPort-AV: E=Sophos;i="5.91,250,1647327600"; d="scan'208";a="253661059" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 May 2022 04:19:41 -0700 X-IronPort-AV: E=Sophos;i="5.91,250,1647327600"; d="scan'208";a="548972241" Received: from unknown (HELO daily-regression-131.intel.com) ([10.239.251.131]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 May 2022 04:19:39 -0700 From: Jiale Song To: dts@dpdk.org Cc: Jiale Song Subject: [dts] [PATCH V2 2/8] tests/ice_advanced_rss_pppoe: remove ip fragment packets Date: Wed, 25 May 2022 19:19:28 +0800 Message-Id: <20220525111934.106784-2-songx.jiale@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220525111934.106784-1-songx.jiale@intel.com> References: <20220525111934.106784-1-songx.jiale@intel.com> MIME-Version: 1.0 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 modify the script to adapt to the change of dpdk function. remove ip fragment packets, dpdk no longer supports ip fragment default RSS. According to dpdk commit cc46bab5968 ("net/ice: remove support for IP fragment default RSS"). Signed-off-by: Jiale Song --- .../ice_advanced_rss_pppoe_test_plan.rst | 240 --------- tests/TestSuite_ice_advanced_rss_pppoe.py | 464 +----------------- 2 files changed, 2 insertions(+), 702 deletions(-) diff --git a/test_plans/ice_advanced_rss_pppoe_test_plan.rst b/test_plans/ice_advanced_rss_pppoe_test_plan.rst index 05dd82b6..a8633f4b 100644 --- a/test_plans/ice_advanced_rss_pppoe_test_plan.rst +++ b/test_plans/ice_advanced_rss_pppoe_test_plan.rst @@ -487,8 +487,6 @@ packets mismatched the pattern:: sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/Raw("x"*80)],iface="ens786f0") sendp([Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21")/Raw("x"*80)],iface="ens786f0") - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - sendp([Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", frag=5)/Raw("x"*80)],iface="ens786f0") Subcase 1: MAC_PPPOE_IPV4_PAY_L2_SRC_ONLY ----------------------------------------- @@ -531,21 +529,6 @@ Subcase 1: MAC_PPPOE_IPV4_PAY_L2_SRC_ONLY check the hash values are the same as the first packet. - * MAC_PPPOE_IPV4_FRAG packet:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)],iface="ens786f0") - - change the field [Source MAC], send packets:: - - sendp([Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)],iface="ens786f0") - - check the hash values are different from the first packet. - change other fields, send packets:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:99")/PPPoE(sessionid=4)/PPP(proto=0x0021)/IP(src="192.168.1.3", dst="192.168.1.5", frag=3)/Raw("x"*80)],iface="ens786f0") - - check the hash values are the same as the first packet. - 4. send packets mismatched the pattern, check the hash values not exist. 5. destroy the rule:: @@ -597,21 +580,6 @@ Subcase 2: MAC_PPPOE_IPV4_PAY_L2_DST_ONLY check the hash values are the same as the first packet. - * MAC_PPPOE_IPV4_FRAG packet:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)],iface="ens786f0") - - change the field [Dest MAC], send packets:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:99")/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)],iface="ens786f0") - - check the hash values are different from the first packet. - change other fields, send packets:: - - sendp([Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:66")/PPPoE(sessionid=4)/PPP(proto=0x0021)/IP(src="192.168.1.3", dst="192.168.1.5", frag=3)/Raw("x"*80)],iface="ens786f0") - - check the hash values are the same as the first packet. - 4. send packets mismatched the pattern, check the hash values not exist. 5. destroy the rule:: @@ -665,23 +633,6 @@ Subcase 3: MAC_PPPOE_IPV4_PAY_L2_SRC_ONLY_L2_DST_ONLY check the hash values are the same as the first packet. - * MAC_PPPOE_IPV4_FRAG packet:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)],iface="ens786f0") - - change the fields [Source MAC][Dest MAC], send packets:: - - sendp([Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)],iface="ens786f0") - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:99")/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)],iface="ens786f0") - sendp([Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:99")/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)],iface="ens786f0") - - check the hash values are different from the first packet. - change other fields, send packets:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=7)/PPP(proto=0x0021)/IP(src="192.168.1.3", dst="192.168.1.5", frag=3)/Raw("x"*80)],iface="ens786f0") - - check the hash values are the same as the first packet. - 4. send packets mismatched the pattern, check the hash values not exist. 5. destroy the rule:: @@ -733,21 +684,6 @@ Subcase 4: MAC_PPPOE_IPV4_PAY_L3_SRC_ONLY check the hash values are the same as the first packet. - * MAC_PPPOE_IPV4_FRAG packet:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)],iface="ens786f0") - - change the field [Source IP], send packets:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src="192.168.1.3", dst="192.168.1.2", frag=5)/Raw("x"*80)],iface="ens786f0") - - check the hash values are different from the first packet. - change other fields, send packets:: - - sendp([Ether(src="00:11:22:33:44:54", dst="10:22:33:44:55:99")/PPPoE(sessionid=7)/PPP(proto=0x0021)/IP(src="192.168.1.1", dst="192.168.1.7", frag=3)/Raw("x"*80)],iface="ens786f0") - - check the hash values are the same as the first packet. - 4. send packets mismatched the pattern, check the hash values not exist. 5. destroy the rule:: @@ -799,21 +735,6 @@ Subcase 5: MAC_PPPOE_IPV4_PAY_L3_DST_ONLY check the hash values are the same as the first packet. - * MAC_PPPOE_IPV4_FRAG packet:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)],iface="ens786f0") - - change the field [Dest IP], send packets:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src="192.168.1.1", dst="192.168.1.3", frag=5)/Raw("x"*80)],iface="ens786f0") - - check the hash values are different from the first packet. - change other fields, send packets:: - - sendp([Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:99")/PPPoE(sessionid=7)/PPP(proto=0x0021)/IP(src="192.168.1.7", dst="192.168.1.2", frag=3)/Raw("x"*80)],iface="ens786f0") - - check the hash values are the same as the first packet. - 4. send packets mismatched the pattern, check the hash values not exist. 5. destroy the rule:: @@ -867,23 +788,6 @@ Subcase 6: MAC_PPPOE_IPV4_PAY_L3_SRC_ONLY_L3_DST_ONLY check the hash values are the same as the first packet. - * MAC_PPPOE_IPV4_FRAG packet:: - - sendp([Ether(src="00:11:22:33:44:55",dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)],iface="ens786f0") - - change the fields [Source IP][Dest IP], send packets:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src="192.168.1.3", dst="192.168.1.2", frag=5)/Raw("x"*80)],iface="ens786f0") - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src="192.168.1.1", dst="192.168.1.7", frag=5)/Raw("x"*80)],iface="ens786f0") - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src="192.168.1.3", dst="192.168.1.7", frag=5)/Raw("x"*80)],iface="ens786f0") - - check the hash values are different from the first packet. - change other fields, send packets:: - - sendp([Ether(src="00:11:22:33:44:53",dst="10:22:33:44:55:99")/PPPoE(sessionid=7)/PPP(proto=0x0021)/IP(src="192.168.1.1", dst="192.168.1.2", frag=3)/Raw("x"*80)],iface="ens786f0") - - check the hash values are the same as the first packet. - 4. send packets mismatched the pattern, check the hash values not exist. 5. destroy the rule:: @@ -2223,9 +2127,7 @@ Test case: MAC_PPPOE_IPV6_PAY packets mismatched the pattern:: sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src="192.168.1.1", dst="192.168.1.2")/Raw("x"*80)],iface="ens786f0") - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)],iface="ens786f0") sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/Raw("x"*80)],iface="ens786f0") - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") Subcase 1: MAC_PPPOE_IPV6_PAY_L2_SRC_ONLY ----------------------------------------- @@ -2268,21 +2170,6 @@ Subcase 1: MAC_PPPOE_IPV6_PAY_L2_SRC_ONLY check the hash values are the same as the first packet. - * MAC_PPPOE_IPV6_FRAG packet:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - - change the field [Source MAC], send packets:: - - sendp([Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - - check the hash value is different from the first packet. - change other fields, send packets:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:99")/PPPoE(sessionid=7)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1537", dst="CDCD:910A:2222:5498:8475:1111:3900:2023")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - - check the hash values are the same as the first packet. - 4. send packets mismatched the pattern, check the hash values not exist. 5. destroy the rule:: @@ -2334,21 +2221,6 @@ Subcase 2: MAC_PPPOE_IPV6_PAY_L2_DST_ONLY check the hash values are the same as the first packet. - * MAC_PPPOE_IPV6_FRAG packet:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - - change the field [Dest MAC], send packets:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:99")/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - - check the hash value is different from the first packet. - change other fields, send packets:: - - sendp([Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:66")/PPPoE(sessionid=7)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1537", dst="CDCD:910A:2222:5498:8475:1111:3900:2023")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - - check the hash values are the same as the first packet. - 4. send packets mismatched the pattern, check the hash values not exist. 5. destroy the rule:: @@ -2402,23 +2274,6 @@ Subcase 3: MAC_PPPOE_IPV6_PAY_L2_SRC_ONLY_L2_DST_ONLY check the hash values are the same as the first packet. - * MAC_PPPOE_IPV6_FRAG packet:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - - change the field [Source MAC][Dest MAC], send packets:: - - sendp([Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:99")/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - sendp([Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:99")/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - - check the hash value is different from the first packet. - change other fields, send packets:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=7)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1537", dst="CDCD:910A:2222:5498:8475:1111:3900:2023")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - - check the hash values are the same as the first packet. - 4. send packets mismatched the pattern, check the hash values not exist. 5. destroy the rule:: @@ -2470,21 +2325,6 @@ Subcase 4: MAC_PPPOE_IPV6_PAY_L3_SRC_ONLY check the hash values are the same as the first packet. - * MAC_PPPOE_IPV6_FRAG packet:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - - change the field [Source IP], send packets:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1537", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - - check the hash value is different from the first packet. - change other fields, send packets:: - - sendp([Ether(src="00:11:22:33:44:54", dst="10:22:33:44:55:99")/PPPoE(sessionid=7)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2023")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - - check the hash values are the same as the first packet. - 4. send packets mismatched the pattern, check the hash values not exist. 5. destroy the rule:: @@ -2536,21 +2376,6 @@ Subcase 5: MAC_PPPOE_IPV6_PAY_L3_DST_ONLY check the hash values are the same as the first packet. - * MAC_PPPOE_IPV6_FRAG packet:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - - change the field [Dest IP], send packets:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2023")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - - check the hash values are different from the first packet. - change other fields, send packets:: - - sendp([Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:99")/PPPoE(sessionid=7)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1537", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - - check the hash values are the same as the first packet. - 4. send packets mismatched the pattern, check the hash values not exist. 5. destroy the rule:: @@ -2604,23 +2429,6 @@ Subcase 6: MAC_PPPOE_IPV6_PAY_L3_SRC_ONLY_L3_DST_ONLY check the hash values are the same as the first packet. - * MAC_PPPOE_IPV6_FRAG packet:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - - change the fields [Source IP][Dest IP], send packets:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1537", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1537", dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - - check the hash values are different from the first packet. - change other fields, send packets:: - - sendp([Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:99")/PPPoE(sessionid=7)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - - check the hash values are the same as the first packet. - 4. send packets mismatched the pattern, check the hash values not exist. 5. destroy the rule:: @@ -4150,16 +3958,6 @@ Test case: MAC_PPPOE_IPV4_PAY_symmetric check the hash value is not changed. - * MAC_PPPOE_IPV4_FRAG packet:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)],iface="ens786f0") - - swap the values of [Source IP] and [Dest IP], send the packet:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src="192.168.1.2", dst="192.168.1.1", frag=5)/Raw("x"*80)],iface="ens786f0") - - check the hash value is not changed. - 4. send packets mismatched the rule, and swap the [Source IP] and [Dest IP] * MAC_PPPOE_IPV6_PAY packet:: @@ -4169,13 +3967,6 @@ Test case: MAC_PPPOE_IPV4_PAY_symmetric check the hash values of the two packets are different. - * MAC_PPPOE_IPV6_FRAG packet:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:2022", dst="CDCD:910A:2222:5498:8475:1111:3900:1536")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - - check the hash values of the two packets are different. - * MAC_IPV4_PAY packet:: sendp([Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21")/Raw("x"*80)],iface="ens786f0") @@ -4183,13 +3974,6 @@ Test case: MAC_PPPOE_IPV4_PAY_symmetric check the hash values of the two packets are different. - * MAC_IPV4_FRAG packet:: - - sendp([Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", frag=5)/Raw("x"*80)],iface="ens786f0") - sendp([Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.21",dst="192.168.0.20", frag=5)/Raw("x"*80)],iface="ens786f0") - - check the hash values of the two packets are different. - 5. destroy the rule:: testpmd> flow destroy 0 rule 0 @@ -4404,16 +4188,6 @@ Test case: MAC_PPPOE_IPV6_PAY_symmetric check the hash value is not changed. - * MAC_PPPOE_IPV6_FRAG packet:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - - swap the values of [Source IP] and [Dest IP], send the packet:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:2022", dst="CDCD:910A:2222:5498:8475:1111:3900:1536")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - - check the hash value is not changed. - 4. send packets mismatched the rule, and swap the values of [Source IP] and [Dest IP] * MAC_PPPOE_IPV4_PAY packet:: @@ -4423,13 +4197,6 @@ Test case: MAC_PPPOE_IPV6_PAY_symmetric check the hash values of the two packets are different. - * MAC_PPPOE_IPV4_FRAG packet:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)],iface="ens786f0") - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src="192.168.1.2", dst="192.168.1.1", frag=5)/Raw("x"*80)],iface="ens786f0") - - check the hash values of the two packets are different. - * MAC_IPV6_PAY packet:: sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/Raw("x"*80)],iface="ens786f0") @@ -4437,13 +4204,6 @@ Test case: MAC_PPPOE_IPV6_PAY_symmetric check the hash values of the two packets are different. - * MAC_IPV6_FRAG packet:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:2022", dst="CDCD:910A:2222:5498:8475:1111:3900:1536")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - - check the hash values of the two packets are different. - 5. destroy the rule:: testpmd> flow destroy 0 rule 0 diff --git a/tests/TestSuite_ice_advanced_rss_pppoe.py b/tests/TestSuite_ice_advanced_rss_pppoe.py index 229cc311..968164a2 100644 --- a/tests/TestSuite_ice_advanced_rss_pppoe.py +++ b/tests/TestSuite_ice_advanced_rss_pppoe.py @@ -385,8 +385,6 @@ mac_pppoe_ipv4_pay_packets = { "mismatch": [ 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/Raw("x"*80)', 'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21")/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)', - 'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", frag=5)/Raw("x"*80)', ] } @@ -398,14 +396,6 @@ mac_pppoe_ipv4_pay = [ 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=7)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.3", dst="192.168.1.5")/Raw("x"*80)', ] -mac_pppoe_ipv4_frag = [ - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:99")/PPPoE(sessionid=4)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.3", dst="192.168.1.5", frag=3)/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:99")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=7)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.3", dst="192.168.1.5", frag=3)/Raw("x"*80)', -] - mac_pppoe_ipv4_pay_src_test = [ { "send_packet": mac_pppoe_ipv4_pay[0], @@ -419,18 +409,6 @@ mac_pppoe_ipv4_pay_src_test = [ "send_packet": mac_pppoe_ipv4_pay[2], "action": {"check_hash_same", "mac_pppoe_ipv4_pay"}, }, - { - "send_packet": mac_pppoe_ipv4_frag[0], - "action": {"save_hash": "mac_pppoe_ipv4_frag"}, - }, - { - "send_packet": mac_pppoe_ipv4_frag[1], - "action": {"check_hash_different": "mac_pppoe_ipv4_frag"}, - }, - { - "send_packet": mac_pppoe_ipv4_frag[2], - "action": {"check_hash_same", "mac_pppoe_ipv4_frag"}, - }, { "send_packet": [i for i in mac_pppoe_ipv4_pay_packets["mismatch"]], "action": "check_no_hash", @@ -450,18 +428,6 @@ mac_pppoe_ipv4_pay_dst_test = [ "send_packet": mac_pppoe_ipv4_pay[1], "action": {"check_hash_same", "mac_pppoe_ipv4_pay"}, }, - { - "send_packet": mac_pppoe_ipv4_frag[0], - "action": {"save_hash": "mac_pppoe_ipv4_frag"}, - }, - { - "send_packet": mac_pppoe_ipv4_frag[2], - "action": {"check_hash_different": "mac_pppoe_ipv4_frag"}, - }, - { - "send_packet": mac_pppoe_ipv4_frag[1], - "action": {"check_hash_same", "mac_pppoe_ipv4_frag"}, - }, { "send_packet": [i for i in mac_pppoe_ipv4_pay_packets["mismatch"]], "action": "check_no_hash", @@ -489,26 +455,6 @@ mac_pppoe_ipv4_pay_src_dst_test = [ "send_packet": mac_pppoe_ipv4_pay[-1], "action": {"check_hash_same", "mac_pppoe_ipv4_pay"}, }, - { - "send_packet": mac_pppoe_ipv4_frag[0], - "action": {"save_hash": "mac_pppoe_ipv4_frag"}, - }, - { - "send_packet": mac_pppoe_ipv4_frag[1], - "action": {"check_hash_different": "mac_pppoe_ipv4_frag"}, - }, - { - "send_packet": mac_pppoe_ipv4_frag[2], - "action": {"check_hash_different": "mac_pppoe_ipv4_frag"}, - }, - { - "send_packet": mac_pppoe_ipv4_frag[3], - "action": {"check_hash_different": "mac_pppoe_ipv4_frag"}, - }, - { - "send_packet": mac_pppoe_ipv4_frag[-1], - "action": {"check_hash_same", "mac_pppoe_ipv4_frag"}, - }, { "send_packet": [i for i in mac_pppoe_ipv4_pay_packets["mismatch"]], "action": "check_no_hash", @@ -518,7 +464,7 @@ mac_pppoe_ipv4_pay_src_dst_test = [ mac_pppoe_ipv4_pay_post_test = ( [ { - "send_packet": [item for item in mac_pppoe_ipv4_pay + mac_pppoe_ipv4_frag], + "send_packet": [item for item in mac_pppoe_ipv4_pay], "action": "check_no_hash", }, ], @@ -554,11 +500,6 @@ mac_pppoe_ipv4_pay_l3_src_only_packets = { 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.3", dst="192.168.1.2")/Raw("x"*80)', 'Ether(src="00:11:22:33:44:54", dst="10:22:33:44:55:99")/PPPoE(sessionid=7)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.7")/Raw("x"*80)', ], - "mac_pppoe_ipv4_frag": [ - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.3", dst="192.168.1.2", frag=5)/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:54", dst="10:22:33:44:55:99")/PPPoE(sessionid=7)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.7", frag=3)/Raw("x"*80)', - ], } mac_pppoe_ipv4_pay_l3_src_only = { @@ -584,24 +525,6 @@ mac_pppoe_ipv4_pay_l3_src_only = { ], "action": {"check_hash_same", "mac_pppoe_ipv4_pay"}, }, - { - "send_packet": mac_pppoe_ipv4_pay_l3_src_only_packets[ - "mac_pppoe_ipv4_frag" - ][0], - "action": {"save_hash": "mac_pppoe_ipv4_frag"}, - }, - { - "send_packet": mac_pppoe_ipv4_pay_l3_src_only_packets[ - "mac_pppoe_ipv4_frag" - ][1], - "action": {"check_hash_different": "mac_pppoe_ipv4_frag"}, - }, - { - "send_packet": mac_pppoe_ipv4_pay_l3_src_only_packets[ - "mac_pppoe_ipv4_frag" - ][2], - "action": {"check_hash_same", "mac_pppoe_ipv4_frag"}, - }, { "send_packet": mac_pppoe_ipv4_pay_packets["mismatch"], "action": "check_no_hash", @@ -609,8 +532,7 @@ mac_pppoe_ipv4_pay_l3_src_only = { ], "post-test": [ { - "send_packet": mac_pppoe_ipv4_pay_l3_src_only_packets["mac_pppoe_ipv4_pay"] - + mac_pppoe_ipv4_pay_l3_src_only_packets["mac_pppoe_ipv4_frag"], + "send_packet": mac_pppoe_ipv4_pay_l3_src_only_packets["mac_pppoe_ipv4_pay"], "action": "check_no_hash", }, ], @@ -622,11 +544,6 @@ mac_pppoe_ipv4_pay_l3_dst_only_packets = { 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.3")/Raw("x"*80)', 'Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:99")/PPPoE(sessionid=7)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.7", dst="192.168.1.2")/Raw("x"*80)', ], - "mac_pppoe_ipv4_frag": [ - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.3", frag=5)/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:99")/PPPoE(sessionid=7)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.7", dst="192.168.1.2", frag=3)/Raw("x"*80)', - ], } mac_pppoe_ipv4_pay_l3_dst_only = { @@ -652,24 +569,6 @@ mac_pppoe_ipv4_pay_l3_dst_only = { ], "action": {"check_hash_same", "mac_pppoe_ipv4_pay"}, }, - { - "send_packet": mac_pppoe_ipv4_pay_l3_dst_only_packets[ - "mac_pppoe_ipv4_frag" - ][0], - "action": {"save_hash": "mac_pppoe_ipv4_frag"}, - }, - { - "send_packet": mac_pppoe_ipv4_pay_l3_dst_only_packets[ - "mac_pppoe_ipv4_frag" - ][1], - "action": {"check_hash_different": "mac_pppoe_ipv4_frag"}, - }, - { - "send_packet": mac_pppoe_ipv4_pay_l3_dst_only_packets[ - "mac_pppoe_ipv4_frag" - ][2], - "action": {"check_hash_same", "mac_pppoe_ipv4_frag"}, - }, { "send_packet": [i for i in mac_pppoe_ipv4_pay_packets["mismatch"]], "action": "check_no_hash", @@ -680,7 +579,6 @@ mac_pppoe_ipv4_pay_l3_dst_only = { "send_packet": [ i for i in mac_pppoe_ipv4_pay_l3_dst_only_packets["mac_pppoe_ipv4_pay"] - + mac_pppoe_ipv4_pay_l3_dst_only_packets["mac_pppoe_ipv4_frag"] ], "action": "check_no_hash", }, @@ -695,13 +593,6 @@ mac_pppoe_ipv4_pay_l3_src_only_l3_dst_only_packets = { 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.3", dst="192.168.1.7")/Raw("x"*80)', 'Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:99")/PPPoE(sessionid=7)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.2")/Raw("x"*80)', ], - "mac_pppoe_ipv4_frag": [ - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.3", dst="192.168.1.2", frag=5)/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.7", frag=5)/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.3", dst="192.168.1.7", frag=5)/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:99")/PPPoE(sessionid=7)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.2", frag=3)/Raw("x"*80)', - ], } mac_pppoe_ipv4_pay_l3_src_only_l3_dst_only = { @@ -739,36 +630,6 @@ mac_pppoe_ipv4_pay_l3_src_only_l3_dst_only = { ][-1], "action": {"check_hash_same", "mac_pppoe_ipv4_pay"}, }, - { - "send_packet": mac_pppoe_ipv4_pay_l3_src_only_l3_dst_only_packets[ - "mac_pppoe_ipv4_frag" - ][0], - "action": {"save_hash": "mac_pppoe_ipv4_frag"}, - }, - { - "send_packet": mac_pppoe_ipv4_pay_l3_src_only_l3_dst_only_packets[ - "mac_pppoe_ipv4_frag" - ][1], - "action": {"check_hash_different": "mac_pppoe_ipv4_frag"}, - }, - { - "send_packet": mac_pppoe_ipv4_pay_l3_src_only_l3_dst_only_packets[ - "mac_pppoe_ipv4_frag" - ][2], - "action": {"check_hash_different": "mac_pppoe_ipv4_frag"}, - }, - { - "send_packet": mac_pppoe_ipv4_pay_l3_src_only_l3_dst_only_packets[ - "mac_pppoe_ipv4_frag" - ][3], - "action": {"check_hash_different": "mac_pppoe_ipv4_frag"}, - }, - { - "send_packet": mac_pppoe_ipv4_pay_l3_src_only_l3_dst_only_packets[ - "mac_pppoe_ipv4_frag" - ][-1], - "action": {"check_hash_same", "mac_pppoe_ipv4_frag"}, - }, { "send_packet": [i for i in mac_pppoe_ipv4_pay_packets["mismatch"]], "action": "check_no_hash", @@ -781,9 +642,6 @@ mac_pppoe_ipv4_pay_l3_src_only_l3_dst_only = { for i in mac_pppoe_ipv4_pay_l3_src_only_l3_dst_only_packets[ "mac_pppoe_ipv4_pay" ] - + mac_pppoe_ipv4_pay_l3_src_only_l3_dst_only_packets[ - "mac_pppoe_ipv4_frag" - ] ], "action": "check_no_hash", }, @@ -2295,9 +2153,7 @@ mac_pppoe_ipv4_tcp_pay_ipv4 = { mac_pppoe_ipv6_pay_packets = { "mismatch": [ 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.2")/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)', 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)', ] } @@ -2307,11 +2163,6 @@ mac_pppoe_ipv6_pay_l2_src_only_packets = { 'Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/Raw("x"*80)', 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:99")/PPPoE(sessionid=7)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1537", dst="CDCD:910A:2222:5498:8475:1111:3900:2023")/Raw("x"*80)', ], - "mac_pppoe_ipv6_frag": [ - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:99")/PPPoE(sessionid=7)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1537", dst="CDCD:910A:2222:5498:8475:1111:3900:2023")/IPv6ExtHdrFragment()/Raw("x"*80)', - ], } mac_pppoe_ipv6_pay_l2_src_only = { @@ -2337,37 +2188,11 @@ mac_pppoe_ipv6_pay_l2_src_only = { ], "action": {"check_hash_same", "mac_pppoe_ipv6_pay"}, }, - { - "send_packet": mac_pppoe_ipv6_pay_l2_src_only_packets[ - "mac_pppoe_ipv6_frag" - ][0], - "action": {"save_hash": "mac_pppoe_ipv6_frag"}, - }, - { - "send_packet": mac_pppoe_ipv6_pay_l2_src_only_packets[ - "mac_pppoe_ipv6_frag" - ][1], - "action": {"check_hash_different": "mac_pppoe_ipv6_frag"}, - }, - { - "send_packet": mac_pppoe_ipv6_pay_l2_src_only_packets[ - "mac_pppoe_ipv6_frag" - ][2], - "action": {"check_hash_same", "mac_pppoe_ipv6_frag"}, - }, { "send_packet": [i for i in mac_pppoe_ipv6_pay_packets["mismatch"]], "action": "check_no_hash", }, ], - "post-test": [ - { - "send_packet": [ - i for i in mac_pppoe_ipv6_pay_l2_src_only_packets["mac_pppoe_ipv6_frag"] - ], - "action": "check_no_hash", - }, - ], } mac_pppoe_ipv6_pay_l2_dst_only_packets = { @@ -2376,11 +2201,6 @@ mac_pppoe_ipv6_pay_l2_dst_only_packets = { 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:99")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/Raw("x"*80)', 'Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:66")/PPPoE(sessionid=7)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1537", dst="CDCD:910A:2222:5498:8475:1111:3900:2023")/Raw("x"*80)', ], - "mac_pppoe_ipv6_frag": [ - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:99")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:66")/PPPoE(sessionid=7)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1537", dst="CDCD:910A:2222:5498:8475:1111:3900:2023")/IPv6ExtHdrFragment()/Raw("x"*80)', - ], } mac_pppoe_ipv6_pay_l2_dst_only = { @@ -2406,37 +2226,11 @@ mac_pppoe_ipv6_pay_l2_dst_only = { ], "action": {"check_hash_same", "mac_pppoe_ipv6_pay"}, }, - { - "send_packet": mac_pppoe_ipv6_pay_l2_dst_only_packets[ - "mac_pppoe_ipv6_frag" - ][0], - "action": {"save_hash": "mac_pppoe_ipv6_frag"}, - }, - { - "send_packet": mac_pppoe_ipv6_pay_l2_dst_only_packets[ - "mac_pppoe_ipv6_frag" - ][1], - "action": {"check_hash_different": "mac_pppoe_ipv6_frag"}, - }, - { - "send_packet": mac_pppoe_ipv6_pay_l2_dst_only_packets[ - "mac_pppoe_ipv6_frag" - ][2], - "action": {"check_hash_same", "mac_pppoe_ipv6_frag"}, - }, { "send_packet": [i for i in mac_pppoe_ipv6_pay_packets["mismatch"]], "action": "check_no_hash", }, ], - "post-test": [ - { - "send_packet": [ - i for i in mac_pppoe_ipv6_pay_l2_dst_only_packets["mac_pppoe_ipv6_frag"] - ], - "action": "check_no_hash", - }, - ], } mac_pppoe_ipv6_pay_l2_src_only_l2_dst_only_packets = { @@ -2447,13 +2241,6 @@ mac_pppoe_ipv6_pay_l2_src_only_l2_dst_only_packets = { 'Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:99")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/Raw("x"*80)', 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=7)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1537", dst="CDCD:910A:2222:5498:8475:1111:3900:2023")/Raw("x"*80)', ], - "mac_pppoe_ipv6_frag": [ - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:99")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:99")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=7)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1537", dst="CDCD:910A:2222:5498:8475:1111:3900:2023")/IPv6ExtHdrFragment()/Raw("x"*80)', - ], } mac_pppoe_ipv6_pay_l2_src_only_l2_dst_only = { @@ -2491,52 +2278,11 @@ mac_pppoe_ipv6_pay_l2_src_only_l2_dst_only = { ][-1], "action": {"check_hash_same", "mac_pppoe_ipv6_pay"}, }, - { - "send_packet": mac_pppoe_ipv6_pay_l2_src_only_l2_dst_only_packets[ - "mac_pppoe_ipv6_frag" - ][0], - "action": {"save_hash": "mac_pppoe_ipv6_frag"}, - }, - { - "send_packet": mac_pppoe_ipv6_pay_l2_src_only_l2_dst_only_packets[ - "mac_pppoe_ipv6_frag" - ][1], - "action": {"check_hash_different": "mac_pppoe_ipv6_frag"}, - }, - { - "send_packet": mac_pppoe_ipv6_pay_l2_src_only_l2_dst_only_packets[ - "mac_pppoe_ipv6_frag" - ][2], - "action": {"check_hash_different": "mac_pppoe_ipv6_frag"}, - }, - { - "send_packet": mac_pppoe_ipv6_pay_l2_src_only_l2_dst_only_packets[ - "mac_pppoe_ipv6_frag" - ][3], - "action": {"check_hash_different": "mac_pppoe_ipv6_frag"}, - }, - { - "send_packet": mac_pppoe_ipv6_pay_l2_src_only_l2_dst_only_packets[ - "mac_pppoe_ipv6_frag" - ][-1], - "action": {"check_hash_same", "mac_pppoe_ipv6_frag"}, - }, { "send_packet": [i for i in mac_pppoe_ipv6_pay_packets["mismatch"]], "action": "check_no_hash", }, ], - "post-test": [ - { - "send_packet": [ - i - for i in mac_pppoe_ipv6_pay_l2_src_only_l2_dst_only_packets[ - "mac_pppoe_ipv6_frag" - ] - ], - "action": "check_no_hash", - }, - ], } mac_pppoe_ipv6_pay_l3_src_only_packets = { @@ -2545,11 +2291,6 @@ mac_pppoe_ipv6_pay_l3_src_only_packets = { 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1537", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/Raw("x"*80)', 'Ether(src="00:11:22:33:44:54", dst="10:22:33:44:55:99")/PPPoE(sessionid=7)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2023")/Raw("x"*80)', ], - "mac_pppoe_ipv6_frag": [ - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1537", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:54", dst="10:22:33:44:55:99")/PPPoE(sessionid=7)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2023")/IPv6ExtHdrFragment()/Raw("x"*80)', - ], } mac_pppoe_ipv6_pay_l3_src_only = { @@ -2575,37 +2316,11 @@ mac_pppoe_ipv6_pay_l3_src_only = { ], "action": {"check_hash_same", "mac_pppoe_ipv6_pay"}, }, - { - "send_packet": mac_pppoe_ipv6_pay_l3_src_only_packets[ - "mac_pppoe_ipv6_frag" - ][0], - "action": {"save_hash": "mac_pppoe_ipv6_frag"}, - }, - { - "send_packet": mac_pppoe_ipv6_pay_l3_src_only_packets[ - "mac_pppoe_ipv6_frag" - ][1:-1], - "action": {"check_hash_different": "mac_pppoe_ipv6_frag"}, - }, - { - "send_packet": mac_pppoe_ipv6_pay_l3_src_only_packets[ - "mac_pppoe_ipv6_frag" - ][-1], - "action": {"check_hash_same", "mac_pppoe_ipv6_frag"}, - }, { "send_packet": [i for i in mac_pppoe_ipv6_pay_packets["mismatch"]], "action": "check_no_hash", }, ], - "post-test": [ - { - "send_packet": [ - i for i in mac_pppoe_ipv6_pay_l3_src_only_packets["mac_pppoe_ipv6_frag"] - ], - "action": "check_no_hash", - }, - ], } mac_pppoe_ipv6_pay_l3_dst_only_packets = { @@ -2614,11 +2329,6 @@ mac_pppoe_ipv6_pay_l3_dst_only_packets = { 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2023")/Raw("x"*80)', 'Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:99")/PPPoE(sessionid=7)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1537", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/Raw("x"*80)', ], - "mac_pppoe_ipv6_frag": [ - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2023")/IPv6ExtHdrFragment()/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:99")/PPPoE(sessionid=7)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1537", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)', - ], } mac_pppoe_ipv6_pay_l3_dst_only = { @@ -2644,37 +2354,11 @@ mac_pppoe_ipv6_pay_l3_dst_only = { ], "action": {"check_hash_same", "mac_pppoe_ipv6_pay"}, }, - { - "send_packet": mac_pppoe_ipv6_pay_l3_dst_only_packets[ - "mac_pppoe_ipv6_frag" - ][0], - "action": {"save_hash": "mac_pppoe_ipv6_frag"}, - }, - { - "send_packet": mac_pppoe_ipv6_pay_l3_dst_only_packets[ - "mac_pppoe_ipv6_frag" - ][1:-1], - "action": {"check_hash_different": "mac_pppoe_ipv6_frag"}, - }, - { - "send_packet": mac_pppoe_ipv6_pay_l3_dst_only_packets[ - "mac_pppoe_ipv6_frag" - ][-1], - "action": {"check_hash_same", "mac_pppoe_ipv6_frag"}, - }, { "send_packet": [i for i in mac_pppoe_ipv6_pay_packets["mismatch"]], "action": "check_no_hash", }, ], - "post-test": [ - { - "send_packet": [ - i for i in mac_pppoe_ipv6_pay_l3_dst_only_packets["mac_pppoe_ipv6_frag"] - ], - "action": "check_no_hash", - }, - ], } mac_pppoe_ipv6_pay_l3_src_only_l3_dst_only_packets = { @@ -2685,13 +2369,6 @@ mac_pppoe_ipv6_pay_l3_src_only_l3_dst_only_packets = { 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1537", dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/Raw("x"*80)', 'Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:99")/PPPoE(sessionid=7)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/Raw("x"*80)', ], - "mac_pppoe_ipv6_frag": [ - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1537", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/IPv6ExtHdrFragment()/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1537", dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/IPv6ExtHdrFragment()/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:99")/PPPoE(sessionid=7)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)', - ], } mac_pppoe_ipv6_pay_l3_src_only_l3_dst_only = { @@ -2729,52 +2406,11 @@ mac_pppoe_ipv6_pay_l3_src_only_l3_dst_only = { ][-1], "action": {"check_hash_same", "mac_pppoe_ipv6_pay"}, }, - { - "send_packet": mac_pppoe_ipv6_pay_l3_src_only_l3_dst_only_packets[ - "mac_pppoe_ipv6_frag" - ][0], - "action": {"save_hash": "mac_pppoe_ipv6_frag"}, - }, - { - "send_packet": mac_pppoe_ipv6_pay_l3_src_only_l3_dst_only_packets[ - "mac_pppoe_ipv6_frag" - ][1], - "action": {"check_hash_different": "mac_pppoe_ipv6_frag"}, - }, - { - "send_packet": mac_pppoe_ipv6_pay_l3_src_only_l3_dst_only_packets[ - "mac_pppoe_ipv6_frag" - ][2], - "action": {"check_hash_different": "mac_pppoe_ipv6_frag"}, - }, - { - "send_packet": mac_pppoe_ipv6_pay_l3_src_only_l3_dst_only_packets[ - "mac_pppoe_ipv6_frag" - ][3], - "action": {"check_hash_different": "mac_pppoe_ipv6_frag"}, - }, - { - "send_packet": mac_pppoe_ipv6_pay_l3_src_only_l3_dst_only_packets[ - "mac_pppoe_ipv6_frag" - ][-1], - "action": {"check_hash_same", "mac_pppoe_ipv6_frag"}, - }, { "send_packet": [i for i in mac_pppoe_ipv6_pay_packets["mismatch"]], "action": "check_no_hash", }, ], - "post-test": [ - { - "send_packet": [ - i - for i in mac_pppoe_ipv6_pay_l3_src_only_l3_dst_only_packets[ - "mac_pppoe_ipv6_frag" - ] - ], - "action": "check_no_hash", - }, - ], } mac_pppoe_ipv6_udp_pay_packets = { @@ -4626,28 +4262,16 @@ mac_pppoe_ipv6_pay_symmetric_packets = { 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/Raw("x"*80)', 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:2022", dst="CDCD:910A:2222:5498:8475:1111:3900:1536")/Raw("x"*80)', ], - "mac_pppoe_ipv6_frag": [ - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:2022", dst="CDCD:910A:2222:5498:8475:1111:3900:1536")/IPv6ExtHdrFragment()/Raw("x"*80)', - ], }, "mismatch": { "mac_pppoe_ipv4_pay": [ 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.2", dst="192.168.1.1")/Raw("x"*80)', 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.2")/Raw("x"*80)', ], - "mac_pppoe_ipv4_frag": [ - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.2", dst="192.168.1.1", frag=5)/Raw("x"*80)', - ], "mac_ipv6_pay": [ 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/Raw("x"*80)', 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:2022", dst="CDCD:910A:2222:5498:8475:1111:3900:1536")/Raw("x"*80)', ], - "mac_ipv6_frag": [ - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:2022", dst="CDCD:910A:2222:5498:8475:1111:3900:1536")/IPv6ExtHdrFragment()/Raw("x"*80)', - ], }, } @@ -4668,18 +4292,6 @@ mac_pppoe_ipv6_pay_symmetric = { ][1:], "action": {"check_hash_same": "mac_pppoe_ipv6_pay_match"}, }, - { - "send_packet": mac_pppoe_ipv6_pay_symmetric_packets["match"][ - "mac_pppoe_ipv6_frag" - ][0], - "action": {"save_hash": "mac_pppoe_ipv6_frag_match"}, - }, - { - "send_packet": mac_pppoe_ipv6_pay_symmetric_packets["match"][ - "mac_pppoe_ipv6_frag" - ][1:], - "action": {"check_hash_same": "mac_pppoe_ipv6_frag_match"}, - }, { "send_packet": mac_pppoe_ipv6_pay_symmetric_packets["mismatch"][ "mac_pppoe_ipv4_pay" @@ -4692,18 +4304,6 @@ mac_pppoe_ipv6_pay_symmetric = { ][1:], "action": {"check_hash_different": "mac_pppoe_ipv4_pay_mismatch"}, }, - { - "send_packet": mac_pppoe_ipv6_pay_symmetric_packets["mismatch"][ - "mac_pppoe_ipv4_frag" - ][0], - "action": {"save_hash": "mac_pppoe_ipv4_frag_mismatch"}, - }, - { - "send_packet": mac_pppoe_ipv6_pay_symmetric_packets["mismatch"][ - "mac_pppoe_ipv4_frag" - ][1:], - "action": {"check_hash_different": "mac_pppoe_ipv4_frag_mismatch"}, - }, { "send_packet": mac_pppoe_ipv6_pay_symmetric_packets["mismatch"][ "mac_ipv6_pay" @@ -4716,18 +4316,6 @@ mac_pppoe_ipv6_pay_symmetric = { ][1:], "action": {"check_hash_different": "mac_ipv6_pay_mismatch"}, }, - { - "send_packet": mac_pppoe_ipv6_pay_symmetric_packets["mismatch"][ - "mac_ipv6_frag" - ][0], - "action": {"save_hash": "mac_ipv6_frag_mismatch"}, - }, - { - "send_packet": mac_pppoe_ipv6_pay_symmetric_packets["mismatch"][ - "mac_ipv6_frag" - ][1:], - "action": {"check_hash_different": "mac_ipv6_frag_mismatch"}, - }, ], "post-test": [ { @@ -4745,28 +4333,16 @@ mac_pppoe_ipv4_pay_symmetric_packets = { 'Ether(src="00:11:22:33:44:55",dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.2")/Raw("x"*80)', 'Ether(src="00:11:22:33:44:55",dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.2", dst="192.168.1.1")/Raw("x"*80)', ], - "mac_pppoe_ipv4_frag": [ - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.2", dst="192.168.1.1", frag=5)/Raw("x"*80)', - ], }, "mismatch": { "mac_pppoe_ipv6_pay": [ 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/Raw("x"*80)', 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:2022", dst="CDCD:910A:2222:5498:8475:1111:3900:1536")/Raw("x"*80)', ], - "mac_pppoe_ipv6_frag": [ - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:2022", dst="CDCD:910A:2222:5498:8475:1111:3900:1536")/IPv6ExtHdrFragment()/Raw("x"*80)', - ], "mac_ipv4_pay": [ 'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21")/Raw("x"*80)', 'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.21",dst="192.168.0.20")/Raw("x"*80)', ], - "mac_ipv4_frag": [ - 'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", frag=5)/Raw("x"*80)', - 'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.21",dst="192.168.0.20", frag=5)/Raw("x"*80)', - ], }, } @@ -4787,18 +4363,6 @@ mac_pppoe_ipv4_pay_symmetric = { ][1], "action": {"check_hash_same": "mac_pppoe_ipv4_pay_match"}, }, - { - "send_packet": mac_pppoe_ipv4_pay_symmetric_packets["match"][ - "mac_pppoe_ipv4_frag" - ][0], - "action": {"save_hash": "mac_pppoe_ipv4_frag_match"}, - }, - { - "send_packet": mac_pppoe_ipv4_pay_symmetric_packets["match"][ - "mac_pppoe_ipv4_frag" - ][1], - "action": {"check_hash_same": "mac_pppoe_ipv4_frag_match"}, - }, { "send_packet": mac_pppoe_ipv4_pay_symmetric_packets["mismatch"][ "mac_pppoe_ipv6_pay" @@ -4811,18 +4375,6 @@ mac_pppoe_ipv4_pay_symmetric = { ][1], "action": {"check_hash_different": "mac_pppoe_ipv6_pay_mismatch"}, }, - { - "send_packet": mac_pppoe_ipv4_pay_symmetric_packets["mismatch"][ - "mac_pppoe_ipv6_frag" - ][0], - "action": {"save_hash": "mac_pppoe_ipv6_frag_mismatch"}, - }, - { - "send_packet": mac_pppoe_ipv4_pay_symmetric_packets["mismatch"][ - "mac_pppoe_ipv6_frag" - ][1], - "action": {"check_hash_different": "mac_pppoe_ipv6_frag_mismatch"}, - }, { "send_packet": mac_pppoe_ipv4_pay_symmetric_packets["mismatch"][ "mac_ipv4_pay" @@ -4835,18 +4387,6 @@ mac_pppoe_ipv4_pay_symmetric = { ][1], "action": {"check_hash_different": "mac_ipv4_pay_mismatch"}, }, - { - "send_packet": mac_pppoe_ipv4_pay_symmetric_packets["mismatch"][ - "mac_ipv4_frag" - ][0], - "action": {"save_hash": "mac_ipv4_frag_mismatch"}, - }, - { - "send_packet": mac_pppoe_ipv4_pay_symmetric_packets["mismatch"][ - "mac_ipv4_frag" - ][1], - "action": {"check_hash_different": "mac_ipv4_frag_mismatch"}, - }, ], "post-test": [ { From patchwork Wed May 25 11:19:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 111800 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 DE893A0551; Wed, 25 May 2022 13:19:46 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D2598427FF; Wed, 25 May 2022 13:19:46 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 527D6400EF for ; Wed, 25 May 2022 13:19:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653477584; x=1685013584; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=4z4KMEw1QroyPYMeM2u/hX/WJm3IMPGXa23mKimjDRk=; b=U8YjjapV7tPUTdT2dS+txLwT0p0B0fu+0orOyEUP5zdixDkbVFZAVQmn eXX0tFDh9iSTmoyS0K2eWTBm4bWRu3z50dyxs7BgxAEDRdXmSuMwN3QuX 50WLGzK579mHiR+hsrRBwEqtsq4ufmXjBroz0HonWTeQtNxgFc2E2Jnw9 5tkG9VHFSQF1fyBCMj2DUP0ga3IgNchj7wWCtM0P1P0j9TpGIqua9XdLO rr6U4iSMbRMwXM+dKzBtKUN5vaUOzebqF4YLZUqxMJN20kzQuPX9ZJn28 bh4WlXPFbxHruhJyOSjcXG36yKLdqqYbteY9rBnD0Q9quuWKkBoZmaGWW w==; X-IronPort-AV: E=McAfee;i="6400,9594,10357"; a="253661064" X-IronPort-AV: E=Sophos;i="5.91,250,1647327600"; d="scan'208";a="253661064" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 May 2022 04:19:42 -0700 X-IronPort-AV: E=Sophos;i="5.91,250,1647327600"; d="scan'208";a="548972253" Received: from unknown (HELO daily-regression-131.intel.com) ([10.239.251.131]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 May 2022 04:19:41 -0700 From: Jiale Song To: dts@dpdk.org Cc: Jiale Song Subject: [dts] [PATCH V2 3/8] tests/ice_advanced_rss: remove ip fragment packets Date: Wed, 25 May 2022 19:19:29 +0800 Message-Id: <20220525111934.106784-3-songx.jiale@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220525111934.106784-1-songx.jiale@intel.com> References: <20220525111934.106784-1-songx.jiale@intel.com> MIME-Version: 1.0 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 modify the script to adapt to the change of dpdk function. remove ip fragment packets, dpdk no longer supports ip fragment default RSS. According to dpdk commit cc46bab5968 ("net/ice: remove support for IP fragment default RSS"). Signed-off-by: Jiale Song --- test_plans/ice_advanced_rss_test_plan.rst | 120 ----------- tests/TestSuite_ice_advanced_rss.py | 252 ---------------------- 2 files changed, 372 deletions(-) diff --git a/test_plans/ice_advanced_rss_test_plan.rst b/test_plans/ice_advanced_rss_test_plan.rst index 84495696..15faea35 100644 --- a/test_plans/ice_advanced_rss_test_plan.rst +++ b/test_plans/ice_advanced_rss_test_plan.rst @@ -385,10 +385,6 @@ ipv4-nonfrag packets:: sendp([Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.0.2")/("X"*480)],iface="ens786f0") -ipv4-frag packets:: - - sendp([Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.0.2",frag=6)/("X"*480)],iface="ens786f0") - ipv4-icmp packets:: sendp([Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.0.2")/ICMP()/("X"*480)],iface="ens786f0") @@ -416,10 +412,6 @@ ipv4-nonfrag packets:: sendp([Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.0.2")/("X"*480)],iface="ens786f0") -ipv4-frag packets:: - - sendp([Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.0.2",frag=6)/("X"*480)],iface="ens786f0") - ipv4-icmp packets:: sendp([Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.0.2")/ICMP()/("X"*480)],iface="ens786f0") @@ -433,10 +425,6 @@ ipv4-nonfrag packets:: sendp([Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:27:E0")/IP(dst="192.168.0.3", src="192.168.0.5")/("X"*480)],iface="ens786f0") -ipv4-frag packets:: - - sendp([Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:27:E0")/IP(dst="192.168.0.3", src="192.168.0.5",frag=7)/("X"*480)],iface="ens786f0") - ipv4-icmp packets:: sendp([Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:27:E0")/IP(dst="192.168.0.3", src="192.168.0.5")/ICMP()/("X"*480)],iface="ens786f0") @@ -456,10 +444,6 @@ ipv4-nonfrag packets:: sendp([Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:27:E0")/IP(dst="192.168.0.1", src="192.168.0.2")/("X"*480)],iface="ens786f0") -ipv4-frag packets:: - - sendp([Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:27:E0")/IP(dst="192.168.0.1", src="192.168.0.2",frag=6)/("X"*480)],iface="ens786f0") - ipv4-icmp packets:: sendp([Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:27:E0")/IP(dst="192.168.0.1", src="192.168.0.2")/ICMP()/("X"*480)],iface="ens786f0") @@ -473,10 +457,6 @@ ipv4-nonfrag packets:: sendp([Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.3", src="192.168.0.5")/("X"*480)],iface="ens786f0") -ipv4-frag packets:: - - sendp([Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.3", src="192.168.0.5",frag=7)/("X"*480)],iface="ens786f0") - ipv4-icmp packets:: sendp([Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.3", src="192.168.0.5")/ICMP()/("X"*480)],iface="ens786f0") @@ -498,12 +478,6 @@ ipv4-nonfrag packets:: sendp([Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:27:E0")/IP(dst="192.168.0.1", src="192.168.0.2")/("X"*480)],iface="ens786f0") sendp([Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IP(dst="192.168.0.1", src="192.168.0.2")/("X"*480)],iface="ens786f0") -ipv4-frag packets:: - - sendp([Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.0.2",frag=6)/("X"*480)],iface="ens786f0") - sendp([Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:27:E0")/IP(dst="192.168.0.1", src="192.168.0.2",frag=6)/("X"*480)],iface="ens786f0") - sendp([Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IP(dst="192.168.0.1", src="192.168.0.2",frag=6)/("X"*480)],iface="ens786f0") - ipv4-icmp packets:: sendp([Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.0.2")/ICMP()/("X"*480)],iface="ens786f0") @@ -521,10 +495,6 @@ ipv4-nonfrag packets:: sendp([Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.3", src="192.168.0.5")/("X"*480)],iface="ens786f0") -ipv4-frag packets:: - - sendp([Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.3", src="192.168.0.5",frag=7)/("X"*480)],iface="ens786f0") - ipv4-icmp packets:: sendp([Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.3", src="192.168.0.5")/ICMP()/("X"*480)],iface="ens786f0") @@ -544,10 +514,6 @@ ipv4-nonfrag packets:: sendp([Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.1.2")/("X"*480)],iface="ens786f0") -ipv4-frag packets:: - - sendp([Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.1.2",frag=6)/("X"*480)],iface="ens786f0") - ipv4-icmp packets:: sendp([Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.1.2")/ICMP()/("X"*480)],iface="ens786f0") @@ -561,10 +527,6 @@ ipv4-nonfrag packets:: sendp([Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IP(dst="192.168.1.1", src="192.168.0.2")/("X"*480)],iface="ens786f0") -ipv4-frag packets:: - - sendp([Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IP(dst="192.168.1.1", src="192.168.0.2",frag=6)/("X"*480)],iface="ens786f0") - ipv4-icmp packets:: sendp([Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IP(dst="192.168.1.1", src="192.168.0.2")/ICMP()/("X"*480)],iface="ens786f0") @@ -584,10 +546,6 @@ ipv4-nonfrag packets:: sendp([Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.1.1", src="192.168.0.2")/("X"*480)],iface="ens786f0") -ipv4-frag packets:: - - sendp([Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.1.1", src="192.168.0.2",frag=6)/("X"*480)],iface="ens786f0") - ipv4-icmp packets:: sendp([Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.1.1", src="192.168.0.2")/ICMP()/("X"*480)],iface="ens786f0") @@ -605,10 +563,6 @@ ipv4-nonfrag packets:: sendp([Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IP(dst="192.168.0.1", src="192.168.1.2")/("X"*480)],iface="ens786f0") -ipv4-frag packets:: - - sendp([Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IP(dst="192.168.0.1", src="192.168.1.2",frag=6)/("X"*480)],iface="ens786f0") - ipv4-icmp packets:: sendp([Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IP(dst="192.168.0.1", src="192.168.1.2")/ICMP()/("X"*480)],iface="ens786f0") @@ -629,11 +583,6 @@ ipv4-nonfrag packets:: sendp([Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.1.1", src="192.168.0.2")/("X"*480)],iface="ens786f0") sendp([Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.1.2")/("X"*480)],iface="ens786f0") -ipv4-frag packets:: - - sendp([Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.1.1", src="192.168.0.2",frag=6)/("X"*480)],iface="ens786f0") - sendp([Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.1.2",frag=6)/("X"*480)],iface="ens786f0") - ipv4-icmp packets:: sendp([Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.1.1", src="192.168.0.2")/ICMP()/("X"*480)],iface="ens786f0") @@ -649,10 +598,6 @@ ipv4-nonfrag packets:: sendp([Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IP(dst="192.168.0.1", src="192.168.0.2")/("X"*480)],iface="ens786f0") -ipv4-frag packets:: - - sendp([Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IP(dst="192.168.0.1", src="192.168.0.2",frag=6)/("X"*480)],iface="ens786f0") - ipv4-icmp packets:: sendp([Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IP(dst="192.168.0.1", src="192.168.0.2")/ICMP()/("X"*480)],iface="ens786f0") @@ -1012,10 +957,6 @@ ipv6-nonfrag packets:: sendp([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:2020")/("X"*480)],iface="ens786f0") -ipv6-frag packets:: - - sendp([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:2020")/IPv6ExtHdrFragment()/("X"*480)],iface="ens786f0") - ipv6-icmp packets:: sendp([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:2020")/ICMP()/("X"*480)],iface="ens786f0") @@ -1043,10 +984,6 @@ ipv6-nonfrag packets:: sendp([Ether(src="00:11:22:33:44:53", 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:2020")/("X"*480)],iface="ens786f0") -ipv6-frag packets:: - - sendp([Ether(src="00:11:22:33:44:53", 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:2020")/IPv6ExtHdrFragment()/("X"*480)],iface="ens786f0") - ipv6-icmp packets:: sendp([Ether(src="00:11:22:33:44:53", 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:2020")/ICMP()/("X"*480)],iface="ens786f0") @@ -1060,10 +997,6 @@ ipv6-nonfrag packets:: sendp([Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/("X"*480)],iface="ens786f0") -ipv6-frag packets:: - - sendp([Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/IPv6ExtHdrFragment()/("X"*480)],iface="ens786f0") - ipv6-icmp packets:: sendp([Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/ICMP()/("X"*480)],iface="ens786f0") @@ -1083,10 +1016,6 @@ ipv6-nonfrag packets:: sendp([Ether(src="00:11:22:33:44:55", 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")/("X"*480)],iface="ens786f0") -ipv6-frag packets:: - - sendp([Ether(src="00:11:22:33:44:55", 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")/IPv6ExtHdrFragment()/("X"*480)],iface="ens786f0") - ipv6-icmp packets:: sendp([Ether(src="00:11:22:33:44:55", 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")/ICMP()/("X"*480)],iface="ens786f0") @@ -1100,10 +1029,6 @@ ipv6-nonfrag packets:: sendp([Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/("X"*480)],iface="ens786f0") -ipv6-frag packets:: - - sendp([Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2027")/IPv6ExtHdrFragment()/("X"*480)],iface="ens786f0") - ipv6-icmp packets:: sendp([Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2027")/ICMP()/("X"*480)],iface="ens786f0") @@ -1125,12 +1050,6 @@ ipv6-nonfrag packets:: sendp([Ether(src="00:11:22:33:44:55", 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")/("X"*480)],iface="ens786f0") sendp([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")/("X"*480)],iface="ens786f0") -ipv6-frag packets:: - - sendp([Ether(src="00:11:22:33:44:53", 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:2020")/IPv6ExtHdrFragment()/("X"*480)],iface="ens786f0") - sendp([Ether(src="00:11:22:33:44:55", 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")/IPv6ExtHdrFragment()/("X"*480)],iface="ens786f0") - sendp([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")/IPv6ExtHdrFragment()/("X"*480)],iface="ens786f0") - ipv6-icmp packets:: sendp([Ether(src="00:11:22:33:44:53", 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:2020")/ICMP()/("X"*480)],iface="ens786f0") @@ -1148,10 +1067,6 @@ ipv6-nonfrag packets:: sendp([Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/("X"*480)],iface="ens786f0") -ipv6-frag packets:: - - sendp([Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/IPv6ExtHdrFragment()/("X"*480)],iface="ens786f0") - ipv6-icmp packets:: sendp([Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/ICMP()/("X"*480)],iface="ens786f0") @@ -1171,10 +1086,6 @@ ipv6-nonfrag packets:: sendp([Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/("X"*480)],iface="ens786f0") -ipv6-frag packets:: - - sendp([Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrFragment()/("X"*480)],iface="ens786f0") - ipv6-icmp packets:: sendp([Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/ICMP()/("X"*480)],iface="ens786f0") @@ -1188,10 +1099,6 @@ ipv6-nonfrag packets:: sendp([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:2021")/("X"*480)],iface="ens786f0") -ipv6-frag packets:: - - sendp([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:2021")/IPv6ExtHdrFragment()/("X"*480)],iface="ens786f0") - ipv6-icmp packets:: sendp([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:2021")/ICMP()/("X"*480)],iface="ens786f0") @@ -1211,10 +1118,6 @@ ipv6-nonfrag packets:: sendp([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")/("X"*480)],iface="ens786f0") -ipv6-frag packets:: - - sendp([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")/IPv6ExtHdrFragment()/("X"*480)],iface="ens786f0") - ipv6-icmp packets:: sendp([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")/ICMP()/("X"*480)],iface="ens786f0") @@ -1228,10 +1131,6 @@ ipv6-nonfrag packets:: sendp([Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/("X"*480)],iface="ens786f0") -ipv6-frag packets:: - - sendp([Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrFragment()/("X"*480)],iface="ens786f0") - ipv6-icmp packets:: sendp([Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/ICMP()/("X"*480)],iface="ens786f0") @@ -1252,11 +1151,6 @@ ipv6-nonfrag packets:: sendp([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")/("X"*480)],iface="ens786f0") sendp([Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/("X"*480)],iface="ens786f0") -ipv6-frag packets:: - - sendp([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")/IPv6ExtHdrFragment()/("X"*480)],iface="ens786f0") - sendp([Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrFragment()/("X"*480)],iface="ens786f0") - ipv6-icmp packets:: sendp([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")/ICMP()/("X"*480)],iface="ens786f0") @@ -1272,10 +1166,6 @@ ipv6-nonfrag packets:: sendp([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")/("X"*480)],iface="ens786f0") -ipv6-frag packets:: - - sendp([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")/IPv6ExtHdrFragment()/("X"*480)],iface="ens786f0") - ipv6-icmp packets:: sendp([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")/ICMP()/("X"*480)],iface="ens786f0") @@ -1660,11 +1550,6 @@ ipv4-nonfrag packets:: sendp([Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.0.2")/("X"*480)],iface="ens786f0") sendp([Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.2", src="192.168.0.1")/("X"*480)],iface="ens786f0") -ipv4-frag packets:: - - sendp([Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.0.2",frag=6)/("X"*480)],iface="ens786f0") - sendp([Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.2", src="192.168.0.1",frag=6)/("X"*480)],iface="ens786f0") - ipv4-icmp packets:: sendp([Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.0.2")/ICMP()/("X"*480)],iface="ens786f0") @@ -1755,11 +1640,6 @@ ipv6-nonfrag packets:: sendp([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:2020")/("X"*480)],iface="ens786f0") sendp([Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(dst="ABAB:910B:6666:3457:8295:3333:1800:2929",src="CDCD:910A:2222:5498:8475:1111:3900:2020")/("X"*480)],iface="ens786f0") -ipv6-frag packets:: - - sendp([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:2020")/IPv6ExtHdrFragment()/("X"*480)],iface="ens786f0") - sendp([Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(dst="ABAB:910B:6666:3457:8295:3333:1800:2929",src="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrFragment()/("X"*480)],iface="ens786f0") - ipv6-icmp packets:: sendp([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:2020")/ICMP()/("X"*480)],iface="ens786f0") diff --git a/tests/TestSuite_ice_advanced_rss.py b/tests/TestSuite_ice_advanced_rss.py index 5ddf20e0..8e637810 100644 --- a/tests/TestSuite_ice_advanced_rss.py +++ b/tests/TestSuite_ice_advanced_rss.py @@ -44,9 +44,6 @@ mac_ipv4_toeplitz_basic_pkt = { "ipv4-nonfrag": [ 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.0.2")/("X"*480)', ], - "ipv4-frag": [ - 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.0.2", frag=6)/("X"*480)', - ], "ipv4-icmp": [ 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.0.2")/ICMP()/("X"*480)', ], @@ -107,9 +104,6 @@ mac_ipv6_toeplitz_basic_pkt = { "ipv6-nonfrag": [ '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:2020")/("X"*480)', ], - "ipv6-frag": [ - '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:2020")/IPv6ExtHdrFragment()/("X"*480)', - ], "ipv6-icmp": [ '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:2020")/ICMP()/("X"*480)', ], @@ -174,9 +168,6 @@ mac_ipv4_l2src_changed = { "ipv4-nonfrag": [ 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.0.2")/("X"*480)', ], - "ipv4-frag": [ - 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.0.2", frag=6)/("X"*480)', - ], "ipv4-icmp": [ 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.0.2")/ICMP()/("X"*480)', ], @@ -192,9 +183,6 @@ mac_ipv4_l2dst_changed = { "ipv4-nonfrag": [ 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:27:E0")/IP(dst="192.168.0.1", src="192.168.0.2")/("X"*480)', ], - "ipv4-frag": [ - 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:27:E0")/IP(dst="192.168.0.1", src="192.168.0.2", frag=6)/("X"*480)', - ], "ipv4-icmp": [ 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:27:E0")/IP(dst="192.168.0.1", src="192.168.0.2")/ICMP()/("X"*480)', ], @@ -210,9 +198,6 @@ mac_ipv4_l3src_changed = { "ipv4-nonfrag": [ 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.1.2")/("X"*480)', ], - "ipv4-frag": [ - 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.1.2", frag=6)/("X"*480)', - ], "ipv4-icmp": [ 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.1.2")/ICMP()/("X"*480)', ], @@ -228,9 +213,6 @@ mac_ipv4_l3dst_changed = { "ipv4-nonfrag": [ 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:27:E0")/IP(dst="192.168.1.1", src="192.168.0.2")/("X"*480)', ], - "ipv4-frag": [ - 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:27:E0")/IP(dst="192.168.1.1", src="192.168.0.2", frag=6)/("X"*480)', - ], "ipv4-icmp": [ 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:27:E0")/IP(dst="192.168.1.1", src="192.168.0.2")/ICMP()/("X"*480)', ], @@ -246,9 +228,6 @@ mac_ipv6_l2src_changed = { "ipv6-nonfrag": [ 'Ether(src="00:11:22:33:44:53", 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:2020")/("X"*480)', ], - "ipv6-frag": [ - 'Ether(src="00:11:22:33:44:53", 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:2020")/IPv6ExtHdrFragment()/("X"*480)', - ], "ipv6-icmp": [ 'Ether(src="00:11:22:33:44:53", 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:2020")/ICMP()/("X"*480)', ], @@ -261,9 +240,6 @@ mac_ipv6_l2dst_changed = { "ipv6-nonfrag": [ 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/("X"*480)', ], - "ipv6-frag": [ - 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/IPv6ExtHdrFragment()/("X"*480)', - ], "ipv6-icmp": [ 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/ICMP()/("X"*480)', ], @@ -290,18 +266,6 @@ mac_ipv4_l2_src = { "send_packet": mac_ipv4_l2dst_changed["ipv4-nonfrag"], "action": "check_hash_same", }, - { - "send_packet": mac_ipv4_toeplitz_basic_pkt["ipv4-frag"], - "action": {"save_hash": "ipv4-frag"}, - }, - { - "send_packet": mac_ipv4_l2src_changed["ipv4-frag"], - "action": {"check_hash_different": "ipv4-frag"}, - }, - { - "send_packet": mac_ipv4_l2dst_changed["ipv4-frag"], - "action": {"check_hash_same": "ipv4-frag"}, - }, { "send_packet": mac_ipv4_toeplitz_basic_pkt["ipv4-icmp"], "action": {"save_hash": "ipv4-icmp"}, @@ -331,7 +295,6 @@ mac_ipv4_l2_src = { { "send_packet": [ mac_ipv4_toeplitz_basic_pkt["ipv4-nonfrag"][0], - mac_ipv4_toeplitz_basic_pkt["ipv4-frag"][0], mac_ipv4_toeplitz_basic_pkt["ipv4-icmp"][0], mac_ipv4_toeplitz_basic_pkt["ipv4-udp-vxlan"][0], ], @@ -357,18 +320,6 @@ mac_ipv4_l2_dst = { "send_packet": mac_ipv4_l2src_changed["ipv4-nonfrag"], "action": {"check_hash_same": "ipv4-nonfrag"}, }, - { - "send_packet": mac_ipv4_toeplitz_basic_pkt["ipv4-frag"], - "action": {"save_hash": "ipv4-frag"}, - }, - { - "send_packet": mac_ipv4_l2dst_changed["ipv4-frag"], - "action": {"check_hash_different": "ipv4-frag"}, - }, - { - "send_packet": mac_ipv4_l2src_changed["ipv4-frag"], - "action": {"check_hash_same": "ipv4-frag"}, - }, { "send_packet": mac_ipv4_toeplitz_basic_pkt["ipv4-icmp"], "action": {"save_hash": "ipv4-icmp"}, @@ -398,7 +349,6 @@ mac_ipv4_l2_dst = { { "send_packet": [ mac_ipv4_toeplitz_basic_pkt["ipv4-nonfrag"][0], - mac_ipv4_toeplitz_basic_pkt["ipv4-frag"][0], mac_ipv4_toeplitz_basic_pkt["ipv4-icmp"][0], mac_ipv4_toeplitz_basic_pkt["ipv4-udp-vxlan"][0], ], @@ -432,26 +382,6 @@ mac_ipv4_l2src_l2dst = { "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.3", src="192.168.0.5")/("X"*480)', "action": {"check_hash_same": "ipv4-nonfrag"}, }, - { - "send_packet": mac_ipv4_toeplitz_basic_pkt["ipv4-frag"], - "action": {"save_hash": "ipv4-frag"}, - }, - { - "send_packet": mac_ipv4_l2dst_changed["ipv4-frag"], - "action": {"check_hash_different": "ipv4-frag"}, - }, - { - "send_packet": mac_ipv4_l2src_changed["ipv4-frag"], - "action": {"check_hash_different": "ipv4-frag"}, - }, - { - "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IP(dst="192.168.0.1", src="192.168.0.2",frag=6)/("X"*480)', - "action": {"check_hash_different": "ipv4-frag"}, - }, - { - "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.3", src="192.168.0.5",frag=7)/("X"*480)', - "action": {"check_hash_same": "ipv4-frag"}, - }, { "send_packet": mac_ipv4_toeplitz_basic_pkt["ipv4-icmp"], "action": {"save_hash": "ipv4-icmp"}, @@ -497,7 +427,6 @@ mac_ipv4_l2src_l2dst = { { "send_packet": [ mac_ipv4_toeplitz_basic_pkt["ipv4-nonfrag"][0], - mac_ipv4_toeplitz_basic_pkt["ipv4-frag"][0], mac_ipv4_toeplitz_basic_pkt["ipv4-icmp"][0], mac_ipv4_toeplitz_basic_pkt["ipv4-udp-vxlan"][0], ], @@ -523,18 +452,6 @@ mac_ipv4_l3_src = { "send_packet": mac_ipv4_l3dst_changed["ipv4-nonfrag"], "action": {"check_hash_same": "ipv4-nonfrag"}, }, - { - "send_packet": mac_ipv4_toeplitz_basic_pkt["ipv4-frag"], - "action": {"save_hash": "ipv4-frag"}, - }, - { - "send_packet": mac_ipv4_l3src_changed["ipv4-frag"], - "action": {"check_hash_different": "ipv4-frag"}, - }, - { - "send_packet": mac_ipv4_l3dst_changed["ipv4-frag"], - "action": {"check_hash_same": "ipv4-frag"}, - }, { "send_packet": mac_ipv4_toeplitz_basic_pkt["ipv4-icmp"], "action": {"save_hash": "ipv4-icmp"}, @@ -552,7 +469,6 @@ mac_ipv4_l3_src = { { "send_packet": [ mac_ipv4_toeplitz_basic_pkt["ipv4-nonfrag"][0], - mac_ipv4_toeplitz_basic_pkt["ipv4-frag"][0], mac_ipv4_toeplitz_basic_pkt["ipv4-icmp"][0], mac_ipv4_toeplitz_basic_pkt["ipv4-udp-vxlan"][0], ], @@ -578,18 +494,6 @@ mac_ipv4_l3_dst = { "send_packet": mac_ipv4_l3src_changed["ipv4-nonfrag"], "action": {"check_hash_same": "ipv4-nonfrag"}, }, - { - "send_packet": mac_ipv4_toeplitz_basic_pkt["ipv4-frag"], - "action": {"save_hash": "ipv4-frag"}, - }, - { - "send_packet": mac_ipv4_l3dst_changed["ipv4-frag"], - "action": {"check_hash_different": "ipv4-frag"}, - }, - { - "send_packet": mac_ipv4_l3src_changed["ipv4-frag"], - "action": {"check_hash_same": "ipv4-frag"}, - }, { "send_packet": mac_ipv4_toeplitz_basic_pkt["ipv4-icmp"], "action": {"save_hash": "ipv4-icmp"}, @@ -607,7 +511,6 @@ mac_ipv4_l3_dst = { { "send_packet": [ mac_ipv4_toeplitz_basic_pkt["ipv4-nonfrag"][0], - mac_ipv4_toeplitz_basic_pkt["ipv4-frag"][0], mac_ipv4_toeplitz_basic_pkt["ipv4-icmp"][0], mac_ipv4_toeplitz_basic_pkt["ipv4-udp-vxlan"][0], ], @@ -637,22 +540,6 @@ mac_ipv4_all = { "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IP(dst="192.168.0.1", src="192.168.0.2")/("X"*480)', "action": {"check_hash_same": "ipv4-nonfrag"}, }, - { - "send_packet": mac_ipv4_toeplitz_basic_pkt["ipv4-frag"], - "action": {"save_hash": "ipv4-frag"}, - }, - { - "send_packet": mac_ipv4_l3dst_changed["ipv4-frag"], - "action": {"check_hash_different": "ipv4-frag"}, - }, - { - "send_packet": mac_ipv4_l3src_changed["ipv4-frag"], - "action": {"check_hash_different": "ipv4-frag"}, - }, - { - "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IP(dst="192.168.0.1", src="192.168.0.2",frag=6)/("X"*480)', - "action": {"check_hash_same": "ipv4-frag"}, - }, { "send_packet": mac_ipv4_toeplitz_basic_pkt["ipv4-icmp"], "action": {"save_hash": "ipv4-icmp"}, @@ -674,7 +561,6 @@ mac_ipv4_all = { { "send_packet": [ mac_ipv4_toeplitz_basic_pkt["ipv4-nonfrag"][0], - mac_ipv4_toeplitz_basic_pkt["ipv4-frag"][0], mac_ipv4_toeplitz_basic_pkt["ipv4-icmp"][0], mac_ipv4_toeplitz_basic_pkt["ipv4-udp-vxlan"][0], ], @@ -2258,18 +2144,6 @@ mac_ipv6_l2_src = { "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/("X"*480)', "action": "check_hash_same", }, - { - "send_packet": mac_ipv6_toeplitz_basic_pkt["ipv6-frag"], - "action": {"save_hash": "ipv6-frag"}, - }, - { - "send_packet": 'Ether(src="00:11:22:33:44:53", 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:2020")/IPv6ExtHdrFragment()/("X"*480)', - "action": {"check_hash_different": "ipv6-frag"}, - }, - { - "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/IPv6ExtHdrFragment()/("X"*480)', - "action": {"check_hash_same": "ipv6-frag"}, - }, { "send_packet": mac_ipv6_toeplitz_basic_pkt["ipv6-icmp"], "action": {"save_hash": "ipv6-icmp"}, @@ -2303,7 +2177,6 @@ mac_ipv6_l2_src = { { "send_packet": [ mac_ipv6_toeplitz_basic_pkt["ipv6-nonfrag"][0], - mac_ipv6_toeplitz_basic_pkt["ipv6-frag"][0], mac_ipv6_toeplitz_basic_pkt["ipv6-icmp"][0], mac_ipv6_toeplitz_basic_pkt["ipv6-udp"][0], ], @@ -2329,18 +2202,6 @@ mac_ipv6_l2_dst = { "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/("X"*480)', "action": {"check_hash_same": "ipv6-nonfrag"}, }, - { - "send_packet": mac_ipv6_toeplitz_basic_pkt["ipv6-frag"], - "action": {"save_hash": "ipv6-frag"}, - }, - { - "send_packet": 'Ether(src="00:11:22:33:44:55", 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")/IPv6ExtHdrFragment()/("X"*480)', - "action": {"check_hash_different": "ipv6-frag"}, - }, - { - "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2027")/IPv6ExtHdrFragment()/("X"*480)', - "action": {"check_hash_same": "ipv6-frag"}, - }, { "send_packet": mac_ipv6_toeplitz_basic_pkt["ipv6-icmp"], "action": {"save_hash": "ipv6-icmp"}, @@ -2374,7 +2235,6 @@ mac_ipv6_l2_dst = { { "send_packet": [ mac_ipv6_toeplitz_basic_pkt["ipv6-nonfrag"][0], - mac_ipv6_toeplitz_basic_pkt["ipv6-frag"][0], mac_ipv6_toeplitz_basic_pkt["ipv6-icmp"][0], mac_ipv6_toeplitz_basic_pkt["ipv6-udp"][0], ], @@ -2408,26 +2268,6 @@ mac_ipv6_l2src_l2dst = { "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:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/("X"*480)', "action": {"check_hash_same": "ipv6-nonfrag"}, }, - { - "send_packet": mac_ipv6_toeplitz_basic_pkt["ipv6-frag"], - "action": {"save_hash": "ipv6-frag"}, - }, - { - "send_packet": 'Ether(src="00:11:22:33:44:53", 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:2020")/IPv6ExtHdrFragment()/("X"*480)', - "action": {"check_hash_different": "ipv6-frag"}, - }, - { - "send_packet": 'Ether(src="00:11:22:33:44:55", 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")/IPv6ExtHdrFragment()/("X"*480)', - "action": {"check_hash_different": "ipv6-frag"}, - }, - { - "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")/IPv6ExtHdrFragment()/("X"*480)', - "action": {"check_hash_different": "ipv6-frag"}, - }, - { - "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:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/IPv6ExtHdrFragment()/("X"*480)', - "action": {"check_hash_same": "ipv6-frag"}, - }, { "send_packet": mac_ipv6_toeplitz_basic_pkt["ipv6-icmp"], "action": {"save_hash": "ipv6-icmp"}, @@ -2477,7 +2317,6 @@ mac_ipv6_l2src_l2dst = { { "send_packet": [ mac_ipv6_toeplitz_basic_pkt["ipv6-nonfrag"][0], - mac_ipv6_toeplitz_basic_pkt["ipv6-frag"][0], mac_ipv6_toeplitz_basic_pkt["ipv6-icmp"][0], mac_ipv6_toeplitz_basic_pkt["ipv6-udp"][0], ], @@ -2503,18 +2342,6 @@ mac_ipv6_l3_src = { "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:2021")/("X"*480)', "action": {"check_hash_same": "ipv6-nonfrag"}, }, - { - "send_packet": mac_ipv6_toeplitz_basic_pkt["ipv6-frag"], - "action": {"save_hash": "ipv6-frag"}, - }, - { - "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:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrFragment()/("X"*480)', - "action": {"check_hash_different": "ipv6-frag"}, - }, - { - "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:2021")/IPv6ExtHdrFragment()/("X"*480)', - "action": {"check_hash_same": "ipv6-frag"}, - }, { "send_packet": mac_ipv6_toeplitz_basic_pkt["ipv6-icmp"], "action": {"save_hash": "ipv6-icmp"}, @@ -2548,7 +2375,6 @@ mac_ipv6_l3_src = { { "send_packet": [ mac_ipv6_toeplitz_basic_pkt["ipv6-nonfrag"][0], - mac_ipv6_toeplitz_basic_pkt["ipv6-frag"][0], mac_ipv6_toeplitz_basic_pkt["ipv6-icmp"][0], mac_ipv6_toeplitz_basic_pkt["ipv6-udp"][0], mac_ipv6_toeplitz_basic_pkt["nvgre"][0], @@ -2575,18 +2401,6 @@ mac_ipv6_l3_dst = { "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:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/("X"*480)', "action": {"check_hash_same": "ipv6-nonfrag"}, }, - { - "send_packet": mac_ipv6_toeplitz_basic_pkt["ipv6-frag"], - "action": {"save_hash": "ipv6-frag"}, - }, - { - "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")/IPv6ExtHdrFragment()/("X"*480)', - "action": {"check_hash_different": "ipv6-frag"}, - }, - { - "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:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrFragment()/("X"*480)', - "action": {"check_hash_same": "ipv6-frag"}, - }, { "send_packet": mac_ipv6_toeplitz_basic_pkt["ipv6-icmp"], "action": {"save_hash": "ipv6-icmp"}, @@ -2620,7 +2434,6 @@ mac_ipv6_l3_dst = { { "send_packet": [ mac_ipv6_toeplitz_basic_pkt["ipv6-nonfrag"][0], - mac_ipv6_toeplitz_basic_pkt["ipv6-frag"][0], mac_ipv6_toeplitz_basic_pkt["ipv6-icmp"][0], mac_ipv6_toeplitz_basic_pkt["ipv6-udp"][0], mac_ipv6_toeplitz_basic_pkt["nvgre"][0], @@ -2651,22 +2464,6 @@ mac_ipv6_all = { "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")/("X"*480)', "action": {"check_hash_same": "ipv6-nonfrag"}, }, - { - "send_packet": mac_ipv6_toeplitz_basic_pkt["ipv6-frag"], - "action": {"save_hash": "ipv6-frag"}, - }, - { - "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")/IPv6ExtHdrFragment()/("X"*480)', - "action": {"check_hash_different": "ipv6-frag"}, - }, - { - "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:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrFragment()/("X"*480)', - "action": {"check_hash_different": "ipv6-frag"}, - }, - { - "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")/IPv6ExtHdrFragment()/("X"*480)', - "action": {"check_hash_same": "ipv6-frag"}, - }, { "send_packet": mac_ipv6_toeplitz_basic_pkt["ipv6-icmp"], "action": {"save_hash": "ipv6-icmp"}, @@ -2708,7 +2505,6 @@ mac_ipv6_all = { { "send_packet": [ mac_ipv6_toeplitz_basic_pkt["ipv6-nonfrag"][0], - mac_ipv6_toeplitz_basic_pkt["ipv6-frag"][0], mac_ipv6_toeplitz_basic_pkt["ipv6-icmp"][0], mac_ipv6_toeplitz_basic_pkt["ipv6-udp"][0], mac_ipv6_toeplitz_basic_pkt["nvgre"][0], @@ -4253,14 +4049,6 @@ mac_ipv4_symmetric = { "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.2", src="192.168.0.1")/("X"*480)', "action": {"check_hash_different": "ipv4-nonfrag-pre"}, }, - { - "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.0.2",frag=6)/("X"*480)', - "action": {"save_hash": "ipv4-frag-pre"}, - }, - { - "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.2", src="192.168.0.1",frag=6)/("X"*480)', - "action": {"check_hash_different": "ipv4-frag-pre"}, - }, { "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.0.2")/ICMP()/("X"*480)', "action": {"save_hash": "ipv4-icmp-pre"}, @@ -4287,14 +4075,6 @@ mac_ipv4_symmetric = { "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.2", src="192.168.0.1")/("X"*480)', "action": {"check_hash_same": "ipv4-nonfrag"}, }, - { - "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.0.2",frag=6)/("X"*480)', - "action": {"save_hash": "ipv4-frag"}, - }, - { - "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.2", src="192.168.0.1",frag=6)/("X"*480)', - "action": {"check_hash_same": "ipv4-frag"}, - }, { "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.0.2")/ICMP()/("X"*480)', "action": {"save_hash": "ipv4-icmp"}, @@ -4329,14 +4109,6 @@ mac_ipv4_symmetric = { "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.2", src="192.168.0.1")/("X"*480)', "action": {"check_no_hash_or_different": "ipv4-nonfrag-post"}, }, - { - "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.0.2",frag=6)/("X"*480)', - "action": {"save_or_no_hash": "ipv4-frag-post"}, - }, - { - "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.2", src="192.168.0.1",frag=6)/("X"*480)', - "action": {"check_no_hash_or_different": "ipv4-frag-post"}, - }, { "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.1", src="192.168.0.2")/ICMP()/("X"*480)', "action": {"save_or_no_hash": "ipv4-icmp-post"}, @@ -4561,14 +4333,6 @@ mac_ipv6_symmetric = { "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(dst="ABAB:910B:6666:3457:8295:3333:1800:2929",src="CDCD:910A:2222:5498:8475:1111:3900:2020")/("X"*480)', "action": {"check_hash_different": "ipv6-nonfrag-pre"}, }, - { - "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:2020")/IPv6ExtHdrFragment()/("X"*480)', - "action": {"save_hash": "ipv6-frag-pre"}, - }, - { - "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(dst="ABAB:910B:6666:3457:8295:3333:1800:2929",src="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrFragment()/("X"*480)', - "action": {"check_hash_different": "ipv6-frag-pre"}, - }, { "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:2020")/ICMP()/("X"*480)', "action": {"save_hash": "ipv6-icmp-pre"}, @@ -4595,14 +4359,6 @@ mac_ipv6_symmetric = { "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(dst="ABAB:910B:6666:3457:8295:3333:1800:2929",src="CDCD:910A:2222:5498:8475:1111:3900:2020")/("X"*480)', "action": {"check_hash_same": "ipv6-nonfrag"}, }, - { - "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:2020")/IPv6ExtHdrFragment()/("X"*480)', - "action": {"save_hash": "ipv6-frag"}, - }, - { - "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(dst="ABAB:910B:6666:3457:8295:3333:1800:2929",src="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrFragment()/("X"*480)', - "action": {"check_hash_same": "ipv6-frag"}, - }, { "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:2020")/ICMP()/("X"*480)', "action": {"save_hash": "ipv6-icmp"}, @@ -4637,14 +4393,6 @@ mac_ipv6_symmetric = { "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(dst="ABAB:910B:6666:3457:8295:3333:1800:2929",src="CDCD:910A:2222:5498:8475:1111:3900:2020")/("X"*480)', "action": {"check_no_hash_or_different": "ipv6-nonfrag-post"}, }, - { - "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:2020")/IPv6ExtHdrFragment()/("X"*480)', - "action": {"save_or_no_hash": "ipv6-frag-post"}, - }, - { - "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(dst="ABAB:910B:6666:3457:8295:3333:1800:2929",src="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrFragment()/("X"*480)', - "action": {"check_no_hash_or_different": "ipv6-frag-post"}, - }, { "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:2020")/ICMP()/("X"*480)', "action": {"save_or_no_hash": "ipv6-icmp-post"}, From patchwork Wed May 25 11:19:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 111799 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 B2BF6A0550; Wed, 25 May 2022 13:19:45 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A8BB540146; Wed, 25 May 2022 13:19:45 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 8891E42670 for ; Wed, 25 May 2022 13:19:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653477584; x=1685013584; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Wx+ScdBrvRqzI49OhxOh3SPkZM3yWW+Ap+/n4S/OMxM=; b=Kwpk7XRK9M4zhAY3YIGb+aMZWz9CMx5nntM1oUJ54Y9qXf21v/WUArUf RDBXgr5NhhQ05RWU/pVS97MWtSWE1xHJNwOiQUKK6f4EK9bYc3IEgdij+ 8gCmTGIddS6M4Om3j7tnsqONPBCVHnoKbd9rNM9/76xfYFfOxvdysfU29 9ZleqHLpxc0JTgOqHDN4c7CpEo5qTxPr7rR211mxaTtaslLkJiFjNgvg/ Eg+6pVaZB2NDrv40CtUc2ubSn2yY89OOHrmX/6Ue2rtuYY6gOXuinRY0/ /vmj/W1BhHS5h3UIdJoUrGkbMlShWbuJJBzHAgIS8jmN8xG2AdIO8EuGK w==; X-IronPort-AV: E=McAfee;i="6400,9594,10357"; a="253661066" X-IronPort-AV: E=Sophos;i="5.91,250,1647327600"; d="scan'208";a="253661066" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 May 2022 04:19:44 -0700 X-IronPort-AV: E=Sophos;i="5.91,250,1647327600"; d="scan'208";a="548972258" Received: from unknown (HELO daily-regression-131.intel.com) ([10.239.251.131]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 May 2022 04:19:42 -0700 From: Jiale Song To: dts@dpdk.org Cc: Jiale Song Subject: [dts] [PATCH V2 4/8] tests/ice_dcf_acl_filter: remove ip fragment packets Date: Wed, 25 May 2022 19:19:30 +0800 Message-Id: <20220525111934.106784-4-songx.jiale@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220525111934.106784-1-songx.jiale@intel.com> References: <20220525111934.106784-1-songx.jiale@intel.com> MIME-Version: 1.0 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 modify the script to adapt to the change of dpdk function. remove ip fragment packets, dpdk no longer supports ip fragment default RSS. According to dpdk commit cc46bab5968 ("net/ice: remove support for IP fragment default RSS"). Signed-off-by: Jiale Song --- test_plans/ice_dcf_acl_filter_test_plan.rst | 10 ---------- tests/TestSuite_ice_dcf_acl_filter.py | 19 ------------------- 2 files changed, 29 deletions(-) diff --git a/test_plans/ice_dcf_acl_filter_test_plan.rst b/test_plans/ice_dcf_acl_filter_test_plan.rst index 1f92d659..00451ec5 100644 --- a/test_plans/ice_dcf_acl_filter_test_plan.rst +++ b/test_plans/ice_dcf_acl_filter_test_plan.rst @@ -141,7 +141,6 @@ Subcase 1: src mac(only 2ports NIC support) 2. matched packets:: sendp([Ether(src="00:11:22:33:44:55", dst="00:01:23:45:67:89")/IP(src="192.168.0.1", dst="192.168.0.2")/Raw(load='X'*30)], iface="enp134s0f1") - sendp([Ether(src="00:11:22:33:44:55", dst="00:01:23:45:67:89")/IP(src="192.168.0.1", dst="192.168.0.2", frag=1)/Raw(load='X'*30)], iface="enp134s0f1") sendp([Ether(src="01:11:22:33:44:55", dst="00:01:23:45:67:89")/IP(src="192.168.0.1", dst="192.168.0.2")/UDP()/Raw(load='X'*30)], iface="enp134s0f1") sendp([Ether(src="02:11:22:33:44:55", dst="00:01:23:45:67:89")/IP(src="192.168.0.1", dst="192.168.0.2")/TCP()/Raw(load='X'*30)], iface="enp134s0f1") sendp([Ether(src="ff:11:22:33:44:55", dst="00:01:23:45:67:89")/IP(src="192.168.0.1", dst="192.168.0.2")/SCTP()/Raw(load='X'*30)], iface="enp134s0f1") @@ -150,7 +149,6 @@ Subcase 1: src mac(only 2ports NIC support) 3. unmatched packets:: sendp([Ether(src="00:11:22:33:66:55", dst="00:01:23:45:67:89")/IP(src="192.168.0.1", dst="192.168.0.2")/Raw(load='X'*30)], iface="enp134s0f1") - sendp([Ether(src="00:11:22:33:44:66", dst="00:01:23:45:67:89")/IP(src="192.168.0.1", dst="192.168.0.2", frag=1)/Raw(load='X'*30)], iface="enp134s0f1") sendp([Ether(src="00:66:22:33:44:55", dst="00:01:23:45:67:89")/IP(src="192.168.0.1", dst="192.168.0.2")/UDP()/Raw(load='X'*30)], iface="enp134s0f1") sendp([Ether(src="00:11:22:33:44:66", dst="00:01:23:45:67:89")/IP(src="192.168.0.1", dst="192.168.0.2")/TCP()/Raw(load='X'*30)], iface="enp134s0f1") sendp([Ether(src="00:11:22:32:44:55", dst="00:01:23:45:67:89")/IP(src="192.168.0.1", dst="192.168.0.2")/SCTP()/Raw(load='X'*30)], iface="enp134s0f1") @@ -193,7 +191,6 @@ Subcase 3: src ipv4 2. matched packets:: sendp([Ether(src="00:11:22:33:44:55", dst="00:01:23:45:67:89")/IP(src="192.168.0.0", dst="192.168.0.2")/Raw(load='X'*30)], iface="enp134s0f1") - sendp([Ether(src="00:11:22:33:44:55", dst="00:01:23:45:67:89")/IP(src="192.168.0.1", dst="192.168.0.2",frag=1)/Raw(load='X'*30)], iface="enp134s0f1") sendp([Ether(src="00:11:22:33:44:55", dst="00:01:23:45:67:89")/IP(src="192.168.0.158", dst="192.168.0.2")/UDP()/Raw(load='X'*30)], iface="enp134s0f1") sendp([Ether(src="00:11:22:33:44:55", dst="00:01:23:45:67:89")/IP(src="192.168.0.255", dst="192.168.0.2")/TCP()/Raw(load='X'*30)], iface="enp134s0f1") sendp([Ether(src="00:11:22:33:44:55", dst="00:01:23:45:67:89")/IP(src="192.168.0.255", dst="192.168.0.2")/SCTP()/Raw(load='X'*30)], iface="enp134s0f1") @@ -202,7 +199,6 @@ Subcase 3: src ipv4 3. unmatched packets:: sendp([Ether(src="00:11:22:33:44:55", dst="00:01:23:45:67:89")/IP(src="192.168.1.1", dst="192.168.0.2")/Raw(load='X'*30)], iface="enp134s0f1") - sendp([Ether(src="00:11:22:33:44:55", dst="00:01:23:45:67:89")/IP(src="192.168.1.1", dst="192.168.0.2",frag=1)/Raw(load='X'*30)], iface="enp134s0f1") sendp([Ether(src="00:11:22:33:44:55", dst="00:01:23:45:67:89")/IP(src="192.168.1.1", dst="192.168.0.2")/UDP()/Raw(load='X'*30)], iface="enp134s0f1") sendp([Ether(src="00:11:22:33:44:55", dst="00:01:23:45:67:89")/IP(src="192.168.1.1", dst="192.168.0.2")/TCP()/Raw(load='X'*30)], iface="enp134s0f1") sendp([Ether(src="00:11:22:33:44:55", dst="00:01:23:45:67:89")/IP(src="192.168.1.1", dst="192.168.0.2")/SCTP()/Raw(load='X'*30)], iface="enp134s0f1") @@ -217,7 +213,6 @@ Subcase 4: dst ipv4 2. matched packets:: sendp([Ether(src="00:11:22:33:44:55", dst="00:01:23:45:67:89")/IP(src="192.168.0.1", dst="192.168.0.0")/Raw(load='X'*30)], iface="enp134s0f1") - sendp([Ether(src="00:11:22:33:44:55", dst="00:01:23:45:67:89")/IP(src="192.168.0.1", dst="192.168.0.0",frag=1)/Raw(load='X'*30)], iface="enp134s0f1") sendp([Ether(src="00:11:22:33:44:55", dst="00:01:23:45:67:89")/IP(src="192.168.0.1", dst="192.168.0.158")/UDP()/Raw(load='X'*30)], iface="enp134s0f1") sendp([Ether(src="00:11:22:33:44:55", dst="00:01:23:45:67:89")/IP(src="192.168.0.1", dst="192.168.0.255")/TCP()/Raw(load='X'*30)], iface="enp134s0f1") sendp([Ether(src="00:11:22:33:44:55", dst="00:01:23:45:67:89")/IP(src="192.168.0.1", dst="192.168.0.255")/SCTP()/Raw(load='X'*30)], iface="enp134s0f1") @@ -226,7 +221,6 @@ Subcase 4: dst ipv4 3. unmatched packets:: sendp([Ether(src="00:11:22:33:44:55", dst="00:01:23:45:67:89")/IP(src="192.168.0.1", dst="192.168.1.2")/Raw(load='X'*30)], iface="enp134s0f1") - sendp([Ether(src="00:11:22:33:44:55", dst="00:01:23:45:67:89")/IP(src="192.168.0.1", dst="192.168.1.2",frag=1)/Raw(load='X'*30)], iface="enp134s0f1") sendp([Ether(src="00:11:22:33:44:55", dst="00:01:23:45:67:89")/IP(src="192.168.0.1", dst="192.168.1.2")/UDP()/Raw(load='X'*30)], iface="enp134s0f1") sendp([Ether(src="00:11:22:33:44:55", dst="00:01:23:45:67:89")/IP(src="192.168.0.1", dst="192.168.1.2")/TCP()/Raw(load='X'*30)], iface="enp134s0f1") sendp([Ether(src="00:11:22:33:44:55", dst="00:01:23:45:67:89")/IP(src="192.168.0.1", dst="192.168.1.2")/SCTP()/Raw(load='X'*30)], iface="enp134s0f1") @@ -241,7 +235,6 @@ Subcase 5: src ipv4 + dst ipv4 2. matched packets:: sendp([Ether(src="00:11:22:33:44:55", dst="00:01:23:45:67:89")/IP(src="192.168.0.255", dst="192.168.0.2")/Raw(load='X'*30)], iface="enp216s0f0") - sendp([Ether(src="00:11:22:33:44:55", dst="00:01:23:45:67:89")/IP(src="192.168.0.255", dst="192.168.0.2",frag=1)/Raw(load='X'*30)], iface="enp216s0f0") sendp([Ether(src="00:11:22:33:44:55", dst="00:01:23:45:67:89")/IP(src="192.168.0.158", dst="192.168.255.2")/UDP()/Raw(load='X'*30)], iface="enp216s0f0") sendp([Ether(src="00:11:22:33:44:55", dst="00:01:23:45:67:89")/IP(src="192.168.0.0", dst="192.168.1.2")/TCP()/Raw(load='X'*30)], iface="enp216s0f0") sendp([Ether(src="00:11:22:33:44:55", dst="00:01:23:45:67:89")/IP(src="192.168.0.0", dst="192.168.1.2")/SCTP()/Raw(load='X'*30)], iface="enp216s0f0") @@ -250,7 +243,6 @@ Subcase 5: src ipv4 + dst ipv4 3. unmatched packets:: sendp([Ether(src="00:11:22:33:44:55", dst="00:01:23:45:67:89")/IP(src="192.168.1.1", dst="192.168.0.2")/Raw(load='X'*30)], iface="enp216s0f0") - sendp([Ether(src="00:11:22:33:44:55", dst="00:01:23:45:67:89")/IP(src="192.168.1.1", dst="192.168.0.2",frag=1)/Raw(load='X'*30)], iface="enp216s0f0") sendp([Ether(src="00:11:22:33:44:55", dst="00:01:23:45:67:89")/IP(src="192.168.1.1", dst="192.168.0.2")/UDP()/Raw(load='X'*30)], iface="enp216s0f0") sendp([Ether(src="00:11:22:33:44:55", dst="00:01:23:45:67:89")/IP(src="192.168.0.1", dst="192.168.0.3")/TCP()/Raw(load='X'*30)], iface="enp216s0f0") sendp([Ether(src="00:11:22:33:44:55", dst="00:01:23:45:67:89")/IP(src="192.168.0.1", dst="192.168.0.3")/SCTP()/Raw(load='X'*30)], iface="enp216s0f0") @@ -269,7 +261,6 @@ Subcase 6: src mac + dst mac + src ipv4 + dst ipv4(only 2port NIC support) 2. matched packets:: sendp([Ether(src="00:11:22:33:44:1b", dst="33:00:00:00:00:02")/IP(src="192.168.0.255", dst="192.168.0.2")/Raw(load='X'*30)], iface="enp134s0f1") - sendp([Ether(src="00:11:22:33:44:1b", dst="33:00:00:00:00:02")/IP(src="192.168.0.255", dst="192.168.0.2",frag=1)/Raw(load='X'*30)], iface="enp134s0f1") sendp([Ether(src="00:11:22:33:44:00", dst="33:00:00:00:00:03")/IP(src="192.168.0.158", dst="192.168.255.2")/UDP()/Raw(load='X'*30)], iface="enp134s0f1") sendp([Ether(src="00:11:22:33:44:ff", dst="33:00:00:00:00:02")/IP(src="192.168.0.0", dst="192.168.1.2")/TCP()/Raw(load='X'*30)], iface="enp134s0f1") sendp([Ether(src="00:11:22:33:44:ff", dst="33:00:00:00:00:02")/IP(src="192.168.0.0", dst="192.168.1.2")/SCTP()/Raw(load='X'*30)], iface="enp134s0f1") @@ -278,7 +269,6 @@ Subcase 6: src mac + dst mac + src ipv4 + dst ipv4(only 2port NIC support) 3. unmatched packets:: sendp([Ether(src="00:11:22:33:66:55", dst="33:00:00:00:00:02")/IP(src="192.168.0.1", dst="192.168.0.2")/Raw(load='X'*30)], iface="enp134s0f1") - sendp([Ether(src="00:11:22:33:44:55", dst="00:01:23:45:67:89")/IP(src="192.168.0.1", dst="192.168.0.2",frag=1)/Raw(load='X'*30)], iface="enp134s0f1") sendp([Ether(src="00:11:22:33:44:55", dst="33:00:00:00:00:01")/IP(src="192.168.0.1", dst="192.168.0.2")/UDP()/Raw(load='X'*30)], iface="enp134s0f1") sendp([Ether(src="00:11:22:33:44:55", dst="33:00:00:00:00:02")/IP(src="192.168.1.1", dst="192.168.0.2")/TCP()/Raw(load='X'*30)], iface="enp134s0f1") sendp([Ether(src="00:11:22:33:44:55", dst="33:00:00:00:00:02")/IP(src="192.168.0.1", dst="192.168.0.3")/SCTP()/Raw(load='X'*30)], iface="enp134s0f1") diff --git a/tests/TestSuite_ice_dcf_acl_filter.py b/tests/TestSuite_ice_dcf_acl_filter.py index 49fd23a0..3a1f86e4 100644 --- a/tests/TestSuite_ice_dcf_acl_filter.py +++ b/tests/TestSuite_ice_dcf_acl_filter.py @@ -49,8 +49,6 @@ MAC_IPV4_PAY_SRC_MAC = { "match": [ 'Ether(src="00:11:22:33:44:55", dst="%s")/IP(src="192.168.0.1", dst="192.168.0.2")/Raw(load="x"*30)' % vf1_mac, - 'Ether(src="00:11:22:33:44:55", dst="%s")/IP(src="192.168.0.1", dst="192.168.0.2", frag=1)/Raw(load="x"*30)' - % vf1_mac, 'Ether(src="01:11:22:33:44:55", dst="%s")/IP(src="192.168.0.1", dst="192.168.0.2")/UDP()/Raw(load="x"*30)' % vf1_mac, 'Ether(src="02:11:22:33:44:55", dst="%s")/IP(src="192.168.0.1", dst="192.168.0.2")/TCP()/Raw(load="x"*30)' @@ -63,8 +61,6 @@ MAC_IPV4_PAY_SRC_MAC = { "unmatch": [ 'Ether(src="00:11:22:33:66:55", dst="%s")/IP(src="192.168.0.1", dst="192.168.0.2")/Raw(load="x"*30)' % vf1_mac, - 'Ether(src="00:11:22:33:44:66", dst="%s")/IP(src="192.168.0.1", dst="192.168.0.2", frag=1)/Raw(load="x"*30)' - % vf1_mac, 'Ether(src="00:66:22:33:44:55", dst="%s")/IP(src="192.168.0.1", dst="192.168.0.2")/UDP()/Raw(load="x"*30)' % vf1_mac, 'Ether(src="00:11:22:33:44:66", dst="%s")/IP(src="192.168.0.1", dst="192.168.0.2")/TCP()/Raw(load="x"*30)' @@ -92,8 +88,6 @@ MAC_IPV4_PAY_SRC_IP = { "match": [ 'Ether(src="00:11:22:33:44:55", dst="%s")/IP(src="192.168.0.0", dst="192.168.0.2")/Raw(load="x"*30)' % vf1_mac, - 'Ether(src="00:11:22:33:44:55", dst="%s")/IP(src="192.168.0.1", dst="192.168.0.2",frag=1)/Raw(load="x"*30)' - % vf1_mac, 'Ether(src="00:11:22:33:44:55", dst="%s")/IP(src="192.168.0.158", dst="192.168.0.2")/UDP()/Raw(load="x"*30)' % vf1_mac, 'Ether(src="00:11:22:33:44:55", dst="%s")/IP(src="192.168.0.255", dst="192.168.0.2")/TCP()/Raw(load="x"*30)' @@ -106,8 +100,6 @@ MAC_IPV4_PAY_SRC_IP = { "unmatch": [ 'Ether(src="00:11:22:33:44:55", dst="%s")/IP(src="192.168.1.1", dst="192.168.0.2")/Raw(load="x"*30)' % vf1_mac, - 'Ether(src="00:11:22:33:44:55", dst="%s")/IP(src="192.168.1.1", dst="192.168.0.2",frag=1)/Raw(load="x"*30)' - % vf1_mac, 'Ether(src="00:11:22:33:44:55", dst="%s")/IP(src="192.168.1.1", dst="192.168.0.2")/UDP()/Raw(load="x"*30)' % vf1_mac, 'Ether(src="00:11:22:33:44:55", dst="%s")/IP(src="192.168.1.1", dst="192.168.0.2")/TCP()/Raw(load="x"*30)' @@ -123,8 +115,6 @@ MAC_IPV4_PAY_DST_IP = { "match": [ 'Ether(src="00:11:22:33:44:55", dst="%s")/IP(src="192.168.0.1", dst="192.168.0.0")/Raw(load="x"*30)' % vf1_mac, - 'Ether(src="00:11:22:33:44:55", dst="%s")/IP(src="192.168.0.1", dst="192.168.0.0",frag=1)/Raw(load="x"*30)' - % vf1_mac, 'Ether(src="00:11:22:33:44:55", dst="%s")/IP(src="192.168.0.1", dst="192.168.0.158")/UDP()/Raw(load="x"*30)' % vf1_mac, 'Ether(src="00:11:22:33:44:55", dst="%s")/IP(src="192.168.0.1", dst="192.168.0.255")/TCP()/Raw(load="x"*30)' @@ -137,8 +127,6 @@ MAC_IPV4_PAY_DST_IP = { "unmatch": [ 'Ether(src="00:11:22:33:44:55", dst="%s")/IP(src="192.168.0.1", dst="192.168.1.2")/Raw(load="x"*30)' % vf1_mac, - 'Ether(src="00:11:22:33:44:55", dst="%s")/IP(src="192.168.0.1", dst="192.168.1.2",frag=1)/Raw(load="x"*30)' - % vf1_mac, 'Ether(src="00:11:22:33:44:55", dst="%s")/IP(src="192.168.0.1", dst="192.168.1.2")/UDP()/Raw(load="x"*30)' % vf1_mac, 'Ether(src="00:11:22:33:44:55", dst="%s")/IP(src="192.168.0.1", dst="192.168.1.2")/TCP()/Raw(load="x"*30)' @@ -154,8 +142,6 @@ MAC_IPV4_PAY_SRC_DST_IP = { "match": [ 'Ether(src="00:11:22:33:44:55", dst="%s")/IP(src="192.168.0.255", dst="192.168.0.2")/Raw(load="x"*30)' % vf1_mac, - 'Ether(src="00:11:22:33:44:55", dst="%s")/IP(src="192.168.0.255", dst="192.168.0.2",frag=1)/Raw(load="x"*30)' - % vf1_mac, 'Ether(src="00:11:22:33:44:55", dst="%s")/IP(src="192.168.0.158", dst="192.168.255.2")/UDP()/Raw(load="x"*30)' % vf1_mac, 'Ether(src="00:11:22:33:44:55", dst="%s")/IP(src="192.168.0.0", dst="192.168.1.2")/TCP()/Raw(load="x"*30)' @@ -168,8 +154,6 @@ MAC_IPV4_PAY_SRC_DST_IP = { "unmatch": [ 'Ether(src="00:11:22:33:44:55", dst="%s")/IP(src="192.168.1.1", dst="192.168.0.2")/Raw(load="x"*30)' % vf1_mac, - 'Ether(src="00:11:22:33:44:55", dst="%s")/IP(src="192.168.1.1", dst="192.168.0.2",frag=1)/Raw(load="x"*30)' - % vf1_mac, 'Ether(src="00:11:22:33:44:55", dst="%s")/IP(src="192.168.1.1", dst="192.168.0.2")/UDP()/Raw(load="x"*30)' % vf1_mac, 'Ether(src="00:11:22:33:44:55", dst="%s")/IP(src="192.168.0.1", dst="192.168.0.3")/TCP()/Raw(load="x"*30)' @@ -184,7 +168,6 @@ MAC_IPV4_PAY_SRC_DST_IP = { MAC_IPV4_PAY_SRC_DST_MAC_SRC_DST_IP = { "match": [ 'Ether(src="00:11:22:33:44:1b", dst="33:00:00:00:00:02")/IP(src="192.168.0.255", dst="192.168.0.2")/Raw(load="x"*30)', - 'Ether(src="00:11:22:33:44:1b", dst="33:00:00:00:00:02")/IP(src="192.168.0.255", dst="192.168.0.2",frag=1)/Raw(load="x"*30)', 'Ether(src="00:11:22:33:44:00", dst="33:00:00:00:00:03")/IP(src="192.168.0.158", dst="192.168.255.2")/UDP()/Raw(load="x"*30)', 'Ether(src="00:11:22:33:44:ff", dst="33:00:00:00:00:02")/IP(src="192.168.0.0", dst="192.168.1.2")/TCP()/Raw(load="x"*30)', 'Ether(src="00:11:22:33:44:ff", dst="33:00:00:00:00:02")/IP(src="192.168.0.0", dst="192.168.1.2")/SCTP()/Raw(load="x"*30)', @@ -192,8 +175,6 @@ MAC_IPV4_PAY_SRC_DST_MAC_SRC_DST_IP = { ], "unmatch": [ 'Ether(src="00:11:22:33:66:55", dst="33:00:00:00:00:02")/IP(src="192.168.0.1", dst="192.168.0.2")/Raw(load="x"*30)', - 'Ether(src="00:11:22:33:44:55", dst="%s")/IP(src="192.168.0.1", dst="192.168.0.2",frag=1)/Raw(load="x"*30)' - % vf1_mac, 'Ether(src="00:11:22:33:44:55", dst="33:00:00:00:00:01")/IP(src="192.168.0.1", dst="192.168.0.2")/UDP()/Raw(load="x"*30)', 'Ether(src="00:11:22:33:44:55", dst="33:00:00:00:00:02")/IP(src="192.168.1.1", dst="192.168.0.2")/TCP()/Raw(load="x"*30)', 'Ether(src="00:11:22:33:44:55", dst="33:00:00:00:00:02")/IP(src="192.168.0.1", dst="192.168.0.3")/SCTP()/Raw(load="x"*30)', From patchwork Wed May 25 11:19:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 111801 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 03588A0550; Wed, 25 May 2022 13:19:49 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F26A44280C; Wed, 25 May 2022 13:19:48 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 91DB0427F9 for ; Wed, 25 May 2022 13:19:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653477586; x=1685013586; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=KBxdm66R2Lo1FjJ36IXHMK5YEccXYy8D7OvCk7QTI8g=; b=iEB5/f8L+ItNlZnbxKV+4K6JwwWqVBriA2EQ6wsiLa9TI72OwXvyOqAn ZE6H0YO85o7Wt+6VNt/P9pQ2ZNV6Oy4pAeiWKY6F0uGVhLvtvt6/4JK6w JeazEmnZH/nR9N39aEUcCyFHqpxAMy/yGOx8nh8fFtPDypByiwesPbNQZ It4KInOuXhDmQAN/RYhoI5a9DcCJy7H8zED8rhiz2HULE3LZB8ndCW3oO wfFvEd4yl4U1vmlWlXjTFPR8bvIRjUbicsY7eT/jXZp1JYXC42ChNHb+Y lA8hXGS2nRNeW66Jx1WYx5hmBEhXipbJv82iVB0N5nKG0bt1+XP3xnQ7X A==; X-IronPort-AV: E=McAfee;i="6400,9594,10357"; a="253661072" X-IronPort-AV: E=Sophos;i="5.91,250,1647327600"; d="scan'208";a="253661072" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 May 2022 04:19:45 -0700 X-IronPort-AV: E=Sophos;i="5.91,250,1647327600"; d="scan'208";a="548972271" Received: from unknown (HELO daily-regression-131.intel.com) ([10.239.251.131]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 May 2022 04:19:44 -0700 From: Jiale Song To: dts@dpdk.org Cc: Jiale Song Subject: [dts] [PATCH V2 5/8] tests/ice_switch_filter: create rss rule to switch on ip fragment rss function Date: Wed, 25 May 2022 19:19:31 +0800 Message-Id: <20220525111934.106784-5-songx.jiale@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220525111934.106784-1-songx.jiale@intel.com> References: <20220525111934.106784-1-songx.jiale@intel.com> MIME-Version: 1.0 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 modify the script to adapt to the change of dpdk function. add rule to enable ip fragment RSS function. According to dpdk commit cc46bab5968 ("net/ice: remove support for IP fragment default RSS"). Signed-off-by: Jiale Song --- test_plans/ice_switch_filter_test_plan.rst | 20 +++++++++++++++++ tests/TestSuite_ice_switch_filter.py | 26 ++++++++++++++++------ 2 files changed, 39 insertions(+), 7 deletions(-) diff --git a/test_plans/ice_switch_filter_test_plan.rst b/test_plans/ice_switch_filter_test_plan.rst index b6d0d596..6db690fb 100644 --- a/test_plans/ice_switch_filter_test_plan.rst +++ b/test_plans/ice_switch_filter_test_plan.rst @@ -2766,6 +2766,10 @@ to queue action check the rule not exists in the list. + create rss rule to switch on ipfrag rss function:: + + flow create 0 ingress pattern eth / ipv4 / end actions rss types ipv4-frag end key_len 0 queues end / end + 2. create a rule:: testpmd> flow create 0 priority 0 ingress pattern eth / ipv4 src is 192.168.0.2 dst is 192.168.0.3 tos is 4 / end actions queue index 3 / end @@ -2808,6 +2812,10 @@ to queue group action check the rule not exists in the list. + create rss rule to switch on ipfrag rss function:: + + flow create 0 ingress pattern eth / ipv4 / end actions rss types ipv4-frag end key_len 0 queues end / end + 2. create a rule:: testpmd> flow create 0 priority 0 ingress pattern eth / ipv4 src is 192.168.0.2 dst is 192.168.0.3 tos is 4 / end actions rss queues 2 3 end / end @@ -3528,6 +3536,10 @@ to queue group action check the rule not exists in the list. + create rss rule to switch on ipfrag rss function:: + + flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext / end actions rss types ipv6-frag end key_len 0 queues end / end + 2. create a rule:: testpmd> flow create 0 priority 0 ingress pattern eth / ipv6 src is CDCD:910A:2222:5498:8475:1111:3900:1515 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 / end actions rss queues 2 3 end / end @@ -3627,6 +3639,10 @@ to queue action check the rule not exists in the list. + create rss rule to switch on ipfrag rss function:: + + flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext / end actions rss types ipv6-frag end key_len 0 queues end / end + 2. create a rule:: testpmd> flow create 0 priority 0 ingress pattern eth / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 tc is 3 / end actions queue index 3 / end @@ -3669,6 +3685,10 @@ to queue group action check the rule not exists in the list. + create rss rule to switch on ipfrag rss function:: + + flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext / end actions rss types ipv6-frag end key_len 0 queues end / end + 2. create a rule:: testpmd> flow create 0 priority 0 ingress pattern eth / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 tc is 3 / end actions rss queues 2 3 end / end diff --git a/tests/TestSuite_ice_switch_filter.py b/tests/TestSuite_ice_switch_filter.py index 2622a5cd..c402fffc 100644 --- a/tests/TestSuite_ice_switch_filter.py +++ b/tests/TestSuite_ice_switch_filter.py @@ -3087,7 +3087,9 @@ mac_ipv4_frag_pipeline_mode_scapy_str = { tv_mac_ipv4_frag_pipeline_mode_in_queue_01 = { "name": "tv_mac_ipv4_frag_pipeline_mode_in_queue_01", - "rte_flow_pattern": "flow create 0 priority 0 ingress pattern eth / ipv4 src is 192.168.0.2 dst is 192.168.0.3 tos is 4 / end actions queue index 3 / end", + "rte_flow_pattern": [ + "flow create 0 ingress pattern eth / ipv4 / end actions rss types ipv4-frag end key_len 0 queues end / end", + "flow create 0 priority 0 ingress pattern eth / ipv4 src is 192.168.0.2 dst is 192.168.0.3 tos is 4 / end actions queue index 3 / end",], "configuration": {"is_non_pipeline": False, "is_need_rss_rule": False}, "matched": { "scapy_str": mac_ipv4_frag_pipeline_mode_scapy_str["matched"], @@ -3109,7 +3111,9 @@ tv_mac_ipv4_frag_pipeline_mode_in_queue_01 = { tv_mac_ipv4_frag_pipeline_mode_queue_region_02 = { "name": "tv_mac_ipv4_frag_pipeline_mode_queue_region_02", - "rte_flow_pattern": "flow create 0 priority 0 ingress pattern eth / ipv4 src is 192.168.0.2 dst is 192.168.0.3 tos is 4 / end actions rss queues 2 3 end / end", + "rte_flow_pattern": [ + "flow create 0 ingress pattern eth / ipv4 / end actions rss types ipv4-frag end key_len 0 queues end / end", + "flow create 0 priority 0 ingress pattern eth / ipv4 src is 192.168.0.2 dst is 192.168.0.3 tos is 4 / end actions rss queues 2 3 end / end",], "configuration": {"is_non_pipeline": False, "is_need_rss_rule": False}, "matched": { "scapy_str": mac_ipv4_frag_pipeline_mode_scapy_str["matched"], @@ -3525,7 +3529,9 @@ mac_ipv6_src_ipv6_dst_ipv6_pipeline_mode_scapy_str = { tv_mac_ipv6_src_ipv6_dst_ipv6_pipeline_mode_in_queue_01 = { "name": "tv_mac_ipv6_src_ipv6_dst_ipv6_pipeline_mode_in_queue_01", - "rte_flow_pattern": "flow create 0 priority 0 ingress pattern eth / ipv6 src is CDCD:910A:2222:5498:8475:1111:3900:1515 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 / end actions queue index 5 / end", + "rte_flow_pattern": [ + "flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext / end actions rss types ipv6-frag end key_len 0 queues end / end", + "flow create 0 priority 0 ingress pattern eth / ipv6 src is CDCD:910A:2222:5498:8475:1111:3900:1515 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 / end actions queue index 5 / end",], "configuration": {"is_non_pipeline": False, "is_need_rss_rule": False}, "matched": { "scapy_str": mac_ipv6_src_ipv6_dst_ipv6_pipeline_mode_scapy_str["matched"], @@ -3547,7 +3553,9 @@ tv_mac_ipv6_src_ipv6_dst_ipv6_pipeline_mode_in_queue_01 = { tv_mac_ipv6_src_ipv6_dst_ipv6_pipeline_mode_queue_region_02 = { "name": "tv_mac_ipv6_src_ipv6_dst_ipv6_pipeline_mode_queue_region_02", - "rte_flow_pattern": "flow create 0 priority 0 ingress pattern eth / ipv6 src is CDCD:910A:2222:5498:8475:1111:3900:1515 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 / end actions rss queues 2 3 end / end", + "rte_flow_pattern": [ + "flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext / end actions rss types ipv6-frag end key_len 0 queues end / end", + "flow create 0 priority 0 ingress pattern eth / ipv6 src is CDCD:910A:2222:5498:8475:1111:3900:1515 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 / end actions rss queues 2 3 end / end",], "configuration": {"is_non_pipeline": False, "is_need_rss_rule": False}, "matched": { "scapy_str": mac_ipv6_src_ipv6_dst_ipv6_pipeline_mode_scapy_str["matched"], @@ -3611,7 +3619,9 @@ mac_ipv6_dst_ipv6_tc_pipeline_mode_scapy_str = { tv_mac_ipv6_dst_ipv6_tc_pipeline_mode_in_queue_01 = { "name": "tv_mac_ipv6_dst_ipv6_tc_pipeline_mode_in_queue_01", - "rte_flow_pattern": "flow create 0 priority 0 ingress pattern eth / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 tc is 3 / end actions queue index 3 / end", + "rte_flow_pattern": [ + "flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext / end actions rss types ipv6-frag end key_len 0 queues end / end", + "flow create 0 priority 0 ingress pattern eth / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 tc is 3 / end actions queue index 3 / end",], "configuration": {"is_non_pipeline": False, "is_need_rss_rule": False}, "matched": { "scapy_str": mac_ipv6_dst_ipv6_tc_pipeline_mode_scapy_str["matched"], @@ -3633,7 +3643,9 @@ tv_mac_ipv6_dst_ipv6_tc_pipeline_mode_in_queue_01 = { tv_mac_ipv6_dst_ipv6_tc_pipeline_mode_queue_region_02 = { "name": "tv_mac_ipv6_dst_ipv6_tc_pipeline_mode_queue_region_02", - "rte_flow_pattern": "flow create 0 priority 0 ingress pattern eth / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 tc is 3 / end actions rss queues 2 3 end / end", + "rte_flow_pattern": [ + "flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext / end actions rss types ipv6-frag end key_len 0 queues end / end", + "flow create 0 priority 0 ingress pattern eth / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 tc is 3 / end actions rss queues 2 3 end / end",], "configuration": {"is_non_pipeline": False, "is_need_rss_rule": False}, "matched": { "scapy_str": mac_ipv6_dst_ipv6_tc_pipeline_mode_scapy_str["matched"], @@ -4445,7 +4457,7 @@ class ICESwitchFilterTest(TestCase): if isinstance(rte_flow_pattern, list): for rule in rte_flow_pattern: out = self.dut.send_expect(rule, "testpmd> ") # create a rule - if s not in out: + if s not in out and 'frag' not in rule: rule_list.append(False) else: m = p.search(out) From patchwork Wed May 25 11:19:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 111802 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 22269A0550; Wed, 25 May 2022 13:19:50 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1B1964282A; Wed, 25 May 2022 13:19:50 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id C1811400EF for ; Wed, 25 May 2022 13:19:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653477588; x=1685013588; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Kb5dGSKx2o8W+zjfS+TWwlwmT4cUafnxJPbl2MXDBxw=; b=bDiOCs88trz8zsIIyM7vZs9JPmaaxzonmrM1MGaWROyXtLklz+Kgj5t3 +5I3j44LxNVV824NYfuL8EZYsM8k2U/KlXVFZa+Zs3cNFev6VbAlzYYpy ReJoBi7U2XrMM94a/pz1olCvkS1ZVgNIEO5ECBkbX81E1/HlZd6MiTuD6 RkxIz7gmDKWwE6oAGoUROblqpR8oLVHS0+1R/KQBPcbuhvhL+zej3hFQQ qN0X617GEBnpSmmg8Uy7D8S7+ChRrTiTl4j2r6EDX8vRr6La5sC+pswPB 5gDby8d6FdaMOfT/GAXDNZUGGdb36GOkdL0hPfKey9CEEOgI4ZEa4ArBC g==; X-IronPort-AV: E=McAfee;i="6400,9594,10357"; a="253661076" X-IronPort-AV: E=Sophos;i="5.91,250,1647327600"; d="scan'208";a="253661076" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 May 2022 04:19:46 -0700 X-IronPort-AV: E=Sophos;i="5.91,250,1647327600"; d="scan'208";a="548972286" Received: from unknown (HELO daily-regression-131.intel.com) ([10.239.251.131]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 May 2022 04:19:45 -0700 From: Jiale Song To: dts@dpdk.org Cc: Jiale Song Subject: [dts] [PATCH V2 6/8] tests/ice_fdir: remove or replace ip fragment packets Date: Wed, 25 May 2022 19:19:32 +0800 Message-Id: <20220525111934.106784-6-songx.jiale@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220525111934.106784-1-songx.jiale@intel.com> References: <20220525111934.106784-1-songx.jiale@intel.com> MIME-Version: 1.0 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 modify the script to adapt to the change of dpdk function. replace or remove IP fragment packets with corresponding packets. According to dpdk commit cc46bab5968 ("net/ice: remove support for IP fragment default RSS"). Signed-off-by: Jiale Song --- test_plans/ice_fdir_test_plan.rst | 23 +++++++++++------------ tests/TestSuite_ice_fdir.py | 27 +++++++++++++-------------- 2 files changed, 24 insertions(+), 26 deletions(-) diff --git a/test_plans/ice_fdir_test_plan.rst b/test_plans/ice_fdir_test_plan.rst index 906b3527..0bf5352c 100644 --- a/test_plans/ice_fdir_test_plan.rst +++ b/test_plans/ice_fdir_test_plan.rst @@ -210,7 +210,6 @@ Send packets matched packets:: sendp([Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", proto=255, ttl=2, tos=4) / Raw('x' * 80)],iface="enp175s0f0") - sendp([Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", frag=1, proto=255, ttl=2, tos=4)/Raw('x' * 80)],iface="enp175s0f0") unmatched packets:: @@ -819,11 +818,11 @@ Subcase 7: MAC_IPV4_PAY protocal 2. send matched packets:: pkt1 = Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", proto=1) / Raw('x' * 80) - pkt2 = Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", frag=1, proto=1) / Raw('x' * 80) + pkt2 = Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.19",dst="192.168.0.21", proto=1)/Raw('x' * 80) pkt3 = Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", ttl=2, tos=4) /UDP(sport=22,dport=23)/Raw('x' * 80) - pkt4 = Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", frag=1, ttl=2, tos=4) /UDP(sport=22,dport=23)/Raw('x' * 80) + pkt4 = Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", proto=17)/TCP(sport=22, dport=23)/Raw('x' * 80) pkt5 = Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", proto=17, ttl=2, tos=4)/Raw('x' * 80) - pkt6 = Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", frag=1, proto=17, ttl=2, tos=4)/Raw('x' * 80) + pkt6 = Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", proto=17, ttl=2, tos=4)/UDP(sport=22,dport=23)/TCP(sport=22, dport=23)/Raw('x' * 80) check the pkt1 and pkt2 are redirected to queue 1 with FDIR matched ID=0x1. check the pkt3-pkt6 are distributed by RSS with FDIR matched ID=0x3. @@ -832,7 +831,7 @@ Subcase 7: MAC_IPV4_PAY protocal pkt7 = Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.22", proto=1) / Raw('x' * 80) pkt8 = Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", proto=6) / Raw('x' * 80) pkt9 = Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21")/TCP(sport=22,dport=23)/ Raw('x' * 80) - pkt10 = Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", frag=1)/TCP(sport=22,dport=23)/ Raw('x' * 80) + pkt10 = Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21")/TCP(sport=22,dport=23)/UDP(sport=22,dport=23)/Raw('x' * 80) check the packets received are distributed by RSS without FDIR matched ID. @@ -1055,15 +1054,15 @@ Subcase 7: MAC_IPV6_PAY protocal 1. create filter rules:: - flow create 0 ingress pattern eth / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 proto is 44 / end actions rss queues 5 6 end / mark id 1 / end + flow create 0 ingress pattern eth / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 proto is 17 / end actions rss queues 5 6 end / mark id 1 / end flow create 0 ingress pattern eth / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 proto is 6 / end actions mark id 2 / rss / end 2. send matched packets:: - pkt1 = Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", src="ABAB:910A:2222:5498:8475:1111:3900:1010", nh=44, tc=1, hlim=2)/("X"*480) - pkt2 = Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", src="ABAB:910A:2222:5498:8475:1111:3900:1010")/IPv6ExtHdrFragment(b'1000')/("X"*480) - pkt3 = Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", src="ABAB:910A:2222:5498:8475:1111:3900:1010", nh=44)/TCP(sport=22,dport=23)/("X"*480) - pkt4 = Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", src="ABAB:910A:2222:5498:8475:1111:3900:1010")/IPv6ExtHdrFragment(b'1000')/TCP(sport=22,dport=23)/("X"*480) + pkt1 = Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", src="ABAB:910A:2222:5498:8475:1111:3900:1010", nh=17, tc=1, hlim=2)/("X"*480) + pkt2 = Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=17)/("X"*480) + pkt3 = Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", src="ABAB:910A:2222:5498:8475:1111:3900:1010", nh=17)/TCP(sport=22,dport=23)/("X"*480) + pkt4 = Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", tc=1, hlim=2)/UDP(sport=22,dport=23)/TCP(sport=22,dport=23)/("X"*480) pkt5 = Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/("X"*480) pkt6 = Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/TCP(sport=22,dport=23)/("X"*480) @@ -1071,8 +1070,8 @@ Subcase 7: MAC_IPV6_PAY protocal check pkt5 and pkt6 are distributed by RSS with FDIR matched ID=0x2. send unmatched packets:: - pkt8 = Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/UDP(sport=22,dport=23)/("X"*480) - pkt9 = Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=17)/("X"*480) + pkt8 = Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2021", nh=17)/("X"*480) + pkt9 = Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=1)/("X"*480) check the packets are distributed by RSS have not FDIR matched ID. diff --git a/tests/TestSuite_ice_fdir.py b/tests/TestSuite_ice_fdir.py index 7b642f70..ca1abd21 100644 --- a/tests/TestSuite_ice_fdir.py +++ b/tests/TestSuite_ice_fdir.py @@ -45,7 +45,6 @@ from framework.utils import GREEN, RED MAC_IPV4_PAY = { "match": [ 'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", proto=255, ttl=2, tos=4) / Raw("x" * 80)', - 'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", frag=1, proto=255, ttl=2, tos=4)/Raw("x" * 80)', ], "unmatched": [ 'Ether(dst="00:11:22:33:44:56")/IP(src="192.168.0.20",dst="192.168.0.22", proto=255, ttl=2, tos=4) / Raw("x" * 80)', @@ -3149,11 +3148,11 @@ class TestICEFdir(TestCase): ] rule_li = self.create_fdir_rule(rules, check_stats=True) pkt1 = 'Ether(dst="00:11:22:33:44:55") / IP(src="192.168.0.20", dst="192.168.0.21", proto=1) / Raw("x" * 80)' - pkt2 = 'Ether(dst="00:11:22:33:44:55") / IP(src="192.168.0.20", dst="192.168.0.21", frag=1, proto=1) / Raw("x" * 80)' + pkt2 = 'Ether(dst="00:11:22:33:44:55") / IP(src="192.168.0.19", dst="192.168.0.21", proto=1)/Raw("x" * 80)' pkt3 = 'Ether(dst="00:11:22:33:44:55") / IP(src="192.168.0.20", dst="192.168.0.21", ttl=2, tos=4) / UDP(sport=22, dport=23) / Raw("x" * 80)' - pkt4 = 'Ether(dst="00:11:22:33:44:55") / IP(src="192.168.0.20", dst="192.168.0.21", frag=1, ttl=2, tos=4) / UDP(sport=22, dport=23) / Raw("x" * 80)' + pkt4 = 'Ether(dst="00:11:22:33:44:55") / IP(src="192.168.0.20", dst="192.168.0.21", proto=17)/TCP(sport=22, dport=23)/Raw("x" * 80)' pkt5 = 'Ether(dst="00:11:22:33:44:55") / IP(src="192.168.0.20", dst="192.168.0.21", proto=17, ttl=2, tos=4) / Raw("x" * 80)' - pkt6 = 'Ether(dst="00:11:22:33:44:55") / IP(src="192.168.0.20", dst="192.168.0.21", frag=1, proto=17, ttl=2, tos=4) / Raw("x" * 80)' + pkt6 = 'Ether(dst="00:11:22:33:44:55") / IP(src="192.168.0.19", dst="192.168.0.21", proto=17, ttl=2, tos=4)/UDP(sport=22,dport=23)/TCP(sport=22, dport=23)/Raw("x" * 80)' out = self.send_pkts_getouput([pkt1, pkt2]) port_id = 0 @@ -3190,7 +3189,7 @@ class TestICEFdir(TestCase): pkt7 = 'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.22", proto=1) / Raw("x" * 80)' pkt8 = 'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", proto=6) / Raw("x" * 80)' pkt9 = 'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21")/TCP(sport=22,dport=23)/ Raw("x" * 80)' - pkt10 = 'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", frag=1)/TCP(sport=22,dport=23)/ Raw("x" * 80)' + pkt10 = 'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21")/TCP(sport=22,dport=23)/UDP(sport=22,dport=23)/Raw("x" * 80)' out3 = self.send_pkts_getouput([pkt7, pkt8, pkt9, pkt10]) fdir_scanner = re.compile("FDIR matched ID=(0x\w+)") @@ -3220,14 +3219,14 @@ class TestICEFdir(TestCase): def test_mac_ipv6_pay_protocal(self): rules = [ - "flow create 0 ingress pattern eth / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 proto is 44 / end actions rss queues 5 6 end / mark id 1 / end", + "flow create 0 ingress pattern eth / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 proto is 17 / end actions rss queues 5 6 end / mark id 1 / end", "flow create 0 ingress pattern eth / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 proto is 6 / end actions mark id 2 / rss / end", ] rule_li = self.create_fdir_rule(rules, check_stats=True) - pkt1 = 'Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", src="ABAB:910A:2222:5498:8475:1111:3900:1010", nh=44, tc=1, hlim=2)/("X"*480)' - pkt2 = 'Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", src="ABAB:910A:2222:5498:8475:1111:3900:1010")/IPv6ExtHdrFragment(b"1000")/("X"*480)' - pkt3 = 'Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", src="ABAB:910A:2222:5498:8475:1111:3900:1010", nh=44)/TCP(sport=22,dport=23)/("X"*480)' - pkt4 = 'Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", src="ABAB:910A:2222:5498:8475:1111:3900:1010")/IPv6ExtHdrFragment(b"1000")/TCP(sport=22,dport=23)/("X"*480)' + pkt1 = 'Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", src="ABAB:910A:2222:5498:8475:1111:3900:1010", nh=17, tc=1, hlim=2)/("X"*480)' + pkt2 = 'Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=17)/("X"*480)' + pkt3 = 'Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", src="ABAB:910A:2222:5498:8475:1111:3900:1010", nh=17)/TCP(sport=22,dport=23)/("X"*480)' + pkt4 = 'Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", tc=1, hlim=2)/UDP(sport=22,dport=23)/TCP(sport=22,dport=23)/("X"*480)' pkt5 = 'Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/("X"*480)' pkt6 = 'Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/TCP(sport=22,dport=23)/("X"*480)' @@ -3263,8 +3262,8 @@ class TestICEFdir(TestCase): "wrong received mark id %s, expect 0x2" % pkt_mark_id, ) - pkt8 = 'Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/UDP(sport=22,dport=23)/("X"*480)' - pkt9 = 'Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=17)/("X"*480)' + pkt8 = 'Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2021", nh=17)/("X"*480)' + pkt9 = 'Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=1)/("X"*480)' out3 = self.send_pkts_getouput([pkt8, pkt9]) fdir_scanner = re.compile("FDIR matched ID=(0x\w+)") @@ -3537,8 +3536,8 @@ class TestICEFdir(TestCase): check_param={"port_id": 1, "rss": True}, stats=False, ) - self.query_count(1, 2, 0, 0) - self.query_count(1, 2, 1, 0) + self.query_count(1, 1, 0, 0) + self.query_count(1, 1, 1, 0) self.check_fdir_rule(port_id=0, stats=True, rule_list=["0"]) self.check_fdir_rule(port_id=1, stats=True, rule_list=["0"]) self.destroy_fdir_rule(0, ["0"]) From patchwork Wed May 25 11:19:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 111803 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 48526A0551; Wed, 25 May 2022 13:19:51 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 42ECC427F9; Wed, 25 May 2022 13:19:51 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 3E4FE400EF for ; Wed, 25 May 2022 13:19:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653477589; x=1685013589; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=2+0WSH2Rh4TOpAg4IQceCxtB+V7a79noP2yX5lcsVJs=; b=IhkCayhFLJdG0emYWO2K6Fe94VdSX2K4znM1975EpHZub2KEruQ6wGoK HqP3+Yox4M+CuUYV6zrWDc0IM6YMgajV8iKMRKuf4QEpQmntWDe6eNy7i RZm+FOC89DLDS/84MPsqPaDPb40uOp9uLxsV9ZEPVwFgDDHuHdnvnkF4Z E3SVrL1+qgegMbu2C+YAHr5UtABD84GNvROi4+GaQcrOa0gP/cyapRW03 zIXeXjDGD7plXzIP5LlcMTng2uYlxPPvp2b6tRNUK8RuHaTYxRoMo2aqs mBcuCluvNVPfPNReLD/7hzIUmp3wVa5QuGej6qch1n6UYz7ohNygS49hd g==; X-IronPort-AV: E=McAfee;i="6400,9594,10357"; a="253661078" X-IronPort-AV: E=Sophos;i="5.91,250,1647327600"; d="scan'208";a="253661078" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 May 2022 04:19:48 -0700 X-IronPort-AV: E=Sophos;i="5.91,250,1647327600"; d="scan'208";a="548972303" Received: from unknown (HELO daily-regression-131.intel.com) ([10.239.251.131]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 May 2022 04:19:47 -0700 From: Jiale Song To: dts@dpdk.org Cc: Jiale Song Subject: [dts] [PATCH V2 7/8] tests/ice_iavf_fdir: remove or replace ip fragment packets Date: Wed, 25 May 2022 19:19:33 +0800 Message-Id: <20220525111934.106784-7-songx.jiale@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220525111934.106784-1-songx.jiale@intel.com> References: <20220525111934.106784-1-songx.jiale@intel.com> MIME-Version: 1.0 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 modify the script to adapt to the change of dpdk function. replace or remove IP fragment packets with corresponding packets. close the testpmd started in set_up, it will cause the case to fail. According to dpdk commit f8d541da518 ("net/iavf: remove support for IP fragment default RSS"). Signed-off-by: Jiale Song --- test_plans/ice_iavf_fdir_test_plan.rst | 25 +++++++++++------------ tests/TestSuite_ice_iavf_fdir.py | 28 ++++++++++++++------------ 2 files changed, 27 insertions(+), 26 deletions(-) diff --git a/test_plans/ice_iavf_fdir_test_plan.rst b/test_plans/ice_iavf_fdir_test_plan.rst index f5940e1c..5b349738 100644 --- a/test_plans/ice_iavf_fdir_test_plan.rst +++ b/test_plans/ice_iavf_fdir_test_plan.rst @@ -316,7 +316,6 @@ Send packets matched packets:: sendp([Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", proto=255, ttl=2, tos=4) / Raw('x' * 80)],iface="enp134s0f1") - sendp([Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", frag=1, proto=255, ttl=2, tos=4)/Raw('x' * 80)],iface="enp134s0f1") sendp([Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", proto=255, ttl=2, tos=4)/UDP(sport=22,dport=23)/Raw('x' * 80)],iface="enp134s0f1") mismatched packets:: @@ -1359,11 +1358,11 @@ Subcase 7: MAC_IPV4_PAY protocal 2. send matched packets:: pkt1 = Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", proto=1)/Raw('x' * 80) - pkt2 = Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", frag=1, proto=1)/Raw('x' * 80) + pkt2 = Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.19",dst="192.168.0.21", proto=1)/Raw('x' * 80) pkt3 = Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", ttl=2, tos=4)/UDP(sport=22,dport=23)/Raw('x' * 80) - pkt4 = Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", frag=1, ttl=2, tos=4)/UDP(sport=22,dport=23)/Raw('x' * 80) + pkt4 = Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", proto=17)/TCP(sport=22,dport=23)/Raw('x' * 80) pkt5 = Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", proto=17, ttl=2, tos=4)/Raw('x' * 80) - pkt6 = Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", frag=1, proto=17, ttl=2, tos=4)/Raw('x' * 80) + pkt6 = Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", proto=17)/Raw('x' * 80) check the pkt1 and pkt2 are redirected to queue 1 with FDIR matched ID=0x1. check the pkt3-pkt6 are distributed by RSS with FDIR matched ID=0x3. @@ -1372,7 +1371,7 @@ Subcase 7: MAC_IPV4_PAY protocal pkt7 = Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.22", proto=1)/Raw('x' * 80) pkt8 = Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", proto=6)/UDP(sport=22,dport=23)/Raw('x' * 80) pkt9 = Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21")/TCP(sport=22,dport=23)/Raw('x' * 80) - pkt10 = Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", frag=1)/TCP(sport=22,dport=23)/Raw('x' * 80) + pkt10 = Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", ttl=2, tos=4)/SCTP()/Raw('x' * 80) check the packets received have not FDIR matched ID. @@ -1594,15 +1593,15 @@ Subcase 7: MAC_IPV6_PAY protocal 1. create filter rules:: - flow create 0 ingress pattern eth / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 proto is 44 / end actions rss queues 5 6 end / mark id 0 / end + flow create 0 ingress pattern eth / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 proto is 17 / end actions rss queues 5 6 end / mark id 0 / end flow create 0 ingress pattern eth / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 proto is 6 / end actions mark id 2 / rss / end 2. send matched packets:: - pkt1 = Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", src="2001::2", nh=44, tc=1, hlim=2)/("X"*480) - pkt2 = Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrFragment(100)/("X"*480) - pkt3 = Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=44)/TCP(sport=22,dport=23)/("X"*480) - pkt4 = Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrFragment(100)/TCP(sport=22,dport=23)/("X"*480) + pkt1 = Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", src="2001::2", nh=17, tc=1, hlim=2)/("X"*480) + pkt2 = Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/UDP(sport=22,dport=23)/("X"*480) + pkt3 = Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=17)/TCP(sport=22,dport=23)/("X"*480) + pkt4 = Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/UDP(sport=22,dport=23)/TCP(sport=22,dport=23)/("X"*480) pkt5 = Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/("X"*480) pkt6 = Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/TCP(sport=22,dport=23)/("X"*480) @@ -1610,9 +1609,9 @@ Subcase 7: MAC_IPV6_PAY protocal check pkt5 and pkt6 are distributed by RSS with FDIR matched ID=0x2. send mismatched packets:: - pkt7 = Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2021", nh=44)/("X"*480) - pkt8 = Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/UDP(sport=22,dport=23)/("X"*480) - pkt9 = Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=17)/TCP(sport=22,dport=23)/("X"*480) + pkt7 = Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2021", nh=1)/("X"*480) + pkt8 = Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/SCTP()/("X"*480) + pkt9 = Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=1)/TCP(sport=22,dport=23)/("X"*480) check the packets are received without FDIR matched ID. diff --git a/tests/TestSuite_ice_iavf_fdir.py b/tests/TestSuite_ice_iavf_fdir.py index 376275b7..f5a1d665 100644 --- a/tests/TestSuite_ice_iavf_fdir.py +++ b/tests/TestSuite_ice_iavf_fdir.py @@ -46,7 +46,6 @@ from .rte_flow_common import TXQ_RXQ_NUMBER MAC_IPV4_PAY = { "match": [ 'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", proto=255, ttl=2, tos=4) / Raw("x" * 80)', - 'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", frag=1, proto=255, ttl=2, tos=4)/Raw("x" * 80)', 'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", proto=255, ttl=2, tos=4)/UDP(sport=22,dport=23)/Raw("x" * 80)', ], "mismatch": [ @@ -61,17 +60,17 @@ MAC_IPV4_PAY = { MAC_IPV4_PAY_protocol = { "match": [ 'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", proto=1)/Raw("x" * 80)', - 'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", frag=1, proto=1)/Raw("x" * 80)', + 'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.19",dst="192.168.0.21", proto=1)/Raw("x" * 80)', 'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", ttl=2, tos=4)/UDP(sport=22,dport=23)/Raw("x" * 80)', - 'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", frag=1, ttl=2, tos=4)/UDP(sport=22,dport=23)/Raw("x" * 80)', + 'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", proto=17)/TCP(sport=22,dport=23)/Raw("x" * 80)', 'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", proto=17, ttl=2, tos=4)/Raw("x" * 80)', - 'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", frag=1, proto=17, ttl=2, tos=4)/Raw("x" * 80)', + 'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", proto=17)/Raw("x" * 80)', ], "mismatch": [ 'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.22", proto=1)/Raw("x" * 80)', 'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", proto=6)/UDP(sport=22,dport=23)/Raw("x" * 80)', 'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21")/TCP(sport=22,dport=23)/Raw("x" * 80)', - 'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", frag=1)/TCP(sport=22,dport=23)/Raw("x" * 80)', + 'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", ttl=2, tos=4)/SCTP()/Raw("x" * 80)', ], } @@ -136,17 +135,17 @@ MAC_IPV6_PAY = { MAC_IPV6_PAY_protocol = { "match": [ - 'Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", src="2001::2", nh=44, tc=1, hlim=2)/("X"*480)', - 'Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrFragment()/("X"*480)', - 'Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=44)/TCP(sport=22,dport=23)/("X"*480)', - 'Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrFragment()/TCP(sport=22,dport=23)/("X"*480)', + 'Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", src="2001::2", nh=17, tc=1, hlim=2)/("X"*480)', + 'Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/UDP(sport=22,dport=23)/("X"*480)', + 'Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=17)/TCP(sport=22,dport=23)/("X"*480)', + 'Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/UDP(sport=22,dport=23)/TCP(sport=22,dport=23)/("X"*480)', 'Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/("X"*480)', 'Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/TCP(sport=22,dport=23)/("X"*480)', ], "mismatch": [ - 'Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2021", nh=44)/("X"*480)', - 'Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/UDP(sport=22,dport=23)/("X"*480)', - 'Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=17)/TCP(sport=22,dport=23)/("X"*480)', + 'Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2021", nh=1)/("X"*480)', + 'Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/SCTP()/("X"*480)', + 'Ether(dst="00:11:22:33:44:55")/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=1)/TCP(sport=22,dport=23)/("X"*480)', ], } @@ -8815,7 +8814,7 @@ class TestICEIAVFFdir(TestCase): def test_mac_ipv6_protocol(self): rules = [ - "flow create 0 ingress pattern eth / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 proto is 44 / end actions rss queues 5 6 end / mark id 0 / end", + "flow create 0 ingress pattern eth / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 proto is 17 / end actions rss queues 5 6 end / mark id 0 / end", "flow create 0 ingress pattern eth / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 proto is 6 / end actions mark id 2 / rss / end", ] @@ -9397,6 +9396,7 @@ class TestICEIAVFFdir(TestCase): """ create same rules on pf and vf, no conflict """ + self.pmd_output.quit() self.session_secondary = self.dut.new_session() self.session_third = self.dut.new_session() @@ -9637,6 +9637,7 @@ class TestICEIAVFFdir(TestCase): """ create same input set but different action rules on pf and vf, no conflict. """ + self.pmd_output.quit() self.session_secondary = self.dut.new_session() self.session_third = self.dut.new_session() @@ -9900,6 +9901,7 @@ class TestICEIAVFFdir(TestCase): """ create different rules on pf and vf """ + self.pmd_output.quit() self.session_secondary = self.dut.new_session() self.session_third = self.dut.new_session() From patchwork Wed May 25 11:19:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 111804 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 72361A0550; Wed, 25 May 2022 13:19:51 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6CB5D42B70; Wed, 25 May 2022 13:19:51 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id ECFC7427F9 for ; Wed, 25 May 2022 13:19:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653477590; x=1685013590; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=1lU7Igphun/BVYOwQrShsqNKF+10RbV8trCbug4049A=; b=UqCOXJUMx2P7UyeAIZF13c7s4my3iyIhAsWTw7BawAt14K0M8rrkCXvX xAtoE0xyl2+v+1FSw546bqVvsDh1bTgf523Mq8LcfO4yv/oTqTe0z+IP8 WgMOLgZPdbTdKi5dE3HEMTOyvJSzxjtPMNBWL1EQzprkLjh9tFMHL2V6r 7HV92C6I5P7MZDY2m1QvQyidd4A2Wpq5Yl1weyQY/BkUjpzI7bQpM3nGr JKgSaljtZPgF8X1KOhG3/mUpn4u7b++TqjoV5mPcdIKbKSQsGVt2YSaXQ dVA/W92BVhnlb1ih5nXstWw3i52d/jxM14feo6X1zadtZy2VvnsjD+ICC w==; X-IronPort-AV: E=McAfee;i="6400,9594,10357"; a="253661083" X-IronPort-AV: E=Sophos;i="5.91,250,1647327600"; d="scan'208";a="253661083" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 May 2022 04:19:49 -0700 X-IronPort-AV: E=Sophos;i="5.91,250,1647327600"; d="scan'208";a="548972312" Received: from unknown (HELO daily-regression-131.intel.com) ([10.239.251.131]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 May 2022 04:19:48 -0700 From: Jiale Song To: dts@dpdk.org Cc: Jiale Song Subject: [dts] [PATCH V2 8/8] tests/vf_rss: remove ip fragment packets Date: Wed, 25 May 2022 19:19:34 +0800 Message-Id: <20220525111934.106784-8-songx.jiale@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220525111934.106784-1-songx.jiale@intel.com> References: <20220525111934.106784-1-songx.jiale@intel.com> MIME-Version: 1.0 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 modify the script to adapt to the change of dpdk function. remove ip fragment packets, dpdk no longer supports ip fragment default RSS. According to dpdk commit f8d541da518 ("net/iavf: remove support for IP fragment default RSS"). Signed-off-by: Jiale Song Acked-by: Lijuan Tu --- tests/TestSuite_vf_rss.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/TestSuite_vf_rss.py b/tests/TestSuite_vf_rss.py index 65995df1..a5314b13 100644 --- a/tests/TestSuite_vf_rss.py +++ b/tests/TestSuite_vf_rss.py @@ -392,12 +392,10 @@ class TestVfRss(TestCase): self.vm0_ports_socket = self.vm_dut_0.get_numa_id(vm0dutPorts[0]) iptypes = { "ipv4-other": "ip", - "ipv4-frag": "ip", "ipv4-udp": "udp", "ipv4-tcp": "tcp", "ipv4-sctp": "sctp", "ipv6-other": "ip", - "ipv6-frag": "ip", "ipv6-udp": "udp", "ipv6-tcp": "tcp", "ipv6-sctp": "sctp",