From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2BE87A0501; Tue, 24 May 2022 05:01:00 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 260804280C; Tue, 24 May 2022 05:01:00 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 53C9B427EC for ; Tue, 24 May 2022 05:00:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653361258; x=1684897258; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=TbdDMQbHF/8XSTpHpHhqovJ0rmOwfUfNBRuFvT3iIVQ=; b=drrl+iekpVuECArGqSi+GSD2fnqQQ1deAFaYhIeY4qU0blUlQ8L0vgFJ c3wBB2PDuSlDtq/QluXCBpP6R19PFQWEM+mN3YKg1TOySidUvfZbY13Zi dcjsvcmpfoG6Bwhyu/x0XqkIEKG7Jkx6nLX9RtksrvWF/FdNg4RHFKUzU +IHKw6IJryKNl3+6aWgtJk5xC0pVjfG03MJoexCV7oD2yaWBD+IJW6I29 +a/egoXt/2XrfF6xk/pYcsrWHj+K7Fkbkd2QUF5JlXcvSPqOkaDVr7+Oq M4/D5Qdp/YcvjPK94PMgdkFHbs16ailLth7HCULyhL0E42HhVm27ReC33 A==; X-IronPort-AV: E=McAfee;i="6400,9594,10356"; a="272234479" X-IronPort-AV: E=Sophos;i="5.91,247,1647327600"; d="scan'208";a="272234479" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 May 2022 20:00:54 -0700 X-IronPort-AV: E=Sophos;i="5.91,247,1647327600"; d="scan'208";a="600996652" Received: from unknown (HELO daily-regression-131.intel.com) ([10.239.251.131]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 May 2022 20:00:53 -0700 From: Zhimin Huang To: dts@dpdk.org Cc: Zhimin Huang Subject: [dts][PATCH V2 2/5] tests/ice_ip_fragment_rte_flow:extend mismatch pkts Date: Tue, 24 May 2022 11:00:45 +0800 Message-Id: <20220524030048.34627-2-zhiminx.huang@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220524030048.34627-1-zhiminx.huang@intel.com> References: <20220524030048.34627-1-zhiminx.huang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 mismatch pkt should cover mismatch inputset pkts and mismatch pattern pkts. extend mismatch pkts to cover more test. V2: fix format issue Signed-off-by: Zhimin Huang --- tests/TestSuite_ice_ip_fragment_rte_flow.py | 60 ++++++++++++++++----- 1 file changed, 48 insertions(+), 12 deletions(-) diff --git a/tests/TestSuite_ice_ip_fragment_rte_flow.py b/tests/TestSuite_ice_ip_fragment_rte_flow.py index 3acf3250..f7b816e4 100644 --- a/tests/TestSuite_ice_ip_fragment_rte_flow.py +++ b/tests/TestSuite_ice_ip_fragment_rte_flow.py @@ -48,7 +48,10 @@ tv_mac_ipv4_frag_fdir_queue_index = { "rule": "flow create 0 ingress pattern eth / ipv4 fragment_offset spec 0x2000 fragment_offset mask 0x2000 / end actions queue index 1 / mark / end", "scapy_str": { "matched": ["Ether()/IP(id=47750)/Raw('X'*666)"], - "unmatched": ["Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)"], + "unmatched": [ + "Ether()/IP()/Raw('X'*666)", + "Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)", + ], }, "check_param": {"port_id": 0, "rxq": LAUNCH_QUEUE, "queue": 1, "mark_id": 0}, } @@ -60,7 +63,10 @@ tv_mac_ipv4_frag_fdir_rss_queues = { ], "scapy_str": { "matched": ["Ether()/IP(id=47750)/Raw('X'*666)"], - "unmatched": ["Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)"], + "unmatched": [ + "Ether()/IP()/Raw('X'*666)", + "Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)", + ], }, "check_param": {"port_id": 0, "rxq": LAUNCH_QUEUE, "queue": [2, 3], "mark_id": 0}, } @@ -70,7 +76,10 @@ tv_mac_ipv4_frag_fdir_passthru = { "rule": "flow create 0 ingress pattern eth / ipv4 fragment_offset spec 0x2000 fragment_offset mask 0x2000 / end actions passthru / mark / end", "scapy_str": { "matched": ["Ether()/IP(id=47750)/Raw('X'*666)"], - "unmatched": ["Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)"], + "unmatched": [ + "Ether()/IP()/Raw('X'*666)", + "Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)", + ], }, "check_param": {"port_id": 0, "rxq": LAUNCH_QUEUE, "mark_id": 0, "rss": True}, } @@ -80,7 +89,10 @@ tv_mac_ipv4_frag_fdir_drop = { "rule": "flow create 0 ingress pattern eth / ipv4 fragment_offset spec 0x2000 fragment_offset mask 0x2000 / end actions drop / mark / end", "scapy_str": { "matched": ["Ether()/IP(id=47750)/Raw('X'*666)"], - "unmatched": ["Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)"], + "unmatched": [ + "Ether()/IP()/Raw('X'*666)", + "Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)", + ], }, "check_param": {"port_id": 0, "rxq": LAUNCH_QUEUE, "drop": True}, } @@ -90,7 +102,10 @@ tv_mac_ipv4_frag_fdir_mark_rss = { "rule": "flow create 0 ingress pattern eth / ipv4 fragment_offset spec 0x2000 fragment_offset mask 0x2000 / end actions mark / rss / end", "scapy_str": { "matched": ["Ether()/IP(id=47750)/Raw('X'*666)"], - "unmatched": ["Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)"], + "unmatched": [ + "Ether()/IP()/Raw('X'*666)", + "Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)", + ], }, "check_param": {"port_id": 0, "rxq": LAUNCH_QUEUE, "mark_id": 0, "rss": True}, } @@ -100,7 +115,10 @@ tv_mac_ipv4_frag_fdir_mark = { "rule": "flow create 0 ingress pattern eth / ipv4 fragment_offset spec 0x2000 fragment_offset mask 0x2000 / end actions mark id 1 / end", "scapy_str": { "matched": ["Ether()/IP(id=47750)/Raw('X'*666)"], - "unmatched": ["Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)"], + "unmatched": [ + "Ether()/IP()/Raw('X'*666)", + "Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)", + ], }, "check_param": {"port_id": 0, "rxq": LAUNCH_QUEUE, "mark_id": 1}, } @@ -158,7 +176,10 @@ tv_mac_ipv6_frag_fdir_queue_index = { "rule": "flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext frag_data spec 0x0001 frag_data mask 0x0001 / end actions queue index 1 / mark / end", "scapy_str": { "matched": ["Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)"], - "unmatched": ["Ether()/IP(id=47750)/Raw('X'*666)"], + "unmatched": [ + "Ether()/IPv6()/Raw('X'*666)", + "Ether()/IP(id=47750)/Raw('X'*666)", + ], }, "check_param": {"port_id": 0, "rxq": LAUNCH_QUEUE, "queue": 1, "mark_id": 0}, } @@ -170,7 +191,10 @@ tv_mac_ipv6_frag_fdir_rss_queues = { ], "scapy_str": { "matched": ["Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)"], - "unmatched": ["Ether()/IP(id=47750)/Raw('X'*666)"], + "unmatched": [ + "Ether()/IPv6()/Raw('X'*666)", + "Ether()/IP(id=47750)/Raw('X'*666)", + ], }, "check_param": {"port_id": 0, "rxq": LAUNCH_QUEUE, "queue": [2, 3], "mark_id": 0}, } @@ -180,7 +204,10 @@ tv_mac_ipv6_frag_fdir_passthru = { "rule": "flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext frag_data spec 0x0001 frag_data mask 0x0001 / end actions passthru / mark / end", "scapy_str": { "matched": ["Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)"], - "unmatched": ["Ether()/IP(id=47750)/Raw('X'*666)"], + "unmatched": [ + "Ether()/IPv6()/Raw('X'*666)", + "Ether()/IP(id=47750)/Raw('X'*666)", + ], }, "check_param": {"port_id": 0, "rxq": LAUNCH_QUEUE, "mark_id": 0, "rss": True}, } @@ -190,7 +217,10 @@ tv_mac_ipv6_frag_fdir_drop = { "rule": "flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext frag_data spec 0x0001 frag_data mask 0x0001 / end actions drop / mark / end", "scapy_str": { "matched": ["Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)"], - "unmatched": ["Ether()/IP(id=47750)/Raw('X'*666)"], + "unmatched": [ + "Ether()/IPv6()/Raw('X'*666)", + "Ether()/IP(id=47750)/Raw('X'*666)", + ], }, "check_param": {"port_id": 0, "rxq": LAUNCH_QUEUE, "drop": True}, } @@ -200,7 +230,10 @@ tv_mac_ipv6_frag_fdir_mark_rss = { "rule": "flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext frag_data spec 0x0001 frag_data mask 0x0001 / end actions mark / rss / end", "scapy_str": { "matched": ["Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)"], - "unmatched": ["Ether()/IP(id=47750)/Raw('X'*666)"], + "unmatched": [ + "Ether()/IPv6()/Raw('X'*666)", + "Ether()/IP(id=47750)/Raw('X'*666)", + ], }, "check_param": {"port_id": 0, "rxq": LAUNCH_QUEUE, "mark_id": 0, "rss": True}, } @@ -210,7 +243,10 @@ tv_mac_ipv6_frag_fdir_mark = { "rule": "flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext frag_data spec 0x0001 frag_data mask 0x0001 / end actions mark id 1 / end", "scapy_str": { "matched": ["Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)"], - "unmatched": ["Ether()/IP(id=47750)/Raw('X'*666)"], + "unmatched": [ + "Ether()/IPv6()/Raw('X'*666)", + "Ether()/IP(id=47750)/Raw('X'*666)", + ], }, "check_param": {"port_id": 0, "rxq": LAUNCH_QUEUE, "mark_id": 1}, } -- 2.17.1