* [dts] [PATCH V1] test_plans/cvl_ip_fragment_rte_flow:simply ipfragment rule @ 2021-07-28 14:11 Zhimin Huang 2021-07-28 14:11 ` [dts] [PATCH V1] tests/cvl_ip_fragment_rte_flow:simply ipfargment rule Zhimin Huang 2021-09-13 4:43 ` [dts] [PATCH V1] test_plans/cvl_ip_fragment_rte_flow:simply ipfragment rule Tu, Lijuan 0 siblings, 2 replies; 7+ messages in thread From: Zhimin Huang @ 2021-07-28 14:11 UTC (permalink / raw) To: dts; +Cc: Zhimin Huang *.sync dpdk code to simply ipfragment rule Signed-off-by: Zhimin Huang <zhiminx.huang@intel.com> --- .../cvl_ip_fragment_rte_flow_test_plan.rst | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/test_plans/cvl_ip_fragment_rte_flow_test_plan.rst b/test_plans/cvl_ip_fragment_rte_flow_test_plan.rst index 634550b1..704b590c 100644 --- a/test_plans/cvl_ip_fragment_rte_flow_test_plan.rst +++ b/test_plans/cvl_ip_fragment_rte_flow_test_plan.rst @@ -104,9 +104,9 @@ take 'MAC_IPV4_FRAG fdir queue index' for fdir example ------------------------------------------------------ 1. validate and create rule:: - flow validate 0 ingress pattern eth / ipv4 packet_id spec 0 packet_id last 0xffff packet_id mask 0xffff fragment_offset spec 0x2000 fragment_offset last 0x1fff fragment_offset mask 0xffff / end actions queue index 1 / mark / end + flow validate 0 ingress pattern eth / ipv4 fragment_offset spec 0x2000 fragment_offset mask 0x2000 / end actions queue index 1 / mark / end Flow rule validated - flow create 0 ingress pattern eth / ipv4 packet_id spec 0 packet_id last 0xffff packet_id mask 0xffff fragment_offset spec 0x2000 fragment_offset last 0x1fff fragment_offset mask 0xffff / end actions queue index 1 / mark / end + flow create 0 ingress pattern eth / ipv4 fragment_offset spec 0x2000 fragment_offset mask 0x2000 / end actions queue index 1 / mark / end Flow rule #0 created 2. send matched pkts and check two pkts distributed to queue 1, `RSS hash=0x261a7deb - RSS queue=0x1` in output:: @@ -238,7 +238,7 @@ Subcase 1: MAC_IPV4_FRAG fdir queue index 1. rules:: - flow create 0 ingress pattern eth / ipv4 packet_id spec 0 packet_id last 0xffff packet_id mask 0xffff fragment_offset spec 0x2000 fragment_offset last 0x1fff fragment_offset mask 0xffff / end actions queue index 1 / mark / end + flow create 0 ingress pattern eth / ipv4 fragment_offset spec 0x2000 fragment_offset mask 0x2000 / end actions queue index 1 / mark / end 2. matched packets:: @@ -253,7 +253,7 @@ Subcase 2: MAC_IPV4_FRAG fdir rss queues 1. rules:: - flow create 0 ingress pattern eth / ipv4 packet_id spec 0 packet_id last 0xffff packet_id mask 0xffff fragment_offset spec 0x2000 fragment_offset last 0x1fff fragment_offset mask 0xffff / end actions rss queues 2 3 end / mark / end + flow create 0 ingress pattern eth / ipv4 fragment_offset spec 0x2000 fragment_offset mask 0x2000 / end actions rss queues 2 3 end / mark / end 2. matched packets:: @@ -268,7 +268,7 @@ Subcase 3: MAC_IPV4_FRAG fdir passthru 1. rules:: - flow create 0 ingress pattern eth / ipv4 packet_id spec 0 packet_id last 0xffff packet_id mask 0xffff fragment_offset spec 0x2000 fragment_offset last 0x1fff fragment_offset mask 0xffff / end actions passthru / mark / end + flow create 0 ingress pattern eth / ipv4 fragment_offset spec 0x2000 fragment_offset mask 0x2000 / end actions passthru / mark / end 2. matched packets:: @@ -283,7 +283,7 @@ Subcase 4: MAC_IPV4_FRAG fdir drop 1. rules:: - flow create 0 ingress pattern eth / ipv4 packet_id spec 0 packet_id last 0xffff packet_id mask 0xffff fragment_offset spec 0x2000 fragment_offset last 0x1fff fragment_offset mask 0xffff / end actions drop / end + flow create 0 ingress pattern eth / ipv4 fragment_offset spec 0x2000 fragment_offset mask 0x2000 / end actions drop / end 2. matched packets:: @@ -298,7 +298,7 @@ Subcase 5: MAC_IPV4_FRAG fdir mark+rss 1. rules:: - flow create 0 ingress pattern eth / ipv4 packet_id spec 0 packet_id last 0xffff packet_id mask 0xffff fragment_offset spec 0x2000 fragment_offset last 0x1fff fragment_offset mask 0xffff / end actions mark / rss / end + flow create 0 ingress pattern eth / ipv4 fragment_offset spec 0x2000 fragment_offset mask 0x2000 / end actions mark / rss / end 2. matched packets:: @@ -313,7 +313,7 @@ Subcase 6: MAC_IPV4_FRAG fdir mark 1. rules:: - flow create 0 ingress pattern eth / ipv4 packet_id spec 0 packet_id last 0xffff packet_id mask 0xffff fragment_offset spec 0x2000 fragment_offset last 0x1fff fragment_offset mask 0xffff / end actions mark id 1 / end + flow create 0 ingress pattern eth / ipv4 fragment_offset spec 0x2000 fragment_offset mask 0x2000 / end actions mark id 1 / end 2. matched packets:: @@ -331,7 +331,7 @@ Subcase 1: MAC_IPV6_FRAG fdir queue index 1. rules:: - flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext packet_id spec 0 packet_id last 0xffffffff packet_id mask 0xffffffff frag_data spec 0x0001 frag_data last 0xffff frag_data mask 0xffff / end actions queue index 1 / mark / end + 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 2. matched packets:: @@ -346,7 +346,7 @@ Subcase 2: MAC_IPV6_FRAG fdir rss queues 1. rules:: - flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext packet_id spec 0 packet_id last 0xffffffff packet_id mask 0xffffffff frag_data spec 0x0001 frag_data last 0xffff frag_data mask 0xffff / end actions rss queues 2 3 / mark / end + flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext frag_data spec 0x0001 frag_data mask 0x0001 / end actions rss queues 2 3 end / mark / end 2. matched packets:: @@ -361,7 +361,7 @@ Subcase 3: MAC_IPV6_FRAG fdir passthru 1. rules:: - flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext packet_id spec 0 packet_id last 0xffffffff packet_id mask 0xffffffff frag_data spec 0x0001 frag_data last 0xffff frag_data mask 0xffff / end actions passthru / mark / end + flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext frag_data spec 0x0001 frag_data mask 0x0001 / end actions passthru / mark / end 2. matched packets:: @@ -376,7 +376,7 @@ Subcase 4: MAC_IPV6_FRAG fdir drop 1. rules:: - flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext packet_id spec 0 packet_id last 0xffffffff packet_id mask 0xffffffff frag_data spec 0x0001 frag_data last 0xffff frag_data mask 0xffff / end actions drop / end + flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext frag_data spec 0x0001 frag_data mask 0x0001 / end actions drop / end 2. matched packets:: @@ -391,7 +391,7 @@ Subcase 5: MAC_IPV6_FRAG fdir mark+rss 1. rules:: - flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext packet_id spec 0 packet_id last 0xffffffff packet_id mask 0xffffffff frag_data spec 0x0001 frag_data last 0xffff frag_data mask 0xffff / end actions mark / rss / end + flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext frag_data spec 0x0001 frag_data mask 0x0001 / end actions mark / rss / end 2. matched packets:: @@ -406,7 +406,7 @@ Subcase 6: MAC_IPV6_FRAG fdir mark 1. rules:: - flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext packet_id spec 0 packet_id last 0xffffffff packet_id mask 0xffffffff frag_data spec 0x0001 frag_data last 0xffff frag_data mask 0xffff / end actions mark id 1 / end + flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext frag_data spec 0x0001 frag_data mask 0x0001 / end actions mark id 1 / end 2. matched packets:: @@ -427,7 +427,7 @@ take 'mac_ipv4_frag_l2dst_fdir_queue_index' example:: 1.rules: - flow create 0 ingress pattern eth dst is 00:00:00:00:00:01 / ipv4 packet_id spec 0 packet_id last 0xffff packet_id mask 0xffff fragment_offset spec 0x2000 fragment_offset last 0x1fff fragment_offset mask 0xffff / end actions queue index 1 / mark / end + flow create 0 ingress pattern eth dst is 00:00:00:00:00:01 / ipv4 fragment_offset spec 0x2000 fragment_offset mask 0x2000 / end actions queue index 1 / mark / end 2.matched packets: @@ -452,7 +452,7 @@ take 'mac_ipv6_frag_l2dst_fdir_queue_index' example:: 1.rules: - flow create 0 ingress pattern eth dst is 00:00:00:00:00:01 / ipv6 / ipv6_frag_ext packet_id spec 0 packet_id last 0xffffffff packet_id mask 0xffffffff frag_data spec 0x0001 frag_data last 0xffff frag_data mask 0xffff / end actions queue index 1 / mark / end + flow create 0 ingress pattern eth dst is 00:00:00:00:00:01 / ipv6 / ipv6_frag_ext frag_data spec 0x0001 frag_data mask 0x0001 / end actions queue index 1 / mark / end 2.matched packets: @@ -478,7 +478,7 @@ take 'mac_ipv4_frag_l3src_fdir_queue_index' example:: 1.rules: - flow create 0 ingress pattern eth / ipv4 src is 192.168.1.1 packet_id spec 0 packet_id last 0xffff packet_id mask 0xffff fragment_offset spec 0x2000 fragment_offset last 0x1fff fragment_offset mask 0xffff / end actions queue index 1 / mark / end + flow create 0 ingress pattern eth / ipv4 src is 192.168.1.1 fragment_offset spec 0x2000 fragment_offset mask 0x2000 / end actions queue index 1 / mark / end 2.matched packets: @@ -505,7 +505,7 @@ take 'mac_ipv6_frag_l3src_fdir_queue_index' example:: 1.rules: - flow create 0 ingress pattern eth / ipv6 src is 2001::1 / ipv6_frag_ext packet_id spec 0 packet_id last 0xffffffff packet_id mask 0xffffffff frag_data spec 0x0001 frag_data last 0xffff frag_data mask 0xffff / end actions queue index 1 / mark / end + flow create 0 ingress pattern eth / ipv6 src is 2001::1 / ipv6_frag_ext frag_data spec 0x0001 frag_data mask 0x0001 / end actions queue index 1 / mark / end 2.matched packets: @@ -576,7 +576,7 @@ Subcase 1: exclusive validation fdir rule 1. create fdir filter rules:: flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv4 src is 192.168.0.20 / end actions queue index 1 / end - flow create 0 ingress pattern eth / ipv4 packet_id spec 0 packet_id last 0xffff packet_id mask 0xffff fragment_offset spec 0x2000 fragment_offset last 0x1fff fragment_offset mask 0xffff / end actions queue index 2 / end + flow create 0 ingress pattern eth / ipv4 fragment_offset spec 0x2000 fragment_offset mask 0x2000 / end actions queue index 2 / end 2. hit pattern/defined input set id, the pkt received for queue 2:: @@ -586,7 +586,7 @@ Subcase 2: exclusive validation fdir rule ----------------------------------------- 1. create fdir filter rules:: - flow create 0 ingress pattern eth / ipv4 packet_id spec 0 packet_id last 0xffff packet_id mask 0xffff fragment_offset spec 0x2000 fragment_offset last 0x1fff fragment_offset mask 0xffff / end actions queue index 2 / end + flow create 0 ingress pattern eth / ipv4 fragment_offset spec 0x2000 fragment_offset mask 0x2000 / end actions queue index 2 / end flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv4 src is 192.168.0.20 / end actions queue index 1 / end 2. hit pattern/defined input set id, the pkt received for queue 2:: @@ -600,7 +600,7 @@ Subcase 3: exclusive validation rss rule flow create 0 ingress pattern eth / ipv4 / end actions rss types ipv4 end key_len 0 queues end / end flow create 0 ingress pattern eth / ipv4 / end actions rss types ipv4-frag end key_len 0 queues end / end -2. hit pattern/defined input set id, the pkt received for rss diffent queue:: +2. hit pattern/defined input set id, the pkt received for rss same queue:: p=Ether()/IP(id=47750)/Raw('X'*666); pkts=fragment6(p, 500) p=Ether()/IP(id=47751)/Raw('X'*666); pkts=fragment6(p, 500) -- 2.17.1 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [dts] [PATCH V1] tests/cvl_ip_fragment_rte_flow:simply ipfargment rule 2021-07-28 14:11 [dts] [PATCH V1] test_plans/cvl_ip_fragment_rte_flow:simply ipfragment rule Zhimin Huang @ 2021-07-28 14:11 ` Zhimin Huang 2021-07-28 6:05 ` Huang, ZhiminX 2021-09-13 4:43 ` [dts] [PATCH V1] test_plans/cvl_ip_fragment_rte_flow:simply ipfragment rule Tu, Lijuan 1 sibling, 1 reply; 7+ messages in thread From: Zhimin Huang @ 2021-07-28 14:11 UTC (permalink / raw) To: dts; +Cc: Zhimin Huang *.sync dpdk code to simply ipfragment rule Signed-off-by: Zhimin Huang <zhiminx.huang@intel.com> --- tests/TestSuite_cvl_ip_fragment_rte_flow.py | 42 ++++++++++----------- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/tests/TestSuite_cvl_ip_fragment_rte_flow.py b/tests/TestSuite_cvl_ip_fragment_rte_flow.py index acf8e78e..e3c03b0f 100644 --- a/tests/TestSuite_cvl_ip_fragment_rte_flow.py +++ b/tests/TestSuite_cvl_ip_fragment_rte_flow.py @@ -42,7 +42,7 @@ LAUNCH_QUEUE = 16 tv_mac_ipv4_frag_fdir_queue_index = { "name": "tv_mac_ipv4_frag_fdir_queue_index", - "rule": "flow create 0 ingress pattern eth / ipv4 packet_id spec 0 packet_id last 0xffff packet_id mask 0xffff fragment_offset spec 0x2000 fragment_offset last 0x1fff fragment_offset mask 0xffff / end actions queue index 1 / mark / end", + "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)"] }, @@ -51,8 +51,7 @@ tv_mac_ipv4_frag_fdir_queue_index = { tv_mac_ipv4_frag_fdir_rss_queues = { "name": "tv_mac_ipv4_frag_fdir_rss_queues", - "rule": ["flow create 0 ingress pattern eth / ipv4 packet_id spec 0 packet_id last 0xffff packet_id mask 0xffff fragment_offset spec 0x2000 fragment_offset last 0x1fff fragment_offset mask 0xffff / end actions rss queues 2 3 end / mark / end", - "flow create 0 ingress pattern eth / ipv4 / end actions rss types ipv4-frag end key_len 0 queues end / end"], + "rule": ["flow create 0 ingress pattern eth / ipv4 fragment_offset spec 0x2000 fragment_offset mask 0x2000 / end actions rss queues 2 3 end / mark / end",], "scapy_str": {"matched": ["Ether()/IP(id=47750)/Raw('X'*666)"], "unmatched": ["Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)"] }, @@ -61,16 +60,16 @@ tv_mac_ipv4_frag_fdir_rss_queues = { tv_mac_ipv4_frag_fdir_passthru = { "name": "tv_mac_ipv4_frag_fdir_passthru", - "rule": "flow create 0 ingress pattern eth / ipv4 packet_id spec 0 packet_id last 0xffff packet_id mask 0xffff fragment_offset spec 0x2000 fragment_offset last 0x1fff fragment_offset mask 0xffff / end actions passthru / mark / end", + "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)"] }, - "check_param": {"port_id": 0, "rxq": LAUNCH_QUEUE, "mark_id": 0} + "check_param": {"port_id": 0, "rxq": LAUNCH_QUEUE, "mark_id": 0, "rss": True} } tv_mac_ipv4_frag_fdir_drop = { "name": "tv_mac_ipv4_frag_fdir_drop", - "rule": "flow create 0 ingress pattern eth / ipv4 packet_id spec 0 packet_id last 0xffff packet_id mask 0xffff fragment_offset spec 0x2000 fragment_offset last 0x1fff fragment_offset mask 0xffff / end actions drop / end", + "rule": "flow create 0 ingress pattern eth / ipv4 fragment_offset spec 0x2000 fragment_offset mask 0x2000 / end actions drop / end", "scapy_str": {"matched": ["Ether()/IP(id=47750)/Raw('X'*666)"], "unmatched": ["Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)"] }, @@ -79,7 +78,7 @@ tv_mac_ipv4_frag_fdir_drop = { tv_mac_ipv4_frag_fdir_mark_rss = { "name": "tv_mac_ipv4_frag_fdir_mark_rss", - "rule": "flow create 0 ingress pattern eth / ipv4 packet_id spec 0 packet_id last 0xffff packet_id mask 0xffff fragment_offset spec 0x2000 fragment_offset last 0x1fff fragment_offset mask 0xffff / end actions mark / rss / end", + "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)"] }, @@ -88,7 +87,7 @@ tv_mac_ipv4_frag_fdir_mark_rss = { tv_mac_ipv4_frag_fdir_mark = { "name": "tv_mac_ipv4_frag_fdir_mark", - "rule": "flow create 0 ingress pattern eth / ipv4 packet_id spec 0 packet_id last 0xffff packet_id mask 0xffff fragment_offset spec 0x2000 fragment_offset last 0x1fff fragment_offset mask 0xffff / end actions mark id 1 / end", + "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)"] }, @@ -105,7 +104,7 @@ tvs_mac_ipv4_fragment_fdir = [ ] tvs_mac_ipv4_fragment_fdir_l2dst = [eval(str(element).replace('mac_ipv4_frag', 'mac_ipv4_frag_l2dst') - .replace('eth / ipv4 packet_id', 'eth dst is 00:00:00:00:00:01 / ipv4 packet_id') + .replace('eth / ipv4 fragment_offset', 'eth dst is 00:00:00:00:00:01 / ipv4 fragment_offset') .replace("Ether()", "Ether(dst='00:00:00:00:00:01')") ) for element in tvs_mac_ipv4_fragment_fdir] @@ -113,12 +112,12 @@ tvs_mac_ipv4_fragment_fdir_l2dst = [eval(str(element).replace('mac_ipv4_frag', ' tvs_mac_ipv4_frag_fdir_with_l2 = tvs_mac_ipv4_fragment_fdir_l2dst tvs_mac_ipv4_fragment_fdir_l3src = [eval(str(element).replace('mac_ipv4_frag', 'mac_ipv4_frag_l3src') - .replace('ipv4 packet_id', 'ipv4 src is 192.168.1.1 packet_id') + .replace('ipv4 fragment_offset', 'ipv4 src is 192.168.1.1 fragment_offset') .replace("IP(id=47750)", "IP(id=47750, src='192.168.1.1')")) for element in tvs_mac_ipv4_fragment_fdir] tvs_mac_ipv4_fragment_fdir_l3dst = [eval(str(element).replace('mac_ipv4_frag', 'mac_ipv4_frag_l3dst') - .replace('ipv4 packet_id', 'ipv4 dst is 192.168.1.2 packet_id') + .replace('ipv4 fragment_offset', 'ipv4 dst is 192.168.1.2 fragment_offset') .replace("IP(id=47750)", "IP(id=47750, dst='192.168.1.2')")) for element in tvs_mac_ipv4_fragment_fdir] @@ -126,7 +125,7 @@ tvs_mac_ipv4_frag_fdir_with_l3 = tvs_mac_ipv4_fragment_fdir_l3src + tvs_mac_ipv4 tv_mac_ipv6_frag_fdir_queue_index = { "name": "tv_mac_ipv6_frag_fdir_queue_index", - "rule": "flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext packet_id spec 0 packet_id last 0xffffffff packet_id mask 0xffffffff frag_data spec 0x0001 frag_data last 0xffff frag_data mask 0xffff / end actions queue index 1 / mark / end", + "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)"] }, @@ -135,8 +134,7 @@ tv_mac_ipv6_frag_fdir_queue_index = { tv_mac_ipv6_frag_fdir_rss_queues = { "name": "tv_mac_ipv6_frag_fdir_rss_queues", - "rule": ["flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext packet_id spec 0 packet_id last 0xffffffff packet_id mask 0xffffffff frag_data spec 0x0001 frag_data last 0xffff frag_data mask 0xffff / end actions rss queues 2 3 end / mark / end", - "flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext / end actions rss types ipv6-frag end key_len 0 queues end / end"], + "rule": ["flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext frag_data spec 0x0001 frag_data mask 0x0001 / end actions rss queues 2 3 end / mark / end",], "scapy_str": {"matched": ["Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)"], "unmatched": ["Ether()/IP(id=47750)/Raw('X'*666)"] }, @@ -145,16 +143,16 @@ tv_mac_ipv6_frag_fdir_rss_queues = { tv_mac_ipv6_frag_fdir_passthru = { "name": "tv_mac_ipv6_frag_fdir_passthru", - "rule": "flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext packet_id spec 0 packet_id last 0xffffffff packet_id mask 0xffffffff frag_data spec 0x0001 frag_data last 0xffff frag_data mask 0xffff / end actions passthru / mark / end", + "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)"] }, - "check_param": {"port_id": 0, "rxq": LAUNCH_QUEUE, "mark_id": 0} + "check_param": {"port_id": 0, "rxq": LAUNCH_QUEUE, "mark_id": 0, "rss": True} } tv_mac_ipv6_frag_fdir_drop = { "name": "tv_mac_ipv6_frag_fdir_drop", - "rule": "flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext packet_id spec 0 packet_id last 0xffffffff packet_id mask 0xffffffff frag_data spec 0x0001 frag_data last 0xffff frag_data mask 0xffff / end actions drop / end", + "rule": "flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext frag_data spec 0x0001 frag_data mask 0x0001 / end actions drop / end", "scapy_str": {"matched": ["Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)"], "unmatched": ["Ether()/IP(id=47750)/Raw('X'*666)"] }, @@ -163,7 +161,7 @@ tv_mac_ipv6_frag_fdir_drop = { tv_mac_ipv6_frag_fdir_mark_rss = { "name": "tv_mac_ipv6_frag_fdir_mark_rss", - "rule": "flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext packet_id spec 0 packet_id last 0xffffffff packet_id mask 0xffffffff frag_data spec 0x0001 frag_data last 0xffff frag_data mask 0xffff / end actions mark / rss / end", + "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)"] }, @@ -172,7 +170,7 @@ tv_mac_ipv6_frag_fdir_mark_rss = { tv_mac_ipv6_frag_fdir_mark = { "name": "tv_mac_ipv6_frag_fdir_mark", - "rule": "flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext packet_id spec 0 packet_id last 0xffffffff packet_id mask 0xffffffff frag_data spec 0x0001 frag_data last 0xffff frag_data mask 0xffff / end actions mark id 1 / end", + "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)"] }, @@ -189,7 +187,7 @@ tvs_mac_ipv6_fragment_fdir = [ ] tvs_mac_ipv6_fragment_fdir_l2dst = [eval(str(element).replace('mac_ipv6_frag', 'mac_ipv6_frag_l2dst') - .replace('eth / ipv6 / ipv6_frag_ext packet_id', 'eth dst is 00:00:00:00:00:01 / ipv6 / ipv6_frag_ext packet_id') + .replace('eth / ipv6 / ipv6_frag_ext frag_data', 'eth dst is 00:00:00:00:00:01 / ipv6 / ipv6_frag_ext frag_data') .replace("Ether()", "Ether(dst='00:00:00:00:00:01')") ) for element in tvs_mac_ipv6_fragment_fdir] @@ -367,7 +365,7 @@ class TestCvlIpFragmentRteFlow(TestCase): result_list = [] rule_list_fdir = [ 'flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv4 src is 192.168.0.20 / end actions queue index 1 / end', - 'flow create 0 ingress pattern eth / ipv4 packet_id spec 0 packet_id last 0xffff packet_id mask 0xffff fragment_offset spec 0x2000 fragment_offset last 0x1fff fragment_offset mask 0xffff / end actions queue index 2 / end'] + 'flow create 0 ingress pattern eth / ipv4 fragment_offset spec 0x2000 fragment_offset mask 0x2000 / end actions queue index 2 / end'] pkt_fdir = "Ether(dst='00:11:22:33:44:55')/IP(src='192.168.0.20', id=47750)/Raw('X'*666)" self.logger.info('Subcase 1: exclusive validation fdir rule') @@ -442,7 +440,7 @@ class TestCvlIpFragmentRteFlow(TestCase): if hashes1[0] != hashes1[1] and hashes2[0] != hashes2[1]: result = False self.logger.error("hash value is incorrect") - if hashes1[0] != hashes2[0]: + if hashes1[0] == hashes2[0]: result = False self.logger.error("hash value is incorrect") result_list.append(result) -- 2.17.1 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [dts] [PATCH V1] tests/cvl_ip_fragment_rte_flow:simply ipfargment rule 2021-07-28 14:11 ` [dts] [PATCH V1] tests/cvl_ip_fragment_rte_flow:simply ipfargment rule Zhimin Huang @ 2021-07-28 6:05 ` Huang, ZhiminX 2021-09-14 8:19 ` Tu, Lijuan 0 siblings, 1 reply; 7+ messages in thread From: Huang, ZhiminX @ 2021-07-28 6:05 UTC (permalink / raw) To: dts [-- Attachment #1: Type: text/plain, Size: 337 bytes --] > -----Original Message----- > From: Huang, ZhiminX <zhiminx.huang@intel.com> > Sent: Wednesday, July 28, 2021 10:12 PM > To: dts@dpdk.org > Cc: Huang, ZhiminX <zhiminx.huang@intel.com> > Subject: [dts] [PATCH V1] tests/cvl_ip_fragment_rte_flow:simply > ipfargment rule Tested-by: Zhimin Huang <zhiminx.huang@intel.com > [-- Attachment #2: TestCvlIpFragmentRteFlow.log --] [-- Type: application/octet-stream, Size: 331214 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [dts] [PATCH V1] tests/cvl_ip_fragment_rte_flow:simply ipfargment rule 2021-07-28 6:05 ` Huang, ZhiminX @ 2021-09-14 8:19 ` Tu, Lijuan 0 siblings, 0 replies; 7+ messages in thread From: Tu, Lijuan @ 2021-09-14 8:19 UTC (permalink / raw) To: Huang, ZhiminX, dts > -----Original Message----- > From: dts <dts-bounces@dpdk.org> On Behalf Of Huang, ZhiminX > Sent: 2021年7月28日 14:06 > To: dts@dpdk.org > Subject: Re: [dts] [PATCH V1] tests/cvl_ip_fragment_rte_flow:simply ipfargment > rule > > > -----Original Message----- > > From: Huang, ZhiminX <zhiminx.huang@intel.com> > > Sent: Wednesday, July 28, 2021 10:12 PM > > To: dts@dpdk.org > > Cc: Huang, ZhiminX <zhiminx.huang@intel.com> > > Subject: [dts] [PATCH V1] tests/cvl_ip_fragment_rte_flow:simply > > ipfargment rule > > > Tested-by: Zhimin Huang <zhiminx.huang@intel.com > Applied with commit message changed. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [dts] [PATCH V1] test_plans/cvl_ip_fragment_rte_flow:simply ipfragment rule 2021-07-28 14:11 [dts] [PATCH V1] test_plans/cvl_ip_fragment_rte_flow:simply ipfragment rule Zhimin Huang 2021-07-28 14:11 ` [dts] [PATCH V1] tests/cvl_ip_fragment_rte_flow:simply ipfargment rule Zhimin Huang @ 2021-09-13 4:43 ` Tu, Lijuan 2021-09-13 5:13 ` Huang, ZhiminX 1 sibling, 1 reply; 7+ messages in thread From: Tu, Lijuan @ 2021-09-13 4:43 UTC (permalink / raw) To: Huang, ZhiminX, dts; +Cc: Huang, ZhiminX Could please provide dpdk commit ? > -----Original Message----- > From: dts <dts-bounces@dpdk.org> On Behalf Of Zhimin Huang > Sent: 2021年7月28日 22:12 > To: dts@dpdk.org > Cc: Huang, ZhiminX <zhiminx.huang@intel.com> > Subject: [dts] [PATCH V1] test_plans/cvl_ip_fragment_rte_flow:simply > ipfragment rule > > *.sync dpdk code to simply ipfragment rule > > Signed-off-by: Zhimin Huang <zhiminx.huang@intel.com> > --- > .../cvl_ip_fragment_rte_flow_test_plan.rst | 42 +++++++++---------- > 1 file changed, 21 insertions(+), 21 deletions(-) > > diff --git a/test_plans/cvl_ip_fragment_rte_flow_test_plan.rst > b/test_plans/cvl_ip_fragment_rte_flow_test_plan.rst > index 634550b1..704b590c 100644 > --- a/test_plans/cvl_ip_fragment_rte_flow_test_plan.rst > +++ b/test_plans/cvl_ip_fragment_rte_flow_test_plan.rst > @@ -104,9 +104,9 @@ take 'MAC_IPV4_FRAG fdir queue index' for fdir example > ------------------------------------------------------ > 1. validate and create rule:: > > - flow validate 0 ingress pattern eth / ipv4 packet_id spec 0 packet_id last > 0xffff packet_id mask 0xffff fragment_offset spec 0x2000 fragment_offset last > 0x1fff fragment_offset mask 0xffff / end actions queue index 1 / mark / end > + flow validate 0 ingress pattern eth / ipv4 fragment_offset spec > + 0x2000 fragment_offset mask 0x2000 / end actions queue index 1 / mark > + / end > Flow rule validated > - flow create 0 ingress pattern eth / ipv4 packet_id spec 0 packet_id last 0xffff > packet_id mask 0xffff fragment_offset spec 0x2000 fragment_offset last 0x1fff > fragment_offset mask 0xffff / end actions queue index 1 / mark / end > + flow create 0 ingress pattern eth / ipv4 fragment_offset spec > + 0x2000 fragment_offset mask 0x2000 / end actions queue index 1 / mark > + / end > Flow rule #0 created > > 2. send matched pkts and check two pkts distributed to queue 1, `RSS > hash=0x261a7deb - RSS queue=0x1` in output:: > @@ -238,7 +238,7 @@ Subcase 1: MAC_IPV4_FRAG fdir queue index > > 1. rules:: > > - flow create 0 ingress pattern eth / ipv4 packet_id spec 0 packet_id last 0xffff > packet_id mask 0xffff fragment_offset spec 0x2000 fragment_offset last 0x1fff > fragment_offset mask 0xffff / end actions queue index 1 / mark / end > + flow create 0 ingress pattern eth / ipv4 fragment_offset spec > + 0x2000 fragment_offset mask 0x2000 / end actions queue index 1 / mark > + / end > > 2. matched packets:: > > @@ -253,7 +253,7 @@ Subcase 2: MAC_IPV4_FRAG fdir rss queues > > 1. rules:: > > - flow create 0 ingress pattern eth / ipv4 packet_id spec 0 packet_id last 0xffff > packet_id mask 0xffff fragment_offset spec 0x2000 fragment_offset last 0x1fff > fragment_offset mask 0xffff / end actions rss queues 2 3 end / mark / end > + flow create 0 ingress pattern eth / ipv4 fragment_offset spec > + 0x2000 fragment_offset mask 0x2000 / end actions rss queues 2 3 end / > + mark / end > > 2. matched packets:: > > @@ -268,7 +268,7 @@ Subcase 3: MAC_IPV4_FRAG fdir passthru > > 1. rules:: > > - flow create 0 ingress pattern eth / ipv4 packet_id spec 0 packet_id last 0xffff > packet_id mask 0xffff fragment_offset spec 0x2000 fragment_offset last 0x1fff > fragment_offset mask 0xffff / end actions passthru / mark / end > + flow create 0 ingress pattern eth / ipv4 fragment_offset spec > + 0x2000 fragment_offset mask 0x2000 / end actions passthru / mark / end > > 2. matched packets:: > > @@ -283,7 +283,7 @@ Subcase 4: MAC_IPV4_FRAG fdir drop > > 1. rules:: > > - flow create 0 ingress pattern eth / ipv4 packet_id spec 0 packet_id last 0xffff > packet_id mask 0xffff fragment_offset spec 0x2000 fragment_offset last 0x1fff > fragment_offset mask 0xffff / end actions drop / end > + flow create 0 ingress pattern eth / ipv4 fragment_offset spec > + 0x2000 fragment_offset mask 0x2000 / end actions drop / end > > 2. matched packets:: > > @@ -298,7 +298,7 @@ Subcase 5: MAC_IPV4_FRAG fdir mark+rss > > 1. rules:: > > - flow create 0 ingress pattern eth / ipv4 packet_id spec 0 packet_id last 0xffff > packet_id mask 0xffff fragment_offset spec 0x2000 fragment_offset last 0x1fff > fragment_offset mask 0xffff / end actions mark / rss / end > + flow create 0 ingress pattern eth / ipv4 fragment_offset spec > + 0x2000 fragment_offset mask 0x2000 / end actions mark / rss / end > > 2. matched packets:: > > @@ -313,7 +313,7 @@ Subcase 6: MAC_IPV4_FRAG fdir mark > > 1. rules:: > > - flow create 0 ingress pattern eth / ipv4 packet_id spec 0 packet_id last 0xffff > packet_id mask 0xffff fragment_offset spec 0x2000 fragment_offset last 0x1fff > fragment_offset mask 0xffff / end actions mark id 1 / end > + flow create 0 ingress pattern eth / ipv4 fragment_offset spec > + 0x2000 fragment_offset mask 0x2000 / end actions mark id 1 / end > > 2. matched packets:: > > @@ -331,7 +331,7 @@ Subcase 1: MAC_IPV6_FRAG fdir queue index > > 1. rules:: > > - flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext packet_id spec 0 > packet_id last 0xffffffff packet_id mask 0xffffffff frag_data spec 0x0001 > frag_data last 0xffff frag_data mask 0xffff / end actions queue index 1 / mark / > end > + 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 > > 2. matched packets:: > > @@ -346,7 +346,7 @@ Subcase 2: MAC_IPV6_FRAG fdir rss queues > > 1. rules:: > > - flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext packet_id spec 0 > packet_id last 0xffffffff packet_id mask 0xffffffff frag_data spec 0x0001 > frag_data last 0xffff frag_data mask 0xffff / end actions rss queues 2 3 / mark / > end > + flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext frag_data > + spec 0x0001 frag_data mask 0x0001 / end actions rss queues 2 3 end / > + mark / end > > 2. matched packets:: > > @@ -361,7 +361,7 @@ Subcase 3: MAC_IPV6_FRAG fdir passthru > > 1. rules:: > > - flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext packet_id spec 0 > packet_id last 0xffffffff packet_id mask 0xffffffff frag_data spec 0x0001 > frag_data last 0xffff frag_data mask 0xffff / end actions passthru / mark / end > + flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext frag_data > + spec 0x0001 frag_data mask 0x0001 / end actions passthru / mark / end > > 2. matched packets:: > > @@ -376,7 +376,7 @@ Subcase 4: MAC_IPV6_FRAG fdir drop > > 1. rules:: > > - flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext packet_id spec 0 > packet_id last 0xffffffff packet_id mask 0xffffffff frag_data spec 0x0001 > frag_data last 0xffff frag_data mask 0xffff / end actions drop / end > + flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext frag_data > + spec 0x0001 frag_data mask 0x0001 / end actions drop / end > > 2. matched packets:: > > @@ -391,7 +391,7 @@ Subcase 5: MAC_IPV6_FRAG fdir mark+rss > > 1. rules:: > > - flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext packet_id spec 0 > packet_id last 0xffffffff packet_id mask 0xffffffff frag_data spec 0x0001 > frag_data last 0xffff frag_data mask 0xffff / end actions mark / rss / end > + flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext frag_data > + spec 0x0001 frag_data mask 0x0001 / end actions mark / rss / end > > 2. matched packets:: > > @@ -406,7 +406,7 @@ Subcase 6: MAC_IPV6_FRAG fdir mark > > 1. rules:: > > - flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext packet_id spec 0 > packet_id last 0xffffffff packet_id mask 0xffffffff frag_data spec 0x0001 > frag_data last 0xffff frag_data mask 0xffff / end actions mark id 1 / end > + flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext frag_data > + spec 0x0001 frag_data mask 0x0001 / end actions mark id 1 / end > > 2. matched packets:: > > @@ -427,7 +427,7 @@ take 'mac_ipv4_frag_l2dst_fdir_queue_index' example:: > > 1.rules: > > - flow create 0 ingress pattern eth dst is 00:00:00:00:00:01 / ipv4 packet_id > spec 0 packet_id last 0xffff packet_id mask 0xffff fragment_offset spec 0x2000 > fragment_offset last 0x1fff fragment_offset mask 0xffff / end actions queue > index 1 / mark / end > + flow create 0 ingress pattern eth dst is 00:00:00:00:00:01 / ipv4 > + fragment_offset spec 0x2000 fragment_offset mask 0x2000 / end actions > + queue index 1 / mark / end > > 2.matched packets: > > @@ -452,7 +452,7 @@ take 'mac_ipv6_frag_l2dst_fdir_queue_index' example:: > > 1.rules: > > - flow create 0 ingress pattern eth dst is 00:00:00:00:00:01 / ipv6 / > ipv6_frag_ext packet_id spec 0 packet_id last 0xffffffff packet_id mask 0xffffffff > frag_data spec 0x0001 frag_data last 0xffff frag_data mask 0xffff / end actions > queue index 1 / mark / end > + flow create 0 ingress pattern eth dst is 00:00:00:00:00:01 / ipv6 > + / ipv6_frag_ext frag_data spec 0x0001 frag_data mask 0x0001 / end > + actions queue index 1 / mark / end > > 2.matched packets: > > @@ -478,7 +478,7 @@ take 'mac_ipv4_frag_l3src_fdir_queue_index' example:: > > 1.rules: > > - flow create 0 ingress pattern eth / ipv4 src is 192.168.1.1 packet_id spec 0 > packet_id last 0xffff packet_id mask 0xffff fragment_offset spec 0x2000 > fragment_offset last 0x1fff fragment_offset mask 0xffff / end actions queue > index 1 / mark / end > + flow create 0 ingress pattern eth / ipv4 src is 192.168.1.1 > + fragment_offset spec 0x2000 fragment_offset mask 0x2000 / end actions > + queue index 1 / mark / end > > 2.matched packets: > > @@ -505,7 +505,7 @@ take 'mac_ipv6_frag_l3src_fdir_queue_index' example:: > > 1.rules: > > - flow create 0 ingress pattern eth / ipv6 src is 2001::1 / ipv6_frag_ext > packet_id spec 0 packet_id last 0xffffffff packet_id mask 0xffffffff frag_data > spec 0x0001 frag_data last 0xffff frag_data mask 0xffff / end actions queue > index 1 / mark / end > + flow create 0 ingress pattern eth / ipv6 src is 2001::1 / > + ipv6_frag_ext frag_data spec 0x0001 frag_data mask 0x0001 / end > + actions queue index 1 / mark / end > > 2.matched packets: > > @@ -576,7 +576,7 @@ Subcase 1: exclusive validation fdir rule 1. create fdir > filter rules:: > > flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv4 src is > 192.168.0.20 / end actions queue index 1 / end > - flow create 0 ingress pattern eth / ipv4 packet_id spec 0 packet_id last 0xffff > packet_id mask 0xffff fragment_offset spec 0x2000 fragment_offset last 0x1fff > fragment_offset mask 0xffff / end actions queue index 2 / end > + flow create 0 ingress pattern eth / ipv4 fragment_offset spec > + 0x2000 fragment_offset mask 0x2000 / end actions queue index 2 / end > > 2. hit pattern/defined input set id, the pkt received for queue 2:: > > @@ -586,7 +586,7 @@ Subcase 2: exclusive validation fdir rule > ----------------------------------------- > 1. create fdir filter rules:: > > - flow create 0 ingress pattern eth / ipv4 packet_id spec 0 packet_id last 0xffff > packet_id mask 0xffff fragment_offset spec 0x2000 fragment_offset last 0x1fff > fragment_offset mask 0xffff / end actions queue index 2 / end > + flow create 0 ingress pattern eth / ipv4 fragment_offset spec > + 0x2000 fragment_offset mask 0x2000 / end actions queue index 2 / end > flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv4 src is > 192.168.0.20 / end actions queue index 1 / end > > 2. hit pattern/defined input set id, the pkt received for queue 2:: > @@ -600,7 +600,7 @@ Subcase 3: exclusive validation rss rule > flow create 0 ingress pattern eth / ipv4 / end actions rss types ipv4 end > key_len 0 queues end / end > flow create 0 ingress pattern eth / ipv4 / end actions rss types ipv4-frag end > key_len 0 queues end / end > > -2. hit pattern/defined input set id, the pkt received for rss diffent queue:: > +2. hit pattern/defined input set id, the pkt received for rss same queue:: > > p=Ether()/IP(id=47750)/Raw('X'*666); pkts=fragment6(p, 500) > p=Ether()/IP(id=47751)/Raw('X'*666); pkts=fragment6(p, 500) > -- > 2.17.1 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [dts] [PATCH V1] test_plans/cvl_ip_fragment_rte_flow:simply ipfragment rule 2021-09-13 4:43 ` [dts] [PATCH V1] test_plans/cvl_ip_fragment_rte_flow:simply ipfragment rule Tu, Lijuan @ 2021-09-13 5:13 ` Huang, ZhiminX 2021-09-14 8:20 ` Tu, Lijuan 0 siblings, 1 reply; 7+ messages in thread From: Huang, ZhiminX @ 2021-09-13 5:13 UTC (permalink / raw) To: Tu, Lijuan, dts Hi lijuan, Add dpdk commit for simply pf ip fragment code: 5ae0906ee7d78834431af568aade1aace240e717 > -----Original Message----- > From: Tu, Lijuan <lijuan.tu@intel.com> > Sent: Monday, September 13, 2021 12:43 PM > To: Huang, ZhiminX <zhiminx.huang@intel.com>; dts@dpdk.org > Cc: Huang, ZhiminX <zhiminx.huang@intel.com> > Subject: RE: [dts] [PATCH V1] test_plans/cvl_ip_fragment_rte_flow:simply > ipfragment rule > > Could please provide dpdk commit ? > > > -----Original Message----- > > From: dts <dts-bounces@dpdk.org> On Behalf Of Zhimin Huang > > Sent: 2021年7月28日 22:12 > > To: dts@dpdk.org > > Cc: Huang, ZhiminX <zhiminx.huang@intel.com> > > Subject: [dts] [PATCH V1] test_plans/cvl_ip_fragment_rte_flow:simply > > ipfragment rule > > > > *.sync dpdk code to simply ipfragment rule > > > > Signed-off-by: Zhimin Huang <zhiminx.huang@intel.com> > > --- > > .../cvl_ip_fragment_rte_flow_test_plan.rst | 42 +++++++++---------- > > 1 file changed, 21 insertions(+), 21 deletions(-) > > > > diff --git a/test_plans/cvl_ip_fragment_rte_flow_test_plan.rst > > b/test_plans/cvl_ip_fragment_rte_flow_test_plan.rst > > index 634550b1..704b590c 100644 > > --- a/test_plans/cvl_ip_fragment_rte_flow_test_plan.rst > > +++ b/test_plans/cvl_ip_fragment_rte_flow_test_plan.rst > > @@ -104,9 +104,9 @@ take 'MAC_IPV4_FRAG fdir queue index' for fdir > > example > > ------------------------------------------------------ > > 1. validate and create rule:: > > > > - flow validate 0 ingress pattern eth / ipv4 packet_id spec 0 packet_id > last > > 0xffff packet_id mask 0xffff fragment_offset spec 0x2000 > > fragment_offset last 0x1fff fragment_offset mask 0xffff / end actions > > queue index 1 / mark / end > > + flow validate 0 ingress pattern eth / ipv4 fragment_offset spec > > + 0x2000 fragment_offset mask 0x2000 / end actions queue index 1 / > > + mark / end > > Flow rule validated > > - flow create 0 ingress pattern eth / ipv4 packet_id spec 0 packet_id > last 0xffff > > packet_id mask 0xffff fragment_offset spec 0x2000 fragment_offset last > > 0x1fff fragment_offset mask 0xffff / end actions queue index 1 / mark > > / end > > + flow create 0 ingress pattern eth / ipv4 fragment_offset spec > > + 0x2000 fragment_offset mask 0x2000 / end actions queue index 1 / > > + mark / end > > Flow rule #0 created > > > > 2. send matched pkts and check two pkts distributed to queue 1, `RSS > > hash=0x261a7deb - RSS queue=0x1` in output:: > > @@ -238,7 +238,7 @@ Subcase 1: MAC_IPV4_FRAG fdir queue index > > > > 1. rules:: > > > > - flow create 0 ingress pattern eth / ipv4 packet_id spec 0 packet_id last > 0xffff > > packet_id mask 0xffff fragment_offset spec 0x2000 fragment_offset last > > 0x1fff fragment_offset mask 0xffff / end actions queue index 1 / mark > > / end > > + flow create 0 ingress pattern eth / ipv4 fragment_offset spec > > + 0x2000 fragment_offset mask 0x2000 / end actions queue index 1 / > > + mark / end > > > > 2. matched packets:: > > > > @@ -253,7 +253,7 @@ Subcase 2: MAC_IPV4_FRAG fdir rss queues > > > > 1. rules:: > > > > - flow create 0 ingress pattern eth / ipv4 packet_id spec 0 packet_id last > 0xffff > > packet_id mask 0xffff fragment_offset spec 0x2000 fragment_offset last > > 0x1fff fragment_offset mask 0xffff / end actions rss queues 2 3 end / > > mark / end > > + flow create 0 ingress pattern eth / ipv4 fragment_offset spec > > + 0x2000 fragment_offset mask 0x2000 / end actions rss queues 2 3 end > > + / mark / end > > > > 2. matched packets:: > > > > @@ -268,7 +268,7 @@ Subcase 3: MAC_IPV4_FRAG fdir passthru > > > > 1. rules:: > > > > - flow create 0 ingress pattern eth / ipv4 packet_id spec 0 packet_id last > 0xffff > > packet_id mask 0xffff fragment_offset spec 0x2000 fragment_offset last > > 0x1fff fragment_offset mask 0xffff / end actions passthru / mark / end > > + flow create 0 ingress pattern eth / ipv4 fragment_offset spec > > + 0x2000 fragment_offset mask 0x2000 / end actions passthru / mark / > > + end > > > > 2. matched packets:: > > > > @@ -283,7 +283,7 @@ Subcase 4: MAC_IPV4_FRAG fdir drop > > > > 1. rules:: > > > > - flow create 0 ingress pattern eth / ipv4 packet_id spec 0 packet_id last > 0xffff > > packet_id mask 0xffff fragment_offset spec 0x2000 fragment_offset last > > 0x1fff fragment_offset mask 0xffff / end actions drop / end > > + flow create 0 ingress pattern eth / ipv4 fragment_offset spec > > + 0x2000 fragment_offset mask 0x2000 / end actions drop / end > > > > 2. matched packets:: > > > > @@ -298,7 +298,7 @@ Subcase 5: MAC_IPV4_FRAG fdir mark+rss > > > > 1. rules:: > > > > - flow create 0 ingress pattern eth / ipv4 packet_id spec 0 packet_id last > 0xffff > > packet_id mask 0xffff fragment_offset spec 0x2000 fragment_offset last > > 0x1fff fragment_offset mask 0xffff / end actions mark / rss / end > > + flow create 0 ingress pattern eth / ipv4 fragment_offset spec > > + 0x2000 fragment_offset mask 0x2000 / end actions mark / rss / end > > > > 2. matched packets:: > > > > @@ -313,7 +313,7 @@ Subcase 6: MAC_IPV4_FRAG fdir mark > > > > 1. rules:: > > > > - flow create 0 ingress pattern eth / ipv4 packet_id spec 0 packet_id last > 0xffff > > packet_id mask 0xffff fragment_offset spec 0x2000 fragment_offset last > > 0x1fff fragment_offset mask 0xffff / end actions mark id 1 / end > > + flow create 0 ingress pattern eth / ipv4 fragment_offset spec > > + 0x2000 fragment_offset mask 0x2000 / end actions mark id 1 / end > > > > 2. matched packets:: > > > > @@ -331,7 +331,7 @@ Subcase 1: MAC_IPV6_FRAG fdir queue index > > > > 1. rules:: > > > > - flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext packet_id spec > 0 > > packet_id last 0xffffffff packet_id mask 0xffffffff frag_data spec > > 0x0001 frag_data last 0xffff frag_data mask 0xffff / end actions queue > > index 1 / mark / end > > + 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 > > > > 2. matched packets:: > > > > @@ -346,7 +346,7 @@ Subcase 2: MAC_IPV6_FRAG fdir rss queues > > > > 1. rules:: > > > > - flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext packet_id spec > 0 > > packet_id last 0xffffffff packet_id mask 0xffffffff frag_data spec > > 0x0001 frag_data last 0xffff frag_data mask 0xffff / end actions rss > > queues 2 3 / mark / end > > + flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext > > + frag_data spec 0x0001 frag_data mask 0x0001 / end actions rss queues > > + 2 3 end / mark / end > > > > 2. matched packets:: > > > > @@ -361,7 +361,7 @@ Subcase 3: MAC_IPV6_FRAG fdir passthru > > > > 1. rules:: > > > > - flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext packet_id spec > 0 > > packet_id last 0xffffffff packet_id mask 0xffffffff frag_data spec > > 0x0001 frag_data last 0xffff frag_data mask 0xffff / end actions > > passthru / mark / end > > + flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext > > + frag_data spec 0x0001 frag_data mask 0x0001 / end actions passthru / > > + mark / end > > > > 2. matched packets:: > > > > @@ -376,7 +376,7 @@ Subcase 4: MAC_IPV6_FRAG fdir drop > > > > 1. rules:: > > > > - flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext packet_id spec > 0 > > packet_id last 0xffffffff packet_id mask 0xffffffff frag_data spec > > 0x0001 frag_data last 0xffff frag_data mask 0xffff / end actions drop > > / end > > + flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext > > + frag_data spec 0x0001 frag_data mask 0x0001 / end actions drop / end > > > > 2. matched packets:: > > > > @@ -391,7 +391,7 @@ Subcase 5: MAC_IPV6_FRAG fdir mark+rss > > > > 1. rules:: > > > > - flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext packet_id spec > 0 > > packet_id last 0xffffffff packet_id mask 0xffffffff frag_data spec > > 0x0001 frag_data last 0xffff frag_data mask 0xffff / end actions mark > > / rss / end > > + flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext > > + frag_data spec 0x0001 frag_data mask 0x0001 / end actions mark / rss > > + / end > > > > 2. matched packets:: > > > > @@ -406,7 +406,7 @@ Subcase 6: MAC_IPV6_FRAG fdir mark > > > > 1. rules:: > > > > - flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext packet_id spec > 0 > > packet_id last 0xffffffff packet_id mask 0xffffffff frag_data spec > > 0x0001 frag_data last 0xffff frag_data mask 0xffff / end actions mark > > id 1 / end > > + flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext > > + frag_data spec 0x0001 frag_data mask 0x0001 / end actions mark id 1 > > + / end > > > > 2. matched packets:: > > > > @@ -427,7 +427,7 @@ take 'mac_ipv4_frag_l2dst_fdir_queue_index' > example:: > > > > 1.rules: > > > > - flow create 0 ingress pattern eth dst is 00:00:00:00:00:01 / ipv4 > packet_id > > spec 0 packet_id last 0xffff packet_id mask 0xffff fragment_offset > > spec 0x2000 fragment_offset last 0x1fff fragment_offset mask 0xffff / > > end actions queue index 1 / mark / end > > + flow create 0 ingress pattern eth dst is 00:00:00:00:00:01 / > > + ipv4 fragment_offset spec 0x2000 fragment_offset mask 0x2000 / end > > + actions queue index 1 / mark / end > > > > 2.matched packets: > > > > @@ -452,7 +452,7 @@ take 'mac_ipv6_frag_l2dst_fdir_queue_index' > example:: > > > > 1.rules: > > > > - flow create 0 ingress pattern eth dst is 00:00:00:00:00:01 / ipv6 / > > ipv6_frag_ext packet_id spec 0 packet_id last 0xffffffff packet_id > > mask 0xffffffff frag_data spec 0x0001 frag_data last 0xffff frag_data > > mask 0xffff / end actions queue index 1 / mark / end > > + flow create 0 ingress pattern eth dst is 00:00:00:00:00:01 / > > + ipv6 / ipv6_frag_ext frag_data spec 0x0001 frag_data mask 0x0001 / > > + end actions queue index 1 / mark / end > > > > 2.matched packets: > > > > @@ -478,7 +478,7 @@ take 'mac_ipv4_frag_l3src_fdir_queue_index' > example:: > > > > 1.rules: > > > > - flow create 0 ingress pattern eth / ipv4 src is 192.168.1.1 packet_id > spec 0 > > packet_id last 0xffff packet_id mask 0xffff fragment_offset spec > > 0x2000 fragment_offset last 0x1fff fragment_offset mask 0xffff / end > > actions queue index 1 / mark / end > > + flow create 0 ingress pattern eth / ipv4 src is 192.168.1.1 > > + fragment_offset spec 0x2000 fragment_offset mask 0x2000 / end > > + actions queue index 1 / mark / end > > > > 2.matched packets: > > > > @@ -505,7 +505,7 @@ take 'mac_ipv6_frag_l3src_fdir_queue_index' > example:: > > > > 1.rules: > > > > - flow create 0 ingress pattern eth / ipv6 src is 2001::1 / ipv6_frag_ext > > packet_id spec 0 packet_id last 0xffffffff packet_id mask 0xffffffff > > frag_data spec 0x0001 frag_data last 0xffff frag_data mask 0xffff / > > end actions queue index 1 / mark / end > > + flow create 0 ingress pattern eth / ipv6 src is 2001::1 / > > + ipv6_frag_ext frag_data spec 0x0001 frag_data mask 0x0001 / end > > + actions queue index 1 / mark / end > > > > 2.matched packets: > > > > @@ -576,7 +576,7 @@ Subcase 1: exclusive validation fdir rule 1. > > create fdir filter rules:: > > > > flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / > > ipv4 src is > > 192.168.0.20 / end actions queue index 1 / end > > - flow create 0 ingress pattern eth / ipv4 packet_id spec 0 packet_id last > 0xffff > > packet_id mask 0xffff fragment_offset spec 0x2000 fragment_offset last > > 0x1fff fragment_offset mask 0xffff / end actions queue index 2 / end > > + flow create 0 ingress pattern eth / ipv4 fragment_offset spec > > + 0x2000 fragment_offset mask 0x2000 / end actions queue index 2 / end > > > > 2. hit pattern/defined input set id, the pkt received for queue 2:: > > > > @@ -586,7 +586,7 @@ Subcase 2: exclusive validation fdir rule > > ----------------------------------------- > > 1. create fdir filter rules:: > > > > - flow create 0 ingress pattern eth / ipv4 packet_id spec 0 packet_id last > 0xffff > > packet_id mask 0xffff fragment_offset spec 0x2000 fragment_offset last > > 0x1fff fragment_offset mask 0xffff / end actions queue index 2 / end > > + flow create 0 ingress pattern eth / ipv4 fragment_offset spec > > + 0x2000 fragment_offset mask 0x2000 / end actions queue index 2 / end > > flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / > > ipv4 src is > > 192.168.0.20 / end actions queue index 1 / end > > > > 2. hit pattern/defined input set id, the pkt received for queue 2:: > > @@ -600,7 +600,7 @@ Subcase 3: exclusive validation rss rule > > flow create 0 ingress pattern eth / ipv4 / end actions rss types > > ipv4 end key_len 0 queues end / end > > flow create 0 ingress pattern eth / ipv4 / end actions rss types > > ipv4-frag end key_len 0 queues end / end > > > > -2. hit pattern/defined input set id, the pkt received for rss diffent queue:: > > +2. hit pattern/defined input set id, the pkt received for rss same queue:: > > > > p=Ether()/IP(id=47750)/Raw('X'*666); pkts=fragment6(p, 500) > > p=Ether()/IP(id=47751)/Raw('X'*666); pkts=fragment6(p, 500) > > -- > > 2.17.1 > ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [dts] [PATCH V1] test_plans/cvl_ip_fragment_rte_flow:simply ipfragment rule 2021-09-13 5:13 ` Huang, ZhiminX @ 2021-09-14 8:20 ` Tu, Lijuan 0 siblings, 0 replies; 7+ messages in thread From: Tu, Lijuan @ 2021-09-14 8:20 UTC (permalink / raw) To: Huang, ZhiminX, dts > -----Original Message----- > From: Huang, ZhiminX <zhiminx.huang@intel.com> > Sent: 2021年9月13日 13:14 > To: Tu, Lijuan <lijuan.tu@intel.com>; dts@dpdk.org > Subject: RE: [dts] [PATCH V1] test_plans/cvl_ip_fragment_rte_flow:simply > ipfragment rule > > Hi lijuan, > > Add dpdk commit for simply pf ip fragment code: > 5ae0906ee7d78834431af568aade1aace240e717 Applied with commit message changed. ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2021-09-14 8:20 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2021-07-28 14:11 [dts] [PATCH V1] test_plans/cvl_ip_fragment_rte_flow:simply ipfragment rule Zhimin Huang 2021-07-28 14:11 ` [dts] [PATCH V1] tests/cvl_ip_fragment_rte_flow:simply ipfargment rule Zhimin Huang 2021-07-28 6:05 ` Huang, ZhiminX 2021-09-14 8:19 ` Tu, Lijuan 2021-09-13 4:43 ` [dts] [PATCH V1] test_plans/cvl_ip_fragment_rte_flow:simply ipfragment rule Tu, Lijuan 2021-09-13 5:13 ` Huang, ZhiminX 2021-09-14 8:20 ` Tu, Lijuan
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).