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 1C521A0503; Fri, 20 May 2022 07:46:19 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0D12642B71; Fri, 20 May 2022 07:46:19 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 33B8F40151 for ; Fri, 20 May 2022 07:46:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653025577; x=1684561577; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=3sewBYJ7vmUEWPOBbKMNd/cq+CL3GkmW3FvyXXe6e30=; b=jZhhkOMd/oJsDm0JF5tU2G7m25aAjCDrpYEZ9ATWVSMkVDE0k9aEpKoi vM/hJ7Vvd+on/SpoiL7HZfEJ/PhirPIpOH7DjXEf6ufffUc7fkSMiFPWr wHEZm596kq31CFWgsB7aLhG1+xMZfV45c6AUqSIixszRheNUv78NKiJfF 2KniE0MY699FjE1EyIPcmiRRO55FI9HVkq3ev6E2VLR+kAa6rRp3rVuqR /fiQ47hL81mWupNuWvtwWJ1rMbuG4dM4sHdu22ettbJ6mfNeRuH8Gw5nd eV6viAOCyXPiWE4kcukSn/86DLWh95ZiEZvXr/1T11p2O7f79fPT7jot9 Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10352"; a="272203115" X-IronPort-AV: E=Sophos;i="5.91,238,1647327600"; d="scan'208";a="272203115" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 May 2022 22:46:16 -0700 X-IronPort-AV: E=Sophos;i="5.91,238,1647327600"; d="scan'208";a="546510844" 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; 19 May 2022 22:46:15 -0700 From: Jiale Song To: dts@dpdk.org Cc: Jiale Song Subject: [dts] [PATCH V1 5/8] tests/ice_switch_filter: create rss rule to switch on ip fragment rss function Date: Fri, 20 May 2022 13:46:02 +0800 Message-Id: <20220520054605.1856551-5-songx.jiale@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220520054605.1856551-1-songx.jiale@intel.com> References: <20220520054605.1856551-1-songx.jiale@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 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) -- 2.17.1