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 99D89A04DB; Mon, 16 Nov 2020 09:13:50 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8CE4AC8B6; Mon, 16 Nov 2020 09:13:49 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 2D0CC323E for ; Mon, 16 Nov 2020 09:13:47 +0100 (CET) IronPort-SDR: jbNE0Ey6bbQP5MmyT3ncjFK7XiQRCMnp7BKg3J8PbcO/Y8TjHVi6tTGMnKdW0eNgnCHyTU0BMT CuHl7vMO7nLg== X-IronPort-AV: E=McAfee;i="6000,8403,9806"; a="168137740" X-IronPort-AV: E=Sophos;i="5.77,482,1596524400"; d="scan'208";a="168137740" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Nov 2020 00:13:45 -0800 IronPort-SDR: 18JYBRSi/TmffyJlzhmWnmkHhbA6icrOOsRMBs5inlYq2q2Bkn81QYh28N2EinvG0hSb0oLmvV JDfEleKQVykQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,482,1596524400"; d="scan'208";a="358378681" Received: from dpdk-qifu-cxl.sh.intel.com ([10.67.119.67]) by fmsmga004.fm.intel.com with ESMTP; 16 Nov 2020 00:13:43 -0800 From: qifu To: dts@dpdk.org Cc: qifu Date: Mon, 16 Nov 2020 12:01:23 -0500 Message-Id: <20201116170123.40268-1-qi.fu@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1]test_plans/cvl_advanced_iavf_rss_test_plan: add rss type ipv4/ipv6 test cases 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" for dpdk code changing, iavf rss can support ipv4/ipv6 rss type in pattern which contain udp/tcp/sctp. so remove related rules from negative case, and add test cases support ipv4 and ipv6 rss type. Signed-off-by: qifu --- .../cvl_advanced_iavf_rss_test_plan.rst | 97 +++++++++++++------ 1 file changed, 69 insertions(+), 28 deletions(-) diff --git a/test_plans/cvl_advanced_iavf_rss_test_plan.rst b/test_plans/cvl_advanced_iavf_rss_test_plan.rst index ad2976a3..c4661550 100644 --- a/test_plans/cvl_advanced_iavf_rss_test_plan.rst +++ b/test_plans/cvl_advanced_iavf_rss_test_plan.rst @@ -70,74 +70,74 @@ Pattern and input set | IPv4/IPv6 + TCP/UDP/SCTP | MAC_IPV4 | eth, l2-src-only, l2-dst-only, ipv4, l3-src-only, l3-dst-only | +-------------------------------+---------------------------+----------------------------------------------------------------------------------+ | | MAC_IPV4_UDP | eth, l2-src-only, l2-dst-only, ipv4-udp, l3-src-only, l3-dst-only, | - | | | l4-src-only, l4-dst-only | + | | | l4-src-only, l4-dst-only, ipv4 | +-------------------------------+---------------------------+----------------------------------------------------------------------------------+ | | MAC_IPV4_TCP | eth, l2-src-only, l2-dst-only, ipv4-tcp, l3-src-only, l3-dst-only, | - | | | l4-src-only, l4-dst-only | + | | | l4-src-only, l4-dst-only, ipv4 | +-------------------------------+---------------------------+----------------------------------------------------------------------------------+ | | MAC_IPV4_SCTP | eth, l2-src-only, l2-dst-only, ipv4-sctp, l3-src-only, l3-dst-only, | - | | | l4-src-only, l4-dst-only | + | | | l4-src-only, l4-dst-only, ipv4 | +-------------------------------+---------------------------+----------------------------------------------------------------------------------+ | | MAC_IPV6 | eth, l2-src-only, l2-dst-only, ipv6, l3-src-only, l3-dst-only | +-------------------------------+---------------------------+----------------------------------------------------------------------------------+ | | MAC_IPV6_UDP | eth, l2-src-only, l2-dst-only, ipv6-udp, l3-src-only, l3-dst-only, | - | | | l4-src-only, l4-dst-only | + | | | l4-src-only, l4-dst-only, ipv6 | +-------------------------------+---------------------------+----------------------------------------------------------------------------------+ | | MAC_IPV6_TCP | eth, l2-src-only, l2-dst-only, ipv6-tcp, l3-src-only, l3-dst-only, | - | | | l4-src-only, l4-dst-only | + | | | l4-src-only, l4-dst-only, ipv6 | +-------------------------------+---------------------------+----------------------------------------------------------------------------------+ | | MAC_IPV6_SCTP | eth, l2-src-only, l2-dst-only, ipv6-sctp, l3-src-only, l3-dst-only, | - | | | l4-src-only, l4-dst-only | + | | | l4-src-only, l4-dst-only, ipv6 | +-------------------------------+---------------------------+----------------------------------------------------------------------------------+ | GTP-U data packet types | MAC_IPV4_GTPU_IPV4 | gtpu, ipv4, l3-src-only, l3-dst-only | | IPv4/IPv6 transport | | | | IPv4/IPv6 payload | | | +-------------------------------+---------------------------+----------------------------------------------------------------------------------+ - | | MAC_IPV4_GTPU_IPV4_UDP | ipv4-udp, l3-src-only, l3-dst-only, l4-src-only, l4-dst-only | + | | MAC_IPV4_GTPU_IPV4_UDP | ipv4-udp, l3-src-only, l3-dst-only, l4-src-only, l4-dst-only, ipv4 | +-------------------------------+---------------------------+----------------------------------------------------------------------------------+ - | | MAC_IPV4_GTPU_IPV4_TCP | ipv4-tcp, l3-src-only, l3-dst-only, l4-src-only, l4-dst-only | + | | MAC_IPV4_GTPU_IPV4_TCP | ipv4-tcp, l3-src-only, l3-dst-only, l4-src-only, l4-dst-only, ipv4 | +-------------------------------+---------------------------+----------------------------------------------------------------------------------+ | | MAC_IPV4_GTPU_IPV6 | gtpu, ipv6, l3-src-only, l3-dst-only | +-------------------------------+---------------------------+----------------------------------------------------------------------------------+ - | | MAC_IPV4_GTPU_IPV6_UDP | ipv6-udp, l3-src-only, l3-dst-only, l4-src-only, l4-dst-only | + | | MAC_IPV4_GTPU_IPV6_UDP | ipv6-udp, l3-src-only, l3-dst-only, l4-src-only, l4-dst-only, ipv6 | +-------------------------------+---------------------------+----------------------------------------------------------------------------------+ - | | MAC_IPV4_GTPU_IPV6_TCP | ipv6-tcp, l3-src-only, l3-dst-only, l4-src-only, l4-dst-only | + | | MAC_IPV4_GTPU_IPV6_TCP | ipv6-tcp, l3-src-only, l3-dst-only, l4-src-only, l4-dst-only, ipv6 | +-------------------------------+---------------------------+----------------------------------------------------------------------------------+ | | MAC_IPV6_GTPU_IPV4 | gtpu, ipv4, l3-src-only, l3-dst-only | +-------------------------------+---------------------------+----------------------------------------------------------------------------------+ - | | MAC_IPV6_GTPU_IPV4_UDP | ipv4-udp, l3-src-only, l3-dst-only, l4-src-only, l4-dst-only | + | | MAC_IPV6_GTPU_IPV4_UDP | ipv4-udp, l3-src-only, l3-dst-only, l4-src-only, l4-dst-only, ipv4 | +-------------------------------+---------------------------+----------------------------------------------------------------------------------+ - | | MAC_IPV6_GTPU_IPV4_TCP | ipv4-tcp, l3-src-only, l3-dst-only, l4-src-only, l4-dst-only | + | | MAC_IPV6_GTPU_IPV4_TCP | ipv4-tcp, l3-src-only, l3-dst-only, l4-src-only, l4-dst-only, ipv4 | +-------------------------------+---------------------------+----------------------------------------------------------------------------------+ | | MAC_IPV6_GTPU_IPV6 | gtpu, ipv6, l3-src-only, l3-dst-only | +-------------------------------+---------------------------+----------------------------------------------------------------------------------+ - | | MAC_IPV6_GTPU_IPV6_UDP | ipv6-udp, l3-src-only, l3-dst-only, l4-src-only, l4-dst-only | + | | MAC_IPV6_GTPU_IPV6_UDP | ipv6-udp, l3-src-only, l3-dst-only, l4-src-only, l4-dst-only, ipv6 | +-------------------------------+---------------------------+----------------------------------------------------------------------------------+ - | | MAC_IPV6_GTPU_IPV6_TCP | ipv6-tcp, l3-src-only, l3-dst-only, l4-src-only, l4-dst-only | + | | MAC_IPV6_GTPU_IPV6_TCP | ipv6-tcp, l3-src-only, l3-dst-only, l4-src-only, l4-dst-only, ipv6 | +-------------------------------+---------------------------+----------------------------------------------------------------------------------+ | | MAC_IPV4_GTPU_EH_IPV4 | ipv4, l3-src-only, l3-dst-only | +-------------------------------+---------------------------+----------------------------------------------------------------------------------+ - | | MAC_IPV4_GTPU_EH_IPV4_UDP | ipv4-udp, l3-src-only, l3-dst-only, l4-src-only, l4-dst-only | + | | MAC_IPV4_GTPU_EH_IPV4_UDP | ipv4-udp, l3-src-only, l3-dst-only, l4-src-only, l4-dst-only, ipv4 | +-------------------------------+---------------------------+----------------------------------------------------------------------------------+ - | | MAC_IPV4_GTPU_EH_IPV4_TCP | ipv4-tcp, l3-src-only, l3-dst-only, l4-src-only, l4-dst-only | + | | MAC_IPV4_GTPU_EH_IPV4_TCP | ipv4-tcp, l3-src-only, l3-dst-only, l4-src-only, l4-dst-only, ipv4 | +-------------------------------+---------------------------+----------------------------------------------------------------------------------+ | | MAC_IPV4_GTPU_EH_IPV6 | ipv6, l3-src-only, l3-dst-only | +-------------------------------+---------------------------+----------------------------------------------------------------------------------+ - | | MAC_IPV4_GTPU_EH_IPV6_UDP | ipv6-udp, l3-src-only, l3-dst-only, l4-src-only, l4-dst-only | + | | MAC_IPV4_GTPU_EH_IPV6_UDP | ipv6-udp, l3-src-only, l3-dst-only, l4-src-only, l4-dst-only, ipv6 | +-------------------------------+---------------------------+----------------------------------------------------------------------------------+ - | | MAC_IPV4_GTPU_EH_IPV6_TCP | ipv6-tcp, l3-src-only, l3-dst-only, l4-src-only, l4-dst-only | + | | MAC_IPV4_GTPU_EH_IPV6_TCP | ipv6-tcp, l3-src-only, l3-dst-only, l4-src-only, l4-dst-only, ipv6 | +-------------------------------+---------------------------+----------------------------------------------------------------------------------+ | | MAC_IPV6_GTPU_EH_IPV4 | ipv4, l3-src-only, l3-dst-only | +-------------------------------+---------------------------+----------------------------------------------------------------------------------+ - | | MAC_IPV6_GTPU_EH_IPV4_UDP | ipv4-udp, l3-src-only, l3-dst-only, l4-src-only, l4-dst-only | + | | MAC_IPV6_GTPU_EH_IPV4_UDP | ipv4-udp, l3-src-only, l3-dst-only, l4-src-only, l4-dst-only, ipv4 | +-------------------------------+---------------------------+----------------------------------------------------------------------------------+ - | | MAC_IPV6_GTPU_EH_IPV4_TCP | ipv4-tcp, l3-src-only, l3-dst-only, l4-src-only, l4-dst-only | + | | MAC_IPV6_GTPU_EH_IPV4_TCP | ipv4-tcp, l3-src-only, l3-dst-only, l4-src-only, l4-dst-only, ipv4 | +-------------------------------+---------------------------+----------------------------------------------------------------------------------+ | | MAC_IPV6_GTPU_EH_IPV6 | ipv6, l3-src-only, l3-dst-only | +-------------------------------+---------------------------+----------------------------------------------------------------------------------+ - | | MAC_IPV6_GTPU_EH_IPV6_UDP | ipv6-udp, l3-src-only, l3-dst-only, l4-src-only, l4-dst-only | + | | MAC_IPV6_GTPU_EH_IPV6_UDP | ipv6-udp, l3-src-only, l3-dst-only, l4-src-only, l4-dst-only, ipv6 | +-------------------------------+---------------------------+----------------------------------------------------------------------------------+ - | | MAC_IPV6_GTPU_EH_IPV6_TCP | ipv6-tcp, l3-src-only, l3-dst-only, l4-src-only, l4-dst-only | + | | MAC_IPV6_GTPU_EH_IPV6_TCP | ipv6-tcp, l3-src-only, l3-dst-only, l4-src-only, l4-dst-only, ipv6 | +-------------------------------+---------------------------+----------------------------------------------------------------------------------+ | VLAN | MAC_VLAN_IPV4 | c-vlan | +-------------------------------+---------------------------+----------------------------------------------------------------------------------+ @@ -772,6 +772,23 @@ ipv4-udp 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.1.2")/UDP(sport=32,dport=23)/("X"*480)],iface="enp134s0f0") +Subcase: MAC_IPV4_UDP_IPV4 +-------------------------- +1. create rss rule:: + + flow create 0 ingress pattern eth / ipv4 / udp / end actions rss types ipv4 end key_len 0 queues end / end + +2. hit pattern/defined input set: +ipv4-udp 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")/UDP(sport=22,dport=23)/("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")/UDP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0") + +3. hit pattern/not defined input set: +ipv4-udp 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")/UDP(sport=32,dport=33)/("X"*480)],iface="enp134s0f0") + Subcase: MAC_IPV4_UDP_ALL ------------------------- 1. create rss rule:: @@ -838,6 +855,9 @@ Subcase: MAC_IPV4_TCP_L4SRC Subcase: MAC_IPV4_TCP_L4DST --------------------------- +Subcase: MAC_IPV4_TCP_IPV4 +-------------------------- + Subcase: MAC_IPV4_TCP_ALL ------------------------- @@ -887,6 +907,9 @@ Subcase: MAC_IPV4_SCTP_L4SRC Subcase: MAC_IPV4_SCTP_L4DST ---------------------------- +Subcase: MAC_IPV4_SCTP_IPV4 +--------------------------- + Subcase: MAC_IPV4_SCTP_ALL -------------------------- @@ -1320,6 +1343,23 @@ ipv6-udp 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:2021")/UDP(sport=32,dport=23)/("X"*480)],iface="enp134s0f0") +Subcase: MAC_IPV6_UDP_IPV6 +-------------------------- +1. create rss rule:: + + flow create 0 ingress pattern eth / ipv6 / udp / end actions rss types ipv6 end key_len 0 queues end / end + +2. hit pattern/defined input set: +ipv6-udp 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")/UDP(sport=22,dport=23)/("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:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/UDP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0") + +3. hit pattern/not defined input set: +ipv6-udp 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")/UDP(sport=32,dport=33)/("X"*480)],iface="enp134s0f0") + Subcase: MAC_IPV6_UDP_ALL ------------------------- 1. create rss rule:: @@ -1339,6 +1379,7 @@ ipv6-udp 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")/UDP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0") + Test case: MAC_IPV6_TCP ======================= the rules and packets in this test case is similar to "Test case: MAC_IPV6_UDP" @@ -1385,6 +1426,9 @@ Subcase: MAC_IPV6_TCP_L4SRC Subcase: MAC_IPV6_TCP_L4DST --------------------------- +Subcase: MAC_IPV6_TCP_IPV6 +-------------------------- + Subcase: MAC_IPV6_TCP_ALL ------------------------- @@ -1434,6 +1478,9 @@ Subcase: MAC_IPV6_SCTP_L4SRC Subcase: MAC_IPV6_SCTP_L4DST ---------------------------- +Subcase: MAC_IPV6_SCTP_IPV6 +--------------------------- + Subcase: MAC_IPV6_SCTP_ALL -------------------------- @@ -1655,9 +1702,6 @@ Test Case: negative case testpmd> flow create 0 ingress pattern eth / ipv4 / end actions rss types ipv4-udp end key_len 0 queues end / end ice_flow_create(): Failed to create flow port_flow_complain(): Caught PMD error type 10 (item specification): cause: 0x7fff3b61eb08, Invalid input set: Invalid argument - testpmd> flow create 0 ingress pattern eth / ipv4 / udp / end actions rss types ipv4 end key_len 0 queues end / end - ice_flow_create(): Failed to create flow - port_flow_complain(): Caught PMD error type 10 (item specification): cause: 0x7fff3b61eb08, Invalid input set: Invalid argument testpmd> flow create 0 ingress pattern eth / ipv4 / udp / end actions rss types ipv4-tcp end key_len 0 queues end / end ice_flow_create(): Failed to create flow port_flow_complain(): Caught PMD error type 10 (item specification): cause: 0x7fff3b61eb08, Invalid input set: Invalid argument @@ -1667,9 +1711,6 @@ Test Case: negative case testpmd> flow create 0 ingress pattern eth / ipv4 / end actions rss func symmetric_toeplitz types ipv4 l3-src-only end key_len 0 queues end / end ice_flow_create(): Failed to create flow port_flow_complain(): Caught PMD error type 10 (item specification): cause: 0x7fff3b61eb08, Invalid input set: Invalid argument - testpmd> flow create 0 ingress pattern eth / ipv4 / end actions rss func symmetric_toeplitz types eth end key_len 0 queues end / end - ice_flow_create(): Failed to create flow - port_flow_complain(): Caught PMD error type 10 (item specification): cause: 0x7fff3b61eb08, Invalid input set: Invalid argument check all the rule failed to be created. -- 2.17.1