* Re: [dts] [PATCH V3 1/2] test_plans/cvl_advanced_iavf_rss: add gre inner rss cases for iavf
2021-08-24 10:54 ` [dts] [PATCH V3 1/2] test_plans/cvl_advanced_iavf_rss: " Qin Sun
@ 2021-08-24 6:09 ` Lin, Xueqin
0 siblings, 0 replies; 5+ messages in thread
From: Lin, Xueqin @ 2021-08-24 6:09 UTC (permalink / raw)
To: Sun, QinX, dts
> -----Original Message-----
> From: Sun, QinX <qinx.sun@intel.com>
> Sent: Tuesday, August 24, 2021 6:54 PM
> To: dts@dpdk.org
> Cc: Lin, Xueqin <xueqin.lin@intel.com>; Sun, QinX <qinx.sun@intel.com>
> Subject: [dts] [PATCH V3 1/2] test_plans/cvl_advanced_iavf_rss: add gre inner
> rss cases for iavf
>
> as dpdk enables iavf GRE tunnel feature, so add some rss inner cases in test
> plan,
> related pattern: IPV4/IPV6+GRE+IPV4/IPV6+TCP/UDP, total 24 new cases
>
> Signed-off-by: Qin Sun <qinx.sun@intel.com>
Acked-by: Xueqin Lin <Xueqin.lin@intel.com>
> ---
> .../cvl_advanced_iavf_rss_test_plan.rst | 862 ++++++++++++++++++
> 1 file changed, 862 insertions(+)
>
> diff --git a/test_plans/cvl_advanced_iavf_rss_test_plan.rst
> b/test_plans/cvl_advanced_iavf_rss_test_plan.rst
> index 6376a140..137382e4 100644
> --- a/test_plans/cvl_advanced_iavf_rss_test_plan.rst
> +++ b/test_plans/cvl_advanced_iavf_rss_test_plan.rst
> @@ -175,6 +175,38 @@ Pattern and input set
> +-------------------------------+---------------------------+-------------------------------------
> ---------------------------------------------+
> | | MAC_IPV6_PFCP | pfcp
> |
> +-------------------------------+---------------------------+-------------------------------------
> ---------------------------------------------+
> + | IPV4/IPV6+GRE+IPV4/IPV6 | MAC_IPV4_GRE_IPV4 | inner ipv4,
> inner l3-src-only, inner l3-dst-only |
> + +-------------------------------+---------------------------+-------------------------------------
> ---------------------------------------------+
> + | | MAC_IPV6_GRE_IPV4 | inner ipv4, inner l3-src-
> only, inner l3-dst-only |
> + +-------------------------------+---------------------------+-------------------------------------
> ---------------------------------------------+
> + | | MAC_IPV4_GRE_IPV6 | inner ipv6, inner l3-src-
> only, inner l3-dst-only |
> + +-------------------------------+---------------------------+-------------------------------------
> ---------------------------------------------+
> + | | MAC_IPV6_GRE_IPV6 | inner ipv6, inner l3-src-
> only, inner l3-dst-only |
> + +-------------------------------+---------------------------+-------------------------------------
> ---------------------------------------------+
> + | IPV4/IPV6+GRE+IPV4/IPV6+TCP | MAC_IPV4_GRE_IPV4_TCP | inner
> ipv4-tcp, inner l3-src-only, inner l3-dst-only, |
> + | | | inner l4-src-only, inner l4-dst-only,
> inner ipv4 |
> + +-------------------------------+---------------------------+-------------------------------------
> ---------------------------------------------+
> + | | MAC_IPV6_GRE_IPV4_TCP | inner ipv4-tcp, inner l3-
> src-only, inner l3-dst-only, |
> + | | | inner l4-src-only, inner l4-dst-only,
> inner ipv4 |
> + +-------------------------------+---------------------------+-------------------------------------
> ---------------------------------------------+
> + | | MAC_IPV4_GRE_IPV6_TCP | inner ipv6-tcp, inner l3-
> src-only, inner l3-dst-only, |
> + | | | inner l4-src-only, inner l4-dst-only,
> inner iv6 |
> + +-------------------------------+---------------------------+-------------------------------------
> ---------------------------------------------+
> + | | MAC_IPV6_GRE_IPV6_TCP | inner ipv6-tcp, inner l3-
> src-only, inner l3-dst-only, |
> + | | | inner l4-src-only, inner l4-dst-only,
> inner ipv6 |
> + +-------------------------------+---------------------------+-------------------------------------
> ---------------------------------------------+
> + | IPV4/IPV6+GRE+IPV4/IPV6+UDP | MAC_IPV4_GRE_IPV4_UDP | inner
> ipv4-udp, inner l3-src-only, inner l3-dst-only, |
> + | | | inner l4-src-only, inner l4-dst-only,
> inner ipv4 |
> + +-------------------------------+---------------------------+-------------------------------------
> ---------------------------------------------+
> + | | MAC_IPV6_GRE_IPV4_UDP | inner ipv4-udp, inner
> l3-src-only, inner l3-dst-only, |
> + | | | inner l4-src-only, inner l4-dst-only,
> inner ipv4 |
> + +-------------------------------+---------------------------+-------------------------------------
> ---------------------------------------------+
> + | | MAC_IPV4_GRE_IPV6_UDP | inner ipv6-udp, inner
> l3-src-only, inner l3-dst-only, |
> + | | | inner l4-src-only, inner l4-dst-only,
> inner ipv6 |
> + +-------------------------------+---------------------------+-------------------------------------
> ---------------------------------------------+
> + | | MAC_IPV6_GRE_IPV6_UDP | inner ipv6-udp, inner
> l3-src-only, inner l3-dst-only, |
> + | | | inner l4-src-only, inner l4-dst-only,
> inner ipv6 |
> + +----------------------------- -+---------------------------+-------------------------------------
> ---------------------------------------------+
>
> .. table::
>
> @@ -249,6 +281,30 @@ Pattern and input set
> +-------------------------------+---------------------------+-------------------------------------
> -------------------------------------------+
> | | MAC_IPV6_GTPU_EH_IPV6_TCP | ipv6-tcp
> |
> +-------------------------------+---------------------------+-------------------------------------
> -------------------------------------------+
> + | IPV4/IPV6+GRE+IPV4/IPV6 | MAC_IPV4_GRE_IPV4 | inner ipv4
> |
> + +-------------------------------+---------------------------+-------------------------------------
> -------------------------------------------+
> + | | MAC_IPV6_GRE_IPV4 | inner ipv4
> |
> + +-------------------------------+---------------------------+-------------------------------------
> -------------------------------------------+
> + | | MAC_IPV4_GRE_IPV6 | inner ipv6
> |
> + +-------------------------------+---------------------------+-------------------------------------
> -------------------------------------------+
> + | | MAC_IPV6_GRE_IPV6 | inner ipv6
> |
> + +-------------------------------+---------------------------+-------------------------------------
> -------------------------------------------+
> + | IPV4/IPV6+GRE+IPV4/IPV6+TCP | MAC_IPV4_GRE_IPV4_TCP | inner
> ipv4-tcp |
> + +-------------------------------+---------------------------+-------------------------------------
> -------------------------------------------+
> + | | MAC_IPV6_GRE_IPV4_TCP | inner ipv4-tcp
> |
> + +-------------------------------+---------------------------+-------------------------------------
> -------------------------------------------+
> + | | MAC_IPV4_GRE_IPV6_TCP | inner ipv6-tcp
> |
> + +-------------------------------+---------------------------+-------------------------------------
> -------------------------------------------+
> + | | MAC_IPV6_GRE_IPV6_TCP | inner ipv6-tcp
> |
> + +-------------------------------+---------------------------+-------------------------------------
> -------------------------------------------+
> + | IPV4/IPV6+GRE+IPV4/IPV6+UDP | MAC_IPV4_GRE_IPV4_UDP | inner
> ipv4-udp |
> + +-------------------------------+---------------------------+-------------------------------------
> -------------------------------------------+
> + | | MAC_IPV6_GRE_IPV4_UDP | inner ipv4-udp
> |
> + +-------------------------------+---------------------------+-------------------------------------
> -------------------------------------------+
> + | | MAC_IPV4_GRE_IPV6_UDP | inner ipv6-udp
> |
> + +-------------------------------+---------------------------+-------------------------------------
> -------------------------------------------+
> + | | MAC_IPV6_GRE_IPV6_UDP | inner ipv6-udp
> |
> + +-------------------------------+---------------------------+-------------------------------------
> -------------------------------------------+
>
> .. note::
>
> @@ -259,6 +315,7 @@ Pattern and input set
> Rules with src/dst mac addresses as hash input set can not be applied
> to tunnel packets. So in the test cases with input set src/dst mac addresses,
> matched packets do not include tunnel packets.
> + For GRE tunnel rule,the input settings are for inner layer.
>
> Prerequisites
> =============
> @@ -1483,6 +1540,811 @@ Subcase: MAC_IPV6_SCTP_IPV6
> Subcase: MAC_IPV6_SCTP_ALL
> --------------------------
>
> +GRE Tunnel Case Test steps
> +==========================
> +all the test cases run the same test steps as below:
> +
> +1. validate rule.
> +2. create rule and list rule.
> +3. send a basic hit pattern packet,record the hash value,
> + check the packet is distributed to queues by RSS.
> +4. send hit pattern packet with changed input set in the rule.
> + check the received packet have different hash value with basic packet.
> + check the packet is distributed to queues by rss.
> +5. send hit pattern packet with changed input set not in the rule.
> + check the received packet have same hash value with the basic packet.
> + check the packet is distributed to queues by rss.
> +6. destroy the rule and list rule. check the flow list has no rule.
> +
> +Test case: MAC_IPV4_GRE_IPV4
> +============================
> +basic hit pattern packets are the same in this test case:
> +ipv4-proto packets::
> +
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1",
> src="192.168.0.2, proto=6")/("X"*480)],iface="enp134s0f0")
> +
> +Subcase: MAC_IPV4_GRE_IPV4_L3SRC
> +--------------------------------
> +1. create rss rule::
> +
> + flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / end actions rss types
> ipv4 l3-src-only end key_len 0 queues end / end
> +
> +2. hit pattern/defined input set::
> +
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1",
> src="192.168.1.2", proto=6)/("X"*480)],iface="enp134s0f0")
> +
> +3. hit pattern/not defined input set::
> +
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.1.1",
> src="192.168.0.2", proto=6)/("X"*480)],iface="enp134s0f0")
> +
> +Subcase: MAC_IPV4_GRE_IPV4_L3DST
> +--------------------------------
> +1. create rss rule::
> +
> + flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / end actions rss types
> ipv4 l3-dst-only end key_len 0 queues end / end
> +
> +2. hit pattern/defined input set::
> +
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.1.1",
> src="192.168.0.2", proto=6)/("X"*480)],iface="enp134s0f0")
> +
> +3. hit pattern/not defined input set::
> +
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1",
> src="192.168.1.2", proto=6)/("X"*480)],iface="enp134s0f0")
> +
> +Subcase: MAC_IPV4_GRE_IPV4_ALL
> +------------------------------
> +1. create rss rule::
> +
> + flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / end actions rss types
> ipv4 end key_len 0 queues end / end
> +
> +2. hit pattern/defined input set::
> +
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.1.1",
> src="192.168.0.2", proto=6)/("X"*480)],iface="enp134s0f0")
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1",
> src="192.168.1.2", proto=6)/("X"*480)],iface="enp134s0f0")
> +
> +Test case: MAC_IPV6_GRE_IPV4
> +============================
> +
> +Subcase 1: MAC_IPV6_GRE_IPV4_L3SRC
> +----------------------------------
> +
> +Subcase 2: MAC_IPV6_GRE_IPV4_L3DST
> +----------------------------------
> +
> +Subcase 3: MAC_IPV6_GRE_IPV4_L4SRC
> +----------------------------------
> +
> +Subcase 4: MAC_IPV6_GRE_IPV4_L4DST
> +----------------------------------
> +
> +Subcase 5: MAC_IPV6_GRE_IPV4_ALL
> +--------------------------------
> +
> +each subcase is the same as the subcase of Test case: MAC_IPV4_GRE_IPV4,
> just only pattern is different,
> +replace it with 'eth / ipv6 / gre / ipv4'
> +
> +Test case: MAC_IPV4_GRE_IPV6
> +============================
> +basic hit pattern packets are the same in this test case:
> +ipv6-nh packets::
> +
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 20", nh=6)/("X"*480)],iface="enp134s0f0")
> +
> +Subcase: MAC_IPV4_GRE_IPV6_L3SRC
> +--------------------------------
> +1. create rss rule::
> +
> + flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / end actions rss types
> ipv6 l3-src-only end key_len 0 queues end / end
> +
> +2. hit pattern/defined input set::
> +
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2930",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 20", nh=6)/("X"*480)],iface="enp134s0f0")
> +
> +3. hit pattern/not defined input set::
> +
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 21", nh=6)/("X"*480)],iface="enp134s0f0")
> +
> +Subcase: MAC_IPV4_GRE_IPV6_L3DST
> +--------------------------------
> +1. create rss rule::
> +
> + flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / end actions rss types
> ipv6 l3-dst-only end key_len 0 queues end / end
> +
> +2. hit pattern/defined input set::
> +
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 21", nh=6)/("X"*480)],iface="enp134s0f0")
> +
> +3. hit pattern/not defined input set::
> +
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2930",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 20", nh=6)/("X"*480)],iface="enp134s0f0")
> +
> +Subcase: MAC_IPV4_GRE_IPV6_ALL
> +------------------------------
> +1. create rss rule::
> +
> + flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / end actions rss types
> ipv6 end key_len 0 queues end / end
> +
> +2. hit pattern/defined input set::
> +
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 21", nh=6)/("X"*480)],iface="enp134s0f0")
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2930",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 20", nh=6)/("X"*480)],iface="enp134s0f0")
> +
> +Test case: MAC_IPV6_GRE_IPV6
> +============================
> +
> +Subcase 1: MAC_IPV6_GRE_IPV4_L3SRC
> +----------------------------------
> +
> +Subcase 2: MAC_IPV6_GRE_IPV4_L3DST
> +----------------------------------
> +
> +Subcase 3: MAC_IPV6_GRE_IPV4_L4SRC
> +----------------------------------
> +
> +Subcase 4: MAC_IPV6_GRE_IPV4_L4DST
> +----------------------------------
> +
> +Subcase 5: MAC_IPV6_GRE_IPV4_ALL
> +--------------------------------
> +
> +each subcase is the same as the subcase of Test case: MAC_IPV4_GRE_IPV6,
> just only pattern is different,
> +replace it with 'eth / ipv6 / gre / ipv6'
> +
> +Test case: MAC_IPV4_GRE_IPV4_TCP
> +================================
> +basic hit pattern packets are the same in this test case:
> +ipv4-tcp packets::
> +
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1",
> src="192.168.0.2,
> proto=6")/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> +
> +Subcase: MAC_IPV4_GRE_IPV4_TCP_L3SRC
> +------------------------------------
> +1. create rss rule::
> +
> + flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / tcp / end actions rss
> types ipv4-tcp l3-src-only end key_len 0 queues end / end
> +
> +2. hit pattern/defined input set::
> +
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1",
> src="192.168.1.2",
> proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> +
> +3. hit pattern/not defined input set::
> +
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.1.1",
> src="192.168.0.2",
> proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1",
> src="192.168.0.2",
> proto=6)/TCP(sport=21,dport=23)/("X"*480)],iface="enp134s0f0")
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1",
> src="192.168.0.2",
> proto=6)/TCP(sport=22,dport=24)/("X"*480)],iface="enp134s0f0")
> +
> +Subcase: MAC_IPV4_GRE_IPV4_TCP_L3DST
> +------------------------------------
> +1. create rss rule::
> +
> + flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / tcp / end actions rss
> types ipv4-tcp l3-dst-only end key_len 0 queues end / end
> +
> +2. hit pattern/defined input set::
> +
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.1.1",
> src="192.168.0.2",
> proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> +
> +3. hit pattern/not defined input set::
> +
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1",
> src="192.168.1.2",
> proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1",
> src="192.168.0.2",
> proto=6)/TCP(sport=21,dport=23)/("X"*480)],iface="enp134s0f0")
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1",
> src="192.168.0.2",
> proto=6)/TCP(sport=22,dport=24)/("X"*480)],iface="enp134s0f0")
> +
> +Subcase: MAC_IPV4_GRE_IPV4_TCP_L4SRC
> +------------------------------------
> +1. create rss rule::
> +
> + flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / tcp / end actions rss
> types ipv4-tcp l4-src-only end key_len 0 queues end / end
> +
> +2. hit pattern/defined input set::
> +
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1",
> src="192.168.0.2",
> proto=6)/TCP(sport=21,dport=23)/("X"*480)],iface="enp134s0f0")
> +
> +3. hit pattern/not defined input set::
> +
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.1.1",
> src="192.168.0.2",
> proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1",
> src="192.168.1.2",
> proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1",
> src="192.168.0.2",
> proto=6)/TCP(sport=22,dport=24)/("X"*480)],iface="enp134s0f0")
> +
> +Subcase: MAC_IPV4_GRE_IPV4_TCP_L4DST
> +------------------------------------
> +1. create rss rule::
> +
> + flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / tcp / end actions rss
> types ipv4-tcp l4-dst-only end key_len 0 queues end / end
> +
> +2. hit pattern/defined input set::
> +
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1",
> src="192.168.0.2",
> proto=6)/TCP(sport=22,dport=24)/("X"*480)],iface="enp134s0f0")
> +
> +3. hit pattern/not defined input set::
> +
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.1.1",
> src="192.168.0.2",
> proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1",
> src="192.168.1.2",
> proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1",
> src="192.168.0.2",
> proto=6)/TCP(sport=21,dport=23)/("X"*480)],iface="enp134s0f0")
> +
> +Subcase: MAC_IPV4_GRE_IPV4_TCP_L3SRC_L4SRC
> +------------------------------------------
> +1. create rss rule::
> +
> + flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / tcp / end actions rss
> types ipv4-tcp l3-src-only l4-src-only end key_len 0 queues end / end
> +
> +2. hit pattern/defined input set::
> +
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1",
> src="192.168.1.2",
> proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1",
> src="192.168.0.2",
> proto=6)/TCP(sport=21,dport=23)/("X"*480)],iface="enp134s0f0")
> +
> +3. hit pattern/not defined input set::
> +
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.1.1",
> src="192.168.0.2",
> proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1",
> src="192.168.0.2",
> proto=6)/TCP(sport=22,dport=24)/("X"*480)],iface="enp134s0f0")
> +
> +Subcase: MAC_IPV4_GRE_IPV4_TCP_L3SRC_L4DST
> +------------------------------------------
> +1. create rss rule::
> +
> + flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / tcp / end actions rss
> types ipv4-tcp l3-src-only l4-dst-only end key_len 0 queues end / end
> +
> +2. hit pattern/defined input set::
> +
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1",
> src="192.168.1.2",
> proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1",
> src="192.168.0.2",
> proto=6)/TCP(sport=22,dport=24)/("X"*480)],iface="enp134s0f0")
> +
> +3. hit pattern/not defined input set::
> +
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.1.1",
> src="192.168.0.2",
> proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1",
> src="192.168.0.2",
> proto=6)/TCP(sport=21,dport=23)/("X"*480)],iface="enp134s0f0")
> +
> +Subcase: MAC_IPV4_GRE_IPV4_TCP_L3DST_L4SRC
> +------------------------------------------
> +1. create rss rule::
> +
> + flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / tcp / end actions rss
> types ipv4-tcp l3-dst-only l4-src-only end key_len 0 queues end / end
> +
> +2. hit pattern/defined input set::
> +
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.1.1",
> src="192.168.0.2",
> proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1",
> src="192.168.0.2",
> proto=6)/TCP(sport=21,dport=23)/("X"*480)],iface="enp134s0f0")
> +
> +3. hit pattern/not defined input set::
> +
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1",
> src="192.168.1.2",
> proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1",
> src="192.168.0.2",
> proto=6)/TCP(sport=22,dport=24)/("X"*480)],iface="enp134s0f0")
> +
> +Subcase: MAC_IPV4_GRE_IPV4_TCP_L3DST_L4DST
> +------------------------------------------
> +1. create rss rule::
> +
> + flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / tcp / end actions rss
> types ipv4-tcp l3-dst-only l4-dst-only end key_len 0 queues end / end
> +
> +2. hit pattern/defined input set::
> +
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.1.1",
> src="192.168.0.2",
> proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1",
> src="192.168.0.2",
> proto=6)/TCP(sport=22,dport=24)/("X"*480)],iface="enp134s0f0")
> +
> +3. hit pattern/not defined input set::
> +
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1",
> src="192.168.1.2",
> proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1",
> src="192.168.0.2",
> proto=6)/TCP(sport=21,dport=23)/("X"*480)],iface="enp134s0f0")
> +
> +Subcase: MAC_IPV4_GRE_IPV4_TCP_ALL
> +----------------------------------
> +1. create rss rule::
> +
> + flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / tcp / end actions rss
> types ipv4-tcp end key_len 0 queues end / end
> +
> +2. hit pattern/defined input set::
> +
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1",
> src="192.168.1.2",
> proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.1.1",
> src="192.168.0.2",
> proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1",
> src="192.168.0.2",
> proto=6)/TCP(sport=21,dport=23)/("X"*480)],iface="enp134s0f0")
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1",
> src="192.168.0.2",
> proto=6)/TCP(sport=22,dport=24)/("X"*480)],iface="enp134s0f0")
> +
> +Subcase: MAC_IPV4_GRE_IPV4_TCP_IPV4
> +----------------------------------
> +1. create rss rule::
> +
> + flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / tcp / end actions rss
> types ipv4 end key_len 0 queues end / end
> +
> +2. hit pattern/defined input set::
> +
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1",
> src="192.168.1.2",
> proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.1.1",
> src="192.168.0.2",
> proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> +
> +3. hit pattern/not defined input set::
> +
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1",
> src="192.168.0.2",
> proto=6)/TCP(sport=21,dport=23)/("X"*480)],iface="enp134s0f0")
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1",
> src="192.168.0.2",
> proto=6)/TCP(sport=22,dport=24)/("X"*480)],iface="enp134s0f0")
> +
> +Test case: MAC_IPV6_GRE_IPV4_TCP
> +================================
> +
> +Subcase: MAC_IPV6_GRE_IPV4_TCP_L3SRC
> +------------------------------------
> +
> +Subcase: MAC_IPV6_GRE_IPV4_TCP_L3DST
> +------------------------------------
> +
> +Subcase: MAC_IPV6_GRE_IPV4_TCP_L4SRC
> +------------------------------------
> +
> +Subcase: MAC_IPV6_GRE_IPV4_TCP_L4DST
> +------------------------------------
> +
> +Subcase: MAC_IPV6_GRE_IPV4_TCP_L3SRC_L4SRC
> +------------------------------------------
> +
> +Subcase: MAC_IPV6_GRE_IPV4_TCP_L3SRC_L4DST
> +------------------------------------------
> +
> +Subcase: MAC_IPV6_GRE_IPV4_TCP_L3DST_L4SRC
> +------------------------------------------
> +
> +Subcase: MAC_IPV6_GRE_IPV4_TCP_L3DST_L4DST
> +------------------------------------------
> +
> +Subcase: MAC_IPV6_GRE_IPV4_TCP_ALL
> +----------------------------------
> +
> +Subcase: MAC_IPV6_GRE_IPV4_TCP_IPV4
> +-----------------------------------
> +
> +each subcase is the same as the subcase of Test case:
> MAC_IPV4_GRE_IPV4_TCP, just only pattern is different,
> +replace it with 'eth / ipv6 / gre / ipv4'
> +
> +Test case: MAC_IPV4_GRE_IPV6_TCP
> +================================
> +basic hit pattern packets are the same in this test case:
> +ipv6-nh packets::
> +
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 20", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> +
> +Subcase: MAC_IPV4_GRE_IPV6_TCP_L3SRC
> +------------------------------------
> +1. create rss rule::
> +
> + flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / tcp / end actions rss
> types ipv6-tcp l3-src-only end key_len 0 queues end / end
> +
> +2. hit pattern/defined input set::
> +
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2930",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 20", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> +
> +3. hit pattern/not defined input set::
> +
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 21", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 20", nh=6)/TCP(sport=21,dport=23)/("X"*480)],iface="enp134s0f0")
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 20", nh=6)/TCP(sport=22,dport=24)/("X"*480)],iface="enp134s0f0")
> +
> +Subcase: MAC_IPV4_GRE_IPV6_TCP_L3DST
> +------------------------------------
> +1. create rss rule::
> +
> + flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / tcp / end actions rss
> types ipv6-tcp l3-dst-only end key_len 0 queues end / end
> +
> +2. hit pattern/defined input set::
> +
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 21", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> +
> +3. hit pattern/not defined input set::
> +
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2930",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 20", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 20", nh=6)/TCP(sport=21,dport=23)/("X"*480)],iface="enp134s0f0")
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 20", nh=6)/TCP(sport=22,dport=24)/("X"*480)],iface="enp134s0f0")
> +
> +Subcase: MAC_IPV4_GRE_IPV6_TCP_L4SRC
> +------------------------------------
> +1. create rss rule::
> +
> + flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / tcp / end actions rss
> types ipv6-tcp l4-src-only end key_len 0 queues end / end
> +
> +2. hit pattern/defined input set::
> +
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 20", nh=6)/TCP(sport=21,dport=23)/("X"*480)],iface="enp134s0f0")
> +
> +3. hit pattern/not defined input set::
> +
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2930",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 20", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 21", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 20", nh=6)/TCP(sport=22,dport=24)/("X"*480)],iface="enp134s0f0")
> +
> +Subcase: MAC_IPV4_GRE_IPV6_TCP_L4DST
> +------------------------------------
> +1. create rss rule::
> +
> + flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / tcp / end actions rss
> types ipv6-tcp l4-dst-only end key_len 0 queues end / end
> +
> +2. hit pattern/defined input set::
> +
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 20", nh=6)/TCP(sport=22,dport=24)/("X"*480)],iface="enp134s0f0")
> +
> +3. hit pattern/not defined input set::
> +
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2930",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 20", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 21", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 20", nh=6)/TCP(sport=21,dport=23)/("X"*480)],iface="enp134s0f0")
> +
> +Subcase: MAC_IPV4_GRE_IPV6_TCP_L3SRC_L4SRC
> +------------------------------------------
> +1. create rss rule::
> +
> + flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / tcp / end actions rss
> types ipv6-tcp l3-src-only l4-src-only end key_len 0 queues end / end
> +
> +2. hit pattern/defined input set::
> +
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2930",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 20", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 20", nh=6)/TCP(sport=21,dport=23)/("X"*480)],iface="enp134s0f0")
> +
> +3. hit pattern/not defined input set::
> +
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 21", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 20", nh=6)/TCP(sport=22,dport=24)/("X"*480)],iface="enp134s0f0")
> +
> +Subcase: MAC_IPV4_GRE_IPV6_TCP_L3SRC_L4DST
> +------------------------------------------
> +1. create rss rule::
> +
> + flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / tcp / end actions rss
> types ipv6-tcp l3-src-only l4-dst-only end key_len 0 queues end / end
> +
> +2. hit pattern/defined input set::
> +
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2930",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 20", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 20", nh=6)/TCP(sport=22,dport=24)/("X"*480)],iface="enp134s0f0")
> +
> +3. hit pattern/not defined input set::
> +
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 21", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 20", nh=6)/TCP(sport=21,dport=23)/("X"*480)],iface="enp134s0f0")
> +
> +Subcase: MAC_IPV4_GRE_IPV6_TCP_L3DST_L4SRC
> +------------------------------------------
> +1. create rss rule::
> +
> + flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / tcp / end actions rss
> types ipv6-tcp l3-dst-only l4-src-only end key_len 0 queues end / end
> +
> +2. hit pattern/defined input set::
> +
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 21", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 20", nh=6)/TCP(sport=21,dport=23)/("X"*480)],iface="enp134s0f0")
> +
> +3. hit pattern/not defined input set::
> +
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2930",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 20", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 20", nh=6)/TCP(sport=22,dport=24)/("X"*480)],iface="enp134s0f0")
> +
> +Subcase: MAC_IPV4_GRE_IPV6_TCP_ALL
> +----------------------------------
> +1. create rss rule::
> +
> + flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / tcp / end actions rss
> types ipv6-tcp end key_len 0 queues end / end
> +
> +2. hit pattern/defined input set::
> +
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 21", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2930",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 20", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 20", nh=6)/TCP(sport=21,dport=23)/("X"*480)],iface="enp134s0f0")
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 20", nh=6)/TCP(sport=22,dport=24)/("X"*480)],iface="enp134s0f0")
> +
> +Subcase: MAC_IPV4_GRE_IPV6_TCP_IPV6
> +----------------------------------
> +1. create rss rule::
> +
> + flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / tcp / end actions rss
> types ipv6 end key_len 0 queues end / end
> +
> +2. hit pattern/defined input set::
> +
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 21", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2930",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 20", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> +
> +3. hit pattern/not defined input set::
> +
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 20", nh=6)/TCP(sport=21,dport=23)/("X"*480)],iface="enp134s0f0")
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 20", nh=6)/TCP(sport=22,dport=24)/("X"*480)],iface="enp134s0f0")
> +
> +Test case: MAC_IPV6_GRE_IPV6_TCP
> +================================
> +
> +Subcase: MAC_IPV6_GRE_IPV6_TCP_L3SRC
> +------------------------------------
> +
> +Subcase: MAC_IPV6_GRE_IPV6_TCP_L3DST
> +------------------------------------
> +
> +Subcase: MAC_IPV6_GRE_IPV6_TCP_L4SRC
> +------------------------------------
> +
> +Subcase: MAC_IPV6_GRE_IPV6_TCP_L4DST
> +------------------------------------
> +
> +Subcase: MAC_IPV6_GRE_IPV6_TCP_L3SRC_L4SRC
> +------------------------------------------
> +
> +Subcase: MAC_IPV6_GRE_IPV6_TCP_L3SRC_L4DST
> +------------------------------------------
> +
> +Subcase: MAC_IPV6_GRE_IPV6_TCP_L3DST_L4SRC
> +------------------------------------------
> +
> +Subcase: MAC_IPV6_GRE_IPV6_TCP_L3DST_L4DST
> +------------------------------------------
> +
> +Subcase: MAC_IPV6_GRE_IPV6_TCP_ALL
> +----------------------------------
> +
> +Subcase: MAC_IPV6_GRE_IPV6_TCP_IPV6
> +-----------------------------------
> +
> +each subcase is the same as the subcase of Test case:
> MAC_IPV4_GRE_IPV6_TCP, just only pattern is different,
> +replace it with 'eth / ipv6 / gre / ipv6'
> +
> +Test case: MAC_IPV4_GRE_IPV4_UDP
> +================================
> +
> +Subcase: MAC_IPV4_GRE_IPV4_UDP_L3SRC
> +------------------------------------
> +
> +Subcase: MAC_IPV4_GRE_IPV4_UDP_L3DST
> +------------------------------------
> +
> +Subcase: MAC_IPV4_GRE_IPV4_UDP_L4SRC
> +------------------------------------
> +
> +Subcase: MAC_IPV4_GRE_IPV4_UDP_L4DST
> +------------------------------------
> +
> +Subcase: MAC_IPV4_GRE_IPV4_UDP_L3SRC_L4SRC
> +------------------------------------------
> +
> +Subcase: MAC_IPV4_GRE_IPV4_UDP_L3SRC_L4DST
> +------------------------------------------
> +
> +Subcase: MAC_IPV4_GRE_IPV4_UDP_L3DST_L4SRC
> +------------------------------------------
> +
> +Subcase: MAC_IPV4_GRE_IPV4_UDP_L3DST_L4DST
> +------------------------------------------
> +
> +Subcase: MAC_IPV4_GRE_IPV4_UDP_ALL
> +----------------------------------
> +
> +Subcase: MAC_IPV4_GRE_IPV4_UDP_IPV4
> +-----------------------------------
> +
> +each subcase is the same as the subcase of Test case:
> MAC_IPV4_GRE_IPV4_TCP, just only pattern is different,
> +replace "tcp" with "udp" in all the subcases
> +
> +Test case: MAC_IPV4_GRE_IPV6_UDP
> +================================
> +
> +Subcase: MAC_IPV4_GRE_IPV6_UDP_L3SRC
> +------------------------------------
> +
> +Subcase: MAC_IPV4_GRE_IPV6_UDP_L3DST
> +------------------------------------
> +
> +Subcase: MAC_IPV4_GRE_IPV6_UDP_L4SRC
> +------------------------------------
> +
> +Subcase: MAC_IPV4_GRE_IPV6_UDP_L4DST
> +------------------------------------
> +
> +Subcase: MAC_IPV4_GRE_IPV6_UDP_L3SRC_L4SRC
> +------------------------------------------
> +
> +Subcase: MAC_IPV4_GRE_IPV6_UDP_L3SRC_L4DST
> +------------------------------------------
> +
> +Subcase: MAC_IPV4_GRE_IPV6_UDP_L3DST_L4SRC
> +------------------------------------------
> +
> +Subcase: MAC_IPV4_GRE_IPV6_UDP_L3DST_L4DST
> +------------------------------------------
> +
> +Subcase: MAC_IPV4_GRE_IPV6_UDP_ALL
> +----------------------------------
> +
> +Subcase: MAC_IPV4_GRE_IPV6_UDP_IPV6
> +-----------------------------------
> +
> +each subcase is the same as the subcase of Test case:
> MAC_IPV4_GRE_IPV6_TCP, just only pattern is different,
> +replace "tcp" with "udp" in all the subcases
> +
> +Test case: MAC_IPV6_GRE_IPV4_UDP
> +================================
> +
> +Subcase: MAC_IPV6_GRE_IPV4_UDP_L3SRC
> +------------------------------------
> +
> +Subcase: MAC_IPV6_GRE_IPV4_UDP_L3DST
> +------------------------------------
> +
> +Subcase: MAC_IPV6_GRE_IPV4_UDP_L4SRC
> +------------------------------------
> +
> +Subcase: MAC_IPV6_GRE_IPV4_UDP_L4DST
> +------------------------------------
> +
> +Subcase: MAC_IPV6_GRE_IPV4_UDP_L3SRC_L4SRC
> +------------------------------------------
> +
> +Subcase: MAC_IPV6_GRE_IPV4_UDP_L3SRC_L4DST
> +------------------------------------------
> +
> +Subcase: MAC_IPV6_GRE_IPV4_UDP_L3DST_L4SRC
> +------------------------------------------
> +
> +Subcase: MAC_IPV6_GRE_IPV4_UDP_L3DST_L4DST
> +------------------------------------------
> +
> +Subcase: MAC_IPV6_GRE_IPV4_UDP_ALL
> +----------------------------------
> +
> +Subcase: MAC_IPV6_GRE_IPV4_UDP_IPV4
> +-----------------------------------
> +
> +each subcase is the same as the subcase of Test case:
> MAC_IPV6_GRE_IPV4_TCP, just only pattern is different,
> +replace "tcp" with "udp" in all the subcases
> +
> +Test case: MAC_IPV6_GRE_IPV6_UDP
> +================================
> +
> +Subcase: MAC_IPV6_GRE_IPV6_UDP_L3SRC
> +------------------------------------
> +
> +Subcase: MAC_IPV6_GRE_IPV6_UDP_L3DST
> +------------------------------------
> +
> +Subcase: MAC_IPV6_GRE_IPV6_UDP_L4SRC
> +------------------------------------
> +
> +Subcase: MAC_IPV6_GRE_IPV6_UDP_L4DST
> +------------------------------------
> +
> +Subcase: MAC_IPV6_GRE_IPV6_UDP_L3SRC_L4SRC
> +------------------------------------------
> +
> +Subcase: MAC_IPV6_GRE_IPV6_UDP_L3SRC_L4DST
> +------------------------------------------
> +
> +Subcase: MAC_IPV6_GRE_IPV6_UDP_L3DST_L4SRC
> +------------------------------------------
> +
> +Subcase: MAC_IPV6_GRE_IPV6_UDP_L3DST_L4DST
> +------------------------------------------
> +
> +Subcase: MAC_IPV6_GRE_IPV6_UDP_ALL
> +----------------------------------
> +
> +Subcase: MAC_IPV6_GRE_IPV6_UDP_IPV6
> +-----------------------------------
> +
> +each subcase is the same as the subcase of Test case:
> MAC_IPV6_GRE_IPV6_TCP, just only pattern is different,
> +replace "tcp" with "udp" in all the subcases
> +
> +GRE Tunnel symmetric-toeplitz Test steps
> +========================================
> +1. validate rule.
> +2. create rule and list rule.
> +3. send hit pattern packets with switched value of input set in the rule.
> + check the received packets have same hash value.
> + check all the packets are distributed to queues by rss.
> +
> +Test case: symmetric MAC_IPV4_GRE_IPV4
> +======================================
> +
> +1. create rss rule::
> +
> + flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / end actions rss func
> symmetric_toeplitz types ipv4 end key_len 0 queues end / end
> +
> +2. hit pattern with switched value of input set in the rule::
> +
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1",
> src="192.168.0.2", proto=6)/("X"*480)],iface="enp134s0f0")
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.2",
> src="192.168.0.1", proto=6)/("X"*480)],iface="enp134s0f0")
> +
> +Test case: symmetric MAC_IPV6_GRE_IPV4
> +======================================
> +
> +1. create rss rule::
> +
> + flow create 0 ingress pattern eth / ipv6 / gre / ipv4 / end actions rss func
> symmetric_toeplitz types ipv4 end key_len 0 queues end / end
> +
> +2. hit pattern with switched value of input set in the rule::
> +
> + sendp([Ether(dst="00:11:22:33:44:55")/IPv6()/GRE()/IP(dst="192.168.0.1",
> src="192.168.0.2", proto=6)/("X"*480)],iface="enp134s0f0")
> + sendp([Ether(dst="00:11:22:33:44:55")/IPv6()/GRE()/IP(dst="192.168.0.2",
> src="192.168.0.1", proto=6)/("X"*480)],iface="enp134s0f0")
> +
> +Test case: symmetric MAC_IPV4_GRE_IPV6
> +======================================
> +
> +1. create rss rule::
> +
> + flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / end actions rss func
> symmetric_toeplitz types ipv6 end key_len 0 queues end / end
> +
> +2. hit pattern with switched value of input set in the rule::
> +
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 20", nh=6)/("X"*480)],iface="enp134s0f0")
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2020",dst="CDCD:910A:2222:5498:8475:1111:3900:29
> 29", nh=6)/("X"*480)],iface="enp134s0f0")
> +
> +Test case: symmetric MAC_IPV6_GRE_IPV6
> +======================================
> +
> +1. create rss rule::
> +
> + flow create 0 ingress pattern eth / ipv6 / gre / ipv6 / end actions rss func
> symmetric_toeplitz types ipv6 end key_len 0 queues end / end
> +
> +2. hit pattern with switched value of input set in the rule::
> +
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IPv6()/GRE()/IPv6(src="ABAB:910B:666
> 6:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2
> 020", nh=6)/("X"*480)],iface="enp134s0f0")
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IPv6()/GRE()/IPv6(src="ABAB:910B:666
> 6:3457:8295:3333:1800:2020",dst="CDCD:910A:2222:5498:8475:1111:3900:2
> 929", nh=6)/("X"*480)],iface="enp134s0f0")
> +
> +Test case: symmetric MAC_IPV4_GRE_IPV4_TCP
> +==========================================
> +
> +1. create rss rule::
> +
> + flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / tcp / end actions rss
> func symmetric_toeplitz types ipv4-tcp end key_len 0 queues end / end
> +
> +2. hit pattern with switched value of input set in the rule::
> +
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1",
> src="192.168.0.2",
> proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.2",
> src="192.168.0.1",
> proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> + sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1",
> src="192.168.0.2",
> proto=6)/TCP(sport=23,dport=22)/("X"*480)],iface="enp134s0f0")
> +
> +Test case: symmetric MAC_IPV6_GRE_IPV4_TCP
> +==========================================
> +
> +1. create rss rule::
> +
> + flow create 0 ingress pattern eth / ipv6 / gre / ipv4 / tcp / end actions rss
> func symmetric_toeplitz types ipv4-tcp end key_len 0 queues end / end
> +
> +2. hit pattern with switched value of input set in the rule::
> +
> + sendp([Ether(dst="00:11:22:33:44:55")/IPv6()/GRE()/IP(dst="192.168.0.1",
> src="192.168.0.2",
> proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> + sendp([Ether(dst="00:11:22:33:44:55")/IPv6()/GRE()/IP(dst="192.168.0.2",
> src="192.168.0.1",
> proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> + sendp([Ether(dst="00:11:22:33:44:55")/IPv6()/GRE()/IP(dst="192.168.0.1",
> src="192.168.0.2",
> proto=6)/TCP(sport=23,dport=22)/("X"*480)],iface="enp134s0f0")
> +
> +Test case: symmetric MAC_IPV4_GRE_IPV6_TCP
> +==========================================
> +
> +1. create rss rule::
> +
> + flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / tcp / end actions rss
> func symmetric_toeplitz types ipv6-tcp end key_len 0 queues end / end
> +
> +2. hit pattern with switched value of input set in the rule::
> +
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 20", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2020",dst="CDCD:910A:2222:5498:8475:1111:3900:29
> 29", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:
> 3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:20
> 20", nh=6)/TCP(sport=23,dport=22)/("X"*480)],iface="enp134s0f0")
> +
> +Test case: symmetric MAC_IPV6_GRE_IPV6_TCP
> +==========================================
> +
> +1. create rss rule::
> +
> + flow create 0 ingress pattern eth / ipv6 / gre / ipv6 / tcp / end actions rss
> func symmetric_toeplitz types ipv6-tcp end key_len 0 queues end / end
> +
> +2. hit pattern with switched value of input set in the rule::
> +
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IPv6()/GRE()/IPv6(src="ABAB:910B:666
> 6:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2
> 020", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IPv6()/GRE()/IPv6(src="ABAB:910B:666
> 6:3457:8295:3333:1800:2020",dst="CDCD:910A:2222:5498:8475:1111:3900:2
> 929", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
> +
> sendp([Ether(dst="00:11:22:33:44:55")/IPv6()/GRE()/IPv6(src="ABAB:910B:666
> 6:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2
> 020", nh=6)/TCP(sport=23,dport=22)/("X"*480)],iface="enp134s0f0")
> +
> +Test case: symmetric MAC_IPV4_GRE_IPV4_TCP
> +==========================================
> +test steps same as Test case: symmetric MAC_IPV4_GRE_IPV4_TCP, just only
> pattern is different,
> +replace "tcp" with "udp"
> +
> +Test case: symmetric MAC_IPV6_GRE_IPV4_TCP
> +==========================================
> +test steps same as Test case: symmetric MAC_IPV6_GRE_IPV4_TCP, just only
> pattern is different,
> +replace "tcp" with "udp"
> +
> +Test case: symmetric MAC_IPV4_GRE_IPV6_TCP
> +==========================================
> +test steps same as Test case: symmetric MAC_IPV4_GRE_IPV6_TCP, just only
> pattern is different,
> +replace "tcp" with "udp"
> +
> +Test case: symmetric MAC_IPV6_GRE_IPV6_TCP
> +==========================================
> +test steps same as Test case: symmetric MAC_IPV6_GRE_IPV6_TCP, just only
> pattern is different,
> +replace "tcp" with "udp"
>
> symmetric-toeplitz Test steps
> =============================
> --
> 2.17.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [dts] [PATCH V3 2/2] tests/cvl_advanced_iavf_rss: add gre inner rss cases for iavf suite
2021-08-24 10:54 ` [dts] [PATCH V3 2/2] tests/cvl_advanced_iavf_rss: add gre inner rss cases for iavf suite Qin Sun
@ 2021-08-24 6:11 ` Lin, Xueqin
0 siblings, 0 replies; 5+ messages in thread
From: Lin, Xueqin @ 2021-08-24 6:11 UTC (permalink / raw)
To: Sun, QinX, dts
> -----Original Message-----
> From: Sun, QinX <qinx.sun@intel.com>
> Sent: Tuesday, August 24, 2021 6:54 PM
> To: dts@dpdk.org
> Cc: Lin, Xueqin <xueqin.lin@intel.com>; Sun, QinX <qinx.sun@intel.com>
> Subject: [dts] [PATCH V3 2/2] tests/cvl_advanced_iavf_rss: add gre inner rss
> cases for iavf suite
>
> according to test plan to add 24 new cases related gre inner rss for iavf suite
>
> Signed-off-by: Qin Sun <qinx.sun@intel.com>
Acked-by: Xueqin Lin <Xueqin.lin@intel.com>
> ---
> tests/TestSuite_cvl_advanced_iavf_rss.py | 997 +++++++++++++++++++++++
> 1 file changed, 997 insertions(+)
>
> diff --git a/tests/TestSuite_cvl_advanced_iavf_rss.py
> b/tests/TestSuite_cvl_advanced_iavf_rss.py
> index a7003b38..249f6bcf 100644
> --- a/tests/TestSuite_cvl_advanced_iavf_rss.py
> +++ b/tests/TestSuite_cvl_advanced_iavf_rss.py
> @@ -4150,6 +4150,931 @@ ipv6_64bit_prefix_l3_src_dst_only = {
>
> ipv6_64bit_prefix = [ipv6_64bit_prefix_l3_src_only,
> ipv6_64bit_prefix_l3_dst_only, ipv6_64bit_prefix_l3_src_dst_only]
>
> +#gre tunnel related data
> +mac_ipv4_gre_ipv4_basic_pkt = {
> + 'ipv4-proto':
> + 'Ether(dst="%s")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.0.2",
> proto=6)/("X"*480)' % vf0_mac,
> + 'ipv4-tcp':
> + 'Ether(dst="%s")/IP()/GRE()/IP(dst="192.168.0.1",
> +src="192.168.0.2", proto=6)/TCP(sport=22,dport=23)/("X"*480)' %
> +vf0_mac, }
> +
> +mac_ipv4_gre_ipv6_basic_pkt = {
> + 'ipv6-nh':
> +
> 'Ether(dst="%s")/IP()/GRE()/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:
> 2020", src="ABAB:910B:6666:3457:8295:3333:1800:2929", nh=6)/("X"*480)' %
> vf0_mac,
> + 'ipv6-tcp':
> +
> +'Ether(dst="%s")/IP()/GRE()/IPv6(dst="CDCD:910A:2222:5498:8475:1111:390
> +0:2020", src="ABAB:910B:6666:3457:8295:3333:1800:2929",
> +nh=6)/TCP(sport=22,dport=23)/("X"*480)' % vf0_mac, }
> +
> +mac_ipv4_gre_ipv4_all = {
> + 'sub_casename': 'ipv4_gre_ipv4_all',
> + 'port_id': 0,
> + 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / end actions rss
> types ipv4 end key_len 0 queues end / end',
> + 'test': [
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-proto'],
> + 'action': {'save_hash': 'ipv4-proto'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-
> proto'].replace('dst="192.168.0.1"','dst="192.168.1.1"'),
> + 'action': {'check_hash_different': 'ipv4-proto'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-
> proto'].replace('src="192.168.0.2"','src="192.168.1.2"'),
> + 'action': {'check_hash_different': 'ipv4-proto'},
> + },
> + ],
> +}
> +
> +mac_ipv4_gre_ipv4_l3_src = {
> + 'sub_casename': 'ipv4_gre_ipv4_l3_src',
> + 'port_id': 0,
> + 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / end actions rss
> types ipv4 l3-src-only end key_len 0 queues end / end',
> + 'test': [
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-proto'],
> + 'action': {'save_hash': 'ipv4-proto'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-
> proto'].replace('src="192.168.0.2"','src="192.168.1.2"'),
> + 'action': {'check_hash_different': 'ipv4-proto'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-
> proto'].replace('dst="192.168.0.1"','dst="192.168.1.1"'),
> + 'action': {'check_hash_same': 'ipv4-proto'},
> + },
> + ],
> +}
> +
> +mac_ipv4_gre_ipv4_l3_dst = {
> + 'sub_casename': 'ipv4_gre_ipv4_l3_dst',
> + 'port_id': 0,
> + 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / end actions rss
> types ipv4 l3-dst-only end key_len 0 queues end / end',
> + 'test': [
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-proto'],
> + 'action': {'save_hash': 'ipv4-proto'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-
> proto'].replace('dst="192.168.0.1"','dst="192.168.1.1"'),
> + 'action': {'check_hash_different': 'ipv4-proto'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-
> proto'].replace('src="192.168.0.2"','src="192.168.1.2"'),
> + 'action': {'check_hash_same': 'ipv4-proto'},
> + },
> + ],
> +}
> +
> +mac_ipv4_gre_ipv4_tcp_l3_src = {
> + 'sub_casename': 'ipv4_gre_ipv4_tcp_l3_src',
> + 'port_id': 0,
> + 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / tcp / end
> actions rss types ipv4-tcp l3-src-only end key_len 0 queues end / end',
> + 'test': [
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'],
> + 'action': {'save_hash': 'ipv4-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-
> tcp'].replace('src="192.168.0.2"', 'src="192.168.1.2"'),
> + 'action': {'check_hash_different': 'ipv4-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-
> tcp'].replace('dst="192.168.0.1"', 'dst="192.168.1.1"'),
> + 'action': {'check_hash_same': 'ipv4-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-
> tcp'].replace('dport=23', 'dport=24'),
> + 'action': {'check_hash_same': 'ipv4-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-
> tcp'].replace('sport=22', 'sport=21'),
> + 'action': {'check_hash_same': 'ipv4-tcp'},
> + },
> + ],
> +}
> +
> +mac_ipv4_gre_ipv4_tcp_l3_dst = {
> + 'sub_casename': 'ipv4_gre_ipv4_tcp_l3_dst',
> + 'port_id': 0,
> + 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / tcp / end
> actions rss types ipv4-tcp l3-dst-only end key_len 0 queues end / end',
> + 'test': [
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'],
> + 'action': {'save_hash': 'ipv4-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-
> tcp'].replace('dst="192.168.0.1"', 'dst="192.168.1.1"'),
> + 'action': {'check_hash_different': 'ipv4-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-
> tcp'].replace('src="192.168.0.2"', 'src="192.168.1.2"'),
> + 'action': {'check_hash_same': 'ipv4-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-
> tcp'].replace('dport=23', 'dport=24'),
> + 'action': {'check_hash_same': 'ipv4-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-
> tcp'].replace('sport=22', 'sport=21'),
> + 'action': {'check_hash_same': 'ipv4-tcp'},
> + },
> + ],
> +}
> +
> +mac_ipv4_gre_ipv4_tcp_l3_src_l4_src = {
> + 'sub_casename': 'ipv4_gre_ipv4_tcp_l3_src_l4_src',
> + 'port_id': 0,
> + 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / tcp / end
> actions rss types ipv4-tcp l3-src-only l4-src-only end key_len 0 queues end /
> end',
> + 'test': [
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'],
> + 'action': {'save_hash': 'ipv4-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-
> tcp'].replace('src="192.168.0.2"', 'src="192.168.1.2"'),
> + 'action': {'check_hash_different': 'ipv4-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-
> tcp'].replace('sport=22', 'sport=21'),
> + 'action': {'check_hash_different': 'ipv4-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-
> tcp'].replace('dst="192.168.0.1"', 'dst="192.168.1.1"'),
> + 'action': {'check_hash_same': 'ipv4-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-
> tcp'].replace('dport=23', 'dport=24'),
> + 'action': {'check_hash_same': 'ipv4-tcp'},
> + },
> + ],
> +}
> +
> +mac_ipv4_gre_ipv4_tcp_l3_src_l4_dst = {
> + 'sub_casename': 'ipv4_gre_ipv4_tcp_l3_src_l4_dst',
> + 'port_id': 0,
> + 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / tcp / end
> actions rss types ipv4-tcp l3-src-only l4-dst-only end key_len 0 queues end /
> end',
> + 'test': [
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'],
> + 'action': {'save_hash': 'ipv4-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-
> tcp'].replace('src="192.168.0.2"', 'src="192.168.1.2"'),
> + 'action': {'check_hash_different': 'ipv4-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-
> tcp'].replace('dport=23', 'dport=24'),
> + 'action': {'check_hash_different': 'ipv4-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-
> tcp'].replace('dst="192.168.0.1"', 'dst="192.168.1.1"'),
> + 'action': {'check_hash_same': 'ipv4-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-
> tcp'].replace('sport=22', 'sport=21'),
> + 'action': {'check_hash_same': 'ipv4-tcp'},
> + },
> + ],
> +}
> +
> +mac_ipv4_gre_ipv4_tcp_l3_dst_l4_src = {
> + 'sub_casename': 'ipv4_gre_ipv4_tcp_l3_dst_l4_src',
> + 'port_id': 0,
> + 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / tcp / end
> actions rss types ipv4-tcp l3-dst-only l4-src-only end key_len 0 queues end /
> end',
> + 'test': [
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'],
> + 'action': {'save_hash': 'ipv4-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-
> tcp'].replace('dst="192.168.0.1"', 'dst="192.168.1.1"'),
> + 'action': {'check_hash_different': 'ipv4-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-
> tcp'].replace('sport=22', 'sport=21'),
> + 'action': {'check_hash_different': 'ipv4-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-
> tcp'].replace('src="192.168.0.2"', 'src="192.168.1.2"'),
> + 'action': {'check_hash_same': 'ipv4-tcp'},
> + },
> + {
> + 'send_packet':mac_ipv4_gre_ipv4_basic_pkt['ipv4-
> tcp'].replace('dport=23', 'dport=24'),
> + 'action': {'check_hash_same': 'ipv4-tcp'},
> + },
> + ],
> +}
> +
> +mac_ipv4_gre_ipv4_tcp_l3_dst_l4_dst = {
> + 'sub_casename': 'ipv4_gre_ipv4_tcp_l3_dst_l4_dst',
> + 'port_id': 0,
> + 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / tcp / end
> actions rss types ipv4-tcp l3-dst-only l4-dst-only end key_len 0 queues end /
> end',
> + 'test': [
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'],
> + 'action': {'save_hash': 'ipv4-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-
> tcp'].replace('dst="192.168.0.1"', 'dst="192.168.1.1"'),
> + 'action': {'check_hash_different': 'ipv4-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-
> tcp'].replace('dport=23', 'dport=24'),
> + 'action': {'check_hash_different': 'ipv4-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-
> tcp'].replace('src="192.168.0.2"', 'src="192.168.1.2"'),
> + 'action': {'check_hash_same': 'ipv4-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-
> tcp'].replace('sport=22', 'sport=21'),
> + 'action': {'check_hash_same': 'ipv4-tcp'},
> + },
> + ],
> +}
> +
> +mac_ipv4_gre_ipv4_tcp_l4_src = {
> + 'sub_casename': 'ipv4_gre_ipv4_tcp_l4_src',
> + 'port_id': 0,
> + 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / tcp / end
> actions rss types ipv4-tcp l4-src-only end key_len 0 queues end / end',
> + 'test': [
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'],
> + 'action': {'save_hash': 'ipv4-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-
> tcp'].replace('sport=22', 'sport=21'),
> + 'action': {'check_hash_different': 'ipv4-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-
> tcp'].replace('dst="192.168.0.1"', 'dst="192.168.1.1"'),
> + 'action': {'check_hash_same': 'ipv4-tcp'},
> + },
> + {
> + 'send_packet':
> +mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'].replace('src="192.168.0.2"',
> +'src="192.168.1.2"'),
> +
> + 'action': {'check_hash_same': 'ipv4-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-
> tcp'].replace('dport=23', 'dport=24'),
> + 'action': {'check_hash_same': 'ipv4-tcp'},
> + },
> + ]
> +}
> +
> +mac_ipv4_gre_ipv4_tcp_l4_dst = {
> + 'sub_casename': 'ipv4_gre_ipv4_tcp_l4_dst',
> + 'port_id': 0,
> + 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / tcp / end
> actions rss types ipv4-tcp l4-dst-only end key_len 0 queues end / end',
> + 'test': [
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'],
> + 'action': {'save_hash': 'ipv4-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-
> tcp'].replace('dport=23', 'dport=24'),
> + 'action': {'check_hash_different': 'ipv4-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-
> tcp'].replace('dst="192.168.0.1"', 'dst="192.168.1.1"'),
> + 'action': {'check_hash_same': 'ipv4-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-
> tcp'].replace('src="192.168.0.2"', 'src="192.168.1.2"'),
> + 'action': {'check_hash_same': 'ipv4-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-
> tcp'].replace('sport=22', 'sport=21'),
> + 'action': {'check_hash_same': 'ipv4-tcp'},
> + },
> + ]
> +}
> +
> +mac_ipv4_gre_ipv4_tcp_all = {
> + 'sub_casename': 'ipv4_gre_ipv4_tcp_all',
> + 'port_id': 0,
> + 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / tcp / end
> actions rss types ipv4-tcp end key_len 0 queues end / end',
> + 'test': [
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'],
> + 'action': {'save_hash': 'ipv4-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-
> tcp'].replace('dst="192.168.0.1"', 'dst="192.168.1.1"'),
> + 'action': {'check_hash_different': 'ipv4-tcp'}
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-
> tcp'].replace('src="192.168.0.2"', 'src="192.168.1.2"'),
> + 'action': {'check_hash_different': 'ipv4-tcp'}
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-
> tcp'].replace('sport=22', 'sport=21'),
> + 'action': {'check_hash_different': 'ipv4-tcp'}
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-
> tcp'].replace('dport=23', 'dport=24'),
> + 'action': {'check_hash_different': 'ipv4-tcp'}
> + },
> + ]
> +}
> +
> +mac_ipv4_gre_ipv4_tcp_ipv4 = {
> + 'sub_casename': 'ipv4_gre_ipv4_tcp_ipv4',
> + 'port_id': 0,
> + 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / tcp / end
> actions rss types ipv4 end key_len 0 queues end / end',
> + 'test': [
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'],
> + 'action': {'save_hash': 'ipv4-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-
> tcp'].replace('dst="192.168.0.1"', 'dst="192.168.1.1"'),
> + 'action': {'check_hash_different': 'ipv4-tcp'}
> + },
> + {
> + 'send_packet':
> +mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'].replace('src="192.168.0.2"',
> +'src="192.168.1.2"'),
> +
> + 'action': {'check_hash_different': 'ipv4-tcp'}
> + },
> + {
> + 'send_packet':
> + mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'].replace('sport=22',
> + 'sport=21'),
> +
> + 'action': {'check_hash_same': 'ipv4-tcp'}
> + },
> + {
> + 'send_packet':
> + mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'].replace('dport=23',
> + 'dport=24'),
> +
> + 'action': {'check_hash_same': 'ipv4-tcp'}
> + },
> + ]
> +}
> +
> +mac_ipv4_gre_ipv6_l3_src = {
> + 'sub_casename': 'ipv4_gre_ipv6_l3_src',
> + 'port_id': 0,
> + 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / end actions rss
> types ipv6 l3-src-only end key_len 0 queues end / end',
> + 'test': [
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-nh'],
> + 'action': {'save_hash': 'ipv6-nh'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-
> nh'].replace('src="ABAB:910B:6666:3457:8295:3333:1800:2929"','src="ABAB:9
> 10B:6666:3457:8295:3333:1800:2930"'),
> + 'action': {'check_hash_different': 'ipv6-nh'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-
> nh'].replace('dst="CDCD:910A:2222:5498:8475:1111:3900:2020"',
> 'dst="CDCD:910A:2222:5498:8475:1111:3900:2021"'),
> + 'action': {'check_hash_same': 'ipv6-nh'},
> + },
> + ]
> +}
> +
> +mac_ipv4_gre_ipv6_l3_dst = {
> + 'sub_casename': 'ipv4_gre_ipv6_l3_dst',
> + 'port_id': 0,
> + 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / end actions rss
> types ipv6 l3-dst-only end key_len 0 queues end / end',
> + 'test': [
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-nh'],
> + 'action': {'save_hash': 'ipv6-nh'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-
> nh'].replace('dst="CDCD:910A:2222:5498:8475:1111:3900:2020"',
> +
> 'dst="CDCD:910A:2222:5498:8475:1111:3900:2021"'),
> + 'action': {'check_hash_different': 'ipv6-nh'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-
> nh'].replace('src="ABAB:910B:6666:3457:8295:3333:1800:2929"',
> +
> 'src="ABAB:910B:6666:3457:8295:3333:1800:2930"'),
> + 'action': {'check_hash_same': 'ipv6-nh'},
> + },
> + ]
> +}
> +
> +mac_ipv4_gre_ipv6_all = {
> + 'sub_casename': 'ipv4_gre_ipv6_all',
> + 'port_id': 0,
> + 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / end actions rss
> types ipv6 end key_len 0 queues end / end',
> + 'test': [
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-nh'],
> + 'action': {'save_hash': 'ipv6-nh'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-
> nh'].replace('dst="CDCD:910A:2222:5498:8475:1111:3900:2020"',
> +
> 'dst="CDCD:910A:2222:5498:8475:1111:3900:2021"'),
> + 'action': {'check_hash_different': 'ipv6-nh'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-
> nh'].replace('src="ABAB:910B:6666:3457:8295:3333:1800:2929"',
> +
> 'src="ABAB:910B:6666:3457:8295:3333:1800:2930"'),
> + 'action': {'check_hash_different': 'ipv6-nh'},
> + },
> + ]
> +}
> +
> +mac_ipv4_gre_ipv6_tcp_l3_src = {
> + 'sub_casename': 'ipv4_gre_ipv6_tcp_l3_src',
> + 'port_id': 0,
> + 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / tcp / end
> actions rss types ipv6-tcp l3-src-only end key_len 0 queues end / end',
> + 'test': [
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'],
> + 'action': {'save_hash': 'ipv6-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace(
> + 'src="ABAB:910B:6666:3457:8295:3333:1800:2929"',
> 'src="ABAB:910B:6666:3457:8295:3333:1800:2930"'),
> + 'action': {'check_hash_different': 'ipv6-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-nh'].replace(
> + 'dst="CDCD:910A:2222:5498:8475:1111:3900:2020"',
> + 'dst="CDCD:910A:2222:5498:8475:1111:3900:2021"'),
> + 'action': {'check_hash_same': 'ipv6-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-
> tcp'].replace('dport=23', 'dport=24'),
> + 'action': {'check_hash_same': 'ipv6-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-
> tcp'].replace('sport=22', 'sport=21'),
> + 'action': {'check_hash_same': 'ipv6-tcp'},
> + },
> + ]
> +}
> +
> +mac_ipv4_gre_ipv6_tcp_l3_dst = {
> + 'sub_casename': 'ipv4_gre_ipv6_tcp_l3_dst',
> + 'port_id': 0,
> + 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / tcp / end
> actions rss types ipv6-tcp l3-dst-only end key_len 0 queues end / end',
> + 'test': [
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'],
> + 'action': {'save_hash': 'ipv6-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-nh'].replace(
> + 'dst="CDCD:910A:2222:5498:8475:1111:3900:2020"',
> + 'dst="CDCD:910A:2222:5498:8475:1111:3900:2021"'),
> + 'action': {'check_hash_different': 'ipv6-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace(
> + 'src="ABAB:910B:6666:3457:8295:3333:1800:2929"',
> 'src="ABAB:910B:6666:3457:8295:3333:1800:2930"'),
> + 'action': {'check_hash_same': 'ipv6-tcp'},
> + },
> +
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-
> tcp'].replace('dport=23', 'dport=24'),
> + 'action': {'check_hash_same': 'ipv6-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-
> tcp'].replace('sport=22', 'sport=21'),
> + 'action': {'check_hash_same': 'ipv6-tcp'},
> + },
> + ]
> +}
> +
> +mac_ipv4_gre_ipv6_tcp_l4_src = {
> + 'sub_casename': 'ipv4_gre_ipv6_tcp_l4_src',
> + 'port_id': 0,
> + 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / tcp / end
> actions rss types ipv6-tcp l4-src-only end key_len 0 queues end / end',
> + 'test': [
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'],
> + 'action': {'save_hash': 'ipv6-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-
> tcp'].replace('sport=22', 'sport=21'),
> + 'action': {'check_hash_different': 'ipv6-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace(
> + 'src="ABAB:910B:6666:3457:8295:3333:1800:2929"',
> 'src="ABAB:910B:6666:3457:8295:3333:1800:2930"'),
> + 'action': {'check_hash_same': 'ipv6-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace(
> + 'dst="CDCD:910A:2222:5498:8475:1111:3900:2020"',
> + 'dst="CDCD:910A:2222:5498:8475:1111:3900:2021"'),
> + 'action': {'check_hash_same': 'ipv6-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-
> tcp'].replace('dport=23', 'dport=24'),
> + 'action': {'check_hash_same': 'ipv6-tcp'},
> + },
> + ]
> +}
> +
> +mac_ipv4_gre_ipv6_tcp_l4_dst = {
> + 'sub_casename': 'ipv4_gre_ipv6_tcp_l4_dst',
> + 'port_id': 0,
> + 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / tcp / end
> actions rss types ipv6-tcp l4-dst-only end key_len 0 queues end / end',
> + 'test': [
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'],
> + 'action': {'save_hash': 'ipv6-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-
> tcp'].replace('dport=23', 'dport=24'),
> + 'action': {'check_hash_different': 'ipv6-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-
> tcp'].replace('sport=22', 'sport=21'),
> + 'action': {'check_hash_same': 'ipv6-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace(
> + 'src="ABAB:910B:6666:3457:8295:3333:1800:2929"',
> 'src="ABAB:910B:6666:3457:8295:3333:1800:2930"'),
> + 'action': {'check_hash_same': 'ipv6-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace(
> + 'dst="CDCD:910A:2222:5498:8475:1111:3900:2020"',
> + 'dst="CDCD:910A:2222:5498:8475:1111:3900:2021"'),
> + 'action': {'check_hash_same': 'ipv6-tcp'},
> + },
> + ]
> +}
> +
> +mac_ipv4_gre_ipv6_tcp_l3_src_l4_src = {
> + 'sub_casename': 'ipv4_gre_ipv6_tcp_l3_src_l4_src',
> + 'port_id': 0,
> + 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / tcp / end
> actions rss types ipv6-tcp l3-src-only l4-src-only end key_len 0 queues end /
> end',
> + 'test': [
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'],
> + 'action': {'save_hash': 'ipv6-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace(
> + 'src="ABAB:910B:6666:3457:8295:3333:1800:2929"',
> 'src="ABAB:910B:6666:3457:8295:3333:1800:2930"'),
> + 'action': {'check_hash_different': 'ipv6-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-
> tcp'].replace('sport=22', 'sport=21'),
> + 'action': {'check_hash_different': 'ipv6-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace(
> + 'dst="CDCD:910A:2222:5498:8475:1111:3900:2020"',
> + 'dst="CDCD:910A:2222:5498:8475:1111:3900:2021"'),
> + 'action': {'check_hash_same': 'ipv6-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-
> tcp'].replace('dport=23', 'dport=24'),
> + 'action': {'check_hash_same': 'ipv6-tcp'},
> + },
> + ]
> +}
> +
> +mac_ipv4_gre_ipv6_tcp_l3_src_l4_dst = {
> + 'sub_casename': 'ipv4_gre_ipv6_tcp_l3_src_l4_dst',
> + 'port_id': 0,
> + 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / tcp / end
> actions rss types ipv6-tcp l3-src-only l4-dst-only end key_len 0 queues end /
> end',
> + 'test': [
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'],
> + 'action': {'save_hash': 'ipv6-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace(
> + 'src="ABAB:910B:6666:3457:8295:3333:1800:2929"',
> 'src="ABAB:910B:6666:3457:8295:3333:1800:2930"'),
> + 'action': {'check_hash_different': 'ipv6-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-
> tcp'].replace('dport=23', 'dport=24'),
> + 'action': {'check_hash_different': 'ipv6-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-
> tcp'].replace('sport=22', 'sport=21'),
> + 'action': {'check_hash_same': 'ipv6-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace(
> + 'dst="CDCD:910A:2222:5498:8475:1111:3900:2020"',
> + 'dst="CDCD:910A:2222:5498:8475:1111:3900:2021"'),
> + 'action': {'check_hash_same': 'ipv6-tcp'},
> + },
> + ]
> +}
> +
> +mac_ipv4_gre_ipv6_tcp_l3_dst_l4_src = {
> + 'sub_casename': 'ipv4_gre_ipv6_tcp_l3_dst_l4_src',
> + 'port_id': 0,
> + 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / tcp / end
> actions rss types ipv6-tcp l3-dst-only l4-src-only end key_len 0 queues end /
> end',
> + 'test': [
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'],
> + 'action': {'save_hash': 'ipv6-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace(
> + 'dst="CDCD:910A:2222:5498:8475:1111:3900:2020"',
> + 'dst="CDCD:910A:2222:5498:8475:1111:3900:2021"'),
> + 'action': {'check_hash_different': 'ipv6-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-
> tcp'].replace('sport=22', 'sport=21'),
> + 'action': {'check_hash_different': 'ipv6-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-
> tcp'].replace('dport=23', 'dport=24'),
> + 'action': {'check_hash_same': 'ipv6-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace(
> + 'src="ABAB:910B:6666:3457:8295:3333:1800:2929"',
> 'src="ABAB:910B:6666:3457:8295:3333:1800:2930"'),
> + 'action': {'check_hash_same': 'ipv6-tcp'},
> + },
> + ]
> +}
> +
> +mac_ipv4_gre_ipv6_tcp_l3_dst_l4_dst = {
> + 'sub_casename': 'ipv4_gre_ipv6_tcp_l3_dst_l4_dst',
> + 'port_id': 0,
> + 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / tcp / end
> actions rss types ipv6-tcp l3-dst-only l4-dst-only end key_len 0 queues end /
> end',
> + 'test': [
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'],
> + 'action': {'save_hash': 'ipv6-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace(
> + 'dst="CDCD:910A:2222:5498:8475:1111:3900:2020"',
> + 'dst="CDCD:910A:2222:5498:8475:1111:3900:2021"'),
> + 'action': {'check_hash_different': 'ipv6-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-
> tcp'].replace('dport=23', 'dport=24'),
> + 'action': {'check_hash_different': 'ipv6-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace(
> + 'src="ABAB:910B:6666:3457:8295:3333:1800:2929"',
> 'src="ABAB:910B:6666:3457:8295:3333:1800:2930"'),
> + 'action': {'check_hash_same': 'ipv6-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-
> tcp'].replace('sport=22', 'sport=21'),
> + 'action': {'check_hash_same': 'ipv6-tcp'},
> + },
> + ]
> +}
> +
> +mac_ipv4_gre_ipv6_tcp_all = {
> + 'sub_casename': 'ipv4_gre_ipv6_tcp_all',
> + 'port_id': 0,
> + 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / tcp / end
> actions rss types ipv6-tcp end key_len 0 queues end / end',
> + 'test': [
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'],
> + 'action': {'save_hash': 'ipv6-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace(
> + 'dst="CDCD:910A:2222:5498:8475:1111:3900:2020"',
> + 'dst="CDCD:910A:2222:5498:8475:1111:3900:2021"'),
> + 'action': {'check_hash_different': 'ipv6-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace(
> + 'src="ABAB:910B:6666:3457:8295:3333:1800:2929"',
> 'src="ABAB:910B:6666:3457:8295:3333:1800:2930"'),
> + 'action': {'check_hash_different': 'ipv6-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-
> tcp'].replace('dport=23', 'dport=24'),
> + 'action': {'check_hash_different': 'ipv6-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-
> tcp'].replace('sport=22', 'sport=21'),
> + 'action': {'check_hash_different': 'ipv6-tcp'},
> + },
> + ]
> +}
> +
> +mac_ipv4_gre_ipv6_tcp_ipv6 = {
> + 'sub_casename': 'ipv4_gre_ipv6_tcp_ipv6',
> + 'port_id': 0,
> + 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / tcp / end
> actions rss types ipv6 end key_len 0 queues end / end',
> + 'test': [
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'],
> + 'action': {'save_hash': 'ipv6-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace(
> + 'dst="CDCD:910A:2222:5498:8475:1111:3900:2020"',
> + 'dst="CDCD:910A:2222:5498:8475:1111:3900:2021"'),
> + 'action': {'check_hash_different': 'ipv6-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-
> tcp'].replace('dport=23', 'dport=24'),
> + 'action': {'check_hash_same': 'ipv6-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace(
> + 'src="ABAB:910B:6666:3457:8295:3333:1800:2929"',
> 'src="ABAB:910B:6666:3457:8295:3333:1800:2930"'),
> + 'action': {'check_hash_different': 'ipv6-tcp'},
> + },
> + {
> + 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-
> tcp'].replace('sport=22', 'sport=21'),
> + 'action': {'check_hash_same': 'ipv6-tcp'},
> + },
> + ]
> +}
> +
> +mac_ipv4_gre_ipv4 = [
> + mac_ipv4_gre_ipv4_l3_src,
> + mac_ipv4_gre_ipv4_l3_dst,
> + mac_ipv4_gre_ipv4_all
> + ]
> +
> +mac_ipv6_gre_ipv4 =
> [eval(str(each).replace('ipv4_gre_ipv4','ipv6_gre_ipv4').replace('IP()','IPv6()')
> + .replace('eth / ipv4','eth / ipv6')) for
> +each in mac_ipv4_gre_ipv4]
> +
> +mac_ipv4_gre_ipv6 = [
> + mac_ipv4_gre_ipv6_l3_src,
> + mac_ipv4_gre_ipv6_l3_dst,
> + mac_ipv4_gre_ipv6_all
> + ]
> +
> +mac_ipv6_gre_ipv6 =
> [eval(str(each).replace('ipv4_gre_ipv6','ipv6_gre_ipv6').replace('IP()','IPv6()')
> + .replace('eth / ipv4','eth / ipv6')) for
> +each in mac_ipv4_gre_ipv6]
> +
> +mac_ipv4_gre_ipv4_tcp = [
> + mac_ipv4_gre_ipv4_tcp_l3_src,
> + mac_ipv4_gre_ipv4_tcp_l3_dst,
> + mac_ipv4_gre_ipv4_tcp_l4_src,
> + mac_ipv4_gre_ipv4_tcp_l4_dst,
> + mac_ipv4_gre_ipv4_tcp_l3_src_l4_src,
> + mac_ipv4_gre_ipv4_tcp_l3_src_l4_dst,
> + mac_ipv4_gre_ipv4_tcp_l3_dst_l4_src,
> + mac_ipv4_gre_ipv4_tcp_l3_dst_l4_dst,
> + mac_ipv4_gre_ipv4_tcp_all,
> + mac_ipv4_gre_ipv4_tcp_ipv4,
> + ]
> +
> +mac_ipv6_gre_ipv4_tcp =
> [eval(str(each).replace('ipv4_gre_ipv4','ipv6_gre_ipv4').replace('IP()','IPv6()')
> + .replace('eth / ipv4','eth / ipv6')) for
> +each in mac_ipv4_gre_ipv4_tcp]
> +
> +mac_ipv4_gre_ipv6_tcp = [
> + mac_ipv4_gre_ipv6_tcp_l3_src,
> + mac_ipv4_gre_ipv6_tcp_l3_dst,
> + mac_ipv4_gre_ipv6_tcp_l4_src,
> + mac_ipv4_gre_ipv6_tcp_l4_dst,
> + mac_ipv4_gre_ipv6_tcp_l3_src_l4_src,
> + mac_ipv4_gre_ipv6_tcp_l3_src_l4_dst,
> + mac_ipv4_gre_ipv6_tcp_l3_dst_l4_src,
> + mac_ipv4_gre_ipv6_tcp_l3_dst_l4_dst,
> + mac_ipv4_gre_ipv6_tcp_all,
> + mac_ipv4_gre_ipv6_tcp_ipv6,
> + ]
> +
> +mac_ipv6_gre_ipv6_tcp =
> [eval(str(each).replace('ipv4_gre_ipv6','ipv6_gre_ipv6').replace('IP()','IPv6()')
> + .replace('eth / ipv4','eth / ipv6')) for
> +each in mac_ipv4_gre_ipv6_tcp]
> +
> +mac_ipv4_gre_ipv4_udp =
> +[eval(str(each).replace('tcp','udp').replace('TCP','UDP').replace('prot
> +o=6','proto=17')) for each in mac_ipv4_gre_ipv4_tcp]
> +
> +mac_ipv6_gre_ipv4_udp =
> +[eval(str(each).replace('tcp','udp').replace('TCP','UDP').replace('prot
> +o=6','proto=17')) for each in mac_ipv6_gre_ipv4_tcp]
> +
> +mac_ipv4_gre_ipv6_udp =
> +[eval(str(each).replace('tcp','udp').replace('TCP','UDP').replace('nh=6
> +','nh=17')) for each in mac_ipv4_gre_ipv6_tcp]
> +
> +mac_ipv6_gre_ipv6_udp =
> +[eval(str(each).replace('tcp','udp').replace('TCP','UDP').replace('nh=6
> +','nh=17')) for each in mac_ipv6_gre_ipv6_tcp]
> +
> +mac_ipv4_gre_ipv4_symmetric = {
> + 'sub_casename': 'mac_ipv4_gre_ipv4_symmetric',
> + 'port_id': 0,
> + 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / end actions rss
> func symmetric_toeplitz types ipv4 end key_len 0 queues end / end',
> + 'test': [
> + {
> + 'send_packet': 'Ether(dst="%s")/IP()/GRE()/IP(dst="192.168.0.1",
> src="192.168.0.2")/("X"*480)' % vf0_mac,
> + 'action': {'save_hash': 'ipv4'},
> + },
> + {
> + 'send_packet': 'Ether(dst="%s")/IP()/GRE()/IP(dst="192.168.0.2",
> src="192.168.0.1")/("X"*480)' % vf0_mac,
> + 'action': {'check_hash_same': 'ipv4'},
> + },
> + {
> + 'send_packet': 'Ether(dst="%s")/IP()/GRE()/IP(dst="192.168.0.1",
> src="192.168.0.2",proto=6)/("X"*480)' % vf0_mac,
> + 'action': {'save_hash': 'ipv4-proto'},
> + },
> + {
> + 'send_packet': 'Ether(dst="%s")/IP()/GRE()/IP(dst="192.168.0.2",
> src="192.168.0.1",proto=6)/("X"*480)' % vf0_mac,
> + 'action': {'check_hash_same': 'ipv4-proto'},
> + },
> + ],
> +}
> +
> +mac_ipv6_gre_ipv4_symmetric =
> eval(str(mac_ipv4_gre_ipv4_symmetric).replace('ipv4_gre_ipv4','ipv6_gre_ipv4'
> ).replace('IP()','IPv6()')
> + .replace('eth / ipv4','eth / ipv6'))
> +
> +mac_ipv4_gre_ipv6_symmetric = {
> + 'sub_casename': 'mac_ipv4_gre_ipv6_symmetric',
> + 'port_id': 0,
> + 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / end actions rss
> func symmetric_toeplitz types ipv6 end key_len 0 queues end / end',
> + 'test': [
> + {
> + 'send_packet':
> 'Ether(dst="%s")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:
> 2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/("X"*480)' %
> vf0_mac,
> + 'action': {'save_hash': 'ipv6'},
> + },
> + {
> + 'send_packet':
> 'Ether(dst="%s")/IP()/GRE()/IPv6(dst="ABAB:910B:6666:3457:8295:3333:1800:
> 2929",src="CDCD:910A:2222:5498:8475:1111:3900:2020")/("X"*480)' %
> vf0_mac,
> + 'action': {'check_hash_same': 'ipv6'},
> + },
> + {
> + 'send_packet':
> 'Ether(dst="%s")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:
> 2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/("X"*480)' %
> vf0_mac,
> + 'action': {'save_hash': 'ipv6-nh'},
> + },
> + {
> + 'send_packet':
> 'Ether(dst="%s")/IP()/GRE()/IPv6(dst="ABAB:910B:6666:3457:8295:3333:1800:
> 2929",src="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/("X"*480)' %
> vf0_mac,
> + 'action': {'check_hash_same': 'ipv6-nh'},
> + },
> + ],
> +}
> +
> +mac_ipv6_gre_ipv6_symmetric =
> eval(str(mac_ipv4_gre_ipv6_symmetric).replace('ipv4_gre_ipv6','ipv6_gre_ipv6'
> ).replace('IP()','IPv6()')
> + .replace('eth / ipv4','eth / ipv6'))
> +
> +mac_ipv4_gre_ipv4_tcp_symmetric = {
> + 'sub_casename': 'mac_ipv4_gre_ipv4_tcp_symmetric',
> + 'port_id': 0,
> + 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / tcp / end
> actions rss func symmetric_toeplitz types ipv4-tcp end key_len 0 queues end /
> end',
> + 'test': [
> + {
> + 'send_packet': 'Ether(dst="%s")/IP()/GRE()/IP(dst="192.168.0.1",
> src="192.168.0.2")/TCP(sport=22,dport=23)/("X"*480)' % vf0_mac,
> + 'action': {'save_hash': 'ipv4'},
> + },
> + {
> + 'send_packet': 'Ether(dst="%s")/IP()/GRE()/IP(dst="192.168.0.2",
> src="192.168.0.1")/TCP(sport=22,dport=23)/("X"*480)' % vf0_mac,
> + 'action': {'check_hash_same': 'ipv4'},
> + },
> + {
> + 'send_packet': 'Ether(dst="%s")/IP()/GRE()/IP(dst="192.168.0.1",
> src="192.168.0.2")/TCP(sport=23,dport=22)/("X"*480)' % vf0_mac,
> + 'action': {'check_hash_same': 'ipv4'},
> + },
> + {
> + 'send_packet': 'Ether(dst="%s")/IP()/GRE()/IP(dst="192.168.0.1",
> src="192.168.0.2",proto=6)/TCP(sport=22,dport=23)/("X"*480)' % vf0_mac,
> + 'action': {'save_hash': 'ipv4-proto'},
> + },
> + {
> + 'send_packet': 'Ether(dst="%s")/IP()/GRE()/IP(dst="192.168.0.2",
> src="192.168.0.1",proto=6)/TCP(sport=22,dport=23)/("X"*480)' % vf0_mac,
> + 'action': {'check_hash_same': 'ipv4-proto'},
> + },
> + {
> + 'send_packet': 'Ether(dst="%s")/IP()/GRE()/IP(dst="192.168.0.1",
> src="192.168.0.2",proto=6)/TCP(sport=23,dport=22)/("X"*480)' % vf0_mac,
> + 'action': {'check_hash_same': 'ipv4-proto'},
> + },
> + ],
> +}
> +
> +mac_ipv6_gre_ipv4_tcp_symmetric =
> eval(str(mac_ipv4_gre_ipv4_tcp_symmetric).replace('ipv4_gre_ipv4','ipv6_gre_i
> pv4').replace('IP()','IPv6()')
> + .replace('eth / ipv4','eth / ipv6'))
> +
> +mac_ipv4_gre_ipv6_tcp_symmetric = {
> + 'sub_casename': 'mac_ipv4_gre_ipv6_tcp_symmetric',
> + 'port_id': 0,
> + 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / tcp / end
> actions rss func symmetric_toeplitz types ipv6-tcp end key_len 0 queues end /
> end',
> + 'test': [
> + {
> + 'send_packet':
> 'Ether(dst="%s")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:
> 2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/TCP(sport=22,dpor
> t=23)/("X"*480)' % vf0_mac,
> + 'action': {'save_hash': 'ipv6'},
> + },
> + {
> + 'send_packet':
> 'Ether(dst="%s")/IP()/GRE()/IPv6(dst="ABAB:910B:6666:3457:8295:3333:1800:
> 2929",src="CDCD:910A:2222:5498:8475:1111:3900:2020")/TCP(sport=22,dpor
> t=23)/("X"*480)' % vf0_mac,
> + 'action': {'check_hash_same': 'ipv6'},
> + },
> + {
> + 'send_packet':
> 'Ether(dst="%s")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:
> 2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/TCP(sport=23,dpor
> t=22)/("X"*480)' % vf0_mac,
> + 'action': {'check_hash_same': 'ipv6'},
> + },
> + {
> + 'send_packet':
> 'Ether(dst="%s")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:
> 2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020",
> nh=6)/TCP(sport=22,dport=23)/("X"*480)' % vf0_mac,
> + 'action': {'save_hash': 'ipv6-nh'},
> + },
> + {
> + 'send_packet':
> 'Ether(dst="%s")/IP()/GRE()/IPv6(dst="ABAB:910B:6666:3457:8295:3333:1800:
> 2929",src="CDCD:910A:2222:5498:8475:1111:3900:2020",
> nh=6)/TCP(sport=22,dport=23)/("X"*480)' % vf0_mac,
> + 'action': {'check_hash_same': 'ipv6-nh'},
> + },
> + {
> + 'send_packet':
> 'Ether(dst="%s")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:
> 2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020",
> nh=6)/TCP(sport=23,dport=22)/("X"*480)' % vf0_mac,
> + 'action': {'check_hash_same': 'ipv6-nh'},
> + },
> + ],
> +}
> +
> +mac_ipv6_gre_ipv6_tcp_symmetric =
> eval(str(mac_ipv4_gre_ipv6_tcp_symmetric).replace('ipv4_gre_ipv6','ipv6_gre_i
> pv6').replace('IP()','IPv6()')
> + .replace('eth / ipv4','eth / ipv6'))
> +
> +mac_ipv4_gre_ipv4_udp_symmetric =
> +eval(str(mac_ipv4_gre_ipv4_tcp_symmetric).replace('tcp','udp').replace(
> +'TCP','UDP').replace('proto=6','proto=17'))
> +
> +mac_ipv6_gre_ipv4_udp_symmetric =
> +eval(str(mac_ipv6_gre_ipv4_tcp_symmetric).replace('tcp','udp').replace(
> +'TCP','UDP').replace('proto=6','proto=17'))
> +
> +mac_ipv4_gre_ipv6_udp_symmetric =
> +eval(str(mac_ipv4_gre_ipv6_tcp_symmetric).replace('tcp','udp').replace(
> +'TCP','UDP').replace('proto=6','proto=17'))
> +
> +mac_ipv6_gre_ipv6_udp_symmetric =
> +eval(str(mac_ipv6_gre_ipv6_tcp_symmetric).replace('tcp','udp').replace(
> +'TCP','UDP').replace('proto=6','proto=17'))
> +#gre tunnel end
> +
> class AdvancedIavfRSSTest(TestCase):
>
> def set_up_all(self):
> @@ -4451,6 +5376,78 @@ class AdvancedIavfRSSTest(TestCase):
> self.rssprocess.handle_tests(tests, 0)
> self.verify(not self.rssprocess.error_msgs, 'some subcases failed')
>
> + def test_mac_ipv4_gre_ipv4(self):
> +
> + self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv4_gre_ip
> + v4)
> +
> + def test_mac_ipv6_gre_ipv4(self):
> +
> + self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv6_gre_ip
> + v4)
> +
> + def test_mac_ipv4_gre_ipv6(self):
> +
> + self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv4_gre_ip
> + v6)
> +
> + def test_mac_ipv6_gre_ipv6(self):
> +
> + self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv6_gre_ip
> + v6)
> +
> + def test_mac_ipv4_gre_ipv4_tcp(self):
> +
> + self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv4_gre_ip
> + v4_tcp)
> +
> + def test_mac_ipv6_gre_ipv4_tcp(self):
> +
> + self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv6_gre_ip
> + v4_tcp)
> +
> + def test_mac_ipv4_gre_ipv6_tcp(self):
> +
> + self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv4_gre_ip
> + v6_tcp)
> +
> + def test_mac_ipv6_gre_ipv6_tcp(self):
> +
> + self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv6_gre_ip
> + v6_tcp)
> +
> + def test_mac_ipv4_gre_ipv4_udp(self):
> +
> + self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv4_gre_ip
> + v4_udp)
> +
> + def test_mac_ipv6_gre_ipv4_udp(self):
> +
> + self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv6_gre_ip
> + v4_udp)
> +
> + def test_mac_ipv4_gre_ipv6_udp(self):
> +
> + self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv4_gre_ip
> + v6_udp)
> +
> + def test_mac_ipv6_gre_ipv6_udp(self):
> +
> + self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv6_gre_ip
> + v6_udp)
> +
> + def test_symmetric_mac_ipv4_gre_ipv4(self):
> +
> + self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv4_gre_ip
> + v4_symmetric)
> +
> + def test_symmetric_mac_ipv6_gre_ipv4(self):
> +
> + self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv6_gre_ip
> + v4_symmetric)
> +
> + def test_symmetric_mac_ipv4_gre_ipv6(self):
> +
> + self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv4_gre_ip
> + v6_symmetric)
> +
> + def test_symmetric_mac_ipv6_gre_ipv6(self):
> +
> + self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv6_gre_ip
> + v6_symmetric)
> +
> + def test_symmetric_mac_ipv4_gre_ipv4_tcp(self):
> +
> + self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv4_gre_ip
> + v4_tcp_symmetric)
> +
> + def test_symmetric_mac_ipv6_gre_ipv4_tcp(self):
> +
> + self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv6_gre_ip
> + v4_tcp_symmetric)
> +
> + def test_symmetric_mac_ipv4_gre_ipv6_tcp(self):
> +
> + self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv4_gre_ip
> + v6_tcp_symmetric)
> +
> + def test_symmetric_mac_ipv6_gre_ipv6_tcp(self):
> +
> + self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv6_gre_ip
> + v6_tcp_symmetric)
> +
> + def test_symmetric_mac_ipv4_gre_ipv4_udp(self):
> +
> + self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv4_gre_ip
> + v4_udp_symmetric)
> +
> + def test_symmetric_mac_ipv6_gre_ipv4_udp(self):
> +
> + self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv6_gre_ip
> + v4_udp_symmetric)
> +
> + def test_symmetric_mac_ipv4_gre_ipv6_udp(self):
> +
> + self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv4_gre_ip
> + v6_udp_symmetric)
> +
> + def test_symmetric_mac_ipv6_gre_ipv6_udp(self):
> +
> + self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv6_gre_ip
> + v6_udp_symmetric)
> +
> def tear_down(self):
> # destroy all flow rule on port 0
> self.dut.send_command("flow flush 0", timeout=1)
> --
> 2.17.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [dts] [PATCH V3 0/2] add gre inner rss cases for iavf
@ 2021-08-24 10:54 Qin Sun
2021-08-24 10:54 ` [dts] [PATCH V3 1/2] test_plans/cvl_advanced_iavf_rss: " Qin Sun
2021-08-24 10:54 ` [dts] [PATCH V3 2/2] tests/cvl_advanced_iavf_rss: add gre inner rss cases for iavf suite Qin Sun
0 siblings, 2 replies; 5+ messages in thread
From: Qin Sun @ 2021-08-24 10:54 UTC (permalink / raw)
To: dts; +Cc: xueqin.lin, Qin Sun
as dpdk enables iavf GRE tunnel feature, so add some rss inner cases,
related pattern: IPV4/IPV6+GRE+IPV4/IPV6+TCP/UDP, total 24 new cases
Qin Sun (2):
v2: fix test plan code style
v3: add "inner" for the input to clarify clear in test plan
test_plans/cvl_advanced_iavf_rss: add gre inner rss cases for iavf
tests/cvl_advanced_iavf_rss: add gre inner rss cases for iavf suite
.../cvl_advanced_iavf_rss_test_plan.rst | 862 +++++++++++++++
tests/TestSuite_cvl_advanced_iavf_rss.py | 997 ++++++++++++++++++
2 files changed, 1859 insertions(+)
--
2.17.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [dts] [PATCH V3 1/2] test_plans/cvl_advanced_iavf_rss: add gre inner rss cases for iavf
2021-08-24 10:54 [dts] [PATCH V3 0/2] add gre inner rss cases for iavf Qin Sun
@ 2021-08-24 10:54 ` Qin Sun
2021-08-24 6:09 ` Lin, Xueqin
2021-08-24 10:54 ` [dts] [PATCH V3 2/2] tests/cvl_advanced_iavf_rss: add gre inner rss cases for iavf suite Qin Sun
1 sibling, 1 reply; 5+ messages in thread
From: Qin Sun @ 2021-08-24 10:54 UTC (permalink / raw)
To: dts; +Cc: xueqin.lin, Qin Sun
as dpdk enables iavf GRE tunnel feature, so add some rss inner cases in test plan,
related pattern: IPV4/IPV6+GRE+IPV4/IPV6+TCP/UDP, total 24 new cases
Signed-off-by: Qin Sun <qinx.sun@intel.com>
---
| 862 ++++++++++++++++++
1 file changed, 862 insertions(+)
--git a/test_plans/cvl_advanced_iavf_rss_test_plan.rst b/test_plans/cvl_advanced_iavf_rss_test_plan.rst
index 6376a140..137382e4 100644
--- a/test_plans/cvl_advanced_iavf_rss_test_plan.rst
+++ b/test_plans/cvl_advanced_iavf_rss_test_plan.rst
@@ -175,6 +175,38 @@ Pattern and input set
+-------------------------------+---------------------------+----------------------------------------------------------------------------------+
| | MAC_IPV6_PFCP | pfcp |
+-------------------------------+---------------------------+----------------------------------------------------------------------------------+
+ | IPV4/IPV6+GRE+IPV4/IPV6 | MAC_IPV4_GRE_IPV4 | inner ipv4, inner l3-src-only, inner l3-dst-only |
+ +-------------------------------+---------------------------+----------------------------------------------------------------------------------+
+ | | MAC_IPV6_GRE_IPV4 | inner ipv4, inner l3-src-only, inner l3-dst-only |
+ +-------------------------------+---------------------------+----------------------------------------------------------------------------------+
+ | | MAC_IPV4_GRE_IPV6 | inner ipv6, inner l3-src-only, inner l3-dst-only |
+ +-------------------------------+---------------------------+----------------------------------------------------------------------------------+
+ | | MAC_IPV6_GRE_IPV6 | inner ipv6, inner l3-src-only, inner l3-dst-only |
+ +-------------------------------+---------------------------+----------------------------------------------------------------------------------+
+ | IPV4/IPV6+GRE+IPV4/IPV6+TCP | MAC_IPV4_GRE_IPV4_TCP | inner ipv4-tcp, inner l3-src-only, inner l3-dst-only, |
+ | | | inner l4-src-only, inner l4-dst-only, inner ipv4 |
+ +-------------------------------+---------------------------+----------------------------------------------------------------------------------+
+ | | MAC_IPV6_GRE_IPV4_TCP | inner ipv4-tcp, inner l3-src-only, inner l3-dst-only, |
+ | | | inner l4-src-only, inner l4-dst-only, inner ipv4 |
+ +-------------------------------+---------------------------+----------------------------------------------------------------------------------+
+ | | MAC_IPV4_GRE_IPV6_TCP | inner ipv6-tcp, inner l3-src-only, inner l3-dst-only, |
+ | | | inner l4-src-only, inner l4-dst-only, inner iv6 |
+ +-------------------------------+---------------------------+----------------------------------------------------------------------------------+
+ | | MAC_IPV6_GRE_IPV6_TCP | inner ipv6-tcp, inner l3-src-only, inner l3-dst-only, |
+ | | | inner l4-src-only, inner l4-dst-only, inner ipv6 |
+ +-------------------------------+---------------------------+----------------------------------------------------------------------------------+
+ | IPV4/IPV6+GRE+IPV4/IPV6+UDP | MAC_IPV4_GRE_IPV4_UDP | inner ipv4-udp, inner l3-src-only, inner l3-dst-only, |
+ | | | inner l4-src-only, inner l4-dst-only, inner ipv4 |
+ +-------------------------------+---------------------------+----------------------------------------------------------------------------------+
+ | | MAC_IPV6_GRE_IPV4_UDP | inner ipv4-udp, inner l3-src-only, inner l3-dst-only, |
+ | | | inner l4-src-only, inner l4-dst-only, inner ipv4 |
+ +-------------------------------+---------------------------+----------------------------------------------------------------------------------+
+ | | MAC_IPV4_GRE_IPV6_UDP | inner ipv6-udp, inner l3-src-only, inner l3-dst-only, |
+ | | | inner l4-src-only, inner l4-dst-only, inner ipv6 |
+ +-------------------------------+---------------------------+----------------------------------------------------------------------------------+
+ | | MAC_IPV6_GRE_IPV6_UDP | inner ipv6-udp, inner l3-src-only, inner l3-dst-only, |
+ | | | inner l4-src-only, inner l4-dst-only, inner ipv6 |
+ +----------------------------- -+---------------------------+----------------------------------------------------------------------------------+
.. table::
@@ -249,6 +281,30 @@ Pattern and input set
+-------------------------------+---------------------------+--------------------------------------------------------------------------------+
| | MAC_IPV6_GTPU_EH_IPV6_TCP | ipv6-tcp |
+-------------------------------+---------------------------+--------------------------------------------------------------------------------+
+ | IPV4/IPV6+GRE+IPV4/IPV6 | MAC_IPV4_GRE_IPV4 | inner ipv4 |
+ +-------------------------------+---------------------------+--------------------------------------------------------------------------------+
+ | | MAC_IPV6_GRE_IPV4 | inner ipv4 |
+ +-------------------------------+---------------------------+--------------------------------------------------------------------------------+
+ | | MAC_IPV4_GRE_IPV6 | inner ipv6 |
+ +-------------------------------+---------------------------+--------------------------------------------------------------------------------+
+ | | MAC_IPV6_GRE_IPV6 | inner ipv6 |
+ +-------------------------------+---------------------------+--------------------------------------------------------------------------------+
+ | IPV4/IPV6+GRE+IPV4/IPV6+TCP | MAC_IPV4_GRE_IPV4_TCP | inner ipv4-tcp |
+ +-------------------------------+---------------------------+--------------------------------------------------------------------------------+
+ | | MAC_IPV6_GRE_IPV4_TCP | inner ipv4-tcp |
+ +-------------------------------+---------------------------+--------------------------------------------------------------------------------+
+ | | MAC_IPV4_GRE_IPV6_TCP | inner ipv6-tcp |
+ +-------------------------------+---------------------------+--------------------------------------------------------------------------------+
+ | | MAC_IPV6_GRE_IPV6_TCP | inner ipv6-tcp |
+ +-------------------------------+---------------------------+--------------------------------------------------------------------------------+
+ | IPV4/IPV6+GRE+IPV4/IPV6+UDP | MAC_IPV4_GRE_IPV4_UDP | inner ipv4-udp |
+ +-------------------------------+---------------------------+--------------------------------------------------------------------------------+
+ | | MAC_IPV6_GRE_IPV4_UDP | inner ipv4-udp |
+ +-------------------------------+---------------------------+--------------------------------------------------------------------------------+
+ | | MAC_IPV4_GRE_IPV6_UDP | inner ipv6-udp |
+ +-------------------------------+---------------------------+--------------------------------------------------------------------------------+
+ | | MAC_IPV6_GRE_IPV6_UDP | inner ipv6-udp |
+ +-------------------------------+---------------------------+--------------------------------------------------------------------------------+
.. note::
@@ -259,6 +315,7 @@ Pattern and input set
Rules with src/dst mac addresses as hash input set can not be applied
to tunnel packets. So in the test cases with input set src/dst mac addresses,
matched packets do not include tunnel packets.
+ For GRE tunnel rule,the input settings are for inner layer.
Prerequisites
=============
@@ -1483,6 +1540,811 @@ Subcase: MAC_IPV6_SCTP_IPV6
Subcase: MAC_IPV6_SCTP_ALL
--------------------------
+GRE Tunnel Case Test steps
+==========================
+all the test cases run the same test steps as below:
+
+1. validate rule.
+2. create rule and list rule.
+3. send a basic hit pattern packet,record the hash value,
+ check the packet is distributed to queues by RSS.
+4. send hit pattern packet with changed input set in the rule.
+ check the received packet have different hash value with basic packet.
+ check the packet is distributed to queues by rss.
+5. send hit pattern packet with changed input set not in the rule.
+ check the received packet have same hash value with the basic packet.
+ check the packet is distributed to queues by rss.
+6. destroy the rule and list rule. check the flow list has no rule.
+
+Test case: MAC_IPV4_GRE_IPV4
+============================
+basic hit pattern packets are the same in this test case:
+ipv4-proto packets::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.0.2, proto=6")/("X"*480)],iface="enp134s0f0")
+
+Subcase: MAC_IPV4_GRE_IPV4_L3SRC
+--------------------------------
+1. create rss rule::
+
+ flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / end actions rss types ipv4 l3-src-only end key_len 0 queues end / end
+
+2. hit pattern/defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.1.2", proto=6)/("X"*480)],iface="enp134s0f0")
+
+3. hit pattern/not defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.1.1", src="192.168.0.2", proto=6)/("X"*480)],iface="enp134s0f0")
+
+Subcase: MAC_IPV4_GRE_IPV4_L3DST
+--------------------------------
+1. create rss rule::
+
+ flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / end actions rss types ipv4 l3-dst-only end key_len 0 queues end / end
+
+2. hit pattern/defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.1.1", src="192.168.0.2", proto=6)/("X"*480)],iface="enp134s0f0")
+
+3. hit pattern/not defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.1.2", proto=6)/("X"*480)],iface="enp134s0f0")
+
+Subcase: MAC_IPV4_GRE_IPV4_ALL
+------------------------------
+1. create rss rule::
+
+ flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / end actions rss types ipv4 end key_len 0 queues end / end
+
+2. hit pattern/defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.1.1", src="192.168.0.2", proto=6)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.1.2", proto=6)/("X"*480)],iface="enp134s0f0")
+
+Test case: MAC_IPV6_GRE_IPV4
+============================
+
+Subcase 1: MAC_IPV6_GRE_IPV4_L3SRC
+----------------------------------
+
+Subcase 2: MAC_IPV6_GRE_IPV4_L3DST
+----------------------------------
+
+Subcase 3: MAC_IPV6_GRE_IPV4_L4SRC
+----------------------------------
+
+Subcase 4: MAC_IPV6_GRE_IPV4_L4DST
+----------------------------------
+
+Subcase 5: MAC_IPV6_GRE_IPV4_ALL
+--------------------------------
+
+each subcase is the same as the subcase of Test case: MAC_IPV4_GRE_IPV4, just only pattern is different,
+replace it with 'eth / ipv6 / gre / ipv4'
+
+Test case: MAC_IPV4_GRE_IPV6
+============================
+basic hit pattern packets are the same in this test case:
+ipv6-nh packets::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/("X"*480)],iface="enp134s0f0")
+
+Subcase: MAC_IPV4_GRE_IPV6_L3SRC
+--------------------------------
+1. create rss rule::
+
+ flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / end actions rss types ipv6 l3-src-only end key_len 0 queues end / end
+
+2. hit pattern/defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2930",dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/("X"*480)],iface="enp134s0f0")
+
+3. hit pattern/not defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021", nh=6)/("X"*480)],iface="enp134s0f0")
+
+Subcase: MAC_IPV4_GRE_IPV6_L3DST
+--------------------------------
+1. create rss rule::
+
+ flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / end actions rss types ipv6 l3-dst-only end key_len 0 queues end / end
+
+2. hit pattern/defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021", nh=6)/("X"*480)],iface="enp134s0f0")
+
+3. hit pattern/not defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2930",dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/("X"*480)],iface="enp134s0f0")
+
+Subcase: MAC_IPV4_GRE_IPV6_ALL
+------------------------------
+1. create rss rule::
+
+ flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / end actions rss types ipv6 end key_len 0 queues end / end
+
+2. hit pattern/defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021", nh=6)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2930",dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/("X"*480)],iface="enp134s0f0")
+
+Test case: MAC_IPV6_GRE_IPV6
+============================
+
+Subcase 1: MAC_IPV6_GRE_IPV4_L3SRC
+----------------------------------
+
+Subcase 2: MAC_IPV6_GRE_IPV4_L3DST
+----------------------------------
+
+Subcase 3: MAC_IPV6_GRE_IPV4_L4SRC
+----------------------------------
+
+Subcase 4: MAC_IPV6_GRE_IPV4_L4DST
+----------------------------------
+
+Subcase 5: MAC_IPV6_GRE_IPV4_ALL
+--------------------------------
+
+each subcase is the same as the subcase of Test case: MAC_IPV4_GRE_IPV6, just only pattern is different,
+replace it with 'eth / ipv6 / gre / ipv6'
+
+Test case: MAC_IPV4_GRE_IPV4_TCP
+================================
+basic hit pattern packets are the same in this test case:
+ipv4-tcp packets::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.0.2, proto=6")/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+
+Subcase: MAC_IPV4_GRE_IPV4_TCP_L3SRC
+------------------------------------
+1. create rss rule::
+
+ flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / tcp / end actions rss types ipv4-tcp l3-src-only end key_len 0 queues end / end
+
+2. hit pattern/defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.1.2", proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+
+3. hit pattern/not defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.1.1", src="192.168.0.2", proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.0.2", proto=6)/TCP(sport=21,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.0.2", proto=6)/TCP(sport=22,dport=24)/("X"*480)],iface="enp134s0f0")
+
+Subcase: MAC_IPV4_GRE_IPV4_TCP_L3DST
+------------------------------------
+1. create rss rule::
+
+ flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / tcp / end actions rss types ipv4-tcp l3-dst-only end key_len 0 queues end / end
+
+2. hit pattern/defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.1.1", src="192.168.0.2", proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+
+3. hit pattern/not defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.1.2", proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.0.2", proto=6)/TCP(sport=21,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.0.2", proto=6)/TCP(sport=22,dport=24)/("X"*480)],iface="enp134s0f0")
+
+Subcase: MAC_IPV4_GRE_IPV4_TCP_L4SRC
+------------------------------------
+1. create rss rule::
+
+ flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / tcp / end actions rss types ipv4-tcp l4-src-only end key_len 0 queues end / end
+
+2. hit pattern/defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.0.2", proto=6)/TCP(sport=21,dport=23)/("X"*480)],iface="enp134s0f0")
+
+3. hit pattern/not defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.1.1", src="192.168.0.2", proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.1.2", proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.0.2", proto=6)/TCP(sport=22,dport=24)/("X"*480)],iface="enp134s0f0")
+
+Subcase: MAC_IPV4_GRE_IPV4_TCP_L4DST
+------------------------------------
+1. create rss rule::
+
+ flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / tcp / end actions rss types ipv4-tcp l4-dst-only end key_len 0 queues end / end
+
+2. hit pattern/defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.0.2", proto=6)/TCP(sport=22,dport=24)/("X"*480)],iface="enp134s0f0")
+
+3. hit pattern/not defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.1.1", src="192.168.0.2", proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.1.2", proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.0.2", proto=6)/TCP(sport=21,dport=23)/("X"*480)],iface="enp134s0f0")
+
+Subcase: MAC_IPV4_GRE_IPV4_TCP_L3SRC_L4SRC
+------------------------------------------
+1. create rss rule::
+
+ flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / tcp / end actions rss types ipv4-tcp l3-src-only l4-src-only end key_len 0 queues end / end
+
+2. hit pattern/defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.1.2", proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.0.2", proto=6)/TCP(sport=21,dport=23)/("X"*480)],iface="enp134s0f0")
+
+3. hit pattern/not defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.1.1", src="192.168.0.2", proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.0.2", proto=6)/TCP(sport=22,dport=24)/("X"*480)],iface="enp134s0f0")
+
+Subcase: MAC_IPV4_GRE_IPV4_TCP_L3SRC_L4DST
+------------------------------------------
+1. create rss rule::
+
+ flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / tcp / end actions rss types ipv4-tcp l3-src-only l4-dst-only end key_len 0 queues end / end
+
+2. hit pattern/defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.1.2", proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.0.2", proto=6)/TCP(sport=22,dport=24)/("X"*480)],iface="enp134s0f0")
+
+3. hit pattern/not defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.1.1", src="192.168.0.2", proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.0.2", proto=6)/TCP(sport=21,dport=23)/("X"*480)],iface="enp134s0f0")
+
+Subcase: MAC_IPV4_GRE_IPV4_TCP_L3DST_L4SRC
+------------------------------------------
+1. create rss rule::
+
+ flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / tcp / end actions rss types ipv4-tcp l3-dst-only l4-src-only end key_len 0 queues end / end
+
+2. hit pattern/defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.1.1", src="192.168.0.2", proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.0.2", proto=6)/TCP(sport=21,dport=23)/("X"*480)],iface="enp134s0f0")
+
+3. hit pattern/not defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.1.2", proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.0.2", proto=6)/TCP(sport=22,dport=24)/("X"*480)],iface="enp134s0f0")
+
+Subcase: MAC_IPV4_GRE_IPV4_TCP_L3DST_L4DST
+------------------------------------------
+1. create rss rule::
+
+ flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / tcp / end actions rss types ipv4-tcp l3-dst-only l4-dst-only end key_len 0 queues end / end
+
+2. hit pattern/defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.1.1", src="192.168.0.2", proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.0.2", proto=6)/TCP(sport=22,dport=24)/("X"*480)],iface="enp134s0f0")
+
+3. hit pattern/not defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.1.2", proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.0.2", proto=6)/TCP(sport=21,dport=23)/("X"*480)],iface="enp134s0f0")
+
+Subcase: MAC_IPV4_GRE_IPV4_TCP_ALL
+----------------------------------
+1. create rss rule::
+
+ flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / tcp / end actions rss types ipv4-tcp end key_len 0 queues end / end
+
+2. hit pattern/defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.1.2", proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.1.1", src="192.168.0.2", proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.0.2", proto=6)/TCP(sport=21,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.0.2", proto=6)/TCP(sport=22,dport=24)/("X"*480)],iface="enp134s0f0")
+
+Subcase: MAC_IPV4_GRE_IPV4_TCP_IPV4
+----------------------------------
+1. create rss rule::
+
+ flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / tcp / end actions rss types ipv4 end key_len 0 queues end / end
+
+2. hit pattern/defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.1.2", proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.1.1", src="192.168.0.2", proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+
+3. hit pattern/not defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.0.2", proto=6)/TCP(sport=21,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.0.2", proto=6)/TCP(sport=22,dport=24)/("X"*480)],iface="enp134s0f0")
+
+Test case: MAC_IPV6_GRE_IPV4_TCP
+================================
+
+Subcase: MAC_IPV6_GRE_IPV4_TCP_L3SRC
+------------------------------------
+
+Subcase: MAC_IPV6_GRE_IPV4_TCP_L3DST
+------------------------------------
+
+Subcase: MAC_IPV6_GRE_IPV4_TCP_L4SRC
+------------------------------------
+
+Subcase: MAC_IPV6_GRE_IPV4_TCP_L4DST
+------------------------------------
+
+Subcase: MAC_IPV6_GRE_IPV4_TCP_L3SRC_L4SRC
+------------------------------------------
+
+Subcase: MAC_IPV6_GRE_IPV4_TCP_L3SRC_L4DST
+------------------------------------------
+
+Subcase: MAC_IPV6_GRE_IPV4_TCP_L3DST_L4SRC
+------------------------------------------
+
+Subcase: MAC_IPV6_GRE_IPV4_TCP_L3DST_L4DST
+------------------------------------------
+
+Subcase: MAC_IPV6_GRE_IPV4_TCP_ALL
+----------------------------------
+
+Subcase: MAC_IPV6_GRE_IPV4_TCP_IPV4
+-----------------------------------
+
+each subcase is the same as the subcase of Test case: MAC_IPV4_GRE_IPV4_TCP, just only pattern is different,
+replace it with 'eth / ipv6 / gre / ipv4'
+
+Test case: MAC_IPV4_GRE_IPV6_TCP
+================================
+basic hit pattern packets are the same in this test case:
+ipv6-nh packets::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+
+Subcase: MAC_IPV4_GRE_IPV6_TCP_L3SRC
+------------------------------------
+1. create rss rule::
+
+ flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / tcp / end actions rss types ipv6-tcp l3-src-only end key_len 0 queues end / end
+
+2. hit pattern/defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2930",dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+
+3. hit pattern/not defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/TCP(sport=21,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/TCP(sport=22,dport=24)/("X"*480)],iface="enp134s0f0")
+
+Subcase: MAC_IPV4_GRE_IPV6_TCP_L3DST
+------------------------------------
+1. create rss rule::
+
+ flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / tcp / end actions rss types ipv6-tcp l3-dst-only end key_len 0 queues end / end
+
+2. hit pattern/defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+
+3. hit pattern/not defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2930",dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/TCP(sport=21,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/TCP(sport=22,dport=24)/("X"*480)],iface="enp134s0f0")
+
+Subcase: MAC_IPV4_GRE_IPV6_TCP_L4SRC
+------------------------------------
+1. create rss rule::
+
+ flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / tcp / end actions rss types ipv6-tcp l4-src-only end key_len 0 queues end / end
+
+2. hit pattern/defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/TCP(sport=21,dport=23)/("X"*480)],iface="enp134s0f0")
+
+3. hit pattern/not defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2930",dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/TCP(sport=22,dport=24)/("X"*480)],iface="enp134s0f0")
+
+Subcase: MAC_IPV4_GRE_IPV6_TCP_L4DST
+------------------------------------
+1. create rss rule::
+
+ flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / tcp / end actions rss types ipv6-tcp l4-dst-only end key_len 0 queues end / end
+
+2. hit pattern/defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/TCP(sport=22,dport=24)/("X"*480)],iface="enp134s0f0")
+
+3. hit pattern/not defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2930",dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/TCP(sport=21,dport=23)/("X"*480)],iface="enp134s0f0")
+
+Subcase: MAC_IPV4_GRE_IPV6_TCP_L3SRC_L4SRC
+------------------------------------------
+1. create rss rule::
+
+ flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / tcp / end actions rss types ipv6-tcp l3-src-only l4-src-only end key_len 0 queues end / end
+
+2. hit pattern/defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2930",dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/TCP(sport=21,dport=23)/("X"*480)],iface="enp134s0f0")
+
+3. hit pattern/not defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/TCP(sport=22,dport=24)/("X"*480)],iface="enp134s0f0")
+
+Subcase: MAC_IPV4_GRE_IPV6_TCP_L3SRC_L4DST
+------------------------------------------
+1. create rss rule::
+
+ flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / tcp / end actions rss types ipv6-tcp l3-src-only l4-dst-only end key_len 0 queues end / end
+
+2. hit pattern/defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2930",dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/TCP(sport=22,dport=24)/("X"*480)],iface="enp134s0f0")
+
+3. hit pattern/not defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/TCP(sport=21,dport=23)/("X"*480)],iface="enp134s0f0")
+
+Subcase: MAC_IPV4_GRE_IPV6_TCP_L3DST_L4SRC
+------------------------------------------
+1. create rss rule::
+
+ flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / tcp / end actions rss types ipv6-tcp l3-dst-only l4-src-only end key_len 0 queues end / end
+
+2. hit pattern/defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/TCP(sport=21,dport=23)/("X"*480)],iface="enp134s0f0")
+
+3. hit pattern/not defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2930",dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/TCP(sport=22,dport=24)/("X"*480)],iface="enp134s0f0")
+
+Subcase: MAC_IPV4_GRE_IPV6_TCP_ALL
+----------------------------------
+1. create rss rule::
+
+ flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / tcp / end actions rss types ipv6-tcp end key_len 0 queues end / end
+
+2. hit pattern/defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2930",dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/TCP(sport=21,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/TCP(sport=22,dport=24)/("X"*480)],iface="enp134s0f0")
+
+Subcase: MAC_IPV4_GRE_IPV6_TCP_IPV6
+----------------------------------
+1. create rss rule::
+
+ flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / tcp / end actions rss types ipv6 end key_len 0 queues end / end
+
+2. hit pattern/defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2930",dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+
+3. hit pattern/not defined input set::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/TCP(sport=21,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/TCP(sport=22,dport=24)/("X"*480)],iface="enp134s0f0")
+
+Test case: MAC_IPV6_GRE_IPV6_TCP
+================================
+
+Subcase: MAC_IPV6_GRE_IPV6_TCP_L3SRC
+------------------------------------
+
+Subcase: MAC_IPV6_GRE_IPV6_TCP_L3DST
+------------------------------------
+
+Subcase: MAC_IPV6_GRE_IPV6_TCP_L4SRC
+------------------------------------
+
+Subcase: MAC_IPV6_GRE_IPV6_TCP_L4DST
+------------------------------------
+
+Subcase: MAC_IPV6_GRE_IPV6_TCP_L3SRC_L4SRC
+------------------------------------------
+
+Subcase: MAC_IPV6_GRE_IPV6_TCP_L3SRC_L4DST
+------------------------------------------
+
+Subcase: MAC_IPV6_GRE_IPV6_TCP_L3DST_L4SRC
+------------------------------------------
+
+Subcase: MAC_IPV6_GRE_IPV6_TCP_L3DST_L4DST
+------------------------------------------
+
+Subcase: MAC_IPV6_GRE_IPV6_TCP_ALL
+----------------------------------
+
+Subcase: MAC_IPV6_GRE_IPV6_TCP_IPV6
+-----------------------------------
+
+each subcase is the same as the subcase of Test case: MAC_IPV4_GRE_IPV6_TCP, just only pattern is different,
+replace it with 'eth / ipv6 / gre / ipv6'
+
+Test case: MAC_IPV4_GRE_IPV4_UDP
+================================
+
+Subcase: MAC_IPV4_GRE_IPV4_UDP_L3SRC
+------------------------------------
+
+Subcase: MAC_IPV4_GRE_IPV4_UDP_L3DST
+------------------------------------
+
+Subcase: MAC_IPV4_GRE_IPV4_UDP_L4SRC
+------------------------------------
+
+Subcase: MAC_IPV4_GRE_IPV4_UDP_L4DST
+------------------------------------
+
+Subcase: MAC_IPV4_GRE_IPV4_UDP_L3SRC_L4SRC
+------------------------------------------
+
+Subcase: MAC_IPV4_GRE_IPV4_UDP_L3SRC_L4DST
+------------------------------------------
+
+Subcase: MAC_IPV4_GRE_IPV4_UDP_L3DST_L4SRC
+------------------------------------------
+
+Subcase: MAC_IPV4_GRE_IPV4_UDP_L3DST_L4DST
+------------------------------------------
+
+Subcase: MAC_IPV4_GRE_IPV4_UDP_ALL
+----------------------------------
+
+Subcase: MAC_IPV4_GRE_IPV4_UDP_IPV4
+-----------------------------------
+
+each subcase is the same as the subcase of Test case: MAC_IPV4_GRE_IPV4_TCP, just only pattern is different,
+replace "tcp" with "udp" in all the subcases
+
+Test case: MAC_IPV4_GRE_IPV6_UDP
+================================
+
+Subcase: MAC_IPV4_GRE_IPV6_UDP_L3SRC
+------------------------------------
+
+Subcase: MAC_IPV4_GRE_IPV6_UDP_L3DST
+------------------------------------
+
+Subcase: MAC_IPV4_GRE_IPV6_UDP_L4SRC
+------------------------------------
+
+Subcase: MAC_IPV4_GRE_IPV6_UDP_L4DST
+------------------------------------
+
+Subcase: MAC_IPV4_GRE_IPV6_UDP_L3SRC_L4SRC
+------------------------------------------
+
+Subcase: MAC_IPV4_GRE_IPV6_UDP_L3SRC_L4DST
+------------------------------------------
+
+Subcase: MAC_IPV4_GRE_IPV6_UDP_L3DST_L4SRC
+------------------------------------------
+
+Subcase: MAC_IPV4_GRE_IPV6_UDP_L3DST_L4DST
+------------------------------------------
+
+Subcase: MAC_IPV4_GRE_IPV6_UDP_ALL
+----------------------------------
+
+Subcase: MAC_IPV4_GRE_IPV6_UDP_IPV6
+-----------------------------------
+
+each subcase is the same as the subcase of Test case: MAC_IPV4_GRE_IPV6_TCP, just only pattern is different,
+replace "tcp" with "udp" in all the subcases
+
+Test case: MAC_IPV6_GRE_IPV4_UDP
+================================
+
+Subcase: MAC_IPV6_GRE_IPV4_UDP_L3SRC
+------------------------------------
+
+Subcase: MAC_IPV6_GRE_IPV4_UDP_L3DST
+------------------------------------
+
+Subcase: MAC_IPV6_GRE_IPV4_UDP_L4SRC
+------------------------------------
+
+Subcase: MAC_IPV6_GRE_IPV4_UDP_L4DST
+------------------------------------
+
+Subcase: MAC_IPV6_GRE_IPV4_UDP_L3SRC_L4SRC
+------------------------------------------
+
+Subcase: MAC_IPV6_GRE_IPV4_UDP_L3SRC_L4DST
+------------------------------------------
+
+Subcase: MAC_IPV6_GRE_IPV4_UDP_L3DST_L4SRC
+------------------------------------------
+
+Subcase: MAC_IPV6_GRE_IPV4_UDP_L3DST_L4DST
+------------------------------------------
+
+Subcase: MAC_IPV6_GRE_IPV4_UDP_ALL
+----------------------------------
+
+Subcase: MAC_IPV6_GRE_IPV4_UDP_IPV4
+-----------------------------------
+
+each subcase is the same as the subcase of Test case: MAC_IPV6_GRE_IPV4_TCP, just only pattern is different,
+replace "tcp" with "udp" in all the subcases
+
+Test case: MAC_IPV6_GRE_IPV6_UDP
+================================
+
+Subcase: MAC_IPV6_GRE_IPV6_UDP_L3SRC
+------------------------------------
+
+Subcase: MAC_IPV6_GRE_IPV6_UDP_L3DST
+------------------------------------
+
+Subcase: MAC_IPV6_GRE_IPV6_UDP_L4SRC
+------------------------------------
+
+Subcase: MAC_IPV6_GRE_IPV6_UDP_L4DST
+------------------------------------
+
+Subcase: MAC_IPV6_GRE_IPV6_UDP_L3SRC_L4SRC
+------------------------------------------
+
+Subcase: MAC_IPV6_GRE_IPV6_UDP_L3SRC_L4DST
+------------------------------------------
+
+Subcase: MAC_IPV6_GRE_IPV6_UDP_L3DST_L4SRC
+------------------------------------------
+
+Subcase: MAC_IPV6_GRE_IPV6_UDP_L3DST_L4DST
+------------------------------------------
+
+Subcase: MAC_IPV6_GRE_IPV6_UDP_ALL
+----------------------------------
+
+Subcase: MAC_IPV6_GRE_IPV6_UDP_IPV6
+-----------------------------------
+
+each subcase is the same as the subcase of Test case: MAC_IPV6_GRE_IPV6_TCP, just only pattern is different,
+replace "tcp" with "udp" in all the subcases
+
+GRE Tunnel symmetric-toeplitz Test steps
+========================================
+1. validate rule.
+2. create rule and list rule.
+3. send hit pattern packets with switched value of input set in the rule.
+ check the received packets have same hash value.
+ check all the packets are distributed to queues by rss.
+
+Test case: symmetric MAC_IPV4_GRE_IPV4
+======================================
+
+1. create rss rule::
+
+ flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / end actions rss func symmetric_toeplitz types ipv4 end key_len 0 queues end / end
+
+2. hit pattern with switched value of input set in the rule::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.0.2", proto=6)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.2", src="192.168.0.1", proto=6)/("X"*480)],iface="enp134s0f0")
+
+Test case: symmetric MAC_IPV6_GRE_IPV4
+======================================
+
+1. create rss rule::
+
+ flow create 0 ingress pattern eth / ipv6 / gre / ipv4 / end actions rss func symmetric_toeplitz types ipv4 end key_len 0 queues end / end
+
+2. hit pattern with switched value of input set in the rule::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IPv6()/GRE()/IP(dst="192.168.0.1", src="192.168.0.2", proto=6)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IPv6()/GRE()/IP(dst="192.168.0.2", src="192.168.0.1", proto=6)/("X"*480)],iface="enp134s0f0")
+
+Test case: symmetric MAC_IPV4_GRE_IPV6
+======================================
+
+1. create rss rule::
+
+ flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / end actions rss func symmetric_toeplitz types ipv6 end key_len 0 queues end / end
+
+2. hit pattern with switched value of input set in the rule::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2020",dst="CDCD:910A:2222:5498:8475:1111:3900:2929", nh=6)/("X"*480)],iface="enp134s0f0")
+
+Test case: symmetric MAC_IPV6_GRE_IPV6
+======================================
+
+1. create rss rule::
+
+ flow create 0 ingress pattern eth / ipv6 / gre / ipv6 / end actions rss func symmetric_toeplitz types ipv6 end key_len 0 queues end / end
+
+2. hit pattern with switched value of input set in the rule::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IPv6()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IPv6()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2020",dst="CDCD:910A:2222:5498:8475:1111:3900:2929", nh=6)/("X"*480)],iface="enp134s0f0")
+
+Test case: symmetric MAC_IPV4_GRE_IPV4_TCP
+==========================================
+
+1. create rss rule::
+
+ flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / tcp / end actions rss func symmetric_toeplitz types ipv4-tcp end key_len 0 queues end / end
+
+2. hit pattern with switched value of input set in the rule::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.0.2", proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.2", src="192.168.0.1", proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.0.2", proto=6)/TCP(sport=23,dport=22)/("X"*480)],iface="enp134s0f0")
+
+Test case: symmetric MAC_IPV6_GRE_IPV4_TCP
+==========================================
+
+1. create rss rule::
+
+ flow create 0 ingress pattern eth / ipv6 / gre / ipv4 / tcp / end actions rss func symmetric_toeplitz types ipv4-tcp end key_len 0 queues end / end
+
+2. hit pattern with switched value of input set in the rule::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IPv6()/GRE()/IP(dst="192.168.0.1", src="192.168.0.2", proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IPv6()/GRE()/IP(dst="192.168.0.2", src="192.168.0.1", proto=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IPv6()/GRE()/IP(dst="192.168.0.1", src="192.168.0.2", proto=6)/TCP(sport=23,dport=22)/("X"*480)],iface="enp134s0f0")
+
+Test case: symmetric MAC_IPV4_GRE_IPV6_TCP
+==========================================
+
+1. create rss rule::
+
+ flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / tcp / end actions rss func symmetric_toeplitz types ipv6-tcp end key_len 0 queues end / end
+
+2. hit pattern with switched value of input set in the rule::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2020",dst="CDCD:910A:2222:5498:8475:1111:3900:2929", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/TCP(sport=23,dport=22)/("X"*480)],iface="enp134s0f0")
+
+Test case: symmetric MAC_IPV6_GRE_IPV6_TCP
+==========================================
+
+1. create rss rule::
+
+ flow create 0 ingress pattern eth / ipv6 / gre / ipv6 / tcp / end actions rss func symmetric_toeplitz types ipv6-tcp end key_len 0 queues end / end
+
+2. hit pattern with switched value of input set in the rule::
+
+ sendp([Ether(dst="00:11:22:33:44:55")/IPv6()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IPv6()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2020",dst="CDCD:910A:2222:5498:8475:1111:3900:2929", nh=6)/TCP(sport=22,dport=23)/("X"*480)],iface="enp134s0f0")
+ sendp([Ether(dst="00:11:22:33:44:55")/IPv6()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/TCP(sport=23,dport=22)/("X"*480)],iface="enp134s0f0")
+
+Test case: symmetric MAC_IPV4_GRE_IPV4_TCP
+==========================================
+test steps same as Test case: symmetric MAC_IPV4_GRE_IPV4_TCP, just only pattern is different,
+replace "tcp" with "udp"
+
+Test case: symmetric MAC_IPV6_GRE_IPV4_TCP
+==========================================
+test steps same as Test case: symmetric MAC_IPV6_GRE_IPV4_TCP, just only pattern is different,
+replace "tcp" with "udp"
+
+Test case: symmetric MAC_IPV4_GRE_IPV6_TCP
+==========================================
+test steps same as Test case: symmetric MAC_IPV4_GRE_IPV6_TCP, just only pattern is different,
+replace "tcp" with "udp"
+
+Test case: symmetric MAC_IPV6_GRE_IPV6_TCP
+==========================================
+test steps same as Test case: symmetric MAC_IPV6_GRE_IPV6_TCP, just only pattern is different,
+replace "tcp" with "udp"
symmetric-toeplitz Test steps
=============================
--
2.17.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [dts] [PATCH V3 2/2] tests/cvl_advanced_iavf_rss: add gre inner rss cases for iavf suite
2021-08-24 10:54 [dts] [PATCH V3 0/2] add gre inner rss cases for iavf Qin Sun
2021-08-24 10:54 ` [dts] [PATCH V3 1/2] test_plans/cvl_advanced_iavf_rss: " Qin Sun
@ 2021-08-24 10:54 ` Qin Sun
2021-08-24 6:11 ` Lin, Xueqin
1 sibling, 1 reply; 5+ messages in thread
From: Qin Sun @ 2021-08-24 10:54 UTC (permalink / raw)
To: dts; +Cc: xueqin.lin, Qin Sun
according to test plan to add 24 new cases related gre inner rss for iavf suite
Signed-off-by: Qin Sun <qinx.sun@intel.com>
---
| 997 +++++++++++++++++++++++
1 file changed, 997 insertions(+)
--git a/tests/TestSuite_cvl_advanced_iavf_rss.py b/tests/TestSuite_cvl_advanced_iavf_rss.py
index a7003b38..249f6bcf 100644
--- a/tests/TestSuite_cvl_advanced_iavf_rss.py
+++ b/tests/TestSuite_cvl_advanced_iavf_rss.py
@@ -4150,6 +4150,931 @@ ipv6_64bit_prefix_l3_src_dst_only = {
ipv6_64bit_prefix = [ipv6_64bit_prefix_l3_src_only, ipv6_64bit_prefix_l3_dst_only, ipv6_64bit_prefix_l3_src_dst_only]
+#gre tunnel related data
+mac_ipv4_gre_ipv4_basic_pkt = {
+ 'ipv4-proto':
+ 'Ether(dst="%s")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.0.2", proto=6)/("X"*480)' % vf0_mac,
+ 'ipv4-tcp':
+ 'Ether(dst="%s")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.0.2", proto=6)/TCP(sport=22,dport=23)/("X"*480)' % vf0_mac,
+}
+
+mac_ipv4_gre_ipv6_basic_pkt = {
+ 'ipv6-nh':
+ 'Ether(dst="%s")/IP()/GRE()/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", src="ABAB:910B:6666:3457:8295:3333:1800:2929", nh=6)/("X"*480)' % vf0_mac,
+ 'ipv6-tcp':
+ 'Ether(dst="%s")/IP()/GRE()/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", src="ABAB:910B:6666:3457:8295:3333:1800:2929", nh=6)/TCP(sport=22,dport=23)/("X"*480)' % vf0_mac,
+}
+
+mac_ipv4_gre_ipv4_all = {
+ 'sub_casename': 'ipv4_gre_ipv4_all',
+ 'port_id': 0,
+ 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / end actions rss types ipv4 end key_len 0 queues end / end',
+ 'test': [
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-proto'],
+ 'action': {'save_hash': 'ipv4-proto'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-proto'].replace('dst="192.168.0.1"','dst="192.168.1.1"'),
+ 'action': {'check_hash_different': 'ipv4-proto'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-proto'].replace('src="192.168.0.2"','src="192.168.1.2"'),
+ 'action': {'check_hash_different': 'ipv4-proto'},
+ },
+ ],
+}
+
+mac_ipv4_gre_ipv4_l3_src = {
+ 'sub_casename': 'ipv4_gre_ipv4_l3_src',
+ 'port_id': 0,
+ 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / end actions rss types ipv4 l3-src-only end key_len 0 queues end / end',
+ 'test': [
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-proto'],
+ 'action': {'save_hash': 'ipv4-proto'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-proto'].replace('src="192.168.0.2"','src="192.168.1.2"'),
+ 'action': {'check_hash_different': 'ipv4-proto'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-proto'].replace('dst="192.168.0.1"','dst="192.168.1.1"'),
+ 'action': {'check_hash_same': 'ipv4-proto'},
+ },
+ ],
+}
+
+mac_ipv4_gre_ipv4_l3_dst = {
+ 'sub_casename': 'ipv4_gre_ipv4_l3_dst',
+ 'port_id': 0,
+ 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / end actions rss types ipv4 l3-dst-only end key_len 0 queues end / end',
+ 'test': [
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-proto'],
+ 'action': {'save_hash': 'ipv4-proto'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-proto'].replace('dst="192.168.0.1"','dst="192.168.1.1"'),
+ 'action': {'check_hash_different': 'ipv4-proto'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-proto'].replace('src="192.168.0.2"','src="192.168.1.2"'),
+ 'action': {'check_hash_same': 'ipv4-proto'},
+ },
+ ],
+}
+
+mac_ipv4_gre_ipv4_tcp_l3_src = {
+ 'sub_casename': 'ipv4_gre_ipv4_tcp_l3_src',
+ 'port_id': 0,
+ 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / tcp / end actions rss types ipv4-tcp l3-src-only end key_len 0 queues end / end',
+ 'test': [
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'],
+ 'action': {'save_hash': 'ipv4-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'].replace('src="192.168.0.2"', 'src="192.168.1.2"'),
+ 'action': {'check_hash_different': 'ipv4-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'].replace('dst="192.168.0.1"', 'dst="192.168.1.1"'),
+ 'action': {'check_hash_same': 'ipv4-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'].replace('dport=23', 'dport=24'),
+ 'action': {'check_hash_same': 'ipv4-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'].replace('sport=22', 'sport=21'),
+ 'action': {'check_hash_same': 'ipv4-tcp'},
+ },
+ ],
+}
+
+mac_ipv4_gre_ipv4_tcp_l3_dst = {
+ 'sub_casename': 'ipv4_gre_ipv4_tcp_l3_dst',
+ 'port_id': 0,
+ 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / tcp / end actions rss types ipv4-tcp l3-dst-only end key_len 0 queues end / end',
+ 'test': [
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'],
+ 'action': {'save_hash': 'ipv4-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'].replace('dst="192.168.0.1"', 'dst="192.168.1.1"'),
+ 'action': {'check_hash_different': 'ipv4-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'].replace('src="192.168.0.2"', 'src="192.168.1.2"'),
+ 'action': {'check_hash_same': 'ipv4-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'].replace('dport=23', 'dport=24'),
+ 'action': {'check_hash_same': 'ipv4-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'].replace('sport=22', 'sport=21'),
+ 'action': {'check_hash_same': 'ipv4-tcp'},
+ },
+ ],
+}
+
+mac_ipv4_gre_ipv4_tcp_l3_src_l4_src = {
+ 'sub_casename': 'ipv4_gre_ipv4_tcp_l3_src_l4_src',
+ 'port_id': 0,
+ 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / tcp / end actions rss types ipv4-tcp l3-src-only l4-src-only end key_len 0 queues end / end',
+ 'test': [
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'],
+ 'action': {'save_hash': 'ipv4-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'].replace('src="192.168.0.2"', 'src="192.168.1.2"'),
+ 'action': {'check_hash_different': 'ipv4-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'].replace('sport=22', 'sport=21'),
+ 'action': {'check_hash_different': 'ipv4-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'].replace('dst="192.168.0.1"', 'dst="192.168.1.1"'),
+ 'action': {'check_hash_same': 'ipv4-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'].replace('dport=23', 'dport=24'),
+ 'action': {'check_hash_same': 'ipv4-tcp'},
+ },
+ ],
+}
+
+mac_ipv4_gre_ipv4_tcp_l3_src_l4_dst = {
+ 'sub_casename': 'ipv4_gre_ipv4_tcp_l3_src_l4_dst',
+ 'port_id': 0,
+ 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / tcp / end actions rss types ipv4-tcp l3-src-only l4-dst-only end key_len 0 queues end / end',
+ 'test': [
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'],
+ 'action': {'save_hash': 'ipv4-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'].replace('src="192.168.0.2"', 'src="192.168.1.2"'),
+ 'action': {'check_hash_different': 'ipv4-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'].replace('dport=23', 'dport=24'),
+ 'action': {'check_hash_different': 'ipv4-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'].replace('dst="192.168.0.1"', 'dst="192.168.1.1"'),
+ 'action': {'check_hash_same': 'ipv4-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'].replace('sport=22', 'sport=21'),
+ 'action': {'check_hash_same': 'ipv4-tcp'},
+ },
+ ],
+}
+
+mac_ipv4_gre_ipv4_tcp_l3_dst_l4_src = {
+ 'sub_casename': 'ipv4_gre_ipv4_tcp_l3_dst_l4_src',
+ 'port_id': 0,
+ 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / tcp / end actions rss types ipv4-tcp l3-dst-only l4-src-only end key_len 0 queues end / end',
+ 'test': [
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'],
+ 'action': {'save_hash': 'ipv4-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'].replace('dst="192.168.0.1"', 'dst="192.168.1.1"'),
+ 'action': {'check_hash_different': 'ipv4-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'].replace('sport=22', 'sport=21'),
+ 'action': {'check_hash_different': 'ipv4-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'].replace('src="192.168.0.2"', 'src="192.168.1.2"'),
+ 'action': {'check_hash_same': 'ipv4-tcp'},
+ },
+ {
+ 'send_packet':mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'].replace('dport=23', 'dport=24'),
+ 'action': {'check_hash_same': 'ipv4-tcp'},
+ },
+ ],
+}
+
+mac_ipv4_gre_ipv4_tcp_l3_dst_l4_dst = {
+ 'sub_casename': 'ipv4_gre_ipv4_tcp_l3_dst_l4_dst',
+ 'port_id': 0,
+ 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / tcp / end actions rss types ipv4-tcp l3-dst-only l4-dst-only end key_len 0 queues end / end',
+ 'test': [
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'],
+ 'action': {'save_hash': 'ipv4-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'].replace('dst="192.168.0.1"', 'dst="192.168.1.1"'),
+ 'action': {'check_hash_different': 'ipv4-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'].replace('dport=23', 'dport=24'),
+ 'action': {'check_hash_different': 'ipv4-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'].replace('src="192.168.0.2"', 'src="192.168.1.2"'),
+ 'action': {'check_hash_same': 'ipv4-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'].replace('sport=22', 'sport=21'),
+ 'action': {'check_hash_same': 'ipv4-tcp'},
+ },
+ ],
+}
+
+mac_ipv4_gre_ipv4_tcp_l4_src = {
+ 'sub_casename': 'ipv4_gre_ipv4_tcp_l4_src',
+ 'port_id': 0,
+ 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / tcp / end actions rss types ipv4-tcp l4-src-only end key_len 0 queues end / end',
+ 'test': [
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'],
+ 'action': {'save_hash': 'ipv4-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'].replace('sport=22', 'sport=21'),
+ 'action': {'check_hash_different': 'ipv4-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'].replace('dst="192.168.0.1"', 'dst="192.168.1.1"'),
+ 'action': {'check_hash_same': 'ipv4-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'].replace('src="192.168.0.2"', 'src="192.168.1.2"'),
+
+ 'action': {'check_hash_same': 'ipv4-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'].replace('dport=23', 'dport=24'),
+ 'action': {'check_hash_same': 'ipv4-tcp'},
+ },
+ ]
+}
+
+mac_ipv4_gre_ipv4_tcp_l4_dst = {
+ 'sub_casename': 'ipv4_gre_ipv4_tcp_l4_dst',
+ 'port_id': 0,
+ 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / tcp / end actions rss types ipv4-tcp l4-dst-only end key_len 0 queues end / end',
+ 'test': [
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'],
+ 'action': {'save_hash': 'ipv4-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'].replace('dport=23', 'dport=24'),
+ 'action': {'check_hash_different': 'ipv4-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'].replace('dst="192.168.0.1"', 'dst="192.168.1.1"'),
+ 'action': {'check_hash_same': 'ipv4-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'].replace('src="192.168.0.2"', 'src="192.168.1.2"'),
+ 'action': {'check_hash_same': 'ipv4-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'].replace('sport=22', 'sport=21'),
+ 'action': {'check_hash_same': 'ipv4-tcp'},
+ },
+ ]
+}
+
+mac_ipv4_gre_ipv4_tcp_all = {
+ 'sub_casename': 'ipv4_gre_ipv4_tcp_all',
+ 'port_id': 0,
+ 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / tcp / end actions rss types ipv4-tcp end key_len 0 queues end / end',
+ 'test': [
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'],
+ 'action': {'save_hash': 'ipv4-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'].replace('dst="192.168.0.1"', 'dst="192.168.1.1"'),
+ 'action': {'check_hash_different': 'ipv4-tcp'}
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'].replace('src="192.168.0.2"', 'src="192.168.1.2"'),
+ 'action': {'check_hash_different': 'ipv4-tcp'}
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'].replace('sport=22', 'sport=21'),
+ 'action': {'check_hash_different': 'ipv4-tcp'}
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'].replace('dport=23', 'dport=24'),
+ 'action': {'check_hash_different': 'ipv4-tcp'}
+ },
+ ]
+}
+
+mac_ipv4_gre_ipv4_tcp_ipv4 = {
+ 'sub_casename': 'ipv4_gre_ipv4_tcp_ipv4',
+ 'port_id': 0,
+ 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / tcp / end actions rss types ipv4 end key_len 0 queues end / end',
+ 'test': [
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'],
+ 'action': {'save_hash': 'ipv4-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'].replace('dst="192.168.0.1"', 'dst="192.168.1.1"'),
+ 'action': {'check_hash_different': 'ipv4-tcp'}
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'].replace('src="192.168.0.2"', 'src="192.168.1.2"'),
+
+ 'action': {'check_hash_different': 'ipv4-tcp'}
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'].replace('sport=22', 'sport=21'),
+
+ 'action': {'check_hash_same': 'ipv4-tcp'}
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv4_basic_pkt['ipv4-tcp'].replace('dport=23', 'dport=24'),
+
+ 'action': {'check_hash_same': 'ipv4-tcp'}
+ },
+ ]
+}
+
+mac_ipv4_gre_ipv6_l3_src = {
+ 'sub_casename': 'ipv4_gre_ipv6_l3_src',
+ 'port_id': 0,
+ 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / end actions rss types ipv6 l3-src-only end key_len 0 queues end / end',
+ 'test': [
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-nh'],
+ 'action': {'save_hash': 'ipv6-nh'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-nh'].replace('src="ABAB:910B:6666:3457:8295:3333:1800:2929"','src="ABAB:910B:6666:3457:8295:3333:1800:2930"'),
+ 'action': {'check_hash_different': 'ipv6-nh'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-nh'].replace('dst="CDCD:910A:2222:5498:8475:1111:3900:2020"', 'dst="CDCD:910A:2222:5498:8475:1111:3900:2021"'),
+ 'action': {'check_hash_same': 'ipv6-nh'},
+ },
+ ]
+}
+
+mac_ipv4_gre_ipv6_l3_dst = {
+ 'sub_casename': 'ipv4_gre_ipv6_l3_dst',
+ 'port_id': 0,
+ 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / end actions rss types ipv6 l3-dst-only end key_len 0 queues end / end',
+ 'test': [
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-nh'],
+ 'action': {'save_hash': 'ipv6-nh'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-nh'].replace('dst="CDCD:910A:2222:5498:8475:1111:3900:2020"',
+ 'dst="CDCD:910A:2222:5498:8475:1111:3900:2021"'),
+ 'action': {'check_hash_different': 'ipv6-nh'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-nh'].replace('src="ABAB:910B:6666:3457:8295:3333:1800:2929"',
+ 'src="ABAB:910B:6666:3457:8295:3333:1800:2930"'),
+ 'action': {'check_hash_same': 'ipv6-nh'},
+ },
+ ]
+}
+
+mac_ipv4_gre_ipv6_all = {
+ 'sub_casename': 'ipv4_gre_ipv6_all',
+ 'port_id': 0,
+ 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / end actions rss types ipv6 end key_len 0 queues end / end',
+ 'test': [
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-nh'],
+ 'action': {'save_hash': 'ipv6-nh'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-nh'].replace('dst="CDCD:910A:2222:5498:8475:1111:3900:2020"',
+ 'dst="CDCD:910A:2222:5498:8475:1111:3900:2021"'),
+ 'action': {'check_hash_different': 'ipv6-nh'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-nh'].replace('src="ABAB:910B:6666:3457:8295:3333:1800:2929"',
+ 'src="ABAB:910B:6666:3457:8295:3333:1800:2930"'),
+ 'action': {'check_hash_different': 'ipv6-nh'},
+ },
+ ]
+}
+
+mac_ipv4_gre_ipv6_tcp_l3_src = {
+ 'sub_casename': 'ipv4_gre_ipv6_tcp_l3_src',
+ 'port_id': 0,
+ 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / tcp / end actions rss types ipv6-tcp l3-src-only end key_len 0 queues end / end',
+ 'test': [
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'],
+ 'action': {'save_hash': 'ipv6-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace(
+ 'src="ABAB:910B:6666:3457:8295:3333:1800:2929"', 'src="ABAB:910B:6666:3457:8295:3333:1800:2930"'),
+ 'action': {'check_hash_different': 'ipv6-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-nh'].replace(
+ 'dst="CDCD:910A:2222:5498:8475:1111:3900:2020"',
+ 'dst="CDCD:910A:2222:5498:8475:1111:3900:2021"'),
+ 'action': {'check_hash_same': 'ipv6-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace('dport=23', 'dport=24'),
+ 'action': {'check_hash_same': 'ipv6-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace('sport=22', 'sport=21'),
+ 'action': {'check_hash_same': 'ipv6-tcp'},
+ },
+ ]
+}
+
+mac_ipv4_gre_ipv6_tcp_l3_dst = {
+ 'sub_casename': 'ipv4_gre_ipv6_tcp_l3_dst',
+ 'port_id': 0,
+ 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / tcp / end actions rss types ipv6-tcp l3-dst-only end key_len 0 queues end / end',
+ 'test': [
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'],
+ 'action': {'save_hash': 'ipv6-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-nh'].replace(
+ 'dst="CDCD:910A:2222:5498:8475:1111:3900:2020"',
+ 'dst="CDCD:910A:2222:5498:8475:1111:3900:2021"'),
+ 'action': {'check_hash_different': 'ipv6-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace(
+ 'src="ABAB:910B:6666:3457:8295:3333:1800:2929"', 'src="ABAB:910B:6666:3457:8295:3333:1800:2930"'),
+ 'action': {'check_hash_same': 'ipv6-tcp'},
+ },
+
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace('dport=23', 'dport=24'),
+ 'action': {'check_hash_same': 'ipv6-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace('sport=22', 'sport=21'),
+ 'action': {'check_hash_same': 'ipv6-tcp'},
+ },
+ ]
+}
+
+mac_ipv4_gre_ipv6_tcp_l4_src = {
+ 'sub_casename': 'ipv4_gre_ipv6_tcp_l4_src',
+ 'port_id': 0,
+ 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / tcp / end actions rss types ipv6-tcp l4-src-only end key_len 0 queues end / end',
+ 'test': [
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'],
+ 'action': {'save_hash': 'ipv6-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace('sport=22', 'sport=21'),
+ 'action': {'check_hash_different': 'ipv6-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace(
+ 'src="ABAB:910B:6666:3457:8295:3333:1800:2929"', 'src="ABAB:910B:6666:3457:8295:3333:1800:2930"'),
+ 'action': {'check_hash_same': 'ipv6-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace(
+ 'dst="CDCD:910A:2222:5498:8475:1111:3900:2020"',
+ 'dst="CDCD:910A:2222:5498:8475:1111:3900:2021"'),
+ 'action': {'check_hash_same': 'ipv6-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace('dport=23', 'dport=24'),
+ 'action': {'check_hash_same': 'ipv6-tcp'},
+ },
+ ]
+}
+
+mac_ipv4_gre_ipv6_tcp_l4_dst = {
+ 'sub_casename': 'ipv4_gre_ipv6_tcp_l4_dst',
+ 'port_id': 0,
+ 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / tcp / end actions rss types ipv6-tcp l4-dst-only end key_len 0 queues end / end',
+ 'test': [
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'],
+ 'action': {'save_hash': 'ipv6-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace('dport=23', 'dport=24'),
+ 'action': {'check_hash_different': 'ipv6-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace('sport=22', 'sport=21'),
+ 'action': {'check_hash_same': 'ipv6-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace(
+ 'src="ABAB:910B:6666:3457:8295:3333:1800:2929"', 'src="ABAB:910B:6666:3457:8295:3333:1800:2930"'),
+ 'action': {'check_hash_same': 'ipv6-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace(
+ 'dst="CDCD:910A:2222:5498:8475:1111:3900:2020"',
+ 'dst="CDCD:910A:2222:5498:8475:1111:3900:2021"'),
+ 'action': {'check_hash_same': 'ipv6-tcp'},
+ },
+ ]
+}
+
+mac_ipv4_gre_ipv6_tcp_l3_src_l4_src = {
+ 'sub_casename': 'ipv4_gre_ipv6_tcp_l3_src_l4_src',
+ 'port_id': 0,
+ 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / tcp / end actions rss types ipv6-tcp l3-src-only l4-src-only end key_len 0 queues end / end',
+ 'test': [
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'],
+ 'action': {'save_hash': 'ipv6-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace(
+ 'src="ABAB:910B:6666:3457:8295:3333:1800:2929"', 'src="ABAB:910B:6666:3457:8295:3333:1800:2930"'),
+ 'action': {'check_hash_different': 'ipv6-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace('sport=22', 'sport=21'),
+ 'action': {'check_hash_different': 'ipv6-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace(
+ 'dst="CDCD:910A:2222:5498:8475:1111:3900:2020"',
+ 'dst="CDCD:910A:2222:5498:8475:1111:3900:2021"'),
+ 'action': {'check_hash_same': 'ipv6-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace('dport=23', 'dport=24'),
+ 'action': {'check_hash_same': 'ipv6-tcp'},
+ },
+ ]
+}
+
+mac_ipv4_gre_ipv6_tcp_l3_src_l4_dst = {
+ 'sub_casename': 'ipv4_gre_ipv6_tcp_l3_src_l4_dst',
+ 'port_id': 0,
+ 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / tcp / end actions rss types ipv6-tcp l3-src-only l4-dst-only end key_len 0 queues end / end',
+ 'test': [
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'],
+ 'action': {'save_hash': 'ipv6-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace(
+ 'src="ABAB:910B:6666:3457:8295:3333:1800:2929"', 'src="ABAB:910B:6666:3457:8295:3333:1800:2930"'),
+ 'action': {'check_hash_different': 'ipv6-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace('dport=23', 'dport=24'),
+ 'action': {'check_hash_different': 'ipv6-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace('sport=22', 'sport=21'),
+ 'action': {'check_hash_same': 'ipv6-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace(
+ 'dst="CDCD:910A:2222:5498:8475:1111:3900:2020"',
+ 'dst="CDCD:910A:2222:5498:8475:1111:3900:2021"'),
+ 'action': {'check_hash_same': 'ipv6-tcp'},
+ },
+ ]
+}
+
+mac_ipv4_gre_ipv6_tcp_l3_dst_l4_src = {
+ 'sub_casename': 'ipv4_gre_ipv6_tcp_l3_dst_l4_src',
+ 'port_id': 0,
+ 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / tcp / end actions rss types ipv6-tcp l3-dst-only l4-src-only end key_len 0 queues end / end',
+ 'test': [
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'],
+ 'action': {'save_hash': 'ipv6-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace(
+ 'dst="CDCD:910A:2222:5498:8475:1111:3900:2020"',
+ 'dst="CDCD:910A:2222:5498:8475:1111:3900:2021"'),
+ 'action': {'check_hash_different': 'ipv6-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace('sport=22', 'sport=21'),
+ 'action': {'check_hash_different': 'ipv6-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace('dport=23', 'dport=24'),
+ 'action': {'check_hash_same': 'ipv6-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace(
+ 'src="ABAB:910B:6666:3457:8295:3333:1800:2929"', 'src="ABAB:910B:6666:3457:8295:3333:1800:2930"'),
+ 'action': {'check_hash_same': 'ipv6-tcp'},
+ },
+ ]
+}
+
+mac_ipv4_gre_ipv6_tcp_l3_dst_l4_dst = {
+ 'sub_casename': 'ipv4_gre_ipv6_tcp_l3_dst_l4_dst',
+ 'port_id': 0,
+ 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / tcp / end actions rss types ipv6-tcp l3-dst-only l4-dst-only end key_len 0 queues end / end',
+ 'test': [
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'],
+ 'action': {'save_hash': 'ipv6-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace(
+ 'dst="CDCD:910A:2222:5498:8475:1111:3900:2020"',
+ 'dst="CDCD:910A:2222:5498:8475:1111:3900:2021"'),
+ 'action': {'check_hash_different': 'ipv6-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace('dport=23', 'dport=24'),
+ 'action': {'check_hash_different': 'ipv6-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace(
+ 'src="ABAB:910B:6666:3457:8295:3333:1800:2929"', 'src="ABAB:910B:6666:3457:8295:3333:1800:2930"'),
+ 'action': {'check_hash_same': 'ipv6-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace('sport=22', 'sport=21'),
+ 'action': {'check_hash_same': 'ipv6-tcp'},
+ },
+ ]
+}
+
+mac_ipv4_gre_ipv6_tcp_all = {
+ 'sub_casename': 'ipv4_gre_ipv6_tcp_all',
+ 'port_id': 0,
+ 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / tcp / end actions rss types ipv6-tcp end key_len 0 queues end / end',
+ 'test': [
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'],
+ 'action': {'save_hash': 'ipv6-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace(
+ 'dst="CDCD:910A:2222:5498:8475:1111:3900:2020"',
+ 'dst="CDCD:910A:2222:5498:8475:1111:3900:2021"'),
+ 'action': {'check_hash_different': 'ipv6-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace(
+ 'src="ABAB:910B:6666:3457:8295:3333:1800:2929"', 'src="ABAB:910B:6666:3457:8295:3333:1800:2930"'),
+ 'action': {'check_hash_different': 'ipv6-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace('dport=23', 'dport=24'),
+ 'action': {'check_hash_different': 'ipv6-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace('sport=22', 'sport=21'),
+ 'action': {'check_hash_different': 'ipv6-tcp'},
+ },
+ ]
+}
+
+mac_ipv4_gre_ipv6_tcp_ipv6 = {
+ 'sub_casename': 'ipv4_gre_ipv6_tcp_ipv6',
+ 'port_id': 0,
+ 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / tcp / end actions rss types ipv6 end key_len 0 queues end / end',
+ 'test': [
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'],
+ 'action': {'save_hash': 'ipv6-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace(
+ 'dst="CDCD:910A:2222:5498:8475:1111:3900:2020"',
+ 'dst="CDCD:910A:2222:5498:8475:1111:3900:2021"'),
+ 'action': {'check_hash_different': 'ipv6-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace('dport=23', 'dport=24'),
+ 'action': {'check_hash_same': 'ipv6-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace(
+ 'src="ABAB:910B:6666:3457:8295:3333:1800:2929"', 'src="ABAB:910B:6666:3457:8295:3333:1800:2930"'),
+ 'action': {'check_hash_different': 'ipv6-tcp'},
+ },
+ {
+ 'send_packet': mac_ipv4_gre_ipv6_basic_pkt['ipv6-tcp'].replace('sport=22', 'sport=21'),
+ 'action': {'check_hash_same': 'ipv6-tcp'},
+ },
+ ]
+}
+
+mac_ipv4_gre_ipv4 = [
+ mac_ipv4_gre_ipv4_l3_src,
+ mac_ipv4_gre_ipv4_l3_dst,
+ mac_ipv4_gre_ipv4_all
+ ]
+
+mac_ipv6_gre_ipv4 = [eval(str(each).replace('ipv4_gre_ipv4','ipv6_gre_ipv4').replace('IP()','IPv6()')
+ .replace('eth / ipv4','eth / ipv6')) for each in mac_ipv4_gre_ipv4]
+
+mac_ipv4_gre_ipv6 = [
+ mac_ipv4_gre_ipv6_l3_src,
+ mac_ipv4_gre_ipv6_l3_dst,
+ mac_ipv4_gre_ipv6_all
+ ]
+
+mac_ipv6_gre_ipv6 = [eval(str(each).replace('ipv4_gre_ipv6','ipv6_gre_ipv6').replace('IP()','IPv6()')
+ .replace('eth / ipv4','eth / ipv6')) for each in mac_ipv4_gre_ipv6]
+
+mac_ipv4_gre_ipv4_tcp = [
+ mac_ipv4_gre_ipv4_tcp_l3_src,
+ mac_ipv4_gre_ipv4_tcp_l3_dst,
+ mac_ipv4_gre_ipv4_tcp_l4_src,
+ mac_ipv4_gre_ipv4_tcp_l4_dst,
+ mac_ipv4_gre_ipv4_tcp_l3_src_l4_src,
+ mac_ipv4_gre_ipv4_tcp_l3_src_l4_dst,
+ mac_ipv4_gre_ipv4_tcp_l3_dst_l4_src,
+ mac_ipv4_gre_ipv4_tcp_l3_dst_l4_dst,
+ mac_ipv4_gre_ipv4_tcp_all,
+ mac_ipv4_gre_ipv4_tcp_ipv4,
+ ]
+
+mac_ipv6_gre_ipv4_tcp = [eval(str(each).replace('ipv4_gre_ipv4','ipv6_gre_ipv4').replace('IP()','IPv6()')
+ .replace('eth / ipv4','eth / ipv6')) for each in mac_ipv4_gre_ipv4_tcp]
+
+mac_ipv4_gre_ipv6_tcp = [
+ mac_ipv4_gre_ipv6_tcp_l3_src,
+ mac_ipv4_gre_ipv6_tcp_l3_dst,
+ mac_ipv4_gre_ipv6_tcp_l4_src,
+ mac_ipv4_gre_ipv6_tcp_l4_dst,
+ mac_ipv4_gre_ipv6_tcp_l3_src_l4_src,
+ mac_ipv4_gre_ipv6_tcp_l3_src_l4_dst,
+ mac_ipv4_gre_ipv6_tcp_l3_dst_l4_src,
+ mac_ipv4_gre_ipv6_tcp_l3_dst_l4_dst,
+ mac_ipv4_gre_ipv6_tcp_all,
+ mac_ipv4_gre_ipv6_tcp_ipv6,
+ ]
+
+mac_ipv6_gre_ipv6_tcp = [eval(str(each).replace('ipv4_gre_ipv6','ipv6_gre_ipv6').replace('IP()','IPv6()')
+ .replace('eth / ipv4','eth / ipv6')) for each in mac_ipv4_gre_ipv6_tcp]
+
+mac_ipv4_gre_ipv4_udp = [eval(str(each).replace('tcp','udp').replace('TCP','UDP').replace('proto=6','proto=17')) for each in mac_ipv4_gre_ipv4_tcp]
+
+mac_ipv6_gre_ipv4_udp = [eval(str(each).replace('tcp','udp').replace('TCP','UDP').replace('proto=6','proto=17')) for each in mac_ipv6_gre_ipv4_tcp]
+
+mac_ipv4_gre_ipv6_udp = [eval(str(each).replace('tcp','udp').replace('TCP','UDP').replace('nh=6','nh=17')) for each in mac_ipv4_gre_ipv6_tcp]
+
+mac_ipv6_gre_ipv6_udp = [eval(str(each).replace('tcp','udp').replace('TCP','UDP').replace('nh=6','nh=17')) for each in mac_ipv6_gre_ipv6_tcp]
+
+mac_ipv4_gre_ipv4_symmetric = {
+ 'sub_casename': 'mac_ipv4_gre_ipv4_symmetric',
+ 'port_id': 0,
+ 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / end actions rss func symmetric_toeplitz types ipv4 end key_len 0 queues end / end',
+ 'test': [
+ {
+ 'send_packet': 'Ether(dst="%s")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.0.2")/("X"*480)' % vf0_mac,
+ 'action': {'save_hash': 'ipv4'},
+ },
+ {
+ 'send_packet': 'Ether(dst="%s")/IP()/GRE()/IP(dst="192.168.0.2", src="192.168.0.1")/("X"*480)' % vf0_mac,
+ 'action': {'check_hash_same': 'ipv4'},
+ },
+ {
+ 'send_packet': 'Ether(dst="%s")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.0.2",proto=6)/("X"*480)' % vf0_mac,
+ 'action': {'save_hash': 'ipv4-proto'},
+ },
+ {
+ 'send_packet': 'Ether(dst="%s")/IP()/GRE()/IP(dst="192.168.0.2", src="192.168.0.1",proto=6)/("X"*480)' % vf0_mac,
+ 'action': {'check_hash_same': 'ipv4-proto'},
+ },
+ ],
+}
+
+mac_ipv6_gre_ipv4_symmetric = eval(str(mac_ipv4_gre_ipv4_symmetric).replace('ipv4_gre_ipv4','ipv6_gre_ipv4').replace('IP()','IPv6()')
+ .replace('eth / ipv4','eth / ipv6'))
+
+mac_ipv4_gre_ipv6_symmetric = {
+ 'sub_casename': 'mac_ipv4_gre_ipv6_symmetric',
+ 'port_id': 0,
+ 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / end actions rss func symmetric_toeplitz types ipv6 end key_len 0 queues end / end',
+ 'test': [
+ {
+ 'send_packet': 'Ether(dst="%s")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/("X"*480)' % vf0_mac,
+ 'action': {'save_hash': 'ipv6'},
+ },
+ {
+ 'send_packet': 'Ether(dst="%s")/IP()/GRE()/IPv6(dst="ABAB:910B:6666:3457:8295:3333:1800:2929",src="CDCD:910A:2222:5498:8475:1111:3900:2020")/("X"*480)' % vf0_mac,
+ 'action': {'check_hash_same': 'ipv6'},
+ },
+ {
+ 'send_packet': 'Ether(dst="%s")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/("X"*480)' % vf0_mac,
+ 'action': {'save_hash': 'ipv6-nh'},
+ },
+ {
+ 'send_packet': 'Ether(dst="%s")/IP()/GRE()/IPv6(dst="ABAB:910B:6666:3457:8295:3333:1800:2929",src="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/("X"*480)' % vf0_mac,
+ 'action': {'check_hash_same': 'ipv6-nh'},
+ },
+ ],
+}
+
+mac_ipv6_gre_ipv6_symmetric = eval(str(mac_ipv4_gre_ipv6_symmetric).replace('ipv4_gre_ipv6','ipv6_gre_ipv6').replace('IP()','IPv6()')
+ .replace('eth / ipv4','eth / ipv6'))
+
+mac_ipv4_gre_ipv4_tcp_symmetric = {
+ 'sub_casename': 'mac_ipv4_gre_ipv4_tcp_symmetric',
+ 'port_id': 0,
+ 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv4 / tcp / end actions rss func symmetric_toeplitz types ipv4-tcp end key_len 0 queues end / end',
+ 'test': [
+ {
+ 'send_packet': 'Ether(dst="%s")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.0.2")/TCP(sport=22,dport=23)/("X"*480)' % vf0_mac,
+ 'action': {'save_hash': 'ipv4'},
+ },
+ {
+ 'send_packet': 'Ether(dst="%s")/IP()/GRE()/IP(dst="192.168.0.2", src="192.168.0.1")/TCP(sport=22,dport=23)/("X"*480)' % vf0_mac,
+ 'action': {'check_hash_same': 'ipv4'},
+ },
+ {
+ 'send_packet': 'Ether(dst="%s")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.0.2")/TCP(sport=23,dport=22)/("X"*480)' % vf0_mac,
+ 'action': {'check_hash_same': 'ipv4'},
+ },
+ {
+ 'send_packet': 'Ether(dst="%s")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.0.2",proto=6)/TCP(sport=22,dport=23)/("X"*480)' % vf0_mac,
+ 'action': {'save_hash': 'ipv4-proto'},
+ },
+ {
+ 'send_packet': 'Ether(dst="%s")/IP()/GRE()/IP(dst="192.168.0.2", src="192.168.0.1",proto=6)/TCP(sport=22,dport=23)/("X"*480)' % vf0_mac,
+ 'action': {'check_hash_same': 'ipv4-proto'},
+ },
+ {
+ 'send_packet': 'Ether(dst="%s")/IP()/GRE()/IP(dst="192.168.0.1", src="192.168.0.2",proto=6)/TCP(sport=23,dport=22)/("X"*480)' % vf0_mac,
+ 'action': {'check_hash_same': 'ipv4-proto'},
+ },
+ ],
+}
+
+mac_ipv6_gre_ipv4_tcp_symmetric = eval(str(mac_ipv4_gre_ipv4_tcp_symmetric).replace('ipv4_gre_ipv4','ipv6_gre_ipv4').replace('IP()','IPv6()')
+ .replace('eth / ipv4','eth / ipv6'))
+
+mac_ipv4_gre_ipv6_tcp_symmetric = {
+ 'sub_casename': 'mac_ipv4_gre_ipv6_tcp_symmetric',
+ 'port_id': 0,
+ 'rule': 'flow create 0 ingress pattern eth / ipv4 / gre / ipv6 / tcp / end actions rss func symmetric_toeplitz types ipv6-tcp end key_len 0 queues end / end',
+ 'test': [
+ {
+ 'send_packet': 'Ether(dst="%s")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/TCP(sport=22,dport=23)/("X"*480)' % vf0_mac,
+ 'action': {'save_hash': 'ipv6'},
+ },
+ {
+ 'send_packet': 'Ether(dst="%s")/IP()/GRE()/IPv6(dst="ABAB:910B:6666:3457:8295:3333:1800:2929",src="CDCD:910A:2222:5498:8475:1111:3900:2020")/TCP(sport=22,dport=23)/("X"*480)' % vf0_mac,
+ 'action': {'check_hash_same': 'ipv6'},
+ },
+ {
+ 'send_packet': 'Ether(dst="%s")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/TCP(sport=23,dport=22)/("X"*480)' % vf0_mac,
+ 'action': {'check_hash_same': 'ipv6'},
+ },
+ {
+ 'send_packet': 'Ether(dst="%s")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/TCP(sport=22,dport=23)/("X"*480)' % vf0_mac,
+ 'action': {'save_hash': 'ipv6-nh'},
+ },
+ {
+ 'send_packet': 'Ether(dst="%s")/IP()/GRE()/IPv6(dst="ABAB:910B:6666:3457:8295:3333:1800:2929",src="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/TCP(sport=22,dport=23)/("X"*480)' % vf0_mac,
+ 'action': {'check_hash_same': 'ipv6-nh'},
+ },
+ {
+ 'send_packet': 'Ether(dst="%s")/IP()/GRE()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020", nh=6)/TCP(sport=23,dport=22)/("X"*480)' % vf0_mac,
+ 'action': {'check_hash_same': 'ipv6-nh'},
+ },
+ ],
+}
+
+mac_ipv6_gre_ipv6_tcp_symmetric = eval(str(mac_ipv4_gre_ipv6_tcp_symmetric).replace('ipv4_gre_ipv6','ipv6_gre_ipv6').replace('IP()','IPv6()')
+ .replace('eth / ipv4','eth / ipv6'))
+
+mac_ipv4_gre_ipv4_udp_symmetric = eval(str(mac_ipv4_gre_ipv4_tcp_symmetric).replace('tcp','udp').replace('TCP','UDP').replace('proto=6','proto=17'))
+
+mac_ipv6_gre_ipv4_udp_symmetric = eval(str(mac_ipv6_gre_ipv4_tcp_symmetric).replace('tcp','udp').replace('TCP','UDP').replace('proto=6','proto=17'))
+
+mac_ipv4_gre_ipv6_udp_symmetric = eval(str(mac_ipv4_gre_ipv6_tcp_symmetric).replace('tcp','udp').replace('TCP','UDP').replace('proto=6','proto=17'))
+
+mac_ipv6_gre_ipv6_udp_symmetric = eval(str(mac_ipv6_gre_ipv6_tcp_symmetric).replace('tcp','udp').replace('TCP','UDP').replace('proto=6','proto=17'))
+#gre tunnel end
+
class AdvancedIavfRSSTest(TestCase):
def set_up_all(self):
@@ -4451,6 +5376,78 @@ class AdvancedIavfRSSTest(TestCase):
self.rssprocess.handle_tests(tests, 0)
self.verify(not self.rssprocess.error_msgs, 'some subcases failed')
+ def test_mac_ipv4_gre_ipv4(self):
+ self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv4_gre_ipv4)
+
+ def test_mac_ipv6_gre_ipv4(self):
+ self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv6_gre_ipv4)
+
+ def test_mac_ipv4_gre_ipv6(self):
+ self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv4_gre_ipv6)
+
+ def test_mac_ipv6_gre_ipv6(self):
+ self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv6_gre_ipv6)
+
+ def test_mac_ipv4_gre_ipv4_tcp(self):
+ self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv4_gre_ipv4_tcp)
+
+ def test_mac_ipv6_gre_ipv4_tcp(self):
+ self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv6_gre_ipv4_tcp)
+
+ def test_mac_ipv4_gre_ipv6_tcp(self):
+ self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv4_gre_ipv6_tcp)
+
+ def test_mac_ipv6_gre_ipv6_tcp(self):
+ self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv6_gre_ipv6_tcp)
+
+ def test_mac_ipv4_gre_ipv4_udp(self):
+ self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv4_gre_ipv4_udp)
+
+ def test_mac_ipv6_gre_ipv4_udp(self):
+ self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv6_gre_ipv4_udp)
+
+ def test_mac_ipv4_gre_ipv6_udp(self):
+ self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv4_gre_ipv6_udp)
+
+ def test_mac_ipv6_gre_ipv6_udp(self):
+ self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv6_gre_ipv6_udp)
+
+ def test_symmetric_mac_ipv4_gre_ipv4(self):
+ self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv4_gre_ipv4_symmetric)
+
+ def test_symmetric_mac_ipv6_gre_ipv4(self):
+ self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv6_gre_ipv4_symmetric)
+
+ def test_symmetric_mac_ipv4_gre_ipv6(self):
+ self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv4_gre_ipv6_symmetric)
+
+ def test_symmetric_mac_ipv6_gre_ipv6(self):
+ self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv6_gre_ipv6_symmetric)
+
+ def test_symmetric_mac_ipv4_gre_ipv4_tcp(self):
+ self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv4_gre_ipv4_tcp_symmetric)
+
+ def test_symmetric_mac_ipv6_gre_ipv4_tcp(self):
+ self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv6_gre_ipv4_tcp_symmetric)
+
+ def test_symmetric_mac_ipv4_gre_ipv6_tcp(self):
+ self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv4_gre_ipv6_tcp_symmetric)
+
+ def test_symmetric_mac_ipv6_gre_ipv6_tcp(self):
+ self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv6_gre_ipv6_tcp_symmetric)
+
+ def test_symmetric_mac_ipv4_gre_ipv4_udp(self):
+ self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv4_gre_ipv4_udp_symmetric)
+
+ def test_symmetric_mac_ipv6_gre_ipv4_udp(self):
+ self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv6_gre_ipv4_udp_symmetric)
+
+ def test_symmetric_mac_ipv4_gre_ipv6_udp(self):
+ self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv4_gre_ipv6_udp_symmetric)
+
+ def test_symmetric_mac_ipv6_gre_ipv6_udp(self):
+ self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv6_gre_ipv6_udp_symmetric)
+
def tear_down(self):
# destroy all flow rule on port 0
self.dut.send_command("flow flush 0", timeout=1)
--
2.17.1
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-08-24 6:11 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-24 10:54 [dts] [PATCH V3 0/2] add gre inner rss cases for iavf Qin Sun
2021-08-24 10:54 ` [dts] [PATCH V3 1/2] test_plans/cvl_advanced_iavf_rss: " Qin Sun
2021-08-24 6:09 ` Lin, Xueqin
2021-08-24 10:54 ` [dts] [PATCH V3 2/2] tests/cvl_advanced_iavf_rss: add gre inner rss cases for iavf suite Qin Sun
2021-08-24 6:11 ` Lin, Xueqin
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).