From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id F3EC2A056D; Tue, 3 Mar 2020 04:23:32 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BFA1E1BFF4; Tue, 3 Mar 2020 04:23:32 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 95E3D1BFF0 for ; Tue, 3 Mar 2020 04:23:30 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Mar 2020 19:23:29 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,509,1574150400"; d="scan'208";a="258226456" Received: from unknown (HELO dpdk-wenjielx-dtspatch135.sh.intel.com) ([10.240.176.135]) by orsmga002.jf.intel.com with ESMTP; 02 Mar 2020 19:23:28 -0800 From: Peng Yuan To: dts@dpdk.org Cc: Peng Yuan Date: Tue, 3 Mar 2020 11:28:55 +0800 Message-Id: <1583206135-15306-1-git-send-email-yuan.peng@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH]test_plans: add mark/rss to cvl_fdir_test_plan.rst X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 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 Sender: "dts" Add mark/rss action to cvl_fdir_test_plan.rst Signed-off-by: Peng Yuan diff --git a/test_plans/cvl_fdir_test_plan.rst b/test_plans/cvl_fdir_test_plan.rst index 0b0f4de..12467f7 100644 --- a/test_plans/cvl_fdir_test_plan.rst +++ b/test_plans/cvl_fdir_test_plan.rst @@ -96,6 +96,7 @@ Action type passthru count identifier 0x1234 shared on|off mark id + mark/rss Prerequisites @@ -920,10 +921,10 @@ Test case: MAC_IPV4_UDP passthru/mark 1. create filter rules:: - flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv4 src is 192.168.0.20 dst is 192.168.0.21 ttl is 2 tos is 4 / udp src is 22 dst is 23 / end actions passthru / mark / end + flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv4 src is 192.168.0.20 dst is 192.168.0.21 ttl is 2 tos is 4 / udp src is 22 dst is 23 / end actions passthru / end -2. send matched packets, check the packets are redirected by RSS with FDIR ID. - send mismatched packets, check the packets are redirected by RSS without FDIR ID. +2. send matched packets, check the packets are redirected by RSS. + send mismatched packets, check the packets are redirected by RSS. 3. verify rules can be listed and destroyed:: @@ -934,7 +935,7 @@ Test case: MAC_IPV4_UDP passthru/mark testpmd> flow destroy 0 rule 0 - verify matched packet is redirected to the same queue without FDIR ID. + verify matched packet is redirected to the same queue. check there is no rule listed. Test case: MAC_IPV4_TCP passthru/mark @@ -1245,6 +1246,373 @@ Test case: MAC_IPV4_TUN_MAC_IPV4_SCTP passthru/mark verify matched packet is redirected to the same queue without FDIR ID. check there is no rule listed. +Test case: MAC_IPV4_PAY mark/rss +================================ + +1. create filter rules:: + + flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv4 src is 192.168.0.20 dst is 192.168.0.21 proto is 255 ttl is 2 tos is 4 / end actions mark id 1 / rss / end + +2. send matched packets, check the packets are redirected by RSS with FDIR ID 1. + send mismatched packets, check the packets are redirected by RSS without FDIR ID 1. + +3. verify rules can be listed and destroyed:: + + testpmd> flow list 0 + + check the existing rule. + destroy the rule:: + + testpmd> flow destroy 0 rule 0 + + verify matched packets are redirected to the same queue without FDIR ID. + check there is no rule listed. + +Test case: MAC_IPV4_UDP mark/rss +================================ + +1. create filter rules:: + + flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv4 src is 192.168.0.20 dst is 192.168.0.21 ttl is 2 tos is 4 / udp src is 22 dst is 23 / end actions mark / rss / end + +2. send matched packets, check the packets are redirected by RSS with FDIR ID 0. + send mismatched packets, check the packets are redirected by RSS without FDIR ID 0. + +3. verify rules can be listed and destroyed:: + + testpmd> flow list 0 + + check the existing rule. + destroy the rule:: + + testpmd> flow destroy 0 rule 0 + + verify matched packet is redirected to the same queue without FDIR ID. + check there is no rule listed. + +Test case: MAC_IPV4_TCP mark/rss +================================ + +1. create filter rules:: + + flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv4 src is 192.168.0.20 dst is 192.168.0.21 ttl is 2 tos is 4 / tcp src is 22 dst is 23 / end actions mark id 1 / rss / end + +2. send matched packets, check the packets are redirected by RSS with FDIR ID 1. + send mismatched packets, check the packets are redirected by RSS without FDIR ID 1. + +3. verify rules can be listed and destroyed:: + + testpmd> flow list 0 + + check the existing rule. + destroy the rule:: + + testpmd> flow destroy 0 rule 0 + + verify matched packet is redirected to the same queue without FDIR ID. + check there is no rule listed. + +Test case: MAC_IPV4_SCTP mark/rss +================================= + +1. create filter rules:: + + flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv4 src is 192.168.0.20 dst is 192.168.0.21 ttl is 2 tos is 4 / sctp src is 22 dst is 23 tag is 1 / end actions mark id 1 / rss / end + +2. send matched packets, check the packets are redirected by RSS with FDIR ID 1. + send mismatched packets, check the packets are redirected by RSS without FDIR ID 1. + +3. verify rules can be listed and destroyed:: + + testpmd> flow list 0 + + check the existing rule. + destroy the rule:: + + testpmd> flow destroy 0 rule 0 + + verify matched packet is redirected to the same queue without FDIR ID. + check there is no rule listed. + +Test case: MAC_IPV6_PAY mark/rss +================================ + +1. create filter rules:: + + flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 src is 2001::2 proto is 1 hop is 2 tc is 1 / end actions mark id 1 / rss / end + +2. send matched packets, check the packets are redirected by RSS with FDIR ID 1. + send mismatched packets, check the packets are redirected by RSS without FDIR ID 1. + +3. verify rules can be listed and destroyed:: + + testpmd> flow list 0 + + check the existing rule. + destroy the rule:: + + testpmd> flow destroy 0 rule 0 + + verify matched packet is redirected to the same queue without FDIR ID. + check there is no rule listed. + +Test case: MAC_IPV6_UDP mark/rss +================================ + +1. create filter rules:: + + flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 src is 2001::2 hop is 2 tc is 1 / udp src is 22 dst is 23 / end actions mark id 1 / rss / end + +2. send matched packets, check the packets are redirected by RSS with FDIR ID 1. + send mismatched packets, check the packets are redirected by RSS without FDIR ID 1. + +3. verify rules can be listed and destroyed:: + + testpmd> flow list 0 + + check the existing rule. + destroy the rule:: + + testpmd> flow destroy 0 rule 0 + + verify matched packet is redirected to the same queue without FDIR ID. + check there is no rule listed. + +Test case: MAC_IPV6_TCP mark/rss +================================ + +1. create filter rules:: + + flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 src is 2001::2 hop is 2 tc is 1 / tcp src is 22 dst is 23 / end actions mark id 1 / rss / end + +2. send matched packets, check the packets are redirected by RSS with FDIR ID 1. + send mismatched packets, check the packets are redirected by RSS without FDIR ID 1. + +3. verify rules can be listed and destroyed:: + + testpmd> flow list 0 + + check the existing rule. + destroy the rule:: + + testpmd> flow destroy 0 rule 0 + + verify matched packet is redirected to the same queue without FDIR ID. + check there is no rule listed. + +Test case: MAC_IPV6_SCTP mark/rss +================================= + +1. create filter rules:: + + flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 src is 2001::2 hop is 2 tc is 1 / sctp src is 22 dst is 23 / end actions mark id 1 / rss / end + +2. send matched packets, check the packets are redirected by RSS with FDIR ID 1. + send mismatched packets, check the packets are redirected by RSS without FDIR ID 1. + +3. verify rules can be listed and destroyed:: + + testpmd> flow list 0 + + check the existing rule. + destroy the rule:: + + testpmd> flow destroy 0 rule 0 + + verify matched packet is redirected to the same queue without FDIR ID. + check there is no rule listed. + +Test case: MAC_IPV4_TUN_IPV4_PAY mark/rss +========================================= + +1. create filter rules:: + + flow create 0 ingress pattern eth / ipv4 / udp / vxlan / ipv4 src is 192.168.0.20 dst is 192.168.0.21 / end actions mark / rss / end + +2. send matched packets, check the packets are redirected by RSS with FDIR ID 0. + send mismatched packets, check the packets are redirected by RSS without FDIR ID 0. + +3. verify rules can be listed and destroyed:: + + testpmd> flow list 0 + + check the existing rule. + destroy the rule:: + + testpmd> flow destroy 0 rule 0 + + verify matched packet is redirected to the same queue without FDIR ID. + check there is no rule listed. + +Test case: MAC_IPV4_TUN_IPV4_UDP mark/rss +========================================= + +1. create filter rules:: + + flow create 0 ingress pattern eth / ipv4 / udp / vxlan / ipv4 src is 192.168.0.20 dst is 192.168.0.21 / udp src is 22 dst is 23 / end actions mark id 1 / rss / end + +2. send matched packets, check the packets are redirected by RSS with FDIR ID 1. + send mismatched packets, check the packets are redirected by RSS without FDIR ID 1. + +3. verify rules can be listed and destroyed:: + + testpmd> flow list 0 + + check the existing rule. + destroy the rule:: + + testpmd> flow destroy 0 rule 0 + + verify matched packet is redirected to the same queue without FDIR ID. + check there is no rule listed. + +Test case: MAC_IPV4_TUN_IPV4_TCP mark/rss +========================================= + +1. create filter rules:: + + flow create 0 ingress pattern eth / ipv4 / udp / vxlan / ipv4 src is 192.168.0.20 dst is 192.168.0.21 / tcp src is 22 dst is 23 / end actions mark id 1 / rss / end + +2. send matched packets, check the packets are redirected by RSS with FDIR ID 1. + send mismatched packets, check the packets are redirected by RSS without FDIR ID 1. + +3. verify rules can be listed and destroyed:: + + testpmd> flow list 0 + + check the existing rule. + destroy the rule:: + + testpmd> flow destroy 0 rule 0 + + verify matched packet is redirected to the same queue without FDIR ID. + check there is no rule listed. + +Test case: MAC_IPV4_TUN_IPV4_SCTP mark/rss +========================================== + +1. create filter rules:: + + flow create 0 ingress pattern eth / ipv4 / udp / vxlan / ipv4 src is 192.168.0.20 dst is 192.168.0.21 / sctp src is 22 dst is 23 / end actions mark id 1 / rss / end + +2. send matched packets, check the packets are redirected by RSS with FDIR ID 1. + send mismatched packets, check the packets are redirected by RSS without FDIR ID 1. + +3. verify rules can be listed and destroyed:: + + testpmd> flow list 0 + + check the existing rule. + destroy the rule:: + + testpmd> flow destroy 0 rule 0 + + verify matched packet is redirected to the same queue without FDIR ID. + check there is no rule listed. + +Test case: MAC_IPV4_TUN_MAC_IPV4_PAY mark/rss +============================================= + +1. create filter rules:: + + flow create 0 ingress pattern eth / ipv4 / udp / vxlan / eth / ipv4 src is 192.168.0.20 dst is 192.168.0.21 / end actions mark id 1 / rss / end + +2. send matched packets, check the packets are redirected by RSS with FDIR ID 1. + send mismatched packets, check the packets are redirected by RSS without FDIR ID 1. + +3. verify rules can be listed and destroyed:: + + testpmd> flow list 0 + + check the existing rule. + destroy the rule:: + + testpmd> flow destroy 0 rule 0 + + verify matched packet is redirected to the same queue without FDIR ID. + check there is no rule listed. + +Test case: MAC_IPV4_TUN_MAC_IPV4_UDP mark/rss +============================================= + +1. create filter rules:: + + flow create 0 ingress pattern eth / ipv4 / udp / vxlan / eth / ipv4 src is 192.168.0.20 dst is 192.168.0.21 / udp src is 22 dst is 23 / end actions mark id 1 / rss / end + +2. send matched packets, check the packets are redirected by RSS with FDIR ID 1. + send mismatched packets, check the packets are redirected by RSS without FDIR ID 1. + +3. verify rules can be listed and destroyed:: + + testpmd> flow list 0 + + check the existing rule. + destroy the rule:: + + testpmd> flow destroy 0 rule 0 + + verify matched packet is redirected to the same queue without FDIR ID. + check there is no rule listed. + +Test case: MAC_IPV4_TUN_MAC_IPV4_TCP mark/rss +============================================= + +1. create filter rules:: + + flow create 0 ingress pattern eth / ipv4 / udp / vxlan / eth / ipv4 src is 192.168.0.20 dst is 192.168.0.21 / tcp src is 22 dst is 23 / end actions mark id 1 / rss / end + +2. send matched packets, check the packets are redirected by RSS with FDIR ID 1. + send mismatched packets, check the packets are redirected by RSS without FDIR ID 1. + +3. verify rules can be listed and destroyed:: + + testpmd> flow list 0 + + check the existing rule. + destroy the rule:: + + testpmd> flow destroy 0 rule 0 + + verify matched packet is redirected to the same queue without FDIR ID. + check there is no rule listed. + +Test case: MAC_IPV4_TUN_MAC_IPV4_SCTP mark/rss +============================================== + +1. create filter rules:: + + flow create 0 ingress pattern eth / ipv4 / udp / vxlan / eth / ipv4 src is 192.168.0.20 dst is 192.168.0.21 / sctp src is 22 dst is 23 / end actions mark id 1 / rss / end + +2. send matched packets, check the packets are redirected by RSS with FDIR ID 1. + send mismatched packets, check the packets are redirected by RSS without FDIR ID 1. + +3. verify rules can be listed and destroyed:: + + testpmd> flow list 0 + + check the existing rule. + destroy the rule:: + + testpmd> flow destroy 0 rule 0 + + verify matched packet is redirected to the same queue without FDIR ID. + check there is no rule listed. + +Test case: mark/rss wrong parameters +==================================== + +1. create filter rules:: + + flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv4 src is 192.168.0.20 dst is 192.168.0.21 ttl is 2 tos is 4 / udp src is 22 dst is 23 / end actions rss / end + +2. The rule failed to be created, report proper error message. + +3. list the flow:: + + testpmd> flow list 0 + + there is no flow listed. + Test case: MAC_IPV4_PAY drop ============================ @@ -2022,6 +2390,28 @@ Test case: MAC_IPV4_GTPU_EH passthru/mark verify matched packets are redirected to the same queue without FDIR ID. check there is no rule listed. +Test case: MAC_IPV4_GTPU_EH mark/rss +==================================== + +1. create filter rules:: + + flow create 0 ingress pattern eth / ipv4 / udp / gtpu teid is 0x12345678 / gtp_psc qfi is 0x34 / end actions mark id 1 / rss / end + +2. send matched packets, check the packets are redirected by RSS with FDIR ID 1. + send mismatched packets, check the packets are redirected by RSS without FDIR ID 1. + +3. verify rules can be listed and destroyed:: + + testpmd> flow list 0 + + check the existing rule. + destroy the rule:: + + testpmd> flow destroy 0 rule 0 + + verify matched packets are redirected to the same queue without FDIR ID. + check there is no rule listed. + Test case: MAC_IPV4_GTPU_EH drop ================================ @@ -2110,6 +2500,28 @@ Test case: MAC_IPV4_GTPU passthru/mark verify matched packets are redirected to the same queue without FDIR ID. check there is no rule listed. +Test case: MAC_IPV4_GTPU mark/rss +================================= + +1. create filter rules:: + + flow create 0 ingress pattern eth / ipv4 / udp / gtpu teid is 0x12345678 / end actions mark id 1 / rss / end + +2. send matched packets, check the packets are redirected by RSS with FDIR ID 1. + send mismatched packets, check the packets are redirected by RSS without FDIR ID 1. + +3. verify rules can be listed and destroyed:: + + testpmd> flow list 0 + + check the existing rule. + destroy the rule:: + + testpmd> flow destroy 0 rule 0 + + verify matched packets are redirected to the same queue without FDIR ID. + check there is no rule listed. + Test case: MAC_IPV4_GTPU drop ============================= @@ -2405,7 +2817,7 @@ Test case: MAC_IPV4_GTPU_EH wrong parameters flow create 0 ingress pattern eth / ipv4 / udp / gtpu teid is 0x12345678 / gtp_psc qfi is 0x100 / end actions queue index 1 / end flow create 0 ingress pattern eth / ipv4 / udp / gtpu teid is 0x100000000 / gtp_psc qfi is 0x5 / end actions queue index 2 / end - the two flows can not be created successfully. + the two flows can not be created successfully, report proper error message. 2. list the flow:: -- 2.7.4